a0bfe36408eae8471f439bd9438d89717c1b4556
[gnulib.git] / ChangeLog
1 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2
3         poll: do not return 0 on timeout=-1
4         * lib/poll.c: Loop with yield if no events occured
5
6 2011-07-06  Eric Blake  <eblake@redhat.com>
7
8         pthread_sigmask: always replace when not using pthread
9         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10         replacement when using some threading other than pthread.  Fix
11         logic bug.
12
13 2011-07-06  Bruno Haible  <bruno@clisp.org>
14
15         Comments.
16         * m4/printf.m4: Update comments about mingw.
17
18 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19
20         sys_select: define sigset_t more portably
21         * lib/sys_select.in.h: Always include <sys/types.h>, since
22         we now need sigset_t and mingw defines it there.
23         Include <signal.h> before split inclusion guard, to avoid
24         mishaps on Solaris, whose <signal.h> eventually includes us.
25         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
26         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
27         which come from ...
28         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
29         gl_CHECK_TYPE_SIGSET_T.
30         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
31         does the real work.
32         * modules/sys_select (Depends-on): Add 'signal'.
33
34         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35         Suggested by Bruno Haible.
36
37         pselect: Use pthread_sigmask, not sigprocmask.
38         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
39         multithreaded apps better than sigprocmask does.
40         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
41         sigprocmask directly.
42
43 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44
45         * lib/pselect.c (pselect): Use plain name, without "rpl_".
46         Don't #undef,  since we don't need any underlying pselect.
47         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
48         (Depends-on): Add select.
49         (Link): Add $(LIBSOCKET).
50         These changes suggested by Bruno Haible.
51
52         pselect: document better
53         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
54         * doc/posix-functions/pselect.texi (pselect): Document new module.
55
56         pthread_sigmask: new module
57         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
58         * doc/posix-functions/pthread_sigmask.texi: Document new module.
59         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
60         This is done only as a macro; I don't know how well that'll
61         work for C++.  Move <sys/types.h> include before the include_next,
62         to avoid mishap on Solaris.
63         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
64         * modules/signal (Makefile.am): Substitute the check's results.
65         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
66
67         test-pselect: new module
68         * modules/pselect-tests, tests/test-pselect.c: New files.
69         * tests/test-select.c, tests/test-sys_select-c++.cc:
70         If TEST_PSELECT is defined, test pselect instead of testing select.
71
72         * tests/test-sys_select.c (sigset_t): Test for it, too.
73         Suggested by Bruno Haible.
74
75 2011-07-05  Eric Blake  <eblake@redhat.com>
76
77         snprintf: guarantee %1$d, for libintl
78         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
79         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
80         * doc/posix-functions/snprintf.texi (snprintf): Update.
81         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82         * tests/test-snprintf.c (main): Enhance test.
83         * tests/test-vsnprintf.c (main): Likewise.
84
85 2011-07-05  Jim Meyering  <meyering@redhat.com>
86
87         maint: exempt stdio-read.c and stdio-write.c from the cppi check
88         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
89         per Bruno's request, to accommodate this idiom (no space after "#")
90         even when the function is inside an #if block:
91         char *
92         gets (char *s)
93         #undef gets
94         {
95           ...
96         }
97
98 2011-07-04  Jim Meyering  <meyering@redhat.com>
99
100         maint: indent with spaces, not TABs, and add a rule to check this
101         * tests/test-userspec.c: Indent with spaces, not TABs.
102         * tests/test-argp.c: Likewise.
103         * tests/test-c-stack2.sh: Likewise.
104         * tests/test-parse-duration.sh: Likewise
105         * m4/strtod.m4: Likewise.
106         * m4/alloca.m4: Likewise.
107         * m4/pselect.m4: Likewise.
108         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
109
110 2011-07-03  Jim Meyering  <meyering@redhat.com>
111
112         maint.mk: correct omissions in prohibit_argmatch_without_use check
113         This rule would mistakenly report that argmatch.h is included without
114         use even when both the argmatch and invalid_arg macro were used.
115         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
116         of argmatch and invalid_arg.
117
118 2011-07-03  Bruno Haible  <bruno@clisp.org>
119
120         Comments about EINTR.
121         * lib/safe-read.h: Explain the purpose of this module.
122         * lib/safe-write.h: Likewise.
123         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
124         module.
125         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
126         module.
127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
128
129 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
130
131         xnanosleep: Rewrite to use new dtotimespec module.
132         It has the conversion code that used to be in xnanosleep.
133         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
134         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
135         (TIME_T_MAX): Remove.
136         (xnanosleep): Rewrite in terms of dtotimespec.
137         * modules/xnanosleep (Depends-on): Add dtotimespec.
138         Remove intprops, stdbool.
139
140         timespec-add, timespec-sub: new modules
141         * lib/timespec.h (timespec_add, timespec_sub): New decls.
142         * lib/timespec-add.c, lib/timespec-sub.c:
143         * modules/timespec-add, modules/timespec-sub: New files.
144
145         dtotimespec: new module
146         * lib/timespec.h (dtotimespec): New decl.
147         * lib/dtotimespec.c, modules/dtotimespec: New files.
148
149         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
150
151         pselect: new module
152         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
153         (pselect): New decls.
154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
155         since the standard pselect decl uses 'restrict'.
156         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
157         HAVE_PSELECT, REPLACE_PSELECT.
158         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
159         HAVE_PSELECT, REPLACE_PSELECT.
160         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
161
162         sys_select: don't depend on sys_socket
163         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
165         This fix works on GNU and GNU-like platforms, but has not been tested
166         on native Windows.
167         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
169         gl_HEADER_SYS_SOCKET.
170         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
171         gl_PREREQ_SYS_H_WINSOCK2.
172
173 2011-06-29  Eric Blake  <eblake@redhat.com>
174
175         pipe2: fix C89 compile problem
176         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
177         Reported by Bruno Haible.
178
179         pipe, pipe2: don't corrupt fd on error
180         * lib/pipe.c (pipe): Leave fd unchanged on error.
181         * lib/pipe2.c (pipe2): Likewise.
182         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
183         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
184
185 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
186
187         mmap-anon: do not use regular expressions inadvertently
188         * m4/mmap-anon.m4: Remove trailing period from strings sought
189         in the output.
190
191 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
192
193         nanosleep: fix integer overflow problem
194         * lib/nanosleep.c (my_usleep): Don't assume signed integer
195         arithmetic wraps around on overflow.
196
197         nanosleep: simplify carrying
198         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
199         first call to the underyling nanosleep, not for the last one.
200         This doesn't fix any bugs, but it simplifies the computation of
201         the remaining delay.  Found while auditing integer overflow issues.
202
203         dup2: remove test for existence of fcntl
204         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
205         "#if HAVE_FCNTL", in the configure-time test program.
206         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
207         and therefore speeds up "configure" a bit.  Found while
208         adding the dup2 module to Emacs.
209
210 2011-06-24  Eric Blake  <eblake@redhat.com>
211
212         maint.mk: enhance useless header checks
213         * top/maint.mk (_sc_header_without_use): Check both include
214         styles.
215         (sc_prohibit_assert_without_use)
216         (sc_prohibit_close_stream_without_use)
217         (sc_prohibit_getopt_without_use)
218         (sc_prohibit_quotearg_without_use)
219         (sc_prohibit_quote_without_use)
220         (sc_prohibit_long_options_without_use)
221         (sc_prohibit_inttostr_without_use)
222         (sc_prohibit_ignore_value_without_use)
223         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
224         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
225         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
226         (sc_prohibit_hash_pjw_without_use)
227         (sc_prohibit_safe_read_without_use)
228         (sc_prohibit_argmatch_without_use)
229         (sc_prohibit_canonicalize_without_use)
230         (sc_prohibit_root_dev_ino_without_use)
231         (sc_prohibit_openat_without_use)
232         (sc_prohibit_c_ctype_without_use)
233         (sc_prohibit_signal_without_use)
234         (sc_prohibit_stdio--_without_use)
235         (sc_prohibit_stdio-safer_without_use)
236         (sc_prohibit_strings_without_use)
237         (sc_prohibit_intprops_without_use)
238         (sc_prohibit_stddef_without_use)
239         (sc_prohibit_xfreopen_without_use): Update clients.
240
241 2011-06-24  Jim Meyering  <meyering@redhat.com>
242
243         syntax-check: keep one maint.mk rule in sync with its header
244         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
245         of the bug Eric has just fixed, with today's commit 25e4c2ec.
246         I prefer to avoid temporary files here, so use <(...), but that
247         is not supported by /bin/sh, so...
248         (SHELL): Define to /bin/bash.
249
250 2011-06-24  Eric Blake  <eblake@redhat.com>
251
252         maint.mk: update sc_prohibit_intprops_without_use
253         * top/maint.mk (_intprops_names): Match recent changes.
254
255 2011-06-24  Bruno Haible  <bruno@clisp.org>
256
257         strerror-override: No-op tweak.
258         * lib/strerror-override.h (strerror_override): Reorder conditions,
259         for consistency with lib/strerror-override.c.
260
261 2011-06-23  Eric Blake  <eblake@redhat.com>
262
263         maint.mk: test further PATH_MAX issues
264         * top/maint.mk (sc_prohibit_path_max_array): Rename...
265         (sc_prohibit_path_max_allocation): ...and also test alloca.
266         Suggested by Jim Meyering.
267
268 2011-06-22  Eric Blake  <eblake@redhat.com>
269
270         maint.mk: add syntax-check to avoid char[PATH_MAX]
271         * top/maint.mk (sc_prohibit_path_max_array): New rule.
272
273         stat: be robust to PATH_MAX definition
274         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
275         * modules/stat (Depends-on): Add verify.
276
277         link: work around IRIX bug
278         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
279         * lib/link.c (rpl_link): Work around it.
280         * tests/test-link.h (test_link): Enhance test.
281         * doc/posix-functions/link.texi (link): Document the bug.
282
283         getopt: silence clang warning
284         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
285         dereference.
286         Reported by Gustavo Martin Domato.
287
288 2011-06-22  Jim Meyering  <meyering@redhat.com>
289
290         bootstrap: do not insert a blank line into each .gitignore file
291         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
292
293 2011-06-21  Eric Blake  <eblake@redhat.com>
294
295         perror: test for output mismatch
296         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
297         perror on IRIX.
298
299         strerror_r: fix OpenBSD behavior on out-of-range
300         * lib/strerror_r.c (strerror_r): Always use maximal string.
301         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
302
303         strerror_r: fix OpenBSD behavior on 0
304         * lib/strerror-override.c (strerror_override): Also override 0
305         when needed.
306         * lib/strerror-override.h (strerror_override): Likewise.
307         * lib/strerror.c (strerror): Simplify, now that 0 override is done
308         earlier.
309         * lib/strerror_r.c (strerror_r): Likewise.
310         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
311         behavior...
312         (gl_FUNC_STRERROR_0): ...into new macro.
313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
314         is overridden.
315         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
316         * modules/strerror-override (Files): Add strerror.m4.
317         (configure.ac): Also provide override for 0 when needed.
318         * doc/posix-functions/strerror.texi (strerror): Document this.
319         * doc/posix-functions/perror.texi (perror): Likewise.
320
321         perror: adjust array size
322         * modules/perror (Depends-on): Add strerror-override.
323         * lib/perror.c (perror): Use it to avoid magic number.
324
325         strerror-override: reduce size
326         * lib/strerror-override.c (strerror_override): Use fewer lines.
327
328 2011-06-20  Bruno Haible  <bruno@clisp.org>
329
330         pathmax: Ensure correct value for PATH_MAX on HP-UX.
331         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
332
333 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
334
335         alloca: port to compilers that can optimize like GCC 4.6.0
336         * lib/alloca.c (find_stack_direction): New signature, taken from
337         Autoconf git.  This works with GCC 4.6.0.  This code should never
338         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
339         be used with other compilers that optimize as well as GCC 4.6.0 does.
340         (alloca): Adjust to new signature.
341         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
342         New macro, which patches Autoconf in a similar way.
343
344         c-stack: stop worrying about stack direction
345         * lib/c-stack.c (find_stack_direction): Remove.
346         (segv_handler): Don't worry about stack direction growth, as it's
347         too much of a pain to configure this correctly, given how compilers
348         are optimizing-away our stack-growth detection code.  Instead, assume
349         that any access to just before or just after the stack is OK.
350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
351         Don't require AC_FUNC_ALLOCA; no longer needed.
352
353 2011-06-20  Eric Blake  <eblake@redhat.com>
354
355         test-stat: don't allocate PATH_MAX bytes
356         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
357         PATH_MAX-sized buffer.
358         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
359         * modules/stat-tests (Depends-on): Likewise.
360         * tests/test-fstatat.c (includes): Drop pathmax.h.
361         * tests/test-stat.c (includes): Likewise.
362         Reported by Bruno Haible.
363
364 2011-06-20  Bruno Haible  <bruno@clisp.org>
365
366         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
367         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
368         * lib/float.c: New file.
369         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
370         REPLACE_FLOAT_LDBL.
371         * modules/float (Files): Add lib/float.c.
372         (configure.ac): Invoke AC_LIBOBJ.
373         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
374
375 2011-06-20  Bruno Haible  <bruno@clisp.org>
376
377         Tests for module 'float'.
378         * modules/float-tests: New file.
379         * tests/test-float.c: New file.
380
381 2011-06-19  Bruno Haible  <bruno@clisp.org>
382
383         isinf: Coding style.
384         * lib/isinf.c: Use GNU coding style.
385
386 2011-06-19  Bruno Haible  <bruno@clisp.org>
387
388         linkat test: Avoid test failure on AIX 7.1.
389         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
390         * tests/test-link.h (test_link): Likewise.
391
392 2011-06-19  Bruno Haible  <bruno@clisp.org>
393
394         pread test: Avoid test failure on OpenBSD 4.9.
395         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
396
397 2011-06-19  Bruno Haible  <bruno@clisp.org>
398
399         sprintf-posix: Fix test failure on AIX 7.1.
400         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
401         * doc/posix-functions/dprintf.texi: Mention limited precision problem
402         on AIX.
403         * doc/posix-functions/fprintf.texi: Likewise.
404         * doc/posix-functions/printf.texi: Likewise.
405         * doc/posix-functions/snprintf.texi: Likewise.
406         * doc/posix-functions/sprintf.texi: Likewise.
407         * doc/posix-functions/vdprintf.texi: Likewise.
408         * doc/posix-functions/vfprintf.texi: Likewise.
409         * doc/posix-functions/vprintf.texi: Likewise.
410         * doc/posix-functions/vsnprintf.texi: Likewise.
411         * doc/posix-functions/vsprintf.texi: Likewise.
412
413 2011-06-19  Bruno Haible  <bruno@clisp.org>
414
415         roundl-ieee: Fix test failure on AIX 7.1.
416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
417         * doc/posix-functions/roundl.texi: Mention problem with negative
418         arguments.
419
420 2011-06-19  Bruno Haible  <bruno@clisp.org>
421
422         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
423         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
424         * doc/posix-functions/round.texi: Mention problem with negative
425         arguments.
426         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
427
428 2011-06-19  Bruno Haible  <bruno@clisp.org>
429
430         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
432         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
433         * doc/posix-functions/roundf.texi: Mention problem with negative
434         arguments.
435         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
436
437 2011-06-19  Bruno Haible  <bruno@clisp.org>
438
439         ceilf-ieee: Work around bug on MacOS X 10.5.
440         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
441
442         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
443         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
444         IEEE compliant, avoid compiler optimizations.
445         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
446         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
447         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
448         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
450         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
452         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
453         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
454         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
455
456 2011-06-19  Bruno Haible  <bruno@clisp.org>
457
458         ceilf-ieee: Work around bug on AIX 7.1.
459         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
460         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
461
462 2011-06-19  Bruno Haible  <bruno@clisp.org>
463
464         ceil-ieee: Work around bug on AIX 7.1.
465         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
466         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
467
468 2011-06-18  Bruno Haible  <bruno@clisp.org>
469
470         fsync test: Avoid test failure on MacOS X and AIX.
471         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
472         EINVAL.
473
474 2011-06-18  Bruno Haible  <bruno@clisp.org>
475
476         openat, fdopendir tests: Fix link errors.
477         * modules/openat-tests (Depends-on): Add progname.
478         * modules/fdopendir-tests (Depends-on): Likewise.
479         * tests/test-fchownat.c: Include progname.h.
480         (main): Call set_program_name.
481         * tests/test-fstatat.c: Include progname.h.
482         (main): Call set_program_name.
483         * tests/test-mkdirat.c: Include progname.h.
484         (main): Call set_program_name.
485         * tests/test-openat.c: Include progname.h.
486         (main): Call set_program_name.
487         * tests/test-unlinkat.c: Include progname.h.
488         (main): Call set_program_name.
489         * tests/test-fdopendir.c: Include progname.h.
490         (main): Call set_program_name.
491
492 2011-06-18  Bruno Haible  <bruno@clisp.org>
493
494         Doc update.
495         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
496         HP-UX.
497         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
498
499 2011-06-18  Bruno Haible  <bruno@clisp.org>
500
501         getcwd tests: Avoid compilation error on HP-UX 11.31.
502         * modules/getcwd-tests (Depends-on): Add pathmax.
503         * tests/test-getcwd.c: Include pathmax.h.
504
505 2011-06-18  Bruno Haible  <bruno@clisp.org>
506
507         isfinite, isinf: Fix link error on AIX 6 and 7.
508         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
509         needed, also test the macro with a 'float' argument.
510         * m4/isinf.m4 (gl_ISINF): Likewise.
511
512 2011-06-18  Bruno Haible  <bruno@clisp.org>
513
514         getloadavg: Don't clobber LIBS. Regression from previous commit.
515         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
516         AC_CHECK_LIB from here...
517         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
518         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
519         gl_func_getloadavg_done.
520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
521
522 2011-06-18  Bruno Haible  <bruno@clisp.org>
523
524         clean-temp: Improve documentation.
525         * lib/clean-temp.h: Explain better how to use this module.
526         Reported by John Darrington <john@darrington.wattle.id.au>.
527
528 2011-06-17  Bruno Haible  <bruno@clisp.org>
529
530         pread, pwrite: Avoid cc warning on AIX.
531         * lib/unistd.in.h (pread): Undefine before defining as a macro.
532         (pwrite): Likewise.
533
534 2011-06-17  Bruno Haible  <bruno@clisp.org>
535
536         spawn-pipe tests: Fix link error.
537         * tests/test-spawn-pipe-child.c: Undefine fprintf.
538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
539
540 2011-06-17  Bruno Haible  <bruno@clisp.org>
541
542         Tests: Remove unnecessary dependency.
543         * modules/canonicalize-tests (Depends-on): Remove progname.
544         * modules/chown-tests (Depends-on): Likewise.
545         * modules/dirname-tests (Depends-on): Likewise.
546         * modules/fdopendir-tests (Depends-on): Likewise.
547         * modules/fdutimensat-tests (Depends-on): Likewise.
548         * modules/hash-tests (Depends-on): Likewise.
549         * modules/lchown-tests (Depends-on): Likewise.
550         * modules/linkat-tests (Depends-on): Likewise.
551         * modules/renameat-tests (Depends-on): Likewise.
552         * modules/spawn-pipe-tests (Depends-on): Likewise.
553         * modules/utimensat-tests (Depends-on): Likewise.
554
555 2011-06-17  Bruno Haible  <bruno@clisp.org>
556
557         spawn-pipe tests: Fix link error.
558         * tests/test-spawn-pipe-child.c: Undefine fflush.
559
560 2011-06-17  Bruno Haible  <bruno@clisp.org>
561
562         Fix tests link errors.
563         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
564         * modules/chown-tests (Makefile.am): Don't link test-chown with
565         LIBINTL.
566         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
567         LIBINTL.
568         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
569         LIBINTL.
570         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
571         LIBINTL.
572
573 2011-06-16  Bruno Haible  <bruno@clisp.org>
574
575         crypto/gc-sha1: Fix recent regression.
576         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
577         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
578
579         crypto/gc-md5: Fix recent regression.
580         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
581
582         crypto/gc-md4: Fix recent regression.
583         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
584         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
585
586         crypto/gc-arctwo: Fix recent regression.
587         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
588         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
589
590         crypto/gc-rijndael: Fix recent regression.
591         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
592         (configure.ac): Invoke AC_LIBOBJ here.
593         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
595
596         crypto/gc-hmac-sha1: Fix recent regression.
597         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
598         (configure.ac): Invoke AC_LIBOBJ here.
599         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
601
602         crypto/gc-hmac-md5: Fix recent regression.
603         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
604         (configure.ac): Invoke AC_LIBOBJ here.
605         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
607
608         crypto/gc-des: Fix recent regression.
609         * modules/crypto/gc-des (Files): Remove m4/des.m4.
610         (configure.ac): Invoke AC_LIBOBJ here.
611         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
613
614         crypto/gc-arcfour: Fix recent regression.
615         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
616         (configure.ac): Invoke AC_LIBOBJ here.
617         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
619
620 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
621
622         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
623         After the 2011-05-21 change, this macro requires
624         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
625         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
626
627 2011-06-16  Bruno Haible  <bruno@clisp.org>
628
629         fprintftime: Move AC_LIBOBJ invocations to module description.
630         * m4/fprintftime.m4: Remove file.
631         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
632         (configure.ac): Remove gl_FPRINTFTIME call.
633         (Makefile.am): Augment lib_SOURCES.
634         Reported by Jim Meyering.
635
636 2011-06-16  Bruno Haible  <bruno@clisp.org>
637
638         tmpfile-safer: Finish 2011-05-23 commit.
639         * m4/stdio-safer.m4: Really remove file.
640         Reported by Jim Meyering.
641
642 2011-06-16  Bruno Haible  <bruno@clisp.org>
643
644         syntax-check: Fix typo.
645         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
646         printf-posix.m4.
647         Reported by Jim Meyering.
648
649 2011-06-13  Jim Meyering  <meyering@redhat.com>
650
651         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
652         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
653
654 2011-05-23  Bruno Haible  <bruno@clisp.org>
655
656         yesno: Move AC_LIBOBJ invocations to module description.
657         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
658         * modules/yesno (Makefile.am): Augment lib_SOURCES.
659
660 2011-05-23  Bruno Haible  <bruno@clisp.org>
661
662         xstrtol: Move AC_LIBOBJ invocations to module description.
663         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
664         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
665
666 2011-05-23  Bruno Haible  <bruno@clisp.org>
667
668         xstrtold: Move AC_LIBOBJ invocations to module description.
669         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
670         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
671
672 2011-05-23  Bruno Haible  <bruno@clisp.org>
673
674         xstrtod: Move AC_LIBOBJ invocations to module description.
675         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
676         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
677
678 2011-05-23  Bruno Haible  <bruno@clisp.org>
679
680         xnanosleep: Move AC_LIBOBJ invocations to module description.
681         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
682         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
683
684 2011-05-23  Bruno Haible  <bruno@clisp.org>
685
686         xgetcwd: Move AC_LIBOBJ invocations to module description.
687         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
688         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
689
690 2011-05-23  Bruno Haible  <bruno@clisp.org>
691
692         xalloc: Move AC_LIBOBJ invocations to module description.
693         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
694         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
695
696 2011-05-23  Bruno Haible  <bruno@clisp.org>
697
698         write-any-file: Move AC_LIBOBJ invocations to module description.
699         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
700         invocation.
701         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
702
703 2011-05-23  Bruno Haible  <bruno@clisp.org>
704
705         utimens: Move AC_LIBOBJ invocations to module description.
706         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
707         * modules/utimens (Makefile.am): Augment lib_SOURCES.
708
709 2011-05-23  Bruno Haible  <bruno@clisp.org>
710
711         utimecmp: Move AC_LIBOBJ invocations to module description.
712         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
713         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
714
715 2011-05-23  Bruno Haible  <bruno@clisp.org>
716
717         userspec: Move AC_LIBOBJ invocations to module description.
718         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
719         * modules/userspec (Makefile.am): Augment lib_SOURCES.
720
721 2011-05-23  Bruno Haible  <bruno@clisp.org>
722
723         unlinkdir: Move AC_LIBOBJ invocations to module description.
724         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
725         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
726
727 2011-05-23  Bruno Haible  <bruno@clisp.org>
728
729         unistd-safer: Move AC_LIBOBJ invocations to module description.
730         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
731         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
732
733 2011-05-23  Bruno Haible  <bruno@clisp.org>
734
735         tempname: Move AC_LIBOBJ invocations to module description.
736         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
737         * modules/tempname (Makefile.am): Augment lib_SOURCES.
738
739 2011-05-23  Bruno Haible  <bruno@clisp.org>
740
741         strftime: Move AC_LIBOBJ invocations to module description.
742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
743         * modules/strftime (Makefile.am): Augment lib_SOURCES.
744
745 2011-05-23  Bruno Haible  <bruno@clisp.org>
746
747         stdlib-safer: Move AC_LIBOBJ invocations to module description.
748         * m4/stdlib-safer.m4: Remove file.
749         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
750         (configure.ac): Remove gl_STDLIB_SAFER call.
751         (Makefile.am): Augment lib_SOURCES.
752
753 2011-05-23  Bruno Haible  <bruno@clisp.org>
754
755         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
756         * m4/stdio-safer.m4: Remove file.
757         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
758         (configure.ac): Remove gl_TMPFILE_SAFER call.
759         (Makefile.am): Augment lib_SOURCES.
760
761 2011-05-23  Bruno Haible  <bruno@clisp.org>
762
763         popen-safer: Move AC_LIBOBJ invocations to module description.
764         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
765         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
766         (configure.ac): Remove gl_POPEN_SAFER call.
767         (Makefile.am): Augment lib_SOURCES.
768
769 2011-05-23  Bruno Haible  <bruno@clisp.org>
770
771         freopen-safer: Move AC_LIBOBJ invocations to module description.
772         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
773         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
774         (configure.ac): Remove gl_FREOPEN_SAFER call.
775         (Makefile.am): Augment lib_SOURCES.
776
777 2011-05-23  Bruno Haible  <bruno@clisp.org>
778
779         fopen-safer: Move AC_LIBOBJ invocations to module description.
780         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
781         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
782         (configure.ac): Remove gl_FOPEN_SAFER call.
783         (Makefile.am): Augment lib_SOURCES.
784
785 2011-05-23  Bruno Haible  <bruno@clisp.org>
786
787         crypto/sha512: Move AC_LIBOBJ invocations to module description.
788         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
789         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
790
791 2011-05-23  Bruno Haible  <bruno@clisp.org>
792
793         crypto/sha256: Move AC_LIBOBJ invocations to module description.
794         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
795         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
796
797 2011-05-23  Bruno Haible  <bruno@clisp.org>
798
799         crypto/sha1: Move AC_LIBOBJ invocations to module description.
800         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
801         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
802
803 2011-05-23  Bruno Haible  <bruno@clisp.org>
804
805         settime: Move AC_LIBOBJ invocations to module description.
806         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
807         * modules/settime (Makefile.am): Augment lib_SOURCES.
808
809 2011-05-23  Bruno Haible  <bruno@clisp.org>
810
811         savedir: Move AC_LIBOBJ invocations to module description.
812         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
813         * modules/savedir (Makefile.am): Augment lib_SOURCES.
814
815 2011-05-23  Bruno Haible  <bruno@clisp.org>
816
817         save-cwd: Move AC_LIBOBJ invocations to module description.
818         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
819         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
820
821 2011-05-23  Bruno Haible  <bruno@clisp.org>
822
823         same: Move AC_LIBOBJ invocations to module description.
824         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
825         * modules/same (Makefile.am): Augment lib_SOURCES.
826
827 2011-05-23  Bruno Haible  <bruno@clisp.org>
828
829         safe-write: Move AC_LIBOBJ invocations to module description.
830         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
831         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
832         instead of gl_SAFE_WRITE.
833         (Makefile.am): Augment lib_SOURCES.
834
835 2011-05-23  Bruno Haible  <bruno@clisp.org>
836
837         safe-read: Move AC_LIBOBJ invocations to module description.
838         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
839         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
840         of gl_SAFE_READ.
841         (Makefile.am): Augment lib_SOURCES.
842
843 2011-05-23  Bruno Haible  <bruno@clisp.org>
844
845         safe-alloc: Move AC_LIBOBJ invocations to module description.
846         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
847         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
848
849 2011-05-23  Bruno Haible  <bruno@clisp.org>
850
851         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
852         * m4/rijndael.m4: Remove file.
853         * modules/crypto/rijndael (Files): Remove it.
854         (configure.ac): Remove gl_RIJNDAEL call.
855         (Makefile.am): Augment lib_SOURCES.
856
857 2011-05-23  Bruno Haible  <bruno@clisp.org>
858
859         readtokens: Move AC_LIBOBJ invocations to module description.
860         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
861         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
862
863 2011-05-23  Bruno Haible  <bruno@clisp.org>
864
865         read-file: Move AC_LIBOBJ invocations to module description.
866         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
867         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
868         of gl_FUNC_READ_FILE.
869         (Makefile.am): Augment lib_SOURCES.
870
871 2011-05-23  Bruno Haible  <bruno@clisp.org>
872
873         quotearg: Move AC_LIBOBJ invocations to module description.
874         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
875         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
876
877 2011-05-23  Bruno Haible  <bruno@clisp.org>
878
879         quote: Move AC_LIBOBJ invocations to module description.
880         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
881         * modules/quote (Makefile.am): Augment lib_SOURCES.
882
883 2011-05-23  Bruno Haible  <bruno@clisp.org>
884
885         posixver: Move AC_LIBOBJ invocations to module description.
886         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
887         * modules/posixver (Makefile.am): Augment lib_SOURCES.
888
889 2011-05-23  Bruno Haible  <bruno@clisp.org>
890
891         posixtm: Move AC_LIBOBJ invocations to module description.
892         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
893         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
894
895 2011-05-23  Bruno Haible  <bruno@clisp.org>
896
897         physmem: Move AC_LIBOBJ invocations to module description.
898         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
899         * modules/physmem (Makefile.am): Augment lib_SOURCES.
900
901 2011-05-23  Bruno Haible  <bruno@clisp.org>
902
903         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
904         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
905         invocation.
906         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
907
908 2011-05-23  Bruno Haible  <bruno@clisp.org>
909
910         mpsort: Move AC_LIBOBJ invocations to module description.
911         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
912         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
913
914 2011-05-23  Bruno Haible  <bruno@clisp.org>
915
916         modechange: Move AC_LIBOBJ invocations to module description.
917         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
918         * modules/modechange (Makefile.am): Augment lib_SOURCES.
919
920 2011-05-23  Bruno Haible  <bruno@clisp.org>
921
922         mkdir-p: Move AC_LIBOBJ invocations to module description.
923         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
924         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
925
926 2011-05-23  Bruno Haible  <bruno@clisp.org>
927
928         mkancesdirs: Move AC_LIBOBJ invocations to module description.
929         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
930         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
931
932 2011-05-23  Bruno Haible  <bruno@clisp.org>
933
934         mgetgroups: Move AC_LIBOBJ invocations to module description.
935         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
936         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
937
938 2011-05-23  Bruno Haible  <bruno@clisp.org>
939
940         memxor: Move AC_LIBOBJ invocations to module description.
941         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
942         * modules/memxor (Makefile.am): Augment lib_SOURCES.
943
944 2011-05-23  Bruno Haible  <bruno@clisp.org>
945
946         memcoll: Move AC_LIBOBJ invocations to module description.
947         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
948         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
949
950 2011-05-23  Bruno Haible  <bruno@clisp.org>
951
952         memcasecmp: Move AC_LIBOBJ invocations to module description.
953         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
954         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
955
956 2011-05-23  Bruno Haible  <bruno@clisp.org>
957
958         crypto/md5: Move AC_LIBOBJ invocations to module description.
959         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
960         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
961
962 2011-05-23  Bruno Haible  <bruno@clisp.org>
963
964         crypto/md4: Move AC_LIBOBJ invocations to module description.
965         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
966         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
967
968 2011-05-23  Bruno Haible  <bruno@clisp.org>
969
970         crypto/md2: Move AC_LIBOBJ invocations to module description.
971         * m4/md2.m4: Remove file.
972         * modules/crypto/md2 (Files): Remove it.
973         (configure.ac): Remove gl_MD2 call.
974         (Makefile.am): Augment lib_SOURCES.
975
976 2011-05-23  Bruno Haible  <bruno@clisp.org>
977
978         long-options: Move AC_LIBOBJ invocations to module description.
979         * m4/long-options.m4: Remove file.
980         * modules/long-options (Files): Remove it.
981         (configure.ac): Remove gl_LONG_OPTIONS call.
982         (Makefile.am): Augment lib_SOURCES.
983
984 2011-05-23  Bruno Haible  <bruno@clisp.org>
985
986         i-ring: Move AC_LIBOBJ invocations to module description.
987         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
988         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
989
990 2011-05-23  Bruno Haible  <bruno@clisp.org>
991
992         idcache: Move AC_LIBOBJ invocations to module description.
993         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
994         * modules/idcache (Makefile.am): Augment lib_SOURCES.
995
996 2011-05-23  Bruno Haible  <bruno@clisp.org>
997
998         human: Move AC_LIBOBJ invocations to module description.
999         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1000         * modules/human (Makefile.am): Augment lib_SOURCES.
1001
1002 2011-05-23  Bruno Haible  <bruno@clisp.org>
1003
1004         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1005         * m4/hmac-sha1.m4: Remove file.
1006         * modules/crypto/hmac-sha1 (Files): Remove it.
1007         (configure.ac): Remove gl_HMAC_SHA1 call.
1008         (Makefile.am): Augment lib_SOURCES.
1009
1010 2011-05-23  Bruno Haible  <bruno@clisp.org>
1011
1012         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1013         * m4/hmac-md5.m4: Remove file.
1014         * modules/crypto/hmac-md5 (Files): Remove it.
1015         (configure.ac): Remove gl_HMAC_MD5 call.
1016         (Makefile.am): Augment lib_SOURCES.
1017
1018 2011-05-23  Bruno Haible  <bruno@clisp.org>
1019
1020         hash: Move AC_LIBOBJ invocations to module description.
1021         * m4/hash.m4: Remove file.
1022         * modules/hash (Files): Remove it.
1023         (configure.ac): Remove gl_HASH call.
1024         (Makefile.am): Augment lib_SOURCES.
1025
1026 2011-05-23  Bruno Haible  <bruno@clisp.org>
1027
1028         hard-locale: Move AC_LIBOBJ invocations to module description.
1029         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1030         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1031
1032 2011-05-23  Bruno Haible  <bruno@clisp.org>
1033
1034         getugroups: Move AC_LIBOBJ invocations to module description.
1035         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1036         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1037
1038 2011-05-23  Bruno Haible  <bruno@clisp.org>
1039
1040         gettime: Move AC_LIBOBJ invocations to module description.
1041         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1042         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1043
1044 2011-05-23  Bruno Haible  <bruno@clisp.org>
1045
1046         getndelim2: Move AC_LIBOBJ invocations to module description.
1047         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1048         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1049
1050 2011-05-23  Bruno Haible  <bruno@clisp.org>
1051
1052         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1053         * m4/gc-pbkdf2-sha1.m4: Remove file.
1054         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1055         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1056         (Makefile.am): Augment lib_SOURCES.
1057
1058 2011-05-23  Bruno Haible  <bruno@clisp.org>
1059
1060         fts: Move AC_LIBOBJ invocations to module description.
1061         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1062         * modules/fts (configure.ac): ... to here.
1063
1064 2011-05-23  Bruno Haible  <bruno@clisp.org>
1065
1066         file-type: Move AC_LIBOBJ invocations to module description.
1067         * m4/file-type.m4: Remove file.
1068         * modules/file-type (Files): Remove it.
1069         (configure.ac): Remove gl_FILE_TYPE call.
1070         (Makefile.am): Augment lib_SOURCES.
1071
1072 2011-05-23  Bruno Haible  <bruno@clisp.org>
1073
1074         filenamecat*: Respect rules for use of AC_LIBOBJ.
1075         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1076         Remove AC_LIBOBJ invocation.
1077         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1078         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1079
1080 2011-05-23  Bruno Haible  <bruno@clisp.org>
1081
1082         filemode: Move AC_LIBOBJ invocations to module description.
1083         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1084         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1085
1086 2011-05-23  Bruno Haible  <bruno@clisp.org>
1087
1088         openat-safer: Move AC_LIBOBJ invocations to module description.
1089         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1090         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1091
1092 2011-05-23  Bruno Haible  <bruno@clisp.org>
1093
1094         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1095         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1096         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1097
1098 2011-05-23  Bruno Haible  <bruno@clisp.org>
1099
1100         exclude: Move AC_LIBOBJ invocations to module description.
1101         * m4/exclude.m4: Remove file.
1102         * modules/exclude (Files): Remove it.
1103         (configure.ac): Remove gl_EXCLUDE call.
1104         (Makefile.am): Augment lib_SOURCES.
1105
1106 2011-05-23  Bruno Haible  <bruno@clisp.org>
1107
1108         dirname*: Respect rules for use of AC_LIBOBJ.
1109         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1110         invocations.
1111         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1112         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1113
1114 2011-05-23  Bruno Haible  <bruno@clisp.org>
1115
1116         dirent-safer: Move AC_LIBOBJ invocations to module description.
1117         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1118         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1119
1120 2011-05-23  Bruno Haible  <bruno@clisp.org>
1121
1122         crypto/des: Move AC_LIBOBJ invocations to module description.
1123         * m4/des.m4: Remove file.
1124         * modules/crypto/des (Files): Remove it.
1125         (configure.ac): Remove gl_DES call.
1126         (Makefile.am): Augment lib_SOURCES.
1127
1128 2011-05-23  Bruno Haible  <bruno@clisp.org>
1129
1130         cycle-check: Move AC_LIBOBJ invocations to module description.
1131         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1132         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1133
1134 2011-05-23  Bruno Haible  <bruno@clisp.org>
1135
1136         c-strtold: Move AC_LIBOBJ invocations to module description.
1137         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1138         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1139
1140 2011-05-23  Bruno Haible  <bruno@clisp.org>
1141
1142         c-strtod: Move AC_LIBOBJ invocations to module description.
1143         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1144         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1145
1146 2011-05-23  Bruno Haible  <bruno@clisp.org>
1147
1148         crc: Move AC_LIBOBJ invocations to module description.
1149         * m4/crc.m4: Remove file.
1150         * modules/crc (Files): Remove it.
1151         (configure.ac): Remove gl_CRC call.
1152         (Makefile.am): Augment lib_SOURCES.
1153
1154 2011-05-23  Bruno Haible  <bruno@clisp.org>
1155
1156         close-stream: Move AC_LIBOBJ invocations to module description.
1157         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1158         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1159
1160 2011-05-23  Bruno Haible  <bruno@clisp.org>
1161
1162         closeout: Move AC_LIBOBJ invocations to module description.
1163         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1164         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1165
1166 2011-05-23  Bruno Haible  <bruno@clisp.org>
1167
1168         closein: Move AC_LIBOBJ invocations to module description.
1169         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1170         * modules/closein (Makefile.am): Augment lib_SOURCES.
1171
1172 2011-05-23  Bruno Haible  <bruno@clisp.org>
1173
1174         cloexec: Move AC_LIBOBJ invocations to module description.
1175         * m4/cloexec.m4: Remove file.
1176         * modules/cloexec (Files): Remove it.
1177         (configure.ac): Remove gl_CLOEXEC call.
1178         (Makefile.am): Augment lib_SOURCES.
1179
1180 2011-05-23  Bruno Haible  <bruno@clisp.org>
1181
1182         check-version: Move AC_LIBOBJ invocations to module description.
1183         * m4/check-version.m4: Remove file.
1184         * modules/check-version (Files): Remove it.
1185         (configure.ac): Remove gl_CHECK_VERSION call.
1186         (Makefile.am): Augment lib_SOURCES.
1187
1188 2011-05-23  Bruno Haible  <bruno@clisp.org>
1189
1190         chdir-safer: Move AC_LIBOBJ invocations to module description.
1191         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1192         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1193
1194 2011-05-23  Bruno Haible  <bruno@clisp.org>
1195
1196         canonicalize: Move AC_LIBOBJ invocations to module description.
1197         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1198         AC_LIBOBJ invocation.
1199         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1200
1201 2011-05-23  Bruno Haible  <bruno@clisp.org>
1202
1203         canon-host: Move AC_LIBOBJ invocations to module description.
1204         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1205         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1206         instead of gl_CANON_HOST.
1207         (Makefile.am): Augment lib_SOURCES.
1208
1209 2011-05-23  Bruno Haible  <bruno@clisp.org>
1210
1211         backupfile: Move AC_LIBOBJ invocations to module description.
1212         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1213         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1214
1215 2011-05-23  Bruno Haible  <bruno@clisp.org>
1216
1217         argmatch: Move AC_LIBOBJ invocations to module description.
1218         * m4/argmatch.m4: Remove file.
1219         * modules/argmatch (Files): Remove it.
1220         (configure.ac): Remove gl_ARGMATCH call.
1221         (Makefile.am): Augment lib_SOURCES.
1222
1223 2011-05-23  Bruno Haible  <bruno@clisp.org>
1224
1225         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1226         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1227         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1228
1229 2011-05-23  Bruno Haible  <bruno@clisp.org>
1230
1231         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1232         * m4/arcfour.m4: Remove file.
1233         * modules/crypto/arcfour (Files): Remove it.
1234         (configure.ac): Remove gl_ARCFOUR call.
1235         (Makefile.am): Augment lib_SOURCES.
1236
1237 2011-05-22  Bruno Haible  <bruno@clisp.org>
1238
1239         write: Move AC_LIBOBJ invocations to module description.
1240         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1241         * modules/write (configure.ac): ... to here.
1242
1243 2011-05-22  Bruno Haible  <bruno@clisp.org>
1244
1245         wmemset: Move AC_LIBOBJ invocations to module description.
1246         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1247         here...
1248         * modules/wmemset (configure.ac): ... to here.
1249
1250 2011-05-22  Bruno Haible  <bruno@clisp.org>
1251
1252         wmemmove: Move AC_LIBOBJ invocations to module description.
1253         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1254         here...
1255         * modules/wmemmove (configure.ac): ... to here.
1256
1257 2011-05-22  Bruno Haible  <bruno@clisp.org>
1258
1259         wmemcpy: Move AC_LIBOBJ invocations to module description.
1260         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1261         here...
1262         * modules/wmemcpy (configure.ac): ... to here.
1263
1264 2011-05-22  Bruno Haible  <bruno@clisp.org>
1265
1266         wmemcmp: Move AC_LIBOBJ invocations to module description.
1267         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1268         here...
1269         * modules/wmemcmp (configure.ac): ... to here.
1270
1271 2011-05-22  Bruno Haible  <bruno@clisp.org>
1272
1273         wmemchr: Move AC_LIBOBJ invocations to module description.
1274         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1275         here...
1276         * modules/wmemchr (configure.ac): ... to here.
1277
1278 2011-05-22  Bruno Haible  <bruno@clisp.org>
1279
1280         wcswidth: Move AC_LIBOBJ invocations to module description.
1281         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1282         here...
1283         * modules/wcswidth (configure.ac): ... to here.
1284
1285 2011-05-22  Bruno Haible  <bruno@clisp.org>
1286
1287         wcwidth: Respect rules for use of AC_LIBOBJ.
1288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1289         invocation from here...
1290         * modules/wcwidth (configure.ac): ... to here.
1291         (Depends-on): Update conditions.
1292
1293 2011-05-22  Bruno Haible  <bruno@clisp.org>
1294
1295         wctype: Move AC_LIBOBJ invocations to module description.
1296         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1297         invocation from here...
1298         * modules/wctype (configure.ac): ... to here.
1299         (Depends-on): Update conditions.
1300
1301 2011-05-22  Bruno Haible  <bruno@clisp.org>
1302
1303         wctrans: Move AC_LIBOBJ invocations to module description.
1304         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1305         invocation from here...
1306         * modules/wctrans (configure.ac): ... to here.
1307
1308 2011-05-22  Bruno Haible  <bruno@clisp.org>
1309
1310         wctomb: Move AC_LIBOBJ invocations to module description.
1311         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1312         invocations from here...
1313         * modules/wctomb (configure.ac): ... to here.
1314
1315 2011-05-22  Bruno Haible  <bruno@clisp.org>
1316
1317         wctob: Move AC_LIBOBJ invocations to module description.
1318         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1319         gl_PREREQ_WCTOB invocations from here...
1320         * modules/wctob (configure.ac): ... to here.
1321         (Depends-on): Update conditions.
1322
1323 2011-05-22  Bruno Haible  <bruno@clisp.org>
1324
1325         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1326         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1327         here...
1328         * modules/wcsxfrm (configure.ac): ... to here.
1329
1330 2011-05-22  Bruno Haible  <bruno@clisp.org>
1331
1332         wcstok: Move AC_LIBOBJ invocations to module description.
1333         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1334         * modules/wcstok (configure.ac): ... to here.
1335
1336 2011-05-22  Bruno Haible  <bruno@clisp.org>
1337
1338         wcsstr: Move AC_LIBOBJ invocations to module description.
1339         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1340         * modules/wcsstr (configure.ac): ... to here.
1341
1342 2011-05-22  Bruno Haible  <bruno@clisp.org>
1343
1344         wcsspn: Move AC_LIBOBJ invocations to module description.
1345         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1346         * modules/wcsspn (configure.ac): ... to here.
1347
1348 2011-05-22  Bruno Haible  <bruno@clisp.org>
1349
1350         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1351         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1352         gl_PREREQ_WCSRTOMBS invocations from here...
1353         * modules/wcsrtombs (configure.ac): ... to here.
1354
1355 2011-05-22  Bruno Haible  <bruno@clisp.org>
1356
1357         wcsrchr: Move AC_LIBOBJ invocations to module description.
1358         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1359         here...
1360         * modules/wcsrchr (configure.ac): ... to here.
1361
1362 2011-05-22  Bruno Haible  <bruno@clisp.org>
1363
1364         wcspbrk: Move AC_LIBOBJ invocations to module description.
1365         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1366         here...
1367         * modules/wcspbrk (configure.ac): ... to here.
1368
1369 2011-05-22  Bruno Haible  <bruno@clisp.org>
1370
1371         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1372         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1373         gl_PREREQ_WCSNRTOMBS invocations from here...
1374         * modules/wcsnrtombs (configure.ac): ... to here.
1375
1376 2011-05-22  Bruno Haible  <bruno@clisp.org>
1377
1378         wcsnlen: Move AC_LIBOBJ invocations to module description.
1379         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1380         here...
1381         * modules/wcsnlen (configure.ac): ... to here.
1382
1383 2011-05-22  Bruno Haible  <bruno@clisp.org>
1384
1385         wcsncpy: Move AC_LIBOBJ invocations to module description.
1386         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1387         here...
1388         * modules/wcsncpy (configure.ac): ... to here.
1389
1390 2011-05-22  Bruno Haible  <bruno@clisp.org>
1391
1392         wcsncmp: Move AC_LIBOBJ invocations to module description.
1393         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1394         here...
1395         * modules/wcsncmp (configure.ac): ... to here.
1396
1397 2011-05-22  Bruno Haible  <bruno@clisp.org>
1398
1399         wcsncat: Move AC_LIBOBJ invocations to module description.
1400         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1401         here...
1402         * modules/wcsncat (configure.ac): ... to here.
1403
1404 2011-05-22  Bruno Haible  <bruno@clisp.org>
1405
1406         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1407         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1408         from here...
1409         * modules/wcsncasecmp (configure.ac): ... to here.
1410
1411 2011-05-22  Bruno Haible  <bruno@clisp.org>
1412
1413         wcslen: Move AC_LIBOBJ invocations to module description.
1414         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1415         * modules/wcslen (configure.ac): ... to here.
1416
1417 2011-05-22  Bruno Haible  <bruno@clisp.org>
1418
1419         wcsdup: Move AC_LIBOBJ invocations to module description.
1420         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1421         * modules/wcsdup (configure.ac): ... to here.
1422
1423 2011-05-22  Bruno Haible  <bruno@clisp.org>
1424
1425         wcscspn: Move AC_LIBOBJ invocations to module description.
1426         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1427         here...
1428         * modules/wcscspn (configure.ac): ... to here.
1429
1430 2011-05-22  Bruno Haible  <bruno@clisp.org>
1431
1432         wcscpy: Move AC_LIBOBJ invocations to module description.
1433         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1434         * modules/wcscpy (configure.ac): ... to here.
1435
1436 2011-05-22  Bruno Haible  <bruno@clisp.org>
1437
1438         wcscoll: Move AC_LIBOBJ invocations to module description.
1439         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1440         here...
1441         * modules/wcscoll (configure.ac): ... to here.
1442
1443 2011-05-22  Bruno Haible  <bruno@clisp.org>
1444
1445         wcscmp: Move AC_LIBOBJ invocations to module description.
1446         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1447         * modules/wcscmp (configure.ac): ... to here.
1448
1449 2011-05-22  Bruno Haible  <bruno@clisp.org>
1450
1451         wcschr: Move AC_LIBOBJ invocations to module description.
1452         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1453         * modules/wcschr (configure.ac): ... to here.
1454
1455 2011-05-22  Bruno Haible  <bruno@clisp.org>
1456
1457         wcscat: Move AC_LIBOBJ invocations to module description.
1458         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1459         * modules/wcscat (configure.ac): ... to here.
1460
1461 2011-05-22  Bruno Haible  <bruno@clisp.org>
1462
1463         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1464         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1465         here...
1466         * modules/wcscasecmp (configure.ac): ... to here.
1467
1468 2011-05-22  Bruno Haible  <bruno@clisp.org>
1469
1470         wcrtomb: Move AC_LIBOBJ invocations to module description.
1471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1472         invocations from here...
1473         * modules/wcrtomb (configure.ac): ... to here.
1474
1475 2011-05-22  Bruno Haible  <bruno@clisp.org>
1476
1477         wcpncpy: Move AC_LIBOBJ invocations to module description.
1478         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1479         here...
1480         * modules/wcpncpy (configure.ac): ... to here.
1481
1482 2011-05-22  Bruno Haible  <bruno@clisp.org>
1483
1484         wcpcpy: Move AC_LIBOBJ invocations to module description.
1485         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1486         * modules/wcpcpy (configure.ac): ... to here.
1487
1488 2011-05-22  Bruno Haible  <bruno@clisp.org>
1489
1490         waitpid: Move AC_LIBOBJ invocations to module description.
1491         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1492         invocation from here...
1493         * modules/waitpid (configure.ac): ... to here.
1494
1495 2011-05-22  Bruno Haible  <bruno@clisp.org>
1496
1497         utimensat: Move AC_LIBOBJ invocations to module description.
1498         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1499         here...
1500         * modules/utimensat (configure.ac): ... to here.
1501
1502 2011-05-22  Bruno Haible  <bruno@clisp.org>
1503
1504         usleep: Move AC_LIBOBJ invocations to module description.
1505         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1506         here...
1507         * modules/usleep (configure.ac): ... to here.
1508
1509 2011-05-22  Bruno Haible  <bruno@clisp.org>
1510
1511         unlockpt: Move AC_LIBOBJ invocations to module description.
1512         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1513         gl_PREREQ_UNLOCKPT invocations from here...
1514         * modules/unlockpt (configure.ac): ... to here.
1515
1516 2011-05-22  Bruno Haible  <bruno@clisp.org>
1517
1518         unlink: Respect rules for use of AC_LIBOBJ.
1519         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1520         * modules/unlink (configure.ac): ... to here.
1521
1522 2011-05-22  Bruno Haible  <bruno@clisp.org>
1523
1524         uname: Move AC_LIBOBJ invocations to module description.
1525         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1527         here...
1528         * modules/uname (configure.ac): ... to here.
1529
1530 2011-05-22  Bruno Haible  <bruno@clisp.org>
1531
1532         ttyname_r: Move AC_LIBOBJ invocations to module description.
1533         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1534         gl_PREREQ_TTYNAME_R invocations from here...
1535         * modules/ttyname_r (configure.ac): ... to here.
1536
1537 2011-05-22  Bruno Haible  <bruno@clisp.org>
1538
1539         tsearch: Move AC_LIBOBJ invocations to module description.
1540         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1541         invocations from here...
1542         * modules/tsearch (configure.ac): ... to here.
1543
1544 2011-05-22  Bruno Haible  <bruno@clisp.org>
1545
1546         towctrans: Move AC_LIBOBJ invocations to module description.
1547         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1548         AC_LIBOBJ invocation from here...
1549         * modules/towctrans (configure.ac): ... to here.
1550
1551 2011-05-22  Bruno Haible  <bruno@clisp.org>
1552
1553         tmpfile: Move AC_LIBOBJ invocations to module description.
1554         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1555         invocations from here...
1556         * modules/tmpfile (configure.ac): ... to here.
1557
1558 2011-05-22  Bruno Haible  <bruno@clisp.org>
1559
1560         times: Move AC_LIBOBJ invocations to module description.
1561         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1562         * modules/times (configure.ac): ... to here.
1563
1564 2011-05-22  Bruno Haible  <bruno@clisp.org>
1565
1566         time_r: Move AC_LIBOBJ invocations to module description.
1567         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1568         invocations from here...
1569         * modules/time_r (configure.ac): ... to here.
1570
1571 2011-05-22  Bruno Haible  <bruno@clisp.org>
1572
1573         timegm: Move AC_LIBOBJ invocations to module description.
1574         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1575         invocations from here...
1576         * modules/timegm (configure.ac): ... to here.
1577
1578 2011-05-22  Bruno Haible  <bruno@clisp.org>
1579
1580         tcgetsid: Move AC_LIBOBJ invocations to module description.
1581         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1582         and gl_PREREQ_TCGETSID invocations from here...
1583         * modules/tcgetsid (configure.ac): ... to here.
1584         (Depends-on): Update conditions.
1585
1586 2011-05-22  Bruno Haible  <bruno@clisp.org>
1587
1588         symlinkat: Move AC_LIBOBJ invocations to module description.
1589         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1590         here...
1591         * modules/symlinkat (configure.ac): ... to here.
1592
1593 2011-05-22  Bruno Haible  <bruno@clisp.org>
1594
1595         symlink: Move AC_LIBOBJ invocations to module description.
1596         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1597         here...
1598         * modules/symlink (configure.ac): ... to here.
1599
1600 2011-05-22  Bruno Haible  <bruno@clisp.org>
1601
1602         strverscmp: Move AC_LIBOBJ invocations to module description.
1603         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1605         from here...
1606         * modules/strverscmp (configure.ac): ... to here.
1607
1608 2011-05-22  Bruno Haible  <bruno@clisp.org>
1609
1610         strtok_r: Move AC_LIBOBJ invocations to module description.
1611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1612         and gl_PREREQ_STRTOK_R invocations from here...
1613         * modules/strtok_r (configure.ac): ... to here.
1614         (Depends-on): Update conditions.
1615
1616 2011-05-22  Bruno Haible  <bruno@clisp.org>
1617
1618         strtoumax: Move AC_LIBOBJ invocations to module description.
1619         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1620         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1621         from here...
1622         * modules/strtoumax (configure.ac): ... to here.
1623
1624 2011-05-22  Bruno Haible  <bruno@clisp.org>
1625
1626         strtoimax: Move AC_LIBOBJ invocations to module description.
1627         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1629         from here...
1630         * modules/strtoimax (configure.ac): ... to here.
1631
1632 2011-05-22  Bruno Haible  <bruno@clisp.org>
1633
1634         strtoull: Move AC_LIBOBJ invocations to module description.
1635         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1637         from here...
1638         * modules/strtoull (configure.ac): ... to here.
1639
1640 2011-05-22  Bruno Haible  <bruno@clisp.org>
1641
1642         strtoll: Move AC_LIBOBJ invocations to module description.
1643         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1645         here...
1646         * modules/strtoll (configure.ac): ... to here.
1647
1648 2011-05-22  Bruno Haible  <bruno@clisp.org>
1649
1650         strtoul: Move AC_LIBOBJ invocations to module description.
1651         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1652         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1653         * modules/strtoul (configure.ac): ... to here.
1654
1655 2011-05-22  Bruno Haible  <bruno@clisp.org>
1656
1657         strtol: Move AC_LIBOBJ invocations to module description.
1658         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1659         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1660         * modules/strtol (configure.ac): ... to here.
1661
1662 2011-05-22  Bruno Haible  <bruno@clisp.org>
1663
1664         strtod: Move AC_LIBOBJ invocations to module description.
1665         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1666         invocations from here...
1667         * modules/strtod (configure.ac): ... to here.
1668
1669 2011-05-22  Bruno Haible  <bruno@clisp.org>
1670
1671         strstr*: Move AC_LIBOBJ invocations to module description.
1672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1673         invocations from here...
1674         * modules/strstr-simple (configure.ac): ... to here.
1675         * modules/strstr (configure.ac): ... and here.
1676
1677 2011-05-22  Bruno Haible  <bruno@clisp.org>
1678
1679         strsignal: Move AC_LIBOBJ invocations to module description.
1680         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1681         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1682         * modules/strsignal (configure.ac): ... to here.
1683         (Depends-on): Update conditions.
1684
1685 2011-05-22  Bruno Haible  <bruno@clisp.org>
1686
1687         strsep: Move AC_LIBOBJ invocations to module description.
1688         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1690         here...
1691         * modules/strsep (configure.ac): ... to here.
1692
1693 2011-05-22  Bruno Haible  <bruno@clisp.org>
1694
1695         strptime: Move AC_LIBOBJ invocations to module description.
1696         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1697         gl_PREREQ_STRPTIME invocations from here...
1698         * modules/strptime (configure.ac): ... to here.
1699
1700 2011-05-22  Bruno Haible  <bruno@clisp.org>
1701
1702         strpbrk: Move AC_LIBOBJ invocations to module description.
1703         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1705         here...
1706         * modules/strpbrk (configure.ac): ... to here.
1707
1708 2011-05-22  Bruno Haible  <bruno@clisp.org>
1709
1710         strnlen: Move AC_LIBOBJ invocations to module description.
1711         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1712         invocations from here...
1713         * modules/strnlen (configure.ac): ... to here.
1714
1715 2011-05-22  Bruno Haible  <bruno@clisp.org>
1716
1717         strndup: Move AC_LIBOBJ invocations to module description.
1718         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1719         invocations from here...
1720         * modules/strndup (configure.ac): ... to here.
1721         (Depends-on): Update conditions.
1722
1723 2011-05-22  Bruno Haible  <bruno@clisp.org>
1724
1725         strncat: Move AC_LIBOBJ invocations to module description.
1726         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1727         invocations from here...
1728         * modules/strncat (configure.ac): ... to here.
1729
1730 2011-05-22  Bruno Haible  <bruno@clisp.org>
1731
1732         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1733         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1734         invocations from here...
1735         * modules/strdup (configure.ac): ... to here.
1736         * modules/strdup-posix (configure.ac): ... and here.
1737
1738 2011-05-22  Bruno Haible  <bruno@clisp.org>
1739
1740         strcspn: Move AC_LIBOBJ invocations to module description.
1741         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1743         here...
1744         * modules/strcspn (configure.ac): ... to here.
1745
1746 2011-05-22  Bruno Haible  <bruno@clisp.org>
1747
1748         strchrnul: Move AC_LIBOBJ invocations to module description.
1749         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1750         gl_PREREQ_STRCHRNUL invocations from here...
1751         * modules/strchrnul (configure.ac): ... to here.
1752
1753 2011-05-22  Bruno Haible  <bruno@clisp.org>
1754
1755         strcasestr*: Move AC_LIBOBJ invocations to module description.
1756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1757         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1758         * modules/strcasestr-simple (configure.ac): ... to here.
1759         * modules/strcasestr (configure.ac): ... and here.
1760
1761 2011-05-22  Bruno Haible  <bruno@clisp.org>
1762
1763         strcase: Move AC_LIBOBJ invocations to module description.
1764         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1765         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1766         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1767         gl_PREREQ_STRNCASECMP invocations from here...
1768         * modules/strcase (configure.ac): ... to here.
1769
1770 2011-05-22  Bruno Haible  <bruno@clisp.org>
1771
1772         stpncpy: Move AC_LIBOBJ invocations to module description.
1773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1774         here...
1775         * modules/stpncpy (configure.ac): ... to here.
1776
1777 2011-05-22  Bruno Haible  <bruno@clisp.org>
1778
1779         stpcpy: Move AC_LIBOBJ invocations to module description.
1780         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1782         here...
1783         * modules/stpcpy (configure.ac): ... to here.
1784
1785 2011-05-21  Bruno Haible  <bruno@clisp.org>
1786
1787         stat: Move AC_LIBOBJ invocations to module description.
1788         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1789         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1790         here...
1791         * modules/stat (configure.ac): ... to here.
1792
1793 2011-05-21  Bruno Haible  <bruno@clisp.org>
1794
1795         sleep: Move AC_LIBOBJ invocations to module description.
1796         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1797         * modules/sleep (configure.ac): ... to here.
1798
1799 2011-05-21  Bruno Haible  <bruno@clisp.org>
1800
1801         signbit: Move AC_LIBOBJ invocations to module description.
1802         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1803         * modules/signbit (configure.ac): ... to here.
1804
1805 2011-05-21  Bruno Haible  <bruno@clisp.org>
1806
1807         sigprocmask: Move AC_LIBOBJ invocations to module description.
1808         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1809         gl_PREREQ_SIGPROMASK invocations from here...
1810         * modules/sigprocmask (configure.ac): ... to here.
1811
1812 2011-05-21  Bruno Haible  <bruno@clisp.org>
1813
1814         sigaction: Move AC_LIBOBJ invocations to module description.
1815         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1816         gl_PREREQ_SIGACTION invocations from here...
1817         * modules/sigaction (configure.ac): ... to here.
1818
1819 2011-05-21  Bruno Haible  <bruno@clisp.org>
1820
1821         sig2str: Move AC_LIBOBJ invocations to module description.
1822         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1823         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1824         here...
1825         * modules/sig2str (configure.ac): ... to here.
1826
1827 2011-05-21  Bruno Haible  <bruno@clisp.org>
1828
1829         setlocale: Move AC_LIBOBJ invocations to module description.
1830         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1831         gl_PREREQ_SETLOCALE invocations from here...
1832         * modules/setlocale (configure.ac): ... to here.
1833
1834 2011-05-21  Bruno Haible  <bruno@clisp.org>
1835
1836         unsetenv: Move AC_LIBOBJ invocations to module description.
1837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1838         and gl_PREREQ_UNSETENV invocations from here...
1839         * modules/unsetenv (configure.ac): ... to here.
1840         (Depends-on): Update.
1841
1842 2011-05-21  Bruno Haible  <bruno@clisp.org>
1843
1844         setenv: Move AC_LIBOBJ invocations to module description.
1845         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1846         here...
1847         * modules/setenv (configure.ac): ... to here.
1848
1849 2011-05-21  Bruno Haible  <bruno@clisp.org>
1850
1851         selinux-h: Move AC_LIBOBJ invocations to module description.
1852         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1853         AC_LIBOBJ invocation from here...
1854         * modules/selinux-h (configure.ac): ... to here.
1855
1856 2011-05-21  Bruno Haible  <bruno@clisp.org>
1857
1858         select: Respect rules for use of AC_LIBOBJ.
1859         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1860         here...
1861         * modules/select (configure.ac): ... to here.
1862
1863 2011-05-21  Bruno Haible  <bruno@clisp.org>
1864
1865         scandir: Move AC_LIBOBJ invocations to module description.
1866         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1867         invocations from here...
1868         * modules/scandir (configure.ac): ... to here.
1869
1870 2011-05-21  Bruno Haible  <bruno@clisp.org>
1871
1872         rpmatch: Move AC_LIBOBJ invocations to module description.
1873         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1875         here...
1876         * modules/rpmatch (configure.ac): ... to here.
1877
1878 2011-05-21  Bruno Haible  <bruno@clisp.org>
1879
1880         rmdir: Respect rules for use of AC_LIBOBJ.
1881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1882         * modules/rmdir (configure.ac): ... to here.
1883
1884 2011-05-21  Bruno Haible  <bruno@clisp.org>
1885
1886         renameat: Move AC_LIBOBJ invocations to module description.
1887         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1888         here...
1889         * modules/renameat (configure.ac): ... to here.
1890
1891 2011-05-21  Bruno Haible  <bruno@clisp.org>
1892
1893         rename: Respect rules for use of AC_LIBOBJ.
1894         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1895         here...
1896         * modules/rename (configure.ac): ... to here.
1897
1898 2011-05-21  Bruno Haible  <bruno@clisp.org>
1899
1900         remove: Move AC_LIBOBJ invocations to module description.
1901         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1902         here...
1903         * modules/remove (configure.ac): ... to here.
1904
1905 2011-05-21  Bruno Haible  <bruno@clisp.org>
1906
1907         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1908         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1909         macro.
1910         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1911         * modules/relocatable-lib (configure.ac): ... to here.
1912         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1913         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1914
1915 2011-05-21  Bruno Haible  <bruno@clisp.org>
1916
1917         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1918         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1919         here...
1920         * modules/relocatable-prog (configure.ac): ... to here.
1921
1922 2011-05-21  Bruno Haible  <bruno@clisp.org>
1923
1924         regex: Move AC_LIBOBJ invocations to module description.
1925         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1926         invocations from here...
1927         * modules/regex (configure.ac): ... to here.
1928
1929 2011-05-21  Bruno Haible  <bruno@clisp.org>
1930
1931         realloc-*: Move AC_LIBOBJ invocations to module description.
1932         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1933         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1934         AC_LIBOBJ invocations from here...
1935         * modules/realloc-gnu (configure.ac): ... to here.
1936         * modules/realloc-posix (configure.ac): ... and here.
1937
1938 2011-05-21  Bruno Haible  <bruno@clisp.org>
1939
1940         readutmp: Move AC_LIBOBJ invocations to module description.
1941         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1942         * modules/readutmp (configure.ac): ... to here.
1943
1944 2011-05-21  Bruno Haible  <bruno@clisp.org>
1945
1946         readlinkat: Move AC_LIBOBJ invocations to module description.
1947         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1948         here...
1949         * modules/readlinkat (configure.ac): ... to here.
1950
1951 2011-05-21  Bruno Haible  <bruno@clisp.org>
1952
1953         readlink: Move AC_LIBOBJ invocations to module description.
1954         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1955         gl_PREREQ_READLINK invocations from here...
1956         * modules/readlink (configure.ac): ... to here.
1957
1958 2011-05-21  Bruno Haible  <bruno@clisp.org>
1959
1960         readline: Move AC_LIBOBJ invocations to module description.
1961         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1962         gl_PREREQ_READLINE invocations from here...
1963         * modules/readline (configure.ac): ... to here.
1964
1965 2011-05-21  Bruno Haible  <bruno@clisp.org>
1966
1967         read: Move AC_LIBOBJ invocations to module description.
1968         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1969         * modules/read (configure.ac): ... to here.
1970
1971 2011-05-21  Bruno Haible  <bruno@clisp.org>
1972
1973         rawmemchr: Move AC_LIBOBJ invocations to module description.
1974         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1976         from here...
1977         * modules/rawmemchr (configure.ac): ... to here.
1978
1979 2011-05-21  Bruno Haible  <bruno@clisp.org>
1980
1981         random_r: Move AC_LIBOBJ invocations to module description.
1982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1983         gl_PREREQ_RANDOM_R invocations from here...
1984         * modules/random_r (configure.ac): ... to here.
1985
1986 2011-05-21  Bruno Haible  <bruno@clisp.org>
1987
1988         pwrite: Move AC_LIBOBJ invocations to module description.
1989         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1990         * modules/pwrite (configure.ac): ... to here.
1991
1992 2011-05-21  Bruno Haible  <bruno@clisp.org>
1993
1994         putenv: Move AC_LIBOBJ invocations to module description.
1995         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1996         * modules/putenv (configure.ac): ... to here.
1997
1998 2011-05-21  Bruno Haible  <bruno@clisp.org>
1999
2000         login_tty: Move AC_LIBOBJ invocations to module description.
2001         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2002         * modules/login_tty (configure.ac): ... to here.
2003
2004 2011-05-21  Bruno Haible  <bruno@clisp.org>
2005
2006         openpty: Move AC_LIBOBJ invocations to module description.
2007         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2008         * modules/openpty (configure.ac): ... to here.
2009
2010 2011-05-21  Bruno Haible  <bruno@clisp.org>
2011
2012         forkpty: Move AC_LIBOBJ invocations to module description.
2013         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2014         * modules/forkpty (configure.ac): ... to here.
2015
2016 2011-05-21  Bruno Haible  <bruno@clisp.org>
2017
2018         ptsname: Move AC_LIBOBJ invocations to module description.
2019         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2020         invocations from here...
2021         * modules/ptsname (configure.ac): ... to here.
2022
2023 2011-05-21  Bruno Haible  <bruno@clisp.org>
2024
2025         pread: Move AC_LIBOBJ invocations to module description.
2026         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2027         * modules/pread (configure.ac): ... to here.
2028
2029 2011-05-21  Bruno Haible  <bruno@clisp.org>
2030
2031         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2032         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2033         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2034         * modules/posix_spawn (configure.ac): ... to here.
2035         * modules/posix_spawnp (configure.ac): ... and here.
2036
2037 2011-05-21  Bruno Haible  <bruno@clisp.org>
2038
2039         popen: Move AC_LIBOBJ invocations to module description.
2040         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2041         invocations from here...
2042         * modules/popen (configure.ac): ... to here.
2043
2044 2011-05-21  Bruno Haible  <bruno@clisp.org>
2045
2046         poll: Move AC_LIBOBJ invocations to module description.
2047         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2048         invocations from here...
2049         * modules/poll (configure.ac): ... to here.
2050
2051 2011-05-21  Bruno Haible  <bruno@clisp.org>
2052
2053         pipe-posix: Move AC_LIBOBJ invocations to module description.
2054         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2055         * modules/pipe-posix (configure.ac): ... to here.
2056
2057 2011-05-21  Bruno Haible  <bruno@clisp.org>
2058
2059         openat: Respect rules for use of AC_LIBOBJ.
2060         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2061         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2062         * modules/openat (configure.ac): ... to here.
2063
2064 2011-05-21  Bruno Haible  <bruno@clisp.org>
2065
2066         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2067         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2068         invocation from here...
2069         * modules/obstack-printf (configure.ac): ... to here.
2070         * modules/obstack-printf-posix (configure.ac): ... and here.
2071
2072 2011-05-21  Bruno Haible  <bruno@clisp.org>
2073
2074         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2075         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2076         from here...
2077         * modules/nl_langinfo (configure.ac): ... to here.
2078
2079 2011-05-21  Bruno Haible  <bruno@clisp.org>
2080
2081         nanosleep: Move AC_LIBOBJ invocations to module description.
2082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2083         gl_PREREQ_NANOSLEEP invocations from here...
2084         * modules/nanosleep (configure.ac): ... to here.
2085
2086 2011-05-21  Bruno Haible  <bruno@clisp.org>
2087
2088         mountlist: Move AC_LIBOBJ invocations to module description.
2089         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2090         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2091         * modules/mountlist (configure.ac): ... to here.
2092
2093 2011-05-21  Bruno Haible  <bruno@clisp.org>
2094
2095         mktime: Respect rules for use of AC_LIBOBJ.
2096         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2097         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2098         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2099         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2100         * modules/mktime (configure.ac): ... to here.
2101         * modules/mktime-internal (configure.ac): ... and here.
2102         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2103
2104 2011-05-21  Bruno Haible  <bruno@clisp.org>
2105
2106         mkstemps: Move AC_LIBOBJ invocations to module description.
2107         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2108         here...
2109         * modules/mkstemps (configure.ac): ... to here.
2110
2111 2011-05-21  Bruno Haible  <bruno@clisp.org>
2112
2113         mkstemp: Move AC_LIBOBJ invocations to module description.
2114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2115         gl_PREREQ_MKSTEMP invocations from here...
2116         * modules/mkstemp (configure.ac): ... to here.
2117
2118 2011-05-21  Bruno Haible  <bruno@clisp.org>
2119
2120         mkostemps: Move AC_LIBOBJ invocations to module description.
2121         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2122         here...
2123         * modules/mkostemps (configure.ac): ... to here.
2124
2125 2011-05-21  Bruno Haible  <bruno@clisp.org>
2126
2127         mkostemp: Move AC_LIBOBJ invocations to module description.
2128         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2129         gl_PREREQ_MKOSTEMP invocations from here...
2130         * modules/mkostemp (configure.ac): ... to here.
2131
2132 2011-05-21  Bruno Haible  <bruno@clisp.org>
2133
2134         mknod: Move AC_LIBOBJ invocations to module description.
2135         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2136         * modules/mknod (configure.ac): ... to here.
2137
2138 2011-05-21  Bruno Haible  <bruno@clisp.org>
2139
2140         mkfifoat: Move AC_LIBOBJ invocations to module description.
2141         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2142         here...
2143         * modules/mkfifoat (configure.ac): ... to here.
2144
2145 2011-05-21  Bruno Haible  <bruno@clisp.org>
2146
2147         mkfifo: Respect rules for use of AC_LIBOBJ.
2148         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2149         here...
2150         * modules/mkfifo (configure.ac): ... to here.
2151
2152 2011-05-21  Bruno Haible  <bruno@clisp.org>
2153
2154         mkdtemp: Move AC_LIBOBJ invocations to module description.
2155         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2156         invocations from here...
2157         * modules/mkdtemp (configure.ac): ... to here.
2158
2159 2011-05-21  Bruno Haible  <bruno@clisp.org>
2160
2161         mkdir: Move AC_LIBOBJ invocations to module description.
2162         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2163         * modules/mkdir (configure.ac): ... to here.
2164
2165 2011-05-21  Bruno Haible  <bruno@clisp.org>
2166
2167         memset: Move AC_LIBOBJ invocations to module description.
2168         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2170         here...
2171         * modules/memset (configure.ac): ... to here.
2172
2173 2011-05-21  Bruno Haible  <bruno@clisp.org>
2174
2175         memrchr: Move AC_LIBOBJ invocations to module description.
2176         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2178         here...
2179         * modules/memrchr (configure.ac): ... to here.
2180
2181 2011-05-21  Bruno Haible  <bruno@clisp.org>
2182
2183         mempcpy: Move AC_LIBOBJ invocations to module description.
2184         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2186         here...
2187         * modules/mempcpy (configure.ac): ... to here.
2188
2189 2011-05-21  Bruno Haible  <bruno@clisp.org>
2190
2191         memmove: Move AC_LIBOBJ invocations to module description.
2192         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2194         here...
2195         * modules/memmove (configure.ac): ... to here.
2196
2197 2011-05-21  Bruno Haible  <bruno@clisp.org>
2198
2199         memmem*: Move AC_LIBOBJ invocations to module description.
2200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2201         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2202         here...
2203         (gl_FUNC_MEMMEM): ... and here...
2204         * modules/memmem-simple (configure.ac): ... to here.
2205         * modules/memmem (configure.ac): ... and here.
2206
2207 2011-05-21  Bruno Haible  <bruno@clisp.org>
2208
2209         memcpy: Move AC_LIBOBJ invocations to module description.
2210         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2212         here...
2213         * modules/memcpy (configure.ac): ... to here.
2214
2215 2011-05-21  Bruno Haible  <bruno@clisp.org>
2216
2217         memcmp: Simplify autoconf macro.
2218         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2219         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2220         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2221
2222 2011-05-21  Bruno Haible  <bruno@clisp.org>
2223
2224         memcmp: Move AC_LIBOBJ invocations to module description.
2225         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2226         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2227         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2228         * modules/memcmp (configure.ac): ... to here.
2229         (Depends-on): Update conditions.
2230
2231 2011-05-21  Bruno Haible  <bruno@clisp.org>
2232
2233         memchr: Respect rules for use of AC_LIBOBJ.
2234         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2235         invocations from here...
2236         * modules/memchr (configure.ac): ... to here.
2237
2238 2011-05-21  Bruno Haible  <bruno@clisp.org>
2239
2240         mbtowc: Move AC_LIBOBJ invocations to module description.
2241         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2242         invocations from here...
2243         * modules/mbtowc (configure.ac): ... to here.
2244
2245 2011-05-21  Bruno Haible  <bruno@clisp.org>
2246
2247         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2248         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2249         gl_PREREQ_MBSRTOWCS invocations from here...
2250         * modules/mbsrtowcs (configure.ac): ... to here.
2251
2252 2011-05-21  Bruno Haible  <bruno@clisp.org>
2253
2254         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2255         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2256         gl_PREREQ_MBSNRTOWCS invocations from here...
2257         * modules/mbsnrtowcs (configure.ac): ... to here.
2258
2259 2011-05-21  Bruno Haible  <bruno@clisp.org>
2260
2261         mbsinit: Move AC_LIBOBJ invocations to module description.
2262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2263         invocations from here...
2264         * modules/mbsinit (configure.ac): ... to here.
2265
2266 2011-05-21  Bruno Haible  <bruno@clisp.org>
2267
2268         mbrlen: Move AC_LIBOBJ invocations to module description.
2269         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2270         invocations from here...
2271         * modules/mbrlen (configure.ac): ... to here.
2272
2273 2011-05-21  Bruno Haible  <bruno@clisp.org>
2274
2275         mbrtowc: Respect rules for use of AC_LIBOBJ.
2276         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2277         invocations from here...
2278         * modules/mbrtowc (configure.ac): ... to here.
2279
2280 2011-05-21  Bruno Haible  <bruno@clisp.org>
2281
2282         malloc-*: Move AC_LIBOBJ invocations to module description.
2283         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2284         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2285         AC_LIBOBJ invocations from here...
2286         * modules/malloc-gnu (configure.ac): ... to here.
2287         * modules/malloc-posix (configure.ac): ... and here.
2288
2289 2011-05-21  Bruno Haible  <bruno@clisp.org>
2290
2291         lstat, openat: Respect rules for use of AC_LIBOBJ.
2292         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2293         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2294         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2295         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2296         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2297         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2298         here.
2299         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2300
2301 2011-05-21  Bruno Haible  <bruno@clisp.org>
2302
2303         lseek: Move AC_LIBOBJ invocations to module description.
2304         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2305         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2306         * modules/lseek (configure.ac): ... to here.
2307
2308 2011-05-21  Bruno Haible  <bruno@clisp.org>
2309
2310         linkat: Move AC_LIBOBJ invocations to module description.
2311         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2312         here...
2313         * modules/linkat (configure.ac): ... to here.
2314
2315 2011-05-21  Bruno Haible  <bruno@clisp.org>
2316
2317         link: Respect rules for use of AC_LIBOBJ.
2318         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2319         * modules/link (configure.ac): ... to here.
2320
2321 2011-05-21  Bruno Haible  <bruno@clisp.org>
2322
2323         lchown: Move AC_LIBOBJ invocations to module description.
2324         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2325         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2326         * modules/lchown (configure.ac): ... to here.
2327
2328 2011-05-21  Bruno Haible  <bruno@clisp.org>
2329
2330         iswctype: Move AC_LIBOBJ invocations to module description.
2331         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2332         here...
2333         * modules/iswctype (configure.ac): ... to here.
2334
2335 2011-05-21  Bruno Haible  <bruno@clisp.org>
2336
2337         iswblank: Move AC_LIBOBJ invocations to module description.
2338         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2339         here...
2340         * modules/iswblank (configure.ac): ... to here.
2341
2342 2011-05-21  Bruno Haible  <bruno@clisp.org>
2343
2344         atanl: Move AC_LIBOBJ invocations to module description.
2345         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2346         * modules/atanl (configure.ac): ... to here.
2347
2348 2011-05-21  Bruno Haible  <bruno@clisp.org>
2349
2350         acosl: Move AC_LIBOBJ invocations to module description.
2351         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2352         * modules/acosl (configure.ac): ... to here.
2353
2354 2011-05-21  Bruno Haible  <bruno@clisp.org>
2355
2356         asinl: Respect rules for use of AC_LIBOBJ.
2357         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2358         * modules/asinl (configure.ac): ... to here.
2359
2360 2011-05-21  Bruno Haible  <bruno@clisp.org>
2361
2362         tanl: Move AC_LIBOBJ invocations to module description.
2363         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2364         * modules/tanl (configure.ac): ... to here.
2365
2366 2011-05-21  Bruno Haible  <bruno@clisp.org>
2367
2368         cosl: Move AC_LIBOBJ invocations to module description.
2369         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2370         * modules/cosl (configure.ac): ... to here.
2371
2372 2011-05-21  Bruno Haible  <bruno@clisp.org>
2373
2374         sinl: Move AC_LIBOBJ invocations to module description.
2375         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2376         * modules/sinl (configure.ac): ... to here.
2377
2378 2011-05-21  Bruno Haible  <bruno@clisp.org>
2379
2380         logl: Move AC_LIBOBJ invocations to module description.
2381         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2382         * modules/logl (configure.ac): ... to here.
2383
2384 2011-05-21  Bruno Haible  <bruno@clisp.org>
2385
2386         expl: Move AC_LIBOBJ invocations to module description.
2387         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2388         * modules/expl (configure.ac): ... to here.
2389
2390 2011-05-21  Bruno Haible  <bruno@clisp.org>
2391
2392         roundl: Move AC_LIBOBJ invocations to module description.
2393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2394         * modules/roundl (configure.ac): ... to here.
2395
2396 2011-05-21  Bruno Haible  <bruno@clisp.org>
2397
2398         round: Move AC_LIBOBJ invocations to module description.
2399         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2400         * modules/round (configure.ac): ... to here.
2401
2402 2011-05-21  Bruno Haible  <bruno@clisp.org>
2403
2404         roundf: Move AC_LIBOBJ invocations to module description.
2405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2406         * modules/roundf (configure.ac): ... to here.
2407
2408 2011-05-21  Bruno Haible  <bruno@clisp.org>
2409
2410         truncl: Move AC_LIBOBJ invocations to module description.
2411         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2412         * modules/truncl (configure.ac): ... to here.
2413
2414 2011-05-21  Bruno Haible  <bruno@clisp.org>
2415
2416         trunc: Move AC_LIBOBJ invocations to module description.
2417         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2418         * modules/trunc (configure.ac): ... to here.
2419
2420 2011-05-21  Bruno Haible  <bruno@clisp.org>
2421
2422         truncf: Move AC_LIBOBJ invocations to module description.
2423         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2424         * modules/truncf (configure.ac): ... to here.
2425
2426 2011-05-21  Bruno Haible  <bruno@clisp.org>
2427
2428         ceill: Move AC_LIBOBJ invocations to module description.
2429         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2430         * modules/ceill (configure.ac): ... to here.
2431
2432 2011-05-21  Bruno Haible  <bruno@clisp.org>
2433
2434         ceil: Move AC_LIBOBJ invocations to module description.
2435         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2436         * modules/ceil (configure.ac): ... to here.
2437
2438 2011-05-21  Bruno Haible  <bruno@clisp.org>
2439
2440         ceilf: Move AC_LIBOBJ invocations to module description.
2441         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2442         * modules/ceilf (configure.ac): ... to here.
2443
2444 2011-05-21  Bruno Haible  <bruno@clisp.org>
2445
2446         floorl: Respect rules for use of AC_LIBOBJ.
2447         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2448         * modules/floorl (configure.ac): ... to here.
2449
2450 2011-05-21  Bruno Haible  <bruno@clisp.org>
2451
2452         floor: Respect rules for use of AC_LIBOBJ.
2453         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2454         * modules/floor (configure.ac): ... to here.
2455
2456 2011-05-21  Bruno Haible  <bruno@clisp.org>
2457
2458         floorf: Move AC_LIBOBJ invocations to module description.
2459         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2460         * modules/floorf (configure.ac): ... to here.
2461
2462 2011-05-20  Bruno Haible  <bruno@clisp.org>
2463
2464         sqrtl: Respect rules for use of AC_LIBOBJ.
2465         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2466         * modules/sqrtl (configure.ac): ... to here.
2467
2468 2011-05-20  Bruno Haible  <bruno@clisp.org>
2469
2470         ldexpl: Respect rules for use of AC_LIBOBJ.
2471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2472         * modules/ldexpl (configure.ac): ... to here.
2473
2474 2011-05-20  Bruno Haible  <bruno@clisp.org>
2475
2476         frexpl*: Respect rules for use of AC_LIBOBJ.
2477         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2478         invocation from here...
2479         * modules/frexpl (configure.ac): ... to here.
2480         * modules/frexpl-nolibm (configure.ac): ... and here.
2481
2482 2011-05-20  Bruno Haible  <bruno@clisp.org>
2483
2484         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2485         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2486         invocation from here...
2487         * modules/frexp (configure.ac): ... to here.
2488         * modules/frexp-nolibm (configure.ac): ... and here.
2489
2490 2011-05-20  Bruno Haible  <bruno@clisp.org>
2491
2492         isnan: Respect rules for use of AC_LIBOBJ.
2493         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2494         invocations here.
2495         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2496         REPLACE_ISNAN.
2497         * modules/isnand (configure.ac): Likewise.
2498         * modules/isnanl (configure.ac): Likewise.
2499
2500 2011-05-20  Bruno Haible  <bruno@clisp.org>
2501
2502         isnanl*: Respect rules for use of AC_LIBOBJ.
2503         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2504         invocation from here...
2505         * modules/isnanl (configure.ac): ... to here.
2506         * modules/isnanl-nolibm (configure.ac): ... and here.
2507
2508 2011-05-20  Bruno Haible  <bruno@clisp.org>
2509
2510         isnand*: Move AC_LIBOBJ invocations to module description.
2511         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2512         invocation from here...
2513         * modules/isnand (configure.ac): ... to here.
2514         * modules/isnand-nolibm (configure.ac): ... and here.
2515
2516 2011-05-20  Bruno Haible  <bruno@clisp.org>
2517
2518         isnanf*: Move AC_LIBOBJ invocations to module description.
2519         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2520         invocation from here...
2521         * modules/isnanf (configure.ac): ... to here.
2522         * modules/isnanf-nolibm (configure.ac): ... and here.
2523
2524 2011-05-20  Bruno Haible  <bruno@clisp.org>
2525
2526         isnan*: Separate the AC_LIBOBJ invocations.
2527         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2528         AC_LIBOBJ invocation.
2529         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2530         here.
2531         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2532         AC_LIBOBJ invocation.
2533         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2534         here.
2535         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2536         AC_LIBOBJ invocation.
2537         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2538         here.
2539         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2540
2541 2011-05-08  Bruno Haible  <bruno@clisp.org>
2542
2543         isinf: Move AC_LIBOBJ invocations to module description.
2544         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2545         * modules/isinf (configure.ac): ... to here.
2546
2547 2011-05-08  Bruno Haible  <bruno@clisp.org>
2548
2549         isfinite: Move AC_LIBOBJ invocations to module description.
2550         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2551         * modules/isfinite (configure.ac): ... to here.
2552
2553 2011-05-08  Bruno Haible  <bruno@clisp.org>
2554
2555         isblank: Move AC_LIBOBJ invocations to module description.
2556         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2557         here...
2558         * modules/isblank (configure.ac): ... to here.
2559
2560 2011-05-08  Bruno Haible  <bruno@clisp.org>
2561
2562         isapipe: Move AC_LIBOBJ invocations to module description.
2563         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2564         gl_PREREQ_ISAPIPE invocations from here...
2565         * modules/isapipe (configure.ac): ... to here.
2566         (Depends-on): Update condition.
2567
2568 2011-05-08  Bruno Haible  <bruno@clisp.org>
2569
2570         ioctl: Move AC_LIBOBJ invocations to module description.
2571         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2572         invocations from here...
2573         * modules/ioctl (configure.ac): ... to here.
2574         (Depends-on): Update condition.
2575
2576 2011-05-08  Bruno Haible  <bruno@clisp.org>
2577
2578         imaxdiv: Move AC_LIBOBJ invocations to module description.
2579         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2580         invocations from here...
2581         * modules/imaxdiv (configure.ac): ... to here.
2582
2583 2011-05-08  Bruno Haible  <bruno@clisp.org>
2584
2585         imaxabs: Move AC_LIBOBJ invocations to module description.
2586         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2587         invocations from here...
2588         * modules/imaxabs (configure.ac): ... to here.
2589
2590 2011-05-08  Bruno Haible  <bruno@clisp.org>
2591
2592         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2594         AC_LIBOBJ invocations from here...
2595         * modules/getaddrinfo (configure.ac): ... to here.
2596         (Depends-on): Add conditions.
2597
2598 2011-05-08  Bruno Haible  <bruno@clisp.org>
2599
2600         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2601         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2602         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2603         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2604         (gl_PREREQ_INET_PTON): ... from here.
2605         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2606         gl_PREREQ_INET_PTON here.
2607         (Depends-on): Update condition.
2608
2609 2011-05-08  Bruno Haible  <bruno@clisp.org>
2610
2611         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2612         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2613         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2614         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2615         (gl_PREREQ_INET_NTOP): ... from here.
2616         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2617         gl_PREREQ_INET_NTOP here.
2618         (Depends-on): Update condition.
2619
2620 2011-05-08  Bruno Haible  <bruno@clisp.org>
2621
2622         iconv_open: Move AC_LIBOBJ invocations to module description.
2623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2624         AC_LIBOBJ invocations from here...
2625         * modules/iconv_open (configure.ac): ... to here.
2626
2627 2011-05-08  Bruno Haible  <bruno@clisp.org>
2628
2629         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2630         If module 'iconv_open' is among the main modules and module
2631         'iconv_open-utf' is among the tests dependencies, then
2632         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2633         return the special iconv_t values. Therefore iconv() and iconv_close()
2634         must support these special iconv_t values, already in lib, not only in
2635         tests.
2636         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2638         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2639         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2640         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2641         (Depends-on): Add the dependencies of iconv_open-utf.
2642         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2643         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2644         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2645
2646 2011-05-08  Bruno Haible  <bruno@clisp.org>
2647
2648         group-member: Move AC_LIBOBJ invocations to module description.
2649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2650         gl_PREREQ_GROUP_MEMBER invocations from here...
2651         * modules/group-member (configure.ac): ... to here.
2652
2653 2011-05-08  Bruno Haible  <bruno@clisp.org>
2654
2655         grantpt: Move AC_LIBOBJ invocations to module description.
2656         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2657         invocations from here...
2658         * modules/grantpt (configure.ac): ... to here.
2659
2660 2011-05-08  Bruno Haible  <bruno@clisp.org>
2661
2662         glob: Move AC_LIBOBJ invocations to module description.
2663         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2664         from here...
2665         * modules/glob (configure.ac): ... to here.
2666
2667 2011-05-08  Bruno Haible  <bruno@clisp.org>
2668
2669         getusershell: Move AC_LIBOBJ invocations to module description.
2670         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2671         Move AC_LIBOBJ invocation from here...
2672         * modules/getusershell (configure.ac): ... to here.
2673         (Depends-on): Update condition.
2674
2675 2011-05-08  Bruno Haible  <bruno@clisp.org>
2676
2677         gettimeofday: Move AC_LIBOBJ invocations to module description.
2678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2679         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2680         gl_PREREQ_GETTIMEOFDAY invocations from here...
2681         * modules/gettimeofday (configure.ac): ... to here.
2682
2683 2011-05-08  Bruno Haible  <bruno@clisp.org>
2684
2685         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2686         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2687         just gl_FUNC_TZSET.
2688         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2689         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2691         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2692
2693 2011-05-08  Bruno Haible  <bruno@clisp.org>
2694
2695         getsubopt: Move AC_LIBOBJ invocations to module description.
2696         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2697         gl_PREREQ_GETSUBOPT invocations from here...
2698         * modules/getsubopt (configure.ac): ... to here.
2699
2700 2011-05-08  Bruno Haible  <bruno@clisp.org>
2701
2702         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2703         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2704         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2705         * modules/getpass-gnu (configure.ac): ... to here.
2706
2707 2011-05-08  Bruno Haible  <bruno@clisp.org>
2708
2709         getpass: Move AC_LIBOBJ invocations to module description.
2710         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2711         gl_PREREQ_GETPASS invocations from here...
2712         * modules/getpass (configure.ac): ... to here.
2713
2714 2011-05-08  Bruno Haible  <bruno@clisp.org>
2715
2716         getpagesize: Move AC_LIBOBJ invocations to module description.
2717         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2718         from here...
2719         * modules/getpagesize (configure.ac): ... to here.
2720
2721 2011-05-08  Bruno Haible  <bruno@clisp.org>
2722
2723         getopt: Move AC_LIBOBJ invocations to module description.
2724         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2725         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2726         invocations from here...
2727         * modules/getopt-gnu (configure.ac): ... to here.
2728         * modules/getopt-posix (configure.ac): ... and here.
2729         (Depends-on): Update condition.
2730
2731 2011-05-08  Bruno Haible  <bruno@clisp.org>
2732
2733         getopt, argp: Respect rules for use of AC_LIBOBJ.
2734         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2735         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2736         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2737         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2738
2739 2011-05-08  Bruno Haible  <bruno@clisp.org>
2740
2741         getlogin_r: Move AC_LIBOBJ invocations to module description.
2742         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2743         gl_PREREQ_GETLOGIN_R invocations from here...
2744         * modules/getlogin_r (configure.ac): ... to here.
2745
2746 2011-05-08  Bruno Haible  <bruno@clisp.org>
2747
2748         getlogin: Move AC_LIBOBJ invocations to module description.
2749         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2750         here...
2751         * modules/getlogin (configure.ac): ... to here.
2752
2753 2011-05-08  Bruno Haible  <bruno@clisp.org>
2754
2755         getloadavg: Move AC_LIBOBJ invocations to module description.
2756         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2757         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2758         * modules/getloadavg (configure.ac): ... to here.
2759
2760 2011-05-08  Bruno Haible  <bruno@clisp.org>
2761
2762         gethrxtime: Move AC_LIBOBJ invocations to module description.
2763         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2764         LIB_GETHRXTIME from here...
2765         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2766         invocations from here...
2767         * modules/gethrxtime (configure.ac): ... to here.
2768
2769 2011-05-08  Bruno Haible  <bruno@clisp.org>
2770
2771         gethostname: Move AC_LIBOBJ invocations to module description.
2772         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2773         gl_PREREQ_GETHOSTNAME invocations from here...
2774         * modules/gethostname (configure.ac): ... to here.
2775
2776 2011-05-08  Bruno Haible  <bruno@clisp.org>
2777
2778         getgroups: Move AC_LIBOBJ invocations to module description.
2779         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2780         here...
2781         * modules/getgroups (configure.ac): ... to here.
2782
2783 2011-05-08  Bruno Haible  <bruno@clisp.org>
2784
2785         getdtablesize: Move AC_LIBOBJ invocations to module description.
2786         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2787         invocation from here...
2788         * modules/getdtablesize (configure.ac): ... to here.
2789
2790 2011-05-08  Bruno Haible  <bruno@clisp.org>
2791
2792         getdomainname: Move AC_LIBOBJ invocations to module description.
2793         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2794         gl_PREREQ_GETDOMAINNAME invocations from here...
2795         * modules/getdomainname (configure.ac): ... to here.
2796
2797 2011-05-08  Bruno Haible  <bruno@clisp.org>
2798
2799         getline: Move AC_LIBOBJ invocations to module description.
2800         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2801         invocations from here...
2802         * modules/getline (configure.ac): ... to here.
2803
2804 2011-05-08  Bruno Haible  <bruno@clisp.org>
2805
2806         getline: Simplify.
2807         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2808         It's already handled through the module dependency.
2809
2810 2011-05-08  Bruno Haible  <bruno@clisp.org>
2811
2812         getdelim: Move AC_LIBOBJ invocations to module description.
2813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2814         and gl_PREREQ_GETDELIM invocations from here...
2815         * modules/getdelim (configure.ac): ... to here.
2816         (Depends-on): Fix condition.
2817
2818 2011-05-08  Bruno Haible  <bruno@clisp.org>
2819
2820         getcwd: Move AC_LIBOBJ invocations to module description.
2821         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2822         invocations from here...
2823         * modules/getcwd (configure.ac): ... to here.
2824
2825 2011-05-08  Bruno Haible  <bruno@clisp.org>
2826
2827         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2828         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2829         here...
2830         * modules/getcwd-lgpl (configure.ac): ... to here.
2831
2832 2011-05-07  Bruno Haible  <bruno@clisp.org>
2833
2834         crypto/gc: Move AC_LIBOBJ invocations to module description.
2835         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2836         * modules/crypto/gc (configure.ac): ... to here.
2837
2838 2011-05-07  Bruno Haible  <bruno@clisp.org>
2839
2840         fwriting: Move AC_LIBOBJ invocations to module description.
2841         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2842         here...
2843         * modules/fwriting (configure.ac): ... to here.
2844
2845 2011-05-07  Bruno Haible  <bruno@clisp.org>
2846
2847         fwritable: Move AC_LIBOBJ invocations to module description.
2848         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2849         here...
2850         * modules/fwritable (configure.ac): ... to here.
2851
2852 2011-05-07  Bruno Haible  <bruno@clisp.org>
2853
2854         futimens: Move AC_LIBOBJ invocations to module description.
2855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2856         here...
2857         * modules/futimens (configure.ac): ... to here.
2858
2859 2011-05-07  Bruno Haible  <bruno@clisp.org>
2860
2861         ftruncate: Move AC_LIBOBJ invocations to module description.
2862         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2863         gl_PREREQ_FTRUNCATE invocations from here...
2864         * modules/ftruncate (configure.ac): ... to here.
2865
2866 2011-05-07  Bruno Haible  <bruno@clisp.org>
2867
2868         fsync: Move AC_LIBOBJ invocations to module description.
2869         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2870         invocations from here...
2871         * modules/fsync (configure.ac): ... to here.
2872
2873 2011-05-07  Bruno Haible  <bruno@clisp.org>
2874
2875         fsusage: Move AC_LIBOBJ invocations to module description.
2876         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2877         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2878         * modules/fsusage (configure.ac): ... to here.
2879
2880 2011-05-07  Bruno Haible  <bruno@clisp.org>
2881
2882         freopen: Move AC_LIBOBJ invocations to module description.
2883         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2884         invocations from here...
2885         * modules/freopen (configure.ac): ... to here.
2886
2887 2011-05-07  Bruno Haible  <bruno@clisp.org>
2888
2889         free: Move AC_LIBOBJ invocations to module description.
2890         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2891         invocations from here...
2892         * modules/free (configure.ac): ... to here.
2893
2894 2011-05-07  Bruno Haible  <bruno@clisp.org>
2895
2896         freadable: Move AC_LIBOBJ invocations to module description.
2897         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2898         here...
2899         * modules/freadable (configure.ac): ... to here.
2900
2901 2011-05-07  Bruno Haible  <bruno@clisp.org>
2902
2903         fpurge: Move AC_LIBOBJ invocations to module description.
2904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2905         invocations from here...
2906         * modules/fpurge (configure.ac): ... to here.
2907
2908 2011-05-07  Bruno Haible  <bruno@clisp.org>
2909
2910         fpending: Move AC_LIBOBJ invocations to module description.
2911         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2912         gl_FUNC_FPENDING.
2913         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2914         invocations from here...
2915         * modules/fpending (configure.ac): ... to here.
2916
2917 2011-05-07  Bruno Haible  <bruno@clisp.org>
2918
2919         fopen: Move AC_LIBOBJ invocations to module description.
2920         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2921         invocations from here...
2922         * modules/fopen (configure.ac): ... to here.
2923
2924 2011-05-07  Bruno Haible  <bruno@clisp.org>
2925
2926         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2927         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2928         gl_FUNC_FNMATCH_POSIX.
2929         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2930         invocations from here...
2931         * modules/fnmatch (configure.ac): ... to here.
2932         * modules/fnmatch-gnu (configure.ac): ... and here.
2933
2934 2011-05-07  Bruno Haible  <bruno@clisp.org>
2935
2936         flock: Move AC_LIBOBJ invocations to module description.
2937         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2938         invocations from here...
2939         * modules/flock (configure.ac): ... to here.
2940
2941 2011-05-07  Bruno Haible  <bruno@clisp.org>
2942
2943         fileblocks: Move AC_LIBOBJ invocations to module description.
2944         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2945         gl_PREREQ_FILEBLOCKS invocations from here...
2946         * modules/fileblocks (configure.ac): ... to here.
2947
2948 2011-05-06  Bruno Haible  <bruno@clisp.org>
2949
2950         fflush: Move AC_LIBOBJ invocations to module description.
2951         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2952         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2953         invocations from here...
2954         * modules/fflush (configure.ac): ... to here.
2955
2956 2011-05-06  Bruno Haible  <bruno@clisp.org>
2957
2958         fdopendir: Move AC_LIBOBJ invocations to module description.
2959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2960         here...
2961         * modules/fdopendir (configure.ac): ... to here.
2962         (Depends-on): Improve conditions.
2963
2964 2011-05-06  Bruno Haible  <bruno@clisp.org>
2965
2966         _Exit: Move AC_LIBOBJ invocations to module description.
2967         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2968         invocations from here...
2969         * modules/_Exit (configure.ac): ... to here.
2970
2971 2011-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         euidaccess: Respect rules for use of AC_LIBOBJ.
2974         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2976         from here...
2977         * modules/euidaccess (configure.ac): ... to here.
2978
2979 2011-05-06  Bruno Haible  <bruno@clisp.org>
2980
2981         error: Move AC_LIBOBJ invocations to module description.
2982         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2983         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2984         invocations from here...
2985         * modules/error (configure.ac): ... to here.
2986
2987 2011-05-06  Bruno Haible  <bruno@clisp.org>
2988
2989         duplocale: Move AC_LIBOBJ invocations to module description.
2990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2991         gl_PREREQ_DUPLOCALE invocations from here...
2992         * modules/duplocale (configure.ac): ... to here.
2993
2994 2011-05-05  Bruno Haible  <bruno@clisp.org>
2995
2996         dirfd: Move AC_LIBOBJ invocations to module description.
2997         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2998         gl_FUNC_DIRFD.
2999         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3000         here...
3001         * modules/dirfd (configure.ac): ... to here.
3002         (Depends-on): Fix condition.
3003
3004 2011-05-05  Bruno Haible  <bruno@clisp.org>
3005
3006         chown: Respect rules for use of AC_LIBOBJ.
3007         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3008         * modules/chown (configure.ac): ... to here.
3009
3010 2011-05-05  Bruno Haible  <bruno@clisp.org>
3011
3012         chdir-long: Move AC_LIBOBJ invocations to module description.
3013         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3014         gl_PREREQ_CHDIR_LONG invocations from here...
3015         * modules/chdir-long (configure.ac): ... to here.
3016
3017 2011-05-05  Bruno Haible  <bruno@clisp.org>
3018
3019         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3020         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3021         from here...
3022         * modules/canonicalize-lgpl (configure.ac): ... to here.
3023
3024 2011-05-05  Bruno Haible  <bruno@clisp.org>
3025
3026         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3027         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3028         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3029         REPLACE_CALLOC.
3030         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3031         * modules/calloc-gnu (configure.ac): Likewise.
3032
3033 2011-05-05  Bruno Haible  <bruno@clisp.org>
3034
3035         btowc: Move AC_LIBOBJ invocations to module description.
3036         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3037         invocations from here...
3038         * modules/btowc (configure.ac): ... to here.
3039
3040 2011-05-21  Bruno Haible  <bruno@clisp.org>
3041
3042         atexit: Move AC_LIBOBJ invocations to module description.
3043         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3045         here...
3046         * modules/atexit (configure.ac): ... to here.
3047
3048 2011-05-05  Bruno Haible  <bruno@clisp.org>
3049
3050         atoll: Move AC_LIBOBJ invocations to module description.
3051         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3052         invocations from here...
3053         * modules/atoll (configure.ac): ... to here.
3054
3055 2011-05-05  Bruno Haible  <bruno@clisp.org>
3056
3057         argz: Move AC_LIBOBJ invocations to module description.
3058         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3059         * modules/argz (configure.ac): ... to here.
3060
3061 2011-05-05  Bruno Haible  <bruno@clisp.org>
3062
3063         alphasort: Move AC_LIBOBJ invocations to module description.
3064         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3065         gl_PREREQ_ALPHASORT invocations from here...
3066         * modules/alphasort (configure.ac): ... to here.
3067
3068 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         verify: new macro verify_expr; verify_true deprecated
3071         * NEWS: Mention this.
3072         * doc/verify.texi (Compile-time Assertions): Document this.
3073         * lib/verify.h (verify_true): Deprecate.
3074         (verify_expr): New macro.
3075         * tests/test-verify.c (function): Test verify_expr.
3076
3077 2011-06-14  Jim Meyering  <meyering@redhat.com>
3078
3079         init.sh: give more portable redirection-related advice in a comment
3080         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3081         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3082         for lots of discussion.  Stefano Lattarini suggested the solution
3083         of putting "9>&2" after the command.  Reported by Bruno Haible.
3084
3085 2011-06-13  Bruno Haible  <bruno@clisp.org>
3086
3087         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3089         'none'.
3090
3091 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3092
3093         ftoastr: use strtof only if HAVE_STRTOF
3094         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3096         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3097         * modules/ftoastr (configure.ac): Check for strtof.
3098
3099 2011-06-13  Bruno Haible  <bruno@clisp.org>
3100
3101         gnulib-tool: Addendum to 2011-06-08 commit.
3102         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3103         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3104
3105 2011-06-13  Bruno Haible  <bruno@clisp.org>
3106
3107         fseeko: Provide a non-inline replacement of fseek().
3108         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3109         * modules/fseeko (Depends-on): Add fseek.
3110         * modules/fseek (License): Change to LGPLv2+.
3111
3112 2011-06-13  Bruno Haible  <bruno@clisp.org>
3113
3114         ftello: Provide a non-inline replacement of ftell().
3115         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3116         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3117         not have ftello() (such as on mingw).
3118         * modules/ftello (Depends-on): Add ftell.
3119         * modules/ftell (License): Change to LGPLv2+.
3120
3121 2011-05-07  Bruno Haible  <bruno@clisp.org>
3122
3123         ftell: Move AC_LIBOBJ invocations to module description.
3124         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3125         * modules/ftell (configure.ac): ... to here.
3126
3127 2011-05-07  Bruno Haible  <bruno@clisp.org>
3128
3129         ftello: Respect rules for use of AC_LIBOBJ.
3130         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3131         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3132         here...
3133         * modules/ftello (configure.ac): ... to here.
3134
3135 2011-05-07  Bruno Haible  <bruno@clisp.org>
3136
3137         fseeko: Simplify.
3138         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3139         (gl_FUNC_FSEEKO): Inline it here.
3140
3141 2011-05-07  Bruno Haible  <bruno@clisp.org>
3142
3143         fseek: Move AC_LIBOBJ invocations to module description.
3144         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3145         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3146         * modules/fseek (configure.ac): ... to here.
3147
3148 2011-05-07  Bruno Haible  <bruno@clisp.org>
3149
3150         fseek: Respect rules for use of AC_LIBOBJ.
3151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3152         here...
3153         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3154
3155 2011-05-07  Bruno Haible  <bruno@clisp.org>
3156
3157         fseeko: Respect rules for use of AC_LIBOBJ.
3158         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3159         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3160         here...
3161         * modules/fseeko (configure.ac): ... to here.
3162
3163 2011-06-13  Bruno Haible  <bruno@clisp.org>
3164
3165         gnulib-tool: Allow comments in the 'Depends-on' section.
3166         * doc/gnulib.texi (Module description): Mention comment syntax in the
3167         Depends-on section.
3168         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3169
3170 2011-06-13  Bruno Haible  <bruno@clisp.org>
3171
3172         file-set.h: guard __attibute__ use, now that it's not always defined
3173         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3174         versions that support it.  This fixes a coreutils build failure with
3175         the vendor cc on HP-UX 11.31.
3176
3177 2011-06-12  Bruno Haible  <bruno@clisp.org>
3178
3179         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3180         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3181         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3182         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3183         (acl, aclsort): New declarations.
3184         (aclv_nontrivial): New declaration.
3185         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3186         (file_has_acl): Read also the second kind of HP-UX ACLs.
3187         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3188         kind of HP-UX ACLs if the first kind fails.
3189         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3190         second kind of HP-UX ACLs.
3191         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3192         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3193         agree.
3194         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3195         hpuxjfs.
3196         Handle hpuxjfs.
3197         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3198         hpuxjfs.
3199         Handle hpuxjfs.
3200         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3201         (func_test_same_acls): Use both lsacl and getacl.
3202         Handle hpuxjfs.
3203         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3204         (func_test_same_acls): Use both lsacl and getacl.
3205         Handle hpuxjfs.
3206
3207 2011-06-12  Bruno Haible  <bruno@clisp.org>
3208
3209         acl: Complete the 2010-08-10 fix.
3210         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3211         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3212         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3213         explicitly.
3214         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3215         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3216
3217 2011-06-12  Bruno Haible  <bruno@clisp.org>
3218
3219         spawn-pipe tests: Comments.
3220         * tests/test-spawn-pipe-child.c (main): Update comment.
3221         Reported by James Youngman <jay@gnu.org>.
3222
3223 2011-06-11  James Youngman  <jay@gnu.org>
3224
3225         New module 'stat-size'.
3226         * modules/stat-size: New module.  Provides macros for accessing
3227         file size information in instances of struct stat.  Depends on the
3228         fileblocks module because it calls st_blocks.
3229         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3230         * doc/gnulib.texi: Include stat-size.texi.
3231         * doc/stat-size.texi: Documentation for this module.
3232         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3233         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3234         AC_STRUCT_ST_BLOCKS.
3235
3236 2011-06-09  Bruno Haible  <bruno@clisp.org>
3237
3238         thread: Support pthreads-win32.
3239         * lib/glthread/thread.h (gl_thread_self): Define differently on
3240         pthreads-win32.
3241         (gl_null_thread): New declaration.
3242         (gl_thread_self_pointer): New macro.
3243         * lib/glthread/thread.c (gl_null_thread): New constant.
3244         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3245         gl_thread_self.
3246         * tests/test-tls.c: Likewise.
3247         Suggested by Paul Eggert. Reported by Eric Blake.
3248
3249 2011-06-09  Bruno Haible  <bruno@clisp.org>
3250
3251         thread: Fix confusion between NULL and 0.
3252         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3253         Reported by Paul Eggert.
3254
3255 2011-06-09  Bruno Haible  <bruno@clisp.org>
3256
3257         spawn-pipe tests: Avoid test failure on HP-UX 11.
3258         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3259         is closed.
3260
3261 2011-06-09  Bruno Haible  <bruno@clisp.org>
3262
3263         acl tests: Fix compilation error on HP-UX 11.
3264         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3265
3266 2011-06-09  Bruno Haible  <bruno@clisp.org>
3267
3268         rmdir: Avoid test failure on HP-UX 10.20.
3269         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3270         EEXIST.
3271
3272 2011-06-08  Eric Blake  <eblake@redhat.com>
3273
3274         perror: fix test on mingw
3275         * modules/perror-tests (Depends-on): Add dup2.
3276
3277         strerror_r-posix: fix on MacOS
3278         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3279         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3280         logic bug.
3281         * lib/strerror_r.c (strerror_r): Fix the bug.
3282         * lib/strerror.c (strerror): Likewise.
3283         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3284         problem.
3285         * doc/posix-functions/strerror.texi (strerror): Likewise.
3286         * doc/posix-functions/perror.texi (perror): Likewise.
3287         * tests/test-strerror.c (main): Enhance test.
3288         * tests/test-strerror_r.c (main): Likewise.
3289
3290 2011-06-08  Bruno Haible  <bruno@clisp.org>
3291
3292         gnulib-tool: Better isolation between different gnulib-tool invocations.
3293         * gnulib-tool: New option --witness-c-macro.
3294         (witness_c_macro): New variable.
3295         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3296         AM_CPPFLAGS define it as a C macro.
3297         (func_emit_tests_Makefile_am): Likewise.
3298         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3299         read it from there.
3300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3301         m4_define, not AC_DEFUN.
3302         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3303         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3304         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3305         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3306         s|...|...|, to substitute the values of the GNULIB_* module indicator
3307         variables.
3308         * modules/dirent (Makefile.am): Likewise.
3309         * modules/fcntl-h (Makefile.am): Likewise.
3310         * modules/iconv-h (Makefile.am): Likewise.
3311         * modules/langinfo (Makefile.am): Likewise.
3312         * modules/locale (Makefile.am): Likewise.
3313         * modules/math (Makefile.am): Likewise.
3314         * modules/netdb (Makefile.am): Likewise.
3315         * modules/poll-h (Makefile.am): Likewise.
3316         * modules/pty (Makefile.am): Likewise.
3317         * modules/search (Makefile.am): Likewise.
3318         * modules/signal (Makefile.am): Likewise.
3319         * modules/spawn (Makefile.am): Likewise.
3320         * modules/stdio (Makefile.am): Likewise.
3321         * modules/stdlib (Makefile.am): Likewise.
3322         * modules/string (Makefile.am): Likewise.
3323         * modules/sys_ioctl (Makefile.am): Likewise.
3324         * modules/sys_select (Makefile.am): Likewise.
3325         * modules/sys_socket (Makefile.am): Likewise.
3326         * modules/sys_stat (Makefile.am): Likewise.
3327         * modules/sys_times (Makefile.am): Likewise.
3328         * modules/sys_utsname (Makefile.am): Likewise.
3329         * modules/sys_wait (Makefile.am): Likewise.
3330         * modules/termios (Makefile.am): Likewise.
3331         * modules/time (Makefile.am): Likewise.
3332         * modules/unistd (Makefile.am): Likewise.
3333         * modules/wchar (Makefile.am): Likewise.
3334
3335 2011-06-08  Eric Blake  <eblake@redhat.com>
3336
3337         strerror: simplify replacement
3338         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3339         * modules/strerror (configure.ac): No prereqs needed here...
3340         * modules/strerror-override (configure.ac): ...but this needs it.
3341         (Files): Add file for needed prereq macro.
3342
3343 2011-06-08  Bruno Haible  <bruno@clisp.org>
3344
3345         strerror_r-posix: Tweaks.
3346         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3347         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3349         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3350         (gl_FUNC_STRERROR_R): ... to here.
3351         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3352
3353 2011-06-07  Eric Blake  <eblake@redhat.com>
3354
3355         perror: document fixed bugs
3356         * doc/posix-functions/perror.texi (perror): Document recent
3357         patches.
3358
3359 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3360
3361         stat-time: get_stat_birthtime failure is better-defined
3362         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3363         return a timestamp whose tv_sec and tv_nsec values are both -1.
3364         Previously, the spec said only that the tv_nsec value was negative.
3365         This upward-compatible change simplifies GNU tar a bit.
3366
3367 2011-06-07  Eric Blake  <eblake@redhat.com>
3368
3369         strerror_r-posix: work around cygwin 1.7.9
3370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3371         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3372         bug without replacing strerror_r.
3373         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3374         strerror_r is buggy, but without requiring strerror_r compilation.
3375         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3376
3377         test-perror: relax test to ignore cygwin bug
3378         * tests/test-perror2.c (main): Relax test on requiring detection
3379         of stream errors, and use unbuffered stream.
3380         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3381         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3382         * doc/posix-functions/fputc.texi (fputc): Likewise.
3383         * doc/posix-functions/fputs.texi (fputs): Likewise.
3384         * doc/posix-functions/fputws.texi (fputws): Likewise.
3385         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3386         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3387         * doc/posix-functions/getopt.texi (getopt): Likewise.
3388         * doc/posix-functions/perror.texi (perror): Likewise.
3389         * doc/posix-functions/printf.texi (printf): Likewise.
3390         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3391         * doc/posix-functions/psignal.texi (psignal): Likewise.
3392         * doc/posix-functions/putc.texi (putc): Likewise.
3393         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3394         Likewise.
3395         * doc/posix-functions/putchar.texi (putchar): Likewise.
3396         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3397         Likewise.
3398         * doc/posix-functions/puts.texi (puts): Likewise.
3399         * doc/posix-functions/putwc.texi (putwc): Likewise.
3400         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3401         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3402         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3403         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3404         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3405         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3406         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3407         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3408
3409 2011-05-22  Bruno Haible  <bruno@clisp.org>
3410
3411         strerror: Move AC_LIBOBJ invocations to module description.
3412         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3413         gl_PREREQ_STRERROR invocations from here...
3414         * modules/strerror (configure.ac): ... to here.
3415
3416 2011-05-21  Bruno Haible  <bruno@clisp.org>
3417
3418         perror: Use common idiom.
3419         * modules/perror (configure.ac): Reorder statements.
3420
3421 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3422
3423         tests: fix usage message in 'mktempd_'
3424         * tests/init.sh (mktempd_): In the usage message, use literal
3425         'mktempd_', not '$ME' (which is even undefined), as the name of
3426         the subroutine.
3427
3428 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3429
3430         tests init: new function 'fatal_', for hard errors
3431         Before this patch, the only way offered by tests/init.sh to
3432         properly signal a hard error was the `framework_failure_'
3433         function.  But the error message issued by that function,
3434         as its name would suggest, refers to a set-up failure in the
3435         testsuite, while hard errors can obviously also be due to
3436         other reasons.  The best way to fix this inconsistency is to
3437         introduce a new function with a more general error message.
3438         * tests/init.sh (fatal_): New function.
3439
3440 2011-06-06  Eric Blake  <eblake@redhat.com>
3441
3442         canonicalize-lgpl: use common idiom
3443         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3444         over newer POSIX -Rf.
3445         Reported by Bruno Haible.
3446
3447         canonicalize-lgpl: work around AIX realpath bug
3448         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3449         * doc/posix-functions/realpath.texi (realpath): Document it.
3450         Reported by Bruno Haible.
3451
3452         strerror: work around FreeBSD bug
3453         * lib/strerror.c (strerror): Special case 0.
3454         Reported by Bruno Haible.
3455
3456         strerror-override: avoid bloating errno module
3457         * modules/errno (Files, configure.ac): Move replacement strings...
3458         * modules/strerror-override: ...to new module.
3459         * modules/strerror (Depends-on): Add strerror-override.
3460         * modules/strerror_r-posix (Depends-on): Likewise.
3461         * MODULES.html.sh: Document new module.
3462         Reported by Bruno Haible.
3463
3464 2011-06-06  Bruno Haible  <bruno@clisp.org>
3465
3466         spawn-pipe tests: Rename program.
3467         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3468         * tests/test-spawn-pipe-child.c: Update comment.
3469         * tests/test-spawn-pipe.sh: Update.
3470         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3471
3472         spawn-pipe tests: Link the child program only against libc.
3473         * tests/test-spawn-pipe-child.c: New file, extracted from
3474         tests/test-spawn-pipe.c.
3475         (main): Expect only one argument.
3476         (is_open): New function, copied from tests/test-pipe.c.
3477         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3478         (child_main): Remove function.
3479         (test_pipe): Pass only one argument to the child program.
3480         (main): Remove child process code. Expect the child program's name as
3481         first argument.
3482         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3483         argument.
3484         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3485         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3486         test-spawn-pipe-child against no libraries.
3487
3488 2011-06-06  Bruno Haible  <bruno@clisp.org>
3489
3490         careadlinkat: Avoid mismatch between ssize_t and int.
3491         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3492         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3493
3494 2011-06-06  Jim Meyering  <meyering@redhat.com>
3495
3496         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3497         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3498         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3499
3500 2011-06-05  Bruno Haible  <bruno@clisp.org>
3501
3502         ansi-c++-opt: Interoperability with libtool.
3503         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3504         set the variable to "no", not to ":".
3505         * NEWS: Mention the change.
3506
3507 2011-06-05  Bruno Haible  <bruno@clisp.org>
3508
3509         acl: Fix test failure on AIX 7.
3510         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3511         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3512
3513 2011-06-05  Bruno Haible  <bruno@clisp.org>
3514
3515         pipe-filter-ii: Fix test failure on AIX and IRIX.
3516         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3517         with EAGAIN, retry with a smaller buffer size.
3518
3519 2011-06-05  Bruno Haible  <bruno@clisp.org>
3520
3521         localename: Fix link dependencies.
3522         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3523         * modules/localename-tests (Makefile.am): Link test-localename with
3524         $(LIBTHREAD).
3525
3526 2011-06-05  Bruno Haible  <bruno@clisp.org>
3527
3528         error: Avoid gcc warning.
3529         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3530
3531 2011-06-05  Bruno Haible  <bruno@clisp.org>
3532
3533         unsetenv: Avoid gcc warning.
3534         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3535
3536 2011-06-05  Bruno Haible  <bruno@clisp.org>
3537
3538         setenv: Avoid gcc warning.
3539         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3540
3541 2011-06-05  Bruno Haible  <bruno@clisp.org>
3542
3543         sys_select: Ensure memset is declared also on AIX 7.
3544         * lib/sys_select.in.h: Include <string.h> also on AIX.
3545         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3546         self-contained also on AIX 7.1.
3547
3548 2011-06-04  Jim Meyering  <meyering@redhat.com>
3549
3550         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3551         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3552         function name, "error".
3553         (_gl_translatable_diag_func_re): New configurable variable.
3554
3555 2011-06-04  Bruno Haible  <bruno@clisp.org>
3556
3557         getopt: Avoid gcc warning.
3558         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3559
3560 2011-06-04  Bruno Haible  <bruno@clisp.org>
3561
3562         strerror_r: Fix comments.
3563         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3564         commit.
3565
3566 2011-06-04  Bruno Haible  <bruno@clisp.org>
3567
3568         perror: Fix compilation error.
3569         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3570         Undefine fprintf, not sprintf.
3571         * modules/perror (Depends-on): Remove intprops, verify.
3572
3573 2011-06-04  Bruno Haible  <bruno@clisp.org>
3574
3575         setlocale: Enable replacement on Cygwin 1.5.
3576         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3577         Cygwin 1.5.x.
3578         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3579         LC_CTYPE category also exists on Cygwin 1.5.x.
3580
3581 2011-06-04  Bruno Haible  <bruno@clisp.org>
3582
3583         strerror-override: Don't disable symbol renamings.
3584         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3585         * lib/strerror-override.c: Include config.h.
3586         (strerror_override): Don't undefine.
3587
3588 2011-06-03  Bruno Haible  <bruno@clisp.org>
3589
3590         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3591         * lib/localename.h: Update copyright header.
3592         * lib/localename.c: Likewise.
3593         * lib/relocatable.h: Likewise.
3594         * lib/relocatable.c: Likewise.
3595
3596 2011-06-02  Bruno Haible  <bruno@clisp.org>
3597
3598         doc: Fix a module name.
3599         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3600
3601 2011-06-02  Bruno Haible  <bruno@clisp.org>
3602
3603         pipe2: Remove dependency on 'nonblocking' module.
3604         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3605         O_NONBLOCK is defined by gnulib.
3606         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3607         is zero.
3608         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3609         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3610         defined by gnulib.
3611         (get_nonblocking_flag): New function.
3612         (main): Test O_NONBLOCK flag only if it is nonzero.
3613         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3614
3615 2011-06-03  Jim Meyering  <meyering@redhat.com>
3616
3617         maint: three new prohibit-header-without-use rules
3618         Prohibit use of cloexec.h, posixver.h, same.h without use.
3619         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3620         (sc_prohibit_posixver_without_use): Likewise.
3621         (sc_prohibit_same_without_use): Likewise.
3622
3623 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3624
3625         allocator: 'die' routine is now given requested size
3626         * lib/allocator.h (struct allocator.die): New size arg.
3627         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3628         If the actual problem is an ssize_t limitation, not a size_t or
3629         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3630
3631 2011-06-01  Eric Blake  <eblake@redhat.com>
3632
3633         strerror: drop strerror_r dependency
3634         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3635         * lib/strerror-override.c (strerror_override): ...to new file.
3636         * lib/strerror-override.h: Add prototype.
3637         * lib/strerror-impl.h: Delete.
3638         * lib/strerror.c (strerror): New implementation.
3639         * modules/errno (Files): Add new files.
3640         (configure.ac): Compile new file as appropriate.
3641         * modules/strerror (Files): Drop unused file.
3642         (Depends-on): Drop strerror_r-posix.
3643         * MODULES.html.sh: Document strerror_r-posix.
3644         Requested by Sam Steingold.
3645
3646         perror: call strerror_r directly
3647         * modules/perror (Files): Drop strerror-impl.h.
3648         * lib/perror.c (perror): Use our own stack buffer, rather than
3649         calling a wrapper that uses static storage.
3650         * doc/posix-functions/perror.texi (perror): Document a limitation
3651         of our replacement.
3652
3653         strerror_r: fix includes for FreeBSD
3654         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3655         since we use abort on some platforms.
3656         Reported by Matthias Bolte.
3657
3658 2011-05-31  Bruno Haible  <bruno@clisp.org>
3659
3660         Fix link errors in tests: openat-die uses gettext-h.
3661         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3662         against $(LIBINTL).
3663         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3664         against $(LIBINTL).
3665         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3666         $(LIBINTL).
3667         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3668         against $(LIBINTL).
3669         * modules/linkat-tests (Makefile.am): Link test-linkat against
3670         $(LIBINTL).
3671         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3672         $(LIBINTL).
3673         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3674         against $(LIBINTL).
3675         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3676         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3677         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3678         $(LIBINTL).
3679         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3680         $(LIBINTL).
3681         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3682         $(LIBINTL).
3683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3684
3685 2011-05-31  Bruno Haible  <bruno@clisp.org>
3686
3687         Fix link errors in tests: wait-process uses gettext-h.
3688         * modules/nonblocking-pipe-tests (Makefile.am): Set
3689         test_nonblocking_pipe_main_LDADD.
3690         * modules/nonblocking-socket-tests (Makefile.am): Link
3691         test-nonblocking-socket-main against $(LIBINTL).
3692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3693
3694 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         assert-h: work around 'verify' incompatibility
3697         * lib/verify.h: Use @...@ directives, not ifdef.
3698         * modules/assert-h (assert.h): Implement the directives.
3699         (assert.h): Substitute the symbol-prefix more consistently.
3700
3701 2011-05-29  Jim Meyering  <meyering@redhat.com>
3702
3703         trim: remove three superfluous assignments
3704         * lib/trim.c (trim2): Remove three superfluous assignments
3705         and correct brace positioning.
3706
3707 2011-05-29  Bruno Haible  <bruno@clisp.org>
3708
3709         wctype-h: Avoid namespace pollution on Solaris 2.6.
3710         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3711         identifiers.
3712         * doc/posix-headers/wctype.texi: Mention the problem.
3713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3714
3715 2011-05-28  Jim Meyering  <meyering@redhat.com>
3716
3717         parse-datetime.y: accommodate -Wstrict-overflow
3718         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3719         placate -Wstrict-overflow.
3720
3721         trim: avoid a warning from -O2 -Wstrict-overflow
3722         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3723
3724 2011-05-29  Bruno Haible  <bruno@clisp.org>
3725
3726         gnulib-tool: Fix bug in yesterday's commit.
3727         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3728         twice.
3729
3730 2011-05-29  Bruno Haible  <bruno@clisp.org>
3731
3732         Allow multiple gnulib generated include files to be combined.
3733         * gnulib-tool (func_compute_include_guard_prefix): New function.
3734         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3735         ${gl_include_guard_prefix} references.
3736         (func_import, func_create_testdir): Invoke
3737         func_compute_include_guard_prefix.
3738         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3739         * lib/ctype.in.h: Likewise.
3740         * lib/dirent.in.h: Likewise.
3741         * lib/errno.in.h: Likewise.
3742         * lib/fcntl.in.h: Likewise.
3743         * lib/float.in.h: Likewise.
3744         * lib/getopt.in.h: Likewise.
3745         * lib/iconv.in.h: Likewise.
3746         * lib/langinfo.in.h: Likewise.
3747         * lib/locale.in.h: Likewise.
3748         * lib/math.in.h: Likewise.
3749         * lib/netdb.in.h: Likewise.
3750         * lib/netinet_in.in.h: Likewise.
3751         * lib/poll.in.h: Likewise.
3752         * lib/pthread.in.h: Likewise.
3753         * lib/pty.in.h: Likewise.
3754         * lib/sched.in.h: Likewise.
3755         * lib/se-selinux.in.h: Likewise.
3756         * lib/search.in.h: Likewise.
3757         * lib/signal.in.h: Likewise.
3758         * lib/spawn.in.h: Likewise.
3759         * lib/stdarg.in.h: Likewise.
3760         * lib/stddef.in.h: Likewise.
3761         * lib/stdint.in.h: Likewise.
3762         * lib/stdio.in.h: Likewise.
3763         * lib/stdlib.in.h: Likewise.
3764         * lib/string.in.h: Likewise.
3765         * lib/strings.in.h: Likewise.
3766         * lib/sys_file.in.h: Likewise.
3767         * lib/sys_ioctl.in.h: Likewise.
3768         * lib/sys_select.in.h: Likewise.
3769         * lib/sys_socket.in.h: Likewise.
3770         * lib/sys_stat.in.h: Likewise.
3771         * lib/sys_time.in.h: Likewise.
3772         * lib/sys_times.in.h: Likewise.
3773         * lib/sys_uio.in.h: Likewise.
3774         * lib/sys_utsname.in.h: Likewise.
3775         * lib/sys_wait.in.h: Likewise.
3776         * lib/sysexits.in.h: Likewise.
3777         * lib/termios.in.h: Likewise.
3778         * lib/time.in.h: Likewise.
3779         * lib/unistd.in.h: Likewise.
3780         * lib/wchar.in.h: Likewise.
3781         * lib/wctype.in.h: Likewise.
3782         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3783         * modules/ctype (Makefile.am): Likewise.
3784         * modules/dirent (Makefile.am): Likewise.
3785         * modules/errno (Makefile.am): Likewise.
3786         * modules/fcntl-h (Makefile.am): Likewise.
3787         * modules/float (Makefile.am): Likewise.
3788         * modules/getopt-posix (Makefile.am): Likewise.
3789         * modules/iconv-h (Makefile.am): Likewise.
3790         * modules/langinfo (Makefile.am): Likewise.
3791         * modules/locale (Makefile.am): Likewise.
3792         * modules/math (Makefile.am): Likewise.
3793         * modules/netdb (Makefile.am): Likewise.
3794         * modules/netinet_in (Makefile.am): Likewise.
3795         * modules/poll-h (Makefile.am): Likewise.
3796         * modules/pthread (Makefile.am): Likewise.
3797         * modules/pty (Makefile.am): Likewise.
3798         * modules/sched (Makefile.am): Likewise.
3799         * modules/search (Makefile.am): Likewise.
3800         * modules/selinux-h (Makefile.am): Likewise.
3801         * modules/signal (Makefile.am): Likewise.
3802         * modules/spawn (Makefile.am): Likewise.
3803         * modules/stdarg (Makefile.am): Likewise.
3804         * modules/stddef (Makefile.am): Likewise.
3805         * modules/stdint (Makefile.am): Likewise.
3806         * modules/stdio (Makefile.am): Likewise.
3807         * modules/stdlib (Makefile.am): Likewise.
3808         * modules/string (Makefile.am): Likewise.
3809         * modules/strings (Makefile.am): Likewise.
3810         * modules/sys_file (Makefile.am): Likewise.
3811         * modules/sys_ioctl (Makefile.am): Likewise.
3812         * modules/sys_select (Makefile.am): Likewise.
3813         * modules/sys_socket (Makefile.am): Likewise.
3814         * modules/sys_stat (Makefile.am): Likewise.
3815         * modules/sys_time (Makefile.am): Likewise.
3816         * modules/sys_times (Makefile.am): Likewise.
3817         * modules/sys_uio (Makefile.am): Likewise.
3818         * modules/sys_utsname (Makefile.am): Likewise.
3819         * modules/sys_wait (Makefile.am): Likewise.
3820         * modules/sysexits (Makefile.am): Likewise.
3821         * modules/termios (Makefile.am): Likewise.
3822         * modules/time (Makefile.am): Likewise.
3823         * modules/unistd (Makefile.am): Likewise.
3824         * modules/wchar (Makefile.am): Likewise.
3825         * modules/wctype-h (Makefile.am): Likewise.
3826         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3827
3828 2011-05-29  Bruno Haible  <bruno@clisp.org>
3829
3830         assert-h: Allow multiple gnulib generated replacements to coexist.
3831         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3832
3833 2011-05-29  Bruno Haible  <bruno@clisp.org>
3834
3835         argp: Allow coexistence with strerror_r-posix module.
3836         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3837         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3838         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3839         not the glibc signature.
3840
3841 2011-05-28  Bruno Haible  <bruno@clisp.org>
3842
3843         gnulib-tool: Alternative structure of testdirs, similar to --import.
3844         * gnulib-tool: New option --single-configure.
3845         (func_usage): Document it.
3846         (single_configure): New variable.
3847         (func_modules_transitive_closure_separately,
3848         func_modules_transitive_closure_separately,
3849         func_determine_use_libtests, func_modules_add_dummy_separately,
3850         func_modules_to_filelist_separately): New functions, extracted from
3851         func_import.
3852         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3853         (func_import): Use the new functions.
3854         (func_create_testdir): Set final_modules. Handle $single_configure =
3855         true case.
3856
3857 2011-05-28  Bruno Haible  <bruno@clisp.org>
3858
3859         getloadavg: Remove an unreliable safety check.
3860         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3861         getloadavg.c is in place.
3862         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3863         Reported by Sam Steingold <sds@gnu.org>.
3864
3865 2011-05-28  Bruno Haible  <bruno@clisp.org>
3866
3867         doc: Cleanup yet another file produced by texinfo.tex.
3868         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3869
3870 2011-05-28  Bruno Haible  <bruno@clisp.org>
3871
3872         Finish the conditional dependencies mechanism.
3873         * gnulib-tool: New option --no-conditional-dependencies.
3874         (func_usage): Document it. Don't mark --conditional-dependencies as
3875         experimental.
3876         (cond_dependencies): The possible values can now be true, false, empty.
3877         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3878         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3879         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3880
3881 2011-05-28  Bruno Haible  <bruno@clisp.org>
3882
3883         doc: Use a recent texinfo.tex.
3884         * doc/Makefile (tex_opts): New variable.
3885         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3886
3887 2011-05-28  Jim Meyering  <meyering@redhat.com>
3888
3889         intprops.h: adjust comment to match code change
3890         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3891         only once, it *may* have side effects.  Also fix an unrelated typo.
3892         (_GL_INT_SIGNED): Likewise.
3893
3894 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3895
3896         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3897
3898 2011-05-26  Bruno Haible  <bruno@clisp.org>
3899
3900         mbsrchr: Avoid collision with system function on Interix.
3901         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3902         Reported by Markus Duft <mduft@gentoo.org>.
3903
3904 2011-05-15  James Youngman  <jay@gnu.org>
3905
3906         getopt: for ambiguous options, enumerate the possibilities.
3907         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3908         the ambiguous options when an ambiguous prefix is given. This was
3909         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3910         glibc change was
3911         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3912
3913 2011-05-25  Eric Blake  <eblake@redhat.com>
3914
3915         getcwd: work around mingw bug
3916         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3917         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3918         Reported by Matthias Bolte.
3919
3920 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3921
3922         test-intprops: disable -Wtype-limits diagnostics
3923         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3924         diagnostics.  Otherwise, the integer overflow macros generate many
3925         diagnostics.  Reported by Jim Meyering in
3926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3927
3928         intprops: shorten, to pacify gcc -Woverlength-strings
3929         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3930         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3931         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3932         likely to run afoul of C compiler limits for string constant lengths.
3933         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3934
3935 2011-05-24  Eric Blake  <eblake@redhat.com>
3936
3937         docs: document recently fixed glibc printf bug
3938         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3939         * doc/posix-functions/printf.texi (printf): Likewise.
3940         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3941         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3942
3943         closein-tests: convert to init.sh
3944         * modules/closein-tests (Files): Add init.sh
3945         * tests/test-closein.sh Use it.
3946
3947         yesno-tests: convert to init.sh
3948         * modules/yesno-tests (Files): Add init.sh.
3949         * tests/test-yesno.sh: Use it.
3950
3951         atexit-tests: ensure reliable exit status
3952         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3953         Reported by Bruno Haible.
3954
3955 2011-05-24  Bruno Haible  <bruno@clisp.org>
3956
3957         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3959         gl_PREREQ_STRERROR_R invocations from here...
3960         * modules/strerror_r-posix (configure.ac): ... to here.
3961
3962 2011-05-24  Eric Blake  <eblake@redhat.com>
3963
3964         strerror_r: fix missing header
3965         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3966
3967         strerror_r: fix AIX test failures
3968         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3969         ERANGE failure.
3970
3971         strerror_r: fix Solaris test failures
3972         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3973         failures.
3974         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3975
3976         strerror_r: enforce POSIX recommendations
3977         * lib/strerror_r.c (safe_copy): New helper method.
3978         (strerror_r): Guarantee a non-empty string.
3979         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3980         recent POSIX rulings and to match our strerror guarantees.
3981         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3982
3983 2011-05-24  Jim Meyering  <meyering@redhat.com>
3984
3985         test-perror2.c: avoid warning about unused variable
3986         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3987
3988 2011-05-24  Eric Blake  <eblake@redhat.com>
3989
3990         perror: avoid spurious test failure on HP-UX
3991         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3992
3993         tests: fix logic bug in init.sh
3994         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3995         shell.
3996
3997 2011-05-24  Jim Meyering  <meyering@redhat.com>
3998
3999         utimensat: do not reference an out-of-scope buffer
4000         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4001         declared in an inner scope, yet "times" would be dereferenced outside
4002         the scope in which "ts" was valid.
4003         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4004         of ts[2] "out/up", so that the use of aliased "times" (via
4005         "times = ts;") does not end up referencing an out-of-scope "ts"
4006
4007         opendir-safer.c: don't clobber errno; don't close negative FD
4008         * lib/opendir-safer.c (opendir_safer):
4009         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4010         file descriptor, and more importantly, don't clobber the
4011         offending errno value with EINVAL.  Before, upon failure
4012         of dup_safer, we would pass the negative file descriptor to
4013         fdopendir, which would clobber errno.
4014
4015 2011-05-23  Bruno Haible  <bruno@clisp.org>
4016
4017         idcache: Fix module description.
4018         * modules/idcache (Include): Set to "idcache.h".
4019
4020 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4021
4022         gnulib-tool: fix portability problem with MacOS sed
4023         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4024         before the "}".  Problem reported by Leo in
4025         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4026         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4027         sed_extract_condition1, sed_extract_condition2.
4028
4029 2011-05-23  Bruno Haible  <bruno@clisp.org>
4030
4031         hash: Simplify autoconf macro.
4032         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4033
4034 2011-05-23  Bruno Haible  <bruno@clisp.org>
4035
4036         getugroups: Fix module description.
4037         * modules/getugroups (Include): Set to "getugroups.h".
4038
4039 2011-05-23  Bruno Haible  <bruno@clisp.org>
4040
4041         linkat: Simplify autoconf macro.
4042         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4043
4044 2011-05-23  Bruno Haible  <bruno@clisp.org>
4045             Eric Blake  <eblake@redhat.com>
4046
4047         linkat, renameat: Update dependencies.
4048         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4049         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4050         symlinkat.
4051
4052 2011-05-23  Jim Meyering  <meyering@redhat.com>
4053
4054         maint.mk: more tight_scope improvements
4055         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4056         (_gl_TS_headers): Define only in if-0'd block.
4057         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4058         sometimes we must *not* use it.  Adjust uses accordingly.
4059         (sc_tight_scope): Use much simpler grep-based test to determine
4060         whether we skip this rule.
4061
4062         maint.mk: generalize/improve the tight-scope rule
4063         * top/maint.mk: Emit a warning when the test is skipped.
4064         (_gl_TS_dir): Add $(srcdir)/ prefix.
4065         (_gl_TS_function_match): Simplify, rather than trying
4066         to enumerate common types.  Otherwise, it would fail to match an
4067         "extern unsigned char const *" declaration in idutils.
4068         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4069         a way to support use of that type of macro.
4070         (_gl_TS_var_match): Simplify regexp.
4071         (_gl_TS_obj_files): New configurable variable.
4072         (_gl_TS_headers): Likewise.
4073
4074 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4075
4076         verify: fix bug when gnulib <assert.h> is also included
4077         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4078         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4079         Perhaps there's a better way, but this fixes the immediate problem.
4080         Problem reported by Bruno Haible in
4081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4082
4083 2011-05-22  Bruno Haible  <bruno@clisp.org>
4084
4085         xgetcwd: Simplify autoconf macro.
4086         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4087
4088 2011-05-22  Bruno Haible  <bruno@clisp.org>
4089
4090         New module 'mktime-internal'.
4091         * modules/mktime-internal: New file.
4092         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4093         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4094         mktime_internal as a C macro if libc has __mktime_internal.
4095         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4096         conditions.
4097         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4098
4099 2011-05-22  Bruno Haible  <bruno@clisp.org>
4100
4101         timegm: Correct mktime replacement statements.
4102         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4103         defining mktime as a C macro. This completes a 2009-07-28 commit.
4104
4105 2011-05-22  Bruno Haible  <bruno@clisp.org>
4106
4107         timegm: Simplify autoconf macro.
4108         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4109
4110 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4111
4112         clock-time: change to LGPLv2+.
4113         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4114         BSD-like but we have no mark for that; this is good enough for now.
4115
4116 2011-05-21  Bruno Haible  <bruno@clisp.org>
4117
4118         strerror_r: Fix comments.
4119         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4120
4121 2011-05-21  Bruno Haible  <bruno@clisp.org>
4122
4123         relocatable-prog-wrapper: Fix possible link error.
4124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4125         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4126         (gl_FUNC_SETENV): ... to here.
4127         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4128         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4129
4130 2011-05-21  Bruno Haible  <bruno@clisp.org>
4131
4132         relocatable-prog-wrapper: Assume strerror() exists.
4133         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4134         m4/strerror.m4.
4135         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4136         * lib/relocwrapper.c: Remove mention of strerror module.
4137         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4139         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4140         C macro.
4141
4142 2011-05-21  Bruno Haible  <bruno@clisp.org>
4143
4144         select: Simplify replacement idiom.
4145         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4146         Win32 platforms.
4147         * lib/sys_select.in.h (select): Simplify accordingly.
4148         * modules/select (Depends-on): Likewise.
4149
4150 2011-05-21  Bruno Haible  <bruno@clisp.org>
4151
4152         mkdir-p: Simplify autoconf macro.
4153         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4154         gl_FUNC_LCHOWN.
4155
4156 2011-05-21  Eric Blake  <eblake@redhat.com>
4157
4158         strerror_r: avoid clobbering strerror on cygwin
4159         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4160         fall back instead to sys_errlist.
4161         * modules/strerror (configure.ac): Add witness.
4162         * tests/test-strerror_r.c (main): Enhance test.
4163         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4164         * tests/test-perror2.c (main): Free memory before exit.
4165
4166 2011-05-21  Bruno Haible  <bruno@clisp.org>
4167
4168         mkdtemp: Use gnulib naming conventions.
4169         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4170         * modules/mkdtemp (configure.ac): Update.
4171
4172 2011-05-20  Eric Blake  <eblake@redhat.com>
4173
4174         strerror_r: avoid corrupting errno on Solaris
4175         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4176         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4177
4178         strerror_r: avoid compiler warning
4179         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4180
4181         strerror_r: simplify AIX code
4182         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4183
4184         test-perror: avoid spurious failure on FreeBSD
4185         * modules/perror-tests (Depends-on): Add strerror, now that
4186         strerror_r no longer pulls it in.
4187
4188 2011-05-20  Bruno Haible  <bruno@clisp.org>
4189
4190         strerror_r-posix: Remove unused dependencies.
4191         * modules/strerror_r-posix (Depends-on): Remove strerror.
4192         Reported by Eric Blake.
4193
4194 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         intprops: remove assumption about A|B representation
4197         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4198         is a valid integer if both A and B are.  Although this is true for
4199         all known practical hosts, the C standard doesn't guarantee it,
4200         and the code need not assume it.  Also, this change may work around
4201         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4203
4204 2011-05-20  Eric Blake  <eblake@redhat.com>
4205
4206         perror: work around FreeBSD bug
4207         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4208         is broken.  Move AC_LIBOBJ...
4209         * modules/perror (configure.ac): Here.
4210         * doc/posix-functions/perror.texi (perror): Document this.
4211         * tests/test-perror2.c (main): Enhance test.
4212
4213         test-perror: check for strerror interactions
4214         * tests/macros.h (STREQ): Add macro.
4215         * modules/perror-tests (Files): Add second test.
4216         * tests/test-perror2.c (main): New file.
4217         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4218
4219         test-perror: rewrite to use init script
4220         * modules/perror-tests (Files): Add init.sh.
4221         * tests/test-perror.sh: Use temporary directory.
4222
4223 2011-05-20  Jim Meyering  <meyering@redhat.com>
4224
4225         maint: replace misused "a" with "an"
4226         * doc/intprops.texi: "a integer"
4227         * doc/regex.texi: "a explanation"
4228         * lib/alignof.h: "a object"
4229         * lib/argmatch.h: "a explanation"
4230         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4231         * lib/stdint.in.h: "a integer"
4232         * lib/userspec.c: "a owner"
4233         * doc/gnulib.texi: Fix "a idea", and reword.
4234
4235 2011-05-19  Jim Meyering  <meyering@redhat.com>
4236
4237         maint: correct misuse of "a" and "an"
4238         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4239         * lib/argp-help.c: "an docum...": s/an/a/
4240         * lib/argp-parse.c: "An vector": s/An/A/
4241         * lib/execute.c: "an native": s/an/a/
4242         * lib/spawn-pipe.c: Likewise.
4243         * lib/gc.h: "an Gc_rc": s/an/a/
4244         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4245         * lib/fts.c: "an stat.st_dev": s/an/a/
4246
4247 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4248
4249         intprops-tests: work around HP-UX 11.23 cc bug with constants
4250         * tests/test-intprops.c (VERIFY): New macro.
4251         (main): Use it, instead of verify, to work around the compiler bug; see
4252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4253
4254         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4255         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4256         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4257         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4258         (_GL_REMAINDER_OVERFLOW): Use it.
4259
4260         intprops-tests: revert unsigned part of previous change
4261         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4262         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4263         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4265
4266 2011-05-19  Bruno Haible  <bruno@clisp.org>
4267
4268         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4269         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4270         strerror_r() returned without filling the buffer.
4271         Reported by Eric Blake.
4272
4273 2011-05-19  Eric Blake  <eblake@redhat.com>
4274
4275         strerror_r: guarantee unchanged errno
4276         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4277         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4278         failure.
4279         * tests/test-strerror_r.c (main): Enhance test.
4280
4281 2011-05-19  Bruno Haible  <bruno@clisp.org>
4282
4283         strerror_r: Reorder #if blocks.
4284         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4285         for consistency with the previous commit.
4286
4287 2011-05-19  Bruno Haible  <bruno@clisp.org>
4288
4289         perror: Avoid clobbering the strerror buffer when possible.
4290         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4291         * lib/strerror.c: Include it.
4292         * modules/strerror (Files): Add lib/strerror-impl.h.
4293         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4294         (my_strerror): New function, defined through lib/strerror-impl.h.
4295         (perror): Use it instead of strerror.
4296         * modules/perror (Files): Add lib/strerror-impl.h.
4297         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4298
4299 2011-05-19  Eric Blake  <eblake@redhat.com>
4300
4301         strerror_r: fix on newer cygwin
4302         * lib/strerror_r.c (strerror_r): Cygwin now has
4303         __xpg_strerror_r, use it.
4304
4305 2011-05-19  Bruno Haible  <bruno@clisp.org>
4306
4307         strerror_r: Avoid clobbering the strerror buffer when possible.
4308         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4309         (sys_nerr, sys_errlist): New declarations.
4310         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4311         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4312         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4313
4314 2011-05-19  Bruno Haible  <bruno@clisp.org>
4315
4316         strerror_r: Fix test failure on mingw.
4317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4318         EXTEND_STRERROR_R.
4319         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4320         macros from errno.in.h instead.
4321
4322 2011-05-19  Eric Blake  <eblake@redhat.com>
4323
4324         strerror: relax test for Solaris
4325         * tests/test-strerror.c (main): Permit Solaris behavior.
4326         * tests/test-strerror_r.c (main): Likewise.
4327
4328         strerror: enforce POSIX ruling on strerror(0)
4329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4331         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4332         * doc/posix-functions/strerror.texi (strerror): Document it.
4333         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4334         * tests/test-strerror.c (main): Strengthen test.
4335         * tests/test-strerror_r.c (main): Likewise.
4336
4337 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         intprop-tests: port to older and more-pedantic compilers
4340         * modules/intprops-tests (Files): Add tests/macros.h.
4341         * tests/test-intprops.c: Include macros.h.
4342         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4343         it's no longer documented to expand to an integer constant expression.
4344         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4345         argument is floating point, as it's no longer documented to expand
4346         to an integer constant expression in that case.
4347         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4348         compiler bugs reported by Bruno Haible.  See
4349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4350         (U0, U1): New constants, to work around the same bugs.  Also,
4351         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4352
4353         intprops: work around C compiler bugs
4354         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4355         bug in Sun C 5.11 2010/08/13 and other compilers; see
4356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4357
4358         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4359         * doc/intprops.texi (Integer Type Determination): Fix
4360         documentation for TYPE_IS_INTEGER: it returns an constant
4361         expression, not an integer constant expression.  Fix doc for
4362         TYPE_SIGNED: it returns an integer constant expression only if its
4363         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4364         hardly worth documented that way....)
4365
4366 2011-05-18  Bruno Haible  <bruno@clisp.org>
4367
4368         strerror_r: Avoid clobbering the strerror buffer when possible.
4369         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4370         Handle gnulib defined errno values here. When strerror() returns NULL
4371         or an empty string, return EINVAL.
4372         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4373         gnulib defined errno values here.
4374         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4375
4376 2011-05-18  Eric Blake  <eblake@redhat.com>
4377
4378         fnmatch: avoid compiler warning
4379         * lib/fnmatch_loop.c (FCT): Use correct type.
4380         Reported by Matthias Bolte.
4381
4382 2011-05-13  Jim Meyering  <meyering@redhat.com>
4383
4384         maint.mk: three new prohibit_<HDR>_without_use rules
4385         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4386         (sc_prohibit_stdio-safer_without_use): Likewise.
4387         (sc_prohibit_xfreopen_without_use): Likewise.
4388
4389 2011-05-17  Jim Meyering  <meyering@redhat.com>
4390
4391         announce-gen: fail if the NEWS delta is empty
4392         If there's nothing noteworthy in NEWS, then either you forgot
4393         or you shouldn't be releasing.
4394         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4395
4396 2011-05-17  Pádraig Brady <P@draigBrady.com>
4397
4398         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4399         reserved symbols starting with double underscore from the check.
4400
4401 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4402
4403         intprops: add doc
4404         * doc/intprops.texi: New file, documenting intprops.
4405         * doc/gnulib.texi (Particular Modules): Include it.
4406
4407         verify: add doc to gnulib manual and fix example
4408         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4409         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4410         (Compile-time Assertions): Fix example so it can't overflow.
4411
4412 2011-05-17  Jim Meyering  <meyering@redhat.com>
4413
4414         warnings.m4: don't usurp save_CPPFLAGS variable name
4415         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4416
4417         doc: fix typo
4418         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4419
4420 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4421             Bruno Haible  <bruno@clisp.org>
4422
4423         doc: Tweak recent change.
4424         * README (Portability guidelines): Tweak new text.
4425         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4426         Interix 6.1.
4427
4428 2011-05-16  Eric Blake  <eblake@redhat.com>
4429
4430         inttypes: avoid autoconf warning
4431         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4432         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4433
4434 2011-05-16  Sam Steingold <sds@gnu.org>
4435         and Eric Blake  <eblake@redhat.com>
4436
4437         vc-list-files: accept multiple directory operands
4438         * build-aux/vc-list-files: Iterate over all remaining operands.
4439
4440 2011-05-16  Bruno Haible  <bruno@clisp.org>
4441
4442         Fix confusion regarding deprecated modules.
4443         * modules/calloc (Status, Notice): Mark module as deprecated, not
4444         obsolete.
4445         * modules/fnmatch-posix (Status, Notice): Likewise.
4446         * modules/getdate (Status, Notice): Likewise.
4447         * modules/getopt (Status, Notice): Likewise.
4448         * modules/malloc (Status, Notice): Likewise.
4449         * modules/pipe (Status, Notice): Likewise.
4450         * modules/realloc (Status, Notice): Likewise.
4451         * modules/rename-dest-slash (Status, Notice): Likewise.
4452         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4453         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4454         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4455         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4456         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4457
4458 2011-05-16  Bruno Haible  <bruno@clisp.org>
4459
4460         doc: List the target platforms.
4461         * doc/gnulib-intro.texi (Target Platforms): New section.
4462         * doc/gnulib.texi (Introduction): Update menu.
4463         * README (Portability guidelines): Refer to the new section. Update
4464         statement about oldest supported environment. Remove rationale why
4465         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4466         unportable C89 function.
4467         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4468         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4469
4470 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4471
4472         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4473
4474 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4475
4476         intprops-tests: new module
4477         * modules/intprops-tests, tests/test-intprops.c: New files.
4478
4479         intprops: add safe, portable integer overflow checking
4480         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4481         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4482         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4483         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4484         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4485         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4486         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4487         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4488         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4489         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4490         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4491
4492 2011-05-12  James Youngman  <jay@gnu.org>
4493
4494         Add a test for glibc's Bugzilla bug #12378.
4495         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4496         doesn't allow the literal matching of a lone "[" (which is
4497         required by POSIX).
4498         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4499
4500 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4501
4502         Sync glibc change fixing Bugzilla bug #12378.
4503         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4504         beginning and fall back to matching as normal character if the
4505         string ends before the matching ']' is found.  This is what POSIX
4506         requires.
4507
4508 2011-05-13  Eric Blake  <eblake@redhat.com>
4509
4510         getcwd-lgpl: relax test for FreeBSD
4511         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4512         issue.
4513         * tests/test-getcwd-lgpl.c (main): Relax test.
4514         Reported by Matthias Bolte.
4515
4516 2011-05-11  Eric Blake  <eblake@redhat.com>
4517
4518         test-fflush: silence compiler warning
4519         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4520
4521 2011-05-11  Bruno Haible  <bruno@clisp.org>
4522
4523         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4524         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4525         * modules/canonicalize (Depends-on): Add 'nocrash'.
4526         * modules/canonicalize-lgpl (Depends-on): Likewise.
4527         * doc/posix-functions/realpath.texi: Update platforms list.
4528         Reported by Ryan Schmidt <ryandesign@macports.org>.
4529
4530 2011-05-11  Bruno Haible  <bruno@clisp.org>
4531
4532         group-member: Declare function in <unistd.h>.
4533         * lib/unistd.in.h (group_member): New declaration.
4534         * lib/group-member.h: Remove file.
4535         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4536         * tests/test-unistd-c++.cc: Check signature of group_member.
4537         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4538         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4539         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4540         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4541         HAVE_GROUP_MEMBER.
4542         * modules/group-member (Files): Remove lib/group-member.h.
4543         (Depends-on): Add unistd. Specify conditions.
4544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4545         (Include): Change to <unistd.h>.
4546         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4547         HAVE_GROUP_MEMBER.
4548         * NEWS: Mention the change.
4549         * lib/euidaccess.c: Don't include group-member.h.
4550
4551 2011-05-11  Bruno Haible  <bruno@clisp.org>
4552
4553         group-member: Document module.
4554         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4555         module.
4556
4557 2011-05-11  Bruno Haible  <bruno@clisp.org>
4558
4559         fclose: Fix mistake earlier today.
4560         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4561
4562 2011-05-11  Eric Blake  <eblake@redhat.com>
4563
4564         fclose: preserve fflush errors
4565         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4566         Reported by Jim Meyering.
4567
4568         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4569         * build-aux/bootstrap (check_versions): When no specific version
4570         is required, merely check that the app produces an exit status
4571         that indicates its existence.
4572
4573         maint.mk: drop redundant check
4574         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4575         the same but better.
4576
4577 2011-05-11  Bruno Haible  <bruno@clisp.org>
4578
4579         fclose: Fix possible link error.
4580         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4581         unregister_shadow_fd. Improve comments.
4582         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4583         Eric Blake.
4584
4585 2011-05-11  Jim Meyering  <meyering@redhat.com>
4586
4587         maint.mk: improve "can not" detection and generalize rule name
4588         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4589         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4590         Use the same technique as in sc_prohibit_doubled_word, so that
4591         we recognize "can not" also when the words are separated by a newline.
4592         Suggested by Eric Blake.
4593         (perl_filename_lineno_text_): Define.  Factored out of...
4594         (prohibit_doubled_word_): ...here.  Use the new definition.
4595         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4596         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4597         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4598
4599 2011-05-10  Eric Blake  <eblake@redhat.com>
4600
4601         fclose: avoid double close race when possible
4602         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4603         all but WINDOWS_SOCKETS.
4604
4605 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4606
4607         openat: correct new comment
4608         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4609
4610 2011-05-10  Jim Meyering  <meyering@redhat.com>
4611
4612         openat: add comments
4613         * lib/openat-proc.c (openat_proc_name): Add comments,
4614         mostly from Eric Blake.
4615
4616 2011-05-09  Eric Blake  <eblake@redhat.com>
4617
4618         openat: reduce syscalls in first probe of /proc
4619         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4620         be a directory.  Simplify the probe for .. bugs.
4621         * modules/openat (Depends-on): Drop same-inode.
4622         Reported by Bastien ROUCARIES.
4623
4624 2011-05-09  Jim Meyering  <meyering@redhat.com>
4625
4626         maint.mk: change semantics/name of tight_scope variables
4627         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4628         Rename variables to align with semantics that make them more useful.
4629
4630         maint.mk: tweak new rule's name not to impinge
4631         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4632         (sc_tight_scope): Use new rule name rather than $@-0.
4633
4634         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4635         * top/maint.mk (sc_tight_scope): New rule.
4636         (sc_tight_scope-0): New rule, ifdef'd out.
4637         (_gl_TS_dir): Default.
4638         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4639         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4640
4641 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4642
4643         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4644         Haible <bruno@clisp.org>.
4645
4646 2011-05-08  Bruno Haible  <bruno@clisp.org>
4647
4648         Comments.
4649         * m4/isnanf.m4: Add comment.
4650         * m4/isnanl.m4: Likewise.
4651
4652 2011-05-08  Bruno Haible  <bruno@clisp.org>
4653
4654         glob: Remove obsolete macro.
4655         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4656
4657 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4658
4659         intprops: Sun C 5.11 supports __typeof__
4660         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4661         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4662         which is new.
4663         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4664
4665         intprops: switch to usual gnulib indenting and naming
4666         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4667         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4668
4669         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4670
4671 2011-05-08  Jim Meyering  <meyering@redhat.com>
4672
4673         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4674         * top/maint.mk (release-prep): Use make's --no-print-directory
4675         option when generating the announcement.  This eliminates the
4676         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4677         generated announcement template.
4678
4679 2011-05-08  Bruno Haible  <bruno@clisp.org>
4680
4681         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4682         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4683         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4684
4685 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         ignore-value, verify: Omit include files from lib_SOURCES.
4688         * modules/ignore-value, modules/verify (Makefile.am):
4689         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4690         that leads Automake to duplicate use of am__objects_... variables
4691         in Makefile.in.  See
4692         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4693
4694 2011-05-07  Bruno Haible  <bruno@clisp.org>
4695
4696         fclose: Simplify autoconf macro.
4697         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4698         defined.
4699
4700 2011-05-07  Bruno Haible  <bruno@clisp.org>
4701
4702         canonicalize-lgpl: Fix autoconf macro ordering bug.
4703         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4704         gl_STDLIB_H_DEFAULTS.
4705
4706 2011-05-06  Eric Blake  <eblake@redhat.com>
4707
4708         maintainer-makefile: make sc_po_check easier to tune
4709         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4710         to probe for strings, such as an alternate location for gnulib.
4711
4712         fclose: guarantee behavior on seekable stdin
4713         * modules/fclose (Depends-on): Add fflush.
4714         * doc/posix-functions/fclose.texi (fclose): Document this.
4715         * tests/test-fclose.c (main): Make test for this unconditional.
4716
4717 2011-05-06  Bruno Haible  <bruno@clisp.org>
4718
4719         fflush, fpurge: Relicense under LGPLv2+.
4720         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4721         * modules/fpurge (License): Likewise.
4722         With permission from Eric Blake and Jim Meyering.
4723         Suggested by Eric Blake.
4724
4725 2011-05-06  Karl Berry  <karl@gnu.org>
4726
4727         * MODULES.html.sh (func_all_modules): remove exit.
4728
4729 2011-05-06  Jim Meyering  <meyering@redhat.com>
4730
4731         maint.mk: use info-gnu@ as the default only for a stable release
4732         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4733         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4734         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4736
4737 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4738
4739         assert-h: new module, which supports C1X-style static_assert
4740         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4741         * lib/verify.h: Revamp so that this can be copied into assert.h,
4742         while retaining the ability to use it standalone as before.
4743         Rename private identifiers so as not to encroach on the
4744         standard C namespace, since this is now used by assert.h.
4745         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4746         the old verify_true.
4747         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4748         the old verify_true.  Use _GL_VERIFY_TYPE.
4749         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4750         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4751         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4752         defined when this file is copied into the replacement assert.h.
4753         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4754         and _Static_assert is not built in.
4755         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4756         defined, and use the new macros mentioned above.
4757         * doc/posix-headers/assert.texi: Document this.
4758
4759 2011-05-05  Bruno Haible  <bruno@clisp.org>
4760
4761         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4762         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4763         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4764         gl_REPLACE_FCLOSE here.
4765         * modules/fflush (Depends-on): Remove fclose.
4766         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4767         combination with module 'fclose'.
4768
4769 2011-05-05  Bruno Haible  <bruno@clisp.org>
4770
4771         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4772         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4773         gl_FUNC_FFLUSH.
4774         (gl_FUNC_FFLUSH): Use it.
4775         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4777         gl_REPLACE_FSEEKO here.
4778
4779 2011-05-05  Bruno Haible  <bruno@clisp.org>
4780
4781         tzset: Relicense under LGPL.
4782         * modules/tzset (License): Change to LGPL.
4783         No agreement needed; it's a no-op.
4784
4785         strtoimax, strtoumax: Relicense under LGPL.
4786         * modules/strtoimax (License): Change to LGPL.
4787         * modules/strtoumax (License): Likewise.
4788         With permission from Jim Meyering, Paul Eggert:
4789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4791
4792         getgroups: Relicense under LGPL.
4793         * modules/getgroups (License): Change to LGPL.
4794         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4798
4799         nanosleep: Relicense under LGPL.
4800         * modules/nanosleep (License): Change to LGPL.
4801         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4802         Haible:
4803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4807
4808         futimens: Relicense under LGPL.
4809         * modules/futimens (License): Change to LGPL.
4810         With permission from Eric Blake:
4811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4812
4813         fflush: Relicense under LGPL.
4814         * modules/fflush (License): Change to LGPL.
4815         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4819
4820         tmpfile: Relicense under LGPL.
4821         * modules/tmpfile (License): Change to LGPL.
4822         With permission from Ben Pfaff:
4823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4824
4825         isfinite: Relicense under LGPL.
4826         * modules/isfinite (License): Change to LGPL.
4827         With permission from Ben Pfaff, Bruno Haible:
4828         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4830
4831         acosl..tanl: Relicense under LGPL.
4832         * modules/acosl (License): Change to LGPL.
4833         * modules/asinl (License): Likewise.
4834         * modules/atanl (License): Likewise.
4835         * modules/cosl (License): Likewise.
4836         * modules/expl (License): Likewise.
4837         * modules/logl (License): Likewise.
4838         * modules/sinl (License): Likewise.
4839         * modules/sqrtl (License): Likewise.
4840         * modules/tanl (License): Likewise.
4841         Source code originally from glibc and Paolo Bonzini. Agreements:
4842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4844
4845 2011-05-05  Bruno Haible  <bruno@clisp.org>
4846
4847         signal: Define sighandler_t.
4848         * lib/signal.in.h (sighandler_t): New type.
4849         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4850         whether sighandler_t is defined.
4851         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4852         * modules/signal (Depends-on): Add extensions.
4853         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4854         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4855         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4856
4857 2011-05-05  Eric Blake  <eblake@redhat.com>
4858
4859         maint: remove useless REPLACE_*_H macros
4860         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4861         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4862         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4863         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4864         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4865         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4866         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4867         * m4/btowc.m4: Update callers.
4868         * m4/dirfd.m4: Likewise.
4869         * m4/duplocale.m4: Likewise.
4870         * m4/fchdir.m4: Likewise.
4871         * m4/fdopendir.m4: Likewise.
4872         * m4/inet_ntop.m4: Likewise.
4873         * m4/inet_pton.m4: Likewise.
4874         * m4/ioctl.m4: Likewise.
4875         * m4/mbrlen.m4: Likewise.
4876         * m4/mbrtowc.m4: Likewise.
4877         * m4/mbsinit.m4: Likewise.
4878         * m4/mbsnrtowcs.m4: Likewise.
4879         * m4/mbsrtowcs.m4: Likewise.
4880         * m4/poll.m4: Likewise.
4881         * m4/setlocale.m4: Likewise.
4882         * m4/wcrtomb.m4: Likewise.
4883         * m4/wcsnrtombs.m4: Likewise.
4884         * m4/wcsrtombs.m4: Likewise.
4885         * m4/wctob.m4: Likewise.
4886         * m4/wcwidth.m4: Likewise.
4887         * modules/posix_spawn: Likewise.
4888         * modules/posix_spawn_file_actions_addclose: Likewise.
4889         * modules/posix_spawn_file_actions_adddup2: Likewise.
4890         * modules/posix_spawn_file_actions_addopen: Likewise.
4891         * modules/posix_spawn_file_actions_destroy: Likewise.
4892         * modules/posix_spawn_file_actions_init: Likewise.
4893         * modules/posix_spawnattr_destroy: Likewise.
4894         * modules/posix_spawnattr_getflags: Likewise.
4895         * modules/posix_spawnattr_getpgroup: Likewise.
4896         * modules/posix_spawnattr_getschedparam: Likewise.
4897         * modules/posix_spawnattr_getschedpolicy: Likewise.
4898         * modules/posix_spawnattr_getsigdefault: Likewise.
4899         * modules/posix_spawnattr_getsigmask: Likewise.
4900         * modules/posix_spawnattr_init: Likewise.
4901         * modules/posix_spawnattr_setflags: Likewise.
4902         * modules/posix_spawnattr_setpgroup: Likewise.
4903         * modules/posix_spawnattr_setschedparam: Likewise.
4904         * modules/posix_spawnattr_setschedpolicy: Likewise.
4905         * modules/posix_spawnattr_setsigdefault: Likewise.
4906         * modules/posix_spawnattr_setsigmask: Likewise.
4907         * modules/posix_spawnp: Likewise.
4908
4909 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4910
4911         Add option to do-release-commit-and-tag to specify branch.
4912         * build-aux/do-release-commit-and-tag: Add --branch.
4913
4914 2011-05-03  Bruno Haible  <bruno@clisp.org>
4915
4916         Avoid unnecessary compilation units, through conditional dependencies.
4917         * modules/accept (Depends-on): Add conditions to the dependencies.
4918         * modules/acosl (Depends-on): Likewise.
4919         * modules/argz (Depends-on): Likewise.
4920         * modules/asinl (Depends-on): Likewise.
4921         * modules/atanl (Depends-on): Likewise.
4922         * modules/atoll (Depends-on): Likewise.
4923         * modules/bind (Depends-on): Likewise.
4924         * modules/btowc (Depends-on): Likewise.
4925         * modules/canonicalize-lgpl (Depends-on): Likewise.
4926         * modules/ceil (Depends-on): Likewise.
4927         * modules/ceilf (Depends-on): Likewise.
4928         * modules/ceill (Depends-on): Likewise.
4929         * modules/chdir-long (Depends-on): Likewise.
4930         * modules/chown (Depends-on): Likewise.
4931         * modules/close (Depends-on): Likewise.
4932         * modules/connect (Depends-on): Likewise.
4933         * modules/cosl (Depends-on): Likewise.
4934         * modules/dirfd (Depends-on): Likewise.
4935         * modules/dprintf (Depends-on): Likewise.
4936         * modules/dprintf-posix (Depends-on): Likewise.
4937         * modules/error (Depends-on): Likewise.
4938         * modules/euidaccess (Depends-on): Likewise.
4939         * modules/expl (Depends-on): Likewise.
4940         * modules/faccessat (Depends-on): Likewise.
4941         * modules/fchdir (Depends-on): Likewise.
4942         * modules/fclose (Depends-on): Likewise.
4943         * modules/fcntl (Depends-on): Likewise.
4944         * modules/fdopendir (Depends-on): Likewise.
4945         * modules/fflush (Depends-on): Likewise.
4946         * modules/floor (Depends-on): Likewise.
4947         * modules/floorf (Depends-on): Likewise.
4948         * modules/floorl (Depends-on): Likewise.
4949         * modules/fnmatch (Depends-on): Likewise.
4950         * modules/fopen (Depends-on): Likewise.
4951         * modules/fprintf-posix (Depends-on): Likewise.
4952         * modules/frexp (Depends-on): Likewise.
4953         * modules/frexp-nolibm (Depends-on): Likewise.
4954         * modules/frexpl (Depends-on): Likewise.
4955         * modules/frexpl-nolibm (Depends-on): Likewise.
4956         * modules/fseek (Depends-on): Likewise.
4957         * modules/fsusage (Depends-on): Likewise.
4958         * modules/ftell (Depends-on): Likewise.
4959         * modules/ftello (Depends-on): Likewise.
4960         * modules/futimens (Depends-on): Likewise.
4961         * modules/getcwd (Depends-on): Likewise.
4962         * modules/getcwd-lgpl (Depends-on): Likewise.
4963         * modules/getdelim (Depends-on): Likewise.
4964         * modules/getdomainname (Depends-on): Likewise.
4965         * modules/getgroups (Depends-on): Likewise.
4966         * modules/gethostname (Depends-on): Likewise.
4967         * modules/getline (Depends-on): Likewise.
4968         * modules/getlogin_r (Depends-on): Likewise.
4969         * modules/getopt-posix (Depends-on): Likewise.
4970         * modules/getpeername (Depends-on): Likewise.
4971         * modules/getsockname (Depends-on): Likewise.
4972         * modules/getsockopt (Depends-on): Likewise.
4973         * modules/getsubopt (Depends-on): Likewise.
4974         * modules/getusershell (Depends-on): Likewise.
4975         * modules/glob (Depends-on): Likewise.
4976         * modules/grantpt (Depends-on): Likewise.
4977         * modules/iconv_open (Depends-on): Likewise.
4978         * modules/iconv_open-utf (Depends-on): Likewise.
4979         * modules/inet_ntop (Depends-on): Likewise.
4980         * modules/inet_pton (Depends-on): Likewise.
4981         * modules/ioctl (Depends-on): Likewise.
4982         * modules/isapipe (Depends-on): Likewise.
4983         * modules/isfinite (Depends-on): Likewise.
4984         * modules/isinf (Depends-on): Likewise.
4985         * modules/lchown (Depends-on): Likewise.
4986         * modules/ldexpl (Depends-on): Likewise.
4987         * modules/link (Depends-on): Likewise.
4988         * modules/linkat (Depends-on): Likewise.
4989         * modules/listen (Depends-on): Likewise.
4990         * modules/logl (Depends-on): Likewise.
4991         * modules/lstat (Depends-on): Likewise.
4992         * modules/mbrlen (Depends-on): Likewise.
4993         * modules/mbrtowc (Depends-on): Likewise.
4994         * modules/mbsinit (Depends-on): Likewise.
4995         * modules/mbsnrtowcs (Depends-on): Likewise.
4996         * modules/mbsrtowcs (Depends-on): Likewise.
4997         * modules/mbtowc (Depends-on): Likewise.
4998         * modules/memcmp (Depends-on): Likewise.
4999         * modules/mkdir (Depends-on): Likewise.
5000         * modules/mkdtemp (Depends-on): Likewise.
5001         * modules/mkfifo (Depends-on): Likewise.
5002         * modules/mkfifoat (Depends-on): Likewise.
5003         * modules/mknod (Depends-on): Likewise.
5004         * modules/mkostemp (Depends-on): Likewise.
5005         * modules/mkostemps (Depends-on): Likewise.
5006         * modules/mkstemp (Depends-on): Likewise.
5007         * modules/mkstemps (Depends-on): Likewise.
5008         * modules/mktime (Depends-on): Likewise.
5009         * modules/nanosleep (Depends-on): Likewise.
5010         * modules/open (Depends-on): Likewise.
5011         * modules/openat (Depends-on): Likewise.
5012         * modules/perror (Depends-on): Likewise.
5013         * modules/poll (Depends-on): Likewise.
5014         * modules/popen (Depends-on): Likewise.
5015         * modules/posix_spawn (Depends-on): Likewise.
5016         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5017         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5018         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5019         * modules/posix_spawnp (Depends-on): Likewise.
5020         * modules/pread (Depends-on): Likewise.
5021         * modules/printf-posix (Depends-on): Likewise.
5022         * modules/ptsname (Depends-on): Likewise.
5023         * modules/putenv (Depends-on): Likewise.
5024         * modules/pwrite (Depends-on): Likewise.
5025         * modules/readline (Depends-on): Likewise.
5026         * modules/readlink (Depends-on): Likewise.
5027         * modules/readlinkat (Depends-on): Likewise.
5028         * modules/recv (Depends-on): Likewise.
5029         * modules/recvfrom (Depends-on): Likewise.
5030         * modules/regex (Depends-on): Likewise.
5031         * modules/remove (Depends-on): Likewise.
5032         * modules/rename (Depends-on): Likewise.
5033         * modules/renameat (Depends-on): Likewise.
5034         * modules/rmdir (Depends-on): Likewise.
5035         * modules/round (Depends-on): Likewise.
5036         * modules/roundf (Depends-on): Likewise.
5037         * modules/roundl (Depends-on): Likewise.
5038         * modules/rpmatch (Depends-on): Likewise.
5039         * modules/select (Depends-on): Likewise.
5040         * modules/send (Depends-on): Likewise.
5041         * modules/sendto (Depends-on): Likewise.
5042         * modules/setenv (Depends-on): Likewise.
5043         * modules/setlocale (Depends-on): Likewise.
5044         * modules/setsockopt (Depends-on): Likewise.
5045         * modules/shutdown (Depends-on): Likewise.
5046         * modules/sigaction (Depends-on): Likewise.
5047         * modules/signbit (Depends-on): Likewise.
5048         * modules/sigprocmask (Depends-on): Likewise.
5049         * modules/sinl (Depends-on): Likewise.
5050         * modules/sleep (Depends-on): Likewise.
5051         * modules/snprintf (Depends-on): Likewise.
5052         * modules/snprintf-posix (Depends-on): Likewise.
5053         * modules/socket (Depends-on): Likewise.
5054         * modules/sprintf-posix (Depends-on): Likewise.
5055         * modules/sqrtl (Depends-on): Likewise.
5056         * modules/stat (Depends-on): Likewise.
5057         * modules/strchrnul (Depends-on): Likewise.
5058         * modules/strdup-posix (Depends-on): Likewise.
5059         * modules/strerror (Depends-on): Likewise.
5060         * modules/strerror_r-posix (Depends-on): Likewise.
5061         * modules/strndup (Depends-on): Likewise.
5062         * modules/strnlen (Depends-on): Likewise.
5063         * modules/strptime (Depends-on): Likewise.
5064         * modules/strsep (Depends-on): Likewise.
5065         * modules/strsignal (Depends-on): Likewise.
5066         * modules/strstr-simple (Depends-on): Likewise.
5067         * modules/strtod (Depends-on): Likewise.
5068         * modules/strtoimax (Depends-on): Likewise.
5069         * modules/strtok_r (Depends-on): Likewise.
5070         * modules/strtoumax (Depends-on): Likewise.
5071         * modules/symlink (Depends-on): Likewise.
5072         * modules/symlinkat (Depends-on): Likewise.
5073         * modules/tanl (Depends-on): Likewise.
5074         * modules/tcgetsid (Depends-on): Likewise.
5075         * modules/tmpfile (Depends-on): Likewise.
5076         * modules/trunc (Depends-on): Likewise.
5077         * modules/truncf (Depends-on): Likewise.
5078         * modules/truncl (Depends-on): Likewise.
5079         * modules/uname (Depends-on): Likewise.
5080         * modules/unlink (Depends-on): Likewise.
5081         * modules/unlockpt (Depends-on): Likewise.
5082         * modules/unsetenv (Depends-on): Likewise.
5083         * modules/usleep (Depends-on): Likewise.
5084         * modules/utimensat (Depends-on): Likewise.
5085         * modules/vasprintf (Depends-on): Likewise.
5086         * modules/vdprintf (Depends-on): Likewise.
5087         * modules/vdprintf-posix (Depends-on): Likewise.
5088         * modules/vfprintf-posix (Depends-on): Likewise.
5089         * modules/vprintf-posix (Depends-on): Likewise.
5090         * modules/vsnprintf (Depends-on): Likewise.
5091         * modules/vsnprintf-posix (Depends-on): Likewise.
5092         * modules/vsprintf-posix (Depends-on): Likewise.
5093         * modules/wcrtomb (Depends-on): Likewise.
5094         * modules/wcscasecmp (Depends-on): Likewise.
5095         * modules/wcscspn (Depends-on): Likewise.
5096         * modules/wcsdup (Depends-on): Likewise.
5097         * modules/wcsncasecmp (Depends-on): Likewise.
5098         * modules/wcsnrtombs (Depends-on): Likewise.
5099         * modules/wcspbrk (Depends-on): Likewise.
5100         * modules/wcsrtombs (Depends-on): Likewise.
5101         * modules/wcsspn (Depends-on): Likewise.
5102         * modules/wcsstr (Depends-on): Likewise.
5103         * modules/wcstok (Depends-on): Likewise.
5104         * modules/wcswidth (Depends-on): Likewise.
5105         * modules/wctob (Depends-on): Likewise.
5106         * modules/wctomb (Depends-on): Likewise.
5107         * modules/wctype (Depends-on): Likewise.
5108         * modules/wcwidth (Depends-on): Likewise.
5109         * modules/write (Depends-on): Likewise.
5110
5111 2011-05-03  Bruno Haible  <bruno@clisp.org>
5112
5113         Support for conditional dependencies.
5114         * doc/gnulib.texi (Module description): Document the syntax of
5115         conditional dependencies.
5116         * gnulib-tool: New option --conditional-dependencies.
5117         (func_usage): Document it.
5118         (cond_dependencies): New variable.
5119         (func_get_automake_snippet_conditional,
5120         func_get_automake_snippet_unconditional): New functions, extracted from
5121         func_get_automake_snippet.
5122         (func_get_automake_snippet): Use them.
5123         (sed_first_32_chars): New variable.
5124         (func_module_shellfunc_name): New function.
5125         (func_module_shellvar_name): New function.
5126         (func_module_conditional_name): New function.
5127         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5128         func_cond_module_condition): New functions.
5129         (func_modules_transitive_closure): Add support for conditional
5130         dependencies.
5131         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5132         conditional automake snippet in an automake conditional.
5133         (func_emit_autoconf_snippets): Emit shell functions that contain the
5134         code for conditional modules.
5135         (func_import, func_create_testdir): Update specification.
5136
5137 2011-05-03  Eric Blake  <eblake@redhat.com>
5138
5139         test-getaddrinfo: report error information
5140         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5141
5142 2011-05-03  Jim Meyering  <meyering@redhat.com>
5143
5144         bootstrap: avoid build failure when $GZIP is set
5145         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5146         program name.  If defined at all, it is supposed to list gzip options.
5147         Reported by Alan Curry in http://debbugs.gnu.org/8609
5148
5149 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5150
5151         readme-release: new module with release instructions
5152         * modules/readme-release: New module.
5153         * top/README-release: New file, from coreutils, grep, diffutils.
5154         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5155
5156 2011-05-02  Eric Blake  <eblake@redhat.com>
5157
5158         fflush: also replace fclose when fixing fflush
5159         * modules/fflush (Depends-on): Add fclose.
5160         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5161         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5162         memstreams with no backing fd.
5163         * doc/posix-functions/fclose.texi (fclose): Document the use of
5164         fflush module to fix the bug.
5165         * tests/test-fclose.c (main): Relax test when fclose is used in
5166         isolation.
5167
5168         fclose: add some tests
5169         * modules/fclose-tests: New test module.
5170         * tests/test-fclose.c: New file.
5171         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5172
5173         fclose: reduced dependencies
5174         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5175         simpler lseek.
5176         * lib/fclose.c (rpl_fclose): Likewise.
5177         Reported by Simon Josefsson.
5178
5179         exit: drop remaining clients
5180         * modules/argmatch (Depends-on): Replace exit with stdlib.
5181         * modules/copy-file (Depends-on): Likewise.
5182         * modules/execute (Depends-on): Likewise.
5183         * modules/exitfail (Depends-on): Likewise.
5184         * modules/obstack (Depends-on): Likewise.
5185         * modules/pagealign_alloc (Depends-on): Likewise.
5186         * modules/pipe-filter-gi (Depends-on): Likewise.
5187         * modules/pipe-filter-ii (Depends-on): Likewise.
5188         * modules/savewd (Depends-on): Likewise.
5189         * modules/spawn-pipe (Depends-on): Likewise.
5190         * modules/wait-process (Depends-on): Likewise.
5191         * modules/xsetenv (Depends-on): Likewise.
5192         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5193         * modules/git-merge-changelog (Depends-on): Likewise.
5194         * modules/long-options (Depends-on): Likewise.
5195         * modules/pt_chown (Depends-on): Likewise.
5196         * modules/sysexits (Depends-on): Likewise.
5197
5198         freading: relax license from LGPLv3+ to LGPLv2+
5199         * modules/freading (License): Relax LGPL version.
5200
5201 2011-05-02  Bruno Haible  <bruno@clisp.org>
5202
5203         fchdir: Remove unused dependencies.
5204         * modules/fchdir (Depends-on): Remove include_next.
5205
5206 2011-05-02  Bruno Haible  <bruno@clisp.org>
5207
5208         gnulib-tool: Refactor.
5209         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5210         from func_emit_autoconf_snippets.
5211         (func_emit_autoconf_snippets): Use it.
5212
5213 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5214
5215         * NEWS: Document removal of 'exit'.
5216         * modules/exit: Remove file.
5217
5218 2011-05-01  Bruno Haible  <bruno@clisp.org>
5219
5220         Update DEPENDENCIES.
5221         * DEPENDENCIES (gettext): Recommend the newest release.
5222         Reported by Simon Josefsson.
5223
5224 2011-05-01  Bruno Haible  <bruno@clisp.org>
5225
5226         gnulib-tool: Reduce code duplication.
5227         * gnulib-tool (func_emit_autoconf_snippets): New function.
5228         (func_import, func_create_testdir): Use it.
5229
5230 2011-04-30  Eric Blake  <eblake@redhat.com>
5231
5232         fclose: don't fail on non-seekable input stream
5233         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5234         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5235         since fflush is allowed to fail in that case.
5236
5237 2011-04-30  Bruno Haible  <bruno@clisp.org>
5238
5239         dup3: cleanup
5240         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5241
5242 2011-04-30  Bruno Haible  <bruno@clisp.org>
5243
5244         netdb: Make it work in C++ mode.
5245         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5246         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5247         module.
5248         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5249         gl_MODULE_INDICATOR_FOR_TESTS.
5250         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5251         * modules/netdb-c++-tests: New file.
5252         * tests/test-netdb-c++.cc: New file.
5253
5254 2011-04-30  Bruno Haible  <bruno@clisp.org>
5255
5256         New modules 'vfscanf', 'vscanf'.
5257         * modules/vfscanf: New file.
5258         * modules/vscanf: New file.
5259         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5260         here.
5261         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5262         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5263
5264 2011-04-30  Bruno Haible  <bruno@clisp.org>
5265
5266         passfd: Add comments.
5267         * lib/passfd.c: Add comments about platforms.
5268
5269 2011-04-30  Bruno Haible  <bruno@clisp.org>
5270
5271         sys_uio: Make <sys/uio.h> self-contained.
5272         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5273         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5274
5275 2011-04-30  Bruno Haible  <bruno@clisp.org>
5276
5277         sys_socket: Ensure 'struct iovec' definition.
5278         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5279         <sys/socket.h>.
5280         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5281
5282 2011-04-30  Bruno Haible  <bruno@clisp.org>
5283
5284         sys_uio: Protect definition of 'struct iovec'.
5285         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5286         it as a C struct.
5287
5288 2011-04-30  Bruno Haible  <bruno@clisp.org>
5289
5290         manywarnings: fix indentation
5291         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5292
5293 2011-04-30  Pádraig Brady <P@draigBrady.com>
5294
5295         manywarnings: add -Wno-missing-field-initializers if needed.
5296         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5297         option if it's needed to allow initialization with { 0, }
5298
5299 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5300
5301         announce-gen: cosmetic improvement
5302         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5303
5304 2011-04-29  Jim Meyering  <meyering@redhat.com>
5305
5306         vc-list-files: indent with spaces, not TABs
5307         * build-aux/vc-list-files: Convert leading TABs to spaces,
5308         to match the style of most other files in gnulib.
5309
5310         announce-gen: indent with spaces, not TABs
5311         * build-aux/announce-gen: Convert all TABs to spaces, to match
5312         the style of most other files in gnulib.
5313
5314 2011-04-29  Eric Blake  <eblake@redhat.com>
5315
5316         quotearg: avoid uninitialized variable use
5317         * lib/quotearg.c (quoting_options_from_style): Initialize
5318         remaining fields, and ensure that custom styles are only used via
5319         quoting_options rather than quoting_style.
5320
5321 2011-04-29  Jim Meyering  <meyering@redhat.com>
5322
5323         maint.mk: remove unused VC-tag variable
5324         * top/maint.mk (VC-tag): Remove unused variable.
5325
5326 2011-04-29  Bruno Haible  <bruno@clisp.org>
5327
5328         netdb: fix gai_strerror replacements
5329         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5330         * modules/netdb: Substitute it.
5331
5332 2011-04-29  Jim Meyering  <meyering@redhat.com>
5333
5334         test-getcwd.c: avoid new set-but-not-used warning
5335         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5336         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5337         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5338         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5339
5340         test-hash.c: avoid a new shadowing warning
5341         * tests/test-hash.c (main): Don't shadow "dup".
5342
5343 2011-04-28  Eric Blake  <eblake@redhat.com>
5344
5345         getaddrinfo: fix gai_strerror signature
5346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5347         and work around mingw with UNICODE defined.
5348         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5349         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5350         * modules/netdb (Makefile.am): Substitute it.
5351         * lib/netdb.in.h (gai_strerror): Declare replacement.
5352         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5353         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5354         the fix.
5355
5356         getsockopt: avoid compiler warning
5357         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5358         Reported by Matthias Bolte.
5359
5360         tests: drop unused link dependency
5361         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5362         * modules/dirent-safer-tests (Makefile.am): Likewise.
5363         * modules/fdopendir-tests (Makefile.am): Likewise.
5364         * modules/mkfifoat-tests (Makefile.am): Likewise.
5365         * modules/openat-safer-tests (Makefile.am): Likewise.
5366         * modules/openat-tests (Makefile.am): Likewise.
5367         * modules/readlinkat-tests (Makefile.am): Likewise.
5368         * modules/symlinkat-tests (Makefile.am): Likewise.
5369         * modules/linkat-tests (Makefile.am): Likewise.
5370         (Depends-on): Switch to filenamecat-lgpl.
5371         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5372         LIBINTL.
5373         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5374         * tests/test-linkat.c (main): Don't require xalloc.
5375
5376         hash, mgetgroups: drop xalloc dependency
5377         * lib/hash.c (includes): Adjust includes.
5378         * lib/mgetgroups.c (includes): Likewise.
5379         (xgetgroups): Move...
5380         * lib/xgetgroups.c: ...to new file.
5381         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5382         * modules/xgetgroups: New file, split from...
5383         * modules/mgetgroups: ...here.
5384         (Depends-on): Add xalloc-oversized.
5385         * modules/hash (Depends-on): Likewise.
5386         * modules/hash-tests (Depends-on): Drop xalloc.
5387         (test_hash_LDADD): Drop unused library.
5388         * tests/test-hash.c (main): Break xalloc dependency.
5389         (includes): Drop unused include.
5390
5391         xalloc-oversized: new module
5392         * modules/xalloc-oversized: New module.
5393         * modules/xalloc (Depends-on): Add it.
5394         * lib/xalloc.h (xalloc_oversized): Move...
5395         * lib/xalloc-oversized.h: ...into new file.
5396
5397         utimecmp: drop dependency on xmalloc
5398         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5399         due to memory pressure.
5400         * modules/utimecmp (Depends-on): Drop xalloc.
5401
5402 2011-04-27  Eric Blake  <eblake@redhat.com>
5403
5404         getcwd: fix mingw bugs
5405         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5406         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5407         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5408
5409 2011-04-27  Bruno Haible  <bruno@clisp.org>
5410
5411         mkstemps: Ensure declaration on MacOS X 10.5.
5412         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5413         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5414         MacOS X.
5415
5416 2011-04-27  Bruno Haible  <bruno@clisp.org>
5417
5418         mkstemp: More documentation.
5419         * doc/posix-functions/mkstemp.texi: Document header file problem on
5420         MacOS X.
5421
5422 2011-04-27  Bruno Haible  <bruno@clisp.org>
5423
5424         mkstemp: Tweak configure message when cross-compiling.
5425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5426         result as a guess.
5427
5428 2011-04-27  Bruno Haible  <bruno@clisp.org>
5429
5430         clean-temp: Clarify what it does.
5431         * lib/clean-temp.h: Add more comments.
5432         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5433         module.
5434         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5435         * doc/glibc-functions/mkstemps.texi: Likewise.
5436         * doc/glibc-functions/mkostemps.texi: Likewise.
5437
5438 2011-04-27  Eric Blake  <eblake@redhat.com>
5439
5440         fchdir: avoid extra chdir and fix test
5441         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5442         getcwd-lgpl.
5443         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5444         have to be canonical.
5445         (canonicalize_file_name): Drop unused macro.
5446         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5447
5448         filenamecat-lgpl: fix licence
5449         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5450         when it was first created.
5451
5452         linkat, renameat: add missing dependency
5453         * modules/linkat (Depends-on): Require getcwd-lgpl.
5454         * modules/renameat (Depends-on): Likewise.
5455
5456         tests: reduce dependencies
5457         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5458         * tests/test-renameat.c (main): Likewise.
5459         * modules/linkat-tests (Depends-on): Relax dependency.
5460         * modules/renameat-tests (Depends-on): Likewise.
5461         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5462         dependency explicit.
5463
5464         save-cwd: reduce default dependency
5465         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5466         * lib/save-cwd.c: Update comments.
5467         * NEWS: Document the semantic change.
5468
5469         getcwd: enhance tests
5470         * tests/test-getcwd-lgpl.c: New file, taken from...
5471         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5472         repeat long path stress tests from m4 probe.
5473         * modules/getcwd-lgpl-tests: New module.
5474         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5475         * m4/getcwd-abort-bug.m4: Update comment.
5476         * m4/getcwd-path-max.m4: Likewise.
5477
5478         getcwd-lgpl: new module
5479         * modules/getcwd-lgpl: New module.
5480         * lib/getcwd-lgpl.c: New file.
5481         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5482         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5483         * modules/getcwd (configure.ac): Set C witness.
5484         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5485
5486         getcwd: tweak comments
5487         * m4/getcwd-abort-bug.m4: Fix comments.
5488         * m4/getcwd-path-max.m4: Likewise.
5489         * m4/getcwd.m4: Likewise.
5490
5491 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5492         and Eric Blake  <eblake@redhat.com>
5493
5494         mkstemp: replace if system version uses wrong permissions
5495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5496         read/write mode bits set in file created by mkstemp.
5497         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5498
5499 2011-04-27  Eric Blake  <eblake@redhat.com>
5500
5501         passfd: avoid compiler warning
5502         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5503         Reported by Laine Stump.
5504
5505 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5506
5507         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5508         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5509
5510 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5511         and Eric Blake  <eblake@redhat.com>
5512
5513         mkstemp: mention clean-temp module
5514         * lib/mkstemp.c: Add comment.
5515         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5516
5517 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5518
5519         inttypes: also provide default values for 32-bit tests
5520         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5521         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5522
5523 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5524
5525         strtoumax: remove dependency on strtoimax
5526         This is like the strtoull change of yesterday.
5527         * modules/strtoumax (Files): Add lib/strtoimax.c.
5528         (Depends-on): Remove strtoimax and add verify.
5529
5530         inttypes-incomplete: new module
5531         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5532         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5533         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5534         of gl_INTTYPES_H.
5535         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5536         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5537         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5538         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5539         * modules/strtoumax, modules/xstrtol (Depends-on):
5540         Depend on inttypes-incomplete, not inttypes.
5541         * modules/inttypes-incomplete: New module, containing the contents
5542         of the old modules/inttypes module, except that the Files: section
5543         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5544         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5545         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5546         (Depends-on): Depend only on inttypes-incomplete.
5547         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5548
5549         inttypes: omit now-redundant strtoimax and strtoumax work
5550         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5551         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5552
5553         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5554         This supports apps that need pointers to strtoimax and strtoumax,
5555         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5556         nonexistent functions.  See
5557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5558         et seq.
5559         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5560         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5561         a macro.
5562         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5563
5564 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5565
5566         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5567
5568 2011-04-25  Bruno Haible  <bruno@clisp.org>
5569
5570         strtol, strtoul: Mark modules as obsolete.
5571         * modules/strtol (Status, Notice): New sections.
5572         * modules/strtoul (Status, Notice): New sections.
5573
5574 2011-04-25  Bruno Haible  <bruno@clisp.org>
5575
5576         strtod: Remove check for strtod, unless supporting old platforms.
5577         * modules/strtod-obsolete: New file.
5578         * m4/strtod-obsolete.m4: New file.
5579         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5580         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5581         * modules/strtod (Depends-on): Add strtod-obsolete.
5582         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5583
5584 2011-04-25  Bruno Haible  <bruno@clisp.org>
5585
5586         strcase: Make module obsolete.
5587         * modules/strcase (Status, Notice): New sections.
5588
5589 2011-04-25  Bruno Haible  <bruno@clisp.org>
5590
5591         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5592         * modules/dup2-obsolete: New file.
5593         * m4/dup2-obsolete.m4: New file.
5594         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5595         gl_FUNC_DUP2_OBSOLETE is not also defined.
5596         * modules/dup2 (Depends-on): Add dup2-obsolete.
5597         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5598
5599 2011-04-25  Bruno Haible  <bruno@clisp.org>
5600
5601         strnlen: Avoid memchr related link error on old obsolete platforms.
5602         * modules/memchr-obsolete: New file.
5603         * m4/memchr-obsolete.m4: New file.
5604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5605         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5606         * modules/memchr (Depends-on): Add memchr-obsolete.
5607         * modules/strnlen (Depends-on): Likewise.
5608         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5609
5610 2011-04-25  Jim Meyering  <meyering@redhat.com>
5611
5612         maint.mk: makefile_at_at_check extend and clean up
5613         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5614         in addition to */Makefile.am.
5615         Exempt legitimate uses of @VAR@ notation, e.g.,
5616         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5617         Remove obsolete coreutils-specific comment.
5618         Prompted by discussion here:
5619         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5620
5621 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5622
5623         strtoul: remove dependency on strtol
5624         This is so that 'configure' need not check for strtol merely because
5625         the application needs strtoul.
5626         * modules/strtoul (Files): Add lib/strtol.c.
5627         (Depends-on): Remove strtol.
5628
5629         strtoull: remove dependency on strtoul
5630         This is like the strtoll change.
5631         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5632         (Depends-on): Remove strtoul.
5633
5634         strtoll: remove dependency on strtol
5635         This is so that 'configure' need not check for strtol merely because
5636         the application needs strtoll.
5637         * modules/strtoll (Files): Add lib/strtol.c.
5638         (Depends-on): Remove strtol.
5639
5640 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         inttypes: Move some configure check to module 'imaxdiv'.
5643         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5644         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5645         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5646
5647 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         inttypes: Move some configure check to module 'imaxabs'.
5650         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5651         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5652         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5653
5654 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5655
5656         inttypes: Remove configure tests that are not needed since 2009-12-31.
5657         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5658         gl_cv_header_working_inttypes_h.
5659
5660 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5661
5662         * modules/strnlen (Depends-on): Remove memchr.
5663         The strnlen implementation doesn't need the memchr module's fixes; see
5664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5665
5666         strtol: remove dependency on wchar
5667         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5668         * modules/strtol (Depends-on): Remove wchar.
5669
5670 2011-04-21  Eric Blake  <eblake@redhat.com>
5671
5672         passfd: fix test regression on Linux
5673         * modules/passfd-tests (configure.ac): Correct socketpair check.
5674
5675         passfd: speed up configure and drop unused code
5676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5677         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5678         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5679         Instead of probing at configure for unix_scm_rights_bsd44_way,
5680         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5681         check to a struct member probe.
5682         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5683         (sendfd, recvfd): Update preprocessor checks.
5684         * modules/passfd (Files): Reflect rename, and drop unused file.
5685         (Depends-on): Drop unused dependency.
5686
5687         passfd: allow compilation on mingw
5688         * modules/sys_socket (Depends-on): Add sys_uio.
5689         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5690         iovec and a minimal struct msghdr.
5691         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5692         * tests/test-sys_socket.c (main): Enhance test.
5693         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5694         guaranteed to provide what we need.
5695         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5696         * modules/passfd-tests (Depends-on): Add sys_wait.
5697         * tests/test-passfd.c (main): Skip test on mingw, for now.
5698         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5699         partial 'struct msghdr' implementation.
5700
5701         sys_uio: new module
5702         * modules/sys_uio: New module.
5703         * modules/sys_uio-tests: Likewise.
5704         * lib/sys_uio.in.h: New file.
5705         * m4/sys_uio_h.m4: Likewise.
5706         * tests/test-sys_uio.c: Likewise.
5707         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5708         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5709
5710 2011-04-20  Jim Meyering  <meyering@redhat.com>
5711
5712         useless-if-before-free: avoid false-positive
5713         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5714         disjunct so that it too requires a terminating ";".  Without that,
5715         this script would identify as useless one statement from gcc that
5716         was not:
5717           if (aligned_ptr)
5718             free (((void **) aligned_ptr) [-1]);
5719
5720 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5721
5722         doc: update users.txt.
5723         * users.txt: Add barcode.
5724
5725 2011-04-19  Bruno Haible  <bruno@clisp.org>
5726
5727         ioctl: Remove link dependency on native Windows.
5728         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5729         (gl_close_fn, gl_ioctl_fn): New types.
5730         (struct fd_hook): Renamed from struct close_hook. Change type of
5731         private_close_fn field. Add private_ioctl_fn field.
5732         (close_hook_fn): Add parameter for primary close method.
5733         (execute_close_hooks, execute_all_close_hooks): Likewise.
5734         (ioctl_hook_fn): New type.
5735         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5736         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5737         argument.
5738         (unregister_fd_hook): Renamed from unregister_close_hook.
5739         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5740         Don't include <unistd.h>.
5741         (close): Remove undef.
5742         (anchor): Update.
5743         (execute_close_hooks): Add argument for primary close method.
5744         (execute_all_close_hooks): Likewise.
5745         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5746         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5747         argument. Allow each argument to be NULL.
5748         (unregister_fd_hook): Renamed from unregister_close_hook.
5749         * lib/close.c (rpl_close): Pass 'close' function pointer to
5750         execute_all_close_hooks.
5751         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5752         (primary_ioctl): New function.
5753         (ioctl): Don't call ioctlsocket here. Instead, call
5754         execute_all_ioctl_hooks.
5755         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5756         close method.
5757         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5758         (fd_sockets_hook): Renamed from close_sockets_hook.
5759         (gl_sockets_startup, gl_sockets_cleanup): Update.
5760         * modules/fd-hook: Renamed from modules/close-hook. Update.
5761         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5762         * modules/sockets (Depends-on): Likewise.
5763         * modules/ioctl (Depends-on): Add fd-hook.
5764         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5765         GNULIB_SOCKET.
5766
5767 2011-04-19  Bruno Haible  <bruno@clisp.org>
5768
5769         Move the support of O_NONBLOCK in open() to the 'open' module.
5770         * modules/nonblocking (Depends-on): Remove 'open'.
5771         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5772         gl_cv_have_open_O_NONBLOCK.
5773         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5774         O_NONBLOCK support.
5775         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5776
5777 2011-04-17  Bruno Haible  <bruno@clisp.org>
5778
5779         pipe2: Simplify code.
5780         * lib/pipe2.c (pipe2): Reduce code duplication.
5781
5782 2011-04-17  Bruno Haible  <bruno@clisp.org>
5783
5784         nonblocking: Add comment.
5785         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5786
5787 2011-04-17  Bruno Haible  <bruno@clisp.org>
5788
5789         nonblocking: Add tests for sockets.
5790         * tests/test-nonblocking-socket.sh: New file.
5791         * tests/test-nonblocking-socket-main.c: New file.
5792         * tests/test-nonblocking-socket-child.c: New file.
5793         * tests/test-nonblocking-socket.h: New file.
5794         * tests/socket-server.h: New file.
5795         * tests/socket-client.h: New file.
5796         * modules/nonblocking-socket-tests: New file.
5797         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5798
5799 2011-04-17  Bruno Haible  <bruno@clisp.org>
5800
5801         nonblocking: Add tests for pipes.
5802         * tests/test-nonblocking-pipe.sh: New file.
5803         * tests/test-nonblocking-pipe-main.c: New file.
5804         * tests/test-nonblocking-pipe-child.c: New file.
5805         * tests/test-nonblocking-pipe.h: New file.
5806         * tests/test-nonblocking-writer.h: New file.
5807         * tests/test-nonblocking-reader.h: New file.
5808         * tests/test-nonblocking-misc.h: New file.
5809         * modules/nonblocking-pipe-tests: New file.
5810         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5811
5812 2011-04-16  Bruno Haible  <bruno@clisp.org>
5813
5814         gettext: Clarify the needed programmer actions.
5815         * modules/gettext (Notice): New field.
5816         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5817
5818 2011-04-16  Bruno Haible  <bruno@clisp.org>
5819
5820         strchrnul: Tweak last commit.
5821         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5822         bug.
5823         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5824         as in _GL_FUNCDECL_SYS.
5825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5826         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5827
5828 2011-04-15  Eric Blake  <eblake@redhat.com>
5829
5830         strchrnul: work around cygwin bug
5831         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5834         * modules/string (Makefile.am): Substitute it.
5835         * lib/string.in.h (strchrnul): Use it.
5836
5837 2011-04-15  Bruno Haible  <bruno@clisp.org>
5838
5839         Don't require lib/stdio-write.c when only module 'stdio' is used.
5840         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5841         invocation.
5842         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5843
5844 2011-04-14  Bruno Haible  <bruno@clisp.org>
5845
5846         Support non-blocking pipe I/O in read() on native Windows.
5847         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5848         (read): New declaration.
5849         * lib/read.c: New file.
5850         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5851         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5852         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5853         vscanf): New declarations.
5854         * lib/stdio-read.c: New file.
5855         * m4/read.m4: New file.
5856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5857         REPLACE_READ.
5858         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5859         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5860         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5861         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5862         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5863         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5864         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5865         * modules/read: New file.
5866         * modules/nonblocking (Files): Add lib/stdio-read.c.
5867         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5868         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5869         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5870         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5871         * modules/pread (Depends-on): Add read.
5872         * modules/safe-read (Depends-on): Likewise.
5873         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5874         gets, scanf, vfscanf, vscanf): Verify signatures.
5875         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5876         problem with non-blocking pipes.
5877         * doc/posix-functions/fgetc.texi: Likewise.
5878         * doc/posix-functions/fgets.texi: Likewise.
5879         * doc/posix-functions/fread.texi: Likewise.
5880         * doc/posix-functions/fscanf.texi: Likewise.
5881         * doc/posix-functions/getc.texi: Likewise.
5882         * doc/posix-functions/getchar.texi: Likewise.
5883         * doc/posix-functions/gets.texi: Likewise.
5884         * doc/posix-functions/scanf.texi: Likewise.
5885         * doc/posix-functions/vfscanf.texi: Likewise.
5886         * doc/posix-functions/vscanf.texi: Likewise.
5887
5888 2011-04-14  Bruno Haible  <bruno@clisp.org>
5889
5890         Support non-blocking pipe I/O in write() on native Windows.
5891         * lib/write.c (rpl_write): Split a write request that failed merely
5892         because the byte count was larger than the pipe buffer's size.
5893         * doc/posix-functions/write.texi: Mention the problem with large byte
5894         counts.
5895
5896 2011-04-14  Bruno Haible  <bruno@clisp.org>
5897
5898         wchar: Ensure that wchar_t gets defined on uClibc.
5899         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5900         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5901
5902 2011-04-13  Bruno Haible  <bruno@clisp.org>
5903
5904         safe-write, full-read: Avoid unnecessary compilation units.
5905         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5906         (Depends-on): Remove safe-read. Add ssize_t.
5907         * modules/full-read (Files): Add lib/full-write.c.
5908         (Depends-on): Add full-write.
5909
5910 2011-04-13  Bruno Haible  <bruno@clisp.org>
5911
5912         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5913         * modules/pwrite (Depends-on): Add 'write'.
5914
5915 2011-04-13  Bruno Haible  <bruno@clisp.org>
5916
5917         Support non-blocking pipe I/O in write() on native Windows.
5918         * lib/unistd.in.h (write): Enable replacement also if
5919         GNULIB_UNISTD_H_NONBLOCKING is 1.
5920         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5921         (rpl_write): When failing to write on a non-blocking pipe, change
5922         errno from ENOSPC to EAGAIN.
5923         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5924         putchar, puts, vfprintf, vprintf): Enable replacement also if
5925         GNULIB_STDIO_H_NONBLOCKING is 1.
5926         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5927         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5928         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5929         CALL_WITH_SIGPIPE_EMULATION.
5930         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5931         * m4/nonblocking.m4: New file.
5932         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5933         for non-blocking I/O support.
5934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5935         GNULIB_UNISTD_H_NONBLOCKING.
5936         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5937         required for non-blocking I/O support.
5938         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5939         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5940         lib/stdio-write.c, m4/asm-underscore.m4.
5941         (Depends-on): Add stdio, unistd.
5942         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5943         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5944         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5945         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5946         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5947         problem with non-blocking pipes.
5948         * doc/posix-functions/fputc.texi: Likewise.
5949         * doc/posix-functions/fputs.texi: Likewise.
5950         * doc/posix-functions/fwrite.texi: Likewise.
5951         * doc/posix-functions/printf.texi: Likewise.
5952         * doc/posix-functions/putc.texi: Likewise.
5953         * doc/posix-functions/putchar.texi: Likewise.
5954         * doc/posix-functions/puts.texi: Likewise.
5955         * doc/posix-functions/vfprintf.texi: Likewise.
5956         * doc/posix-functions/vprintf.texi: Likewise.
5957         * doc/posix-functions/write.texi: Likewise.
5958
5959 2011-04-10  Jim Meyering  <meyering@redhat.com>
5960
5961         maint.mk: prohibit doubled words
5962         Detect them also when they're separated by a newline.
5963         There are 3 ways to customize it:
5964           - disable the test on a per file basis, as usual with rules using
5965             $(VC_LIST_EXCEPT)
5966           - replace the default doubled-word-selecting regexp (affects all files)
5967           - ignore a particular file-vs-doubled-word match
5968         I nearly used that last one to ignore the "is is" match in
5969         coreutils' NEWS file, since the text was "ls -is is ..."
5970         To do that, I would have added this line to cfg.mk:
5971           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5972         but it would have ignored any "is is" match in NEWS.
5973         Low probability, but still...
5974         Instead, I changed the text, slightly:
5975           -  ls -is is now consistent with ls -lis in ignoring values returned
5976           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5977         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5978         (prohibit_doubled_word_): Define.
5979         (sc_prohibit_doubled_word): New rule.
5980         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5981
5982 2011-04-10  Jim Meyering  <meyering@redhat.com>
5983
5984         maint: fix doubled-word typo in comment
5985         * m4/gethostname.m4: s/is is/it is/
5986         * m4/getdomainname.m4: Likewise.
5987
5988 2011-04-10  Jim Meyering  <meyering@redhat.com>
5989
5990         maint: remove doubled word: s/it it/it/
5991         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5992
5993 2011-04-10  Jim Meyering  <meyering@redhat.com>
5994
5995         maint.mk: remove useless semicolon and backslash
5996         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5997         semicolon and backslash.
5998
5999 2011-04-10  Bruno Haible  <bruno@clisp.org>
6000
6001         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6002         * modules/stdint-tests (Depends-on): Add wchar.
6003
6004 2011-04-10  Jim Meyering  <meyering@redhat.com>
6005
6006         maint: remove doubled words in comments, e.g., s/a a/a/
6007         * lib/strptime.c (day_of_the_week): s/the the/the/
6008         * tests/test-chown.h (test_chown): s/a a/a/
6009
6010         test-chown.h: correct a cast
6011         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6012         when the destination is a stat.st_gid.
6013
6014 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6015
6016         getaddrinfo: Fix test for sa_len member.
6017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6018         include <sys/types.h> before <sys/socket.h>.
6019
6020 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         maint: change "can not" to "cannot"
6023         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6024         boundaries.
6025
6026 2011-04-09  Jim Meyering  <meyering@redhat.com>
6027
6028         maint: change "a a" to "a"
6029         * tests/test-lchown.h (test_lchown): s/a a/a/
6030
6031         maint.mk: prohibit \<the the\>
6032         * top/maint.mk (sc_prohibit_the_the): New rule.
6033
6034         maint: fix "the the" in comment
6035         * lib/count-one-bits.h: s/the the/the/
6036
6037         maint: change "can not" to "cannot"
6038         But do not change the occurrences in maintain.texi or in
6039         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6040         * doc/gnulib-tool.texi: s/can not/cannot/
6041         * doc/posix-functions/accept.texi (accept): Likewise.
6042         * doc/posix-functions/socket.texi (socket): Likewise.
6043         * lib/mbrtowc.c: Likewise.
6044
6045         maint.mk: prohibit use of "can not"
6046         * top/maint.mk (sc_prohibit_can_not): New rule.
6047         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6048
6049 2011-04-09  Bruno Haible  <bruno@clisp.org>
6050
6051         careadlinkat: Guard against misuse of careadlinkatcwd.
6052         * lib/careadlinkat.c: Include <stdlib.h>.
6053         (careadlinkatcwd): Check that the fd argument is as expected.
6054
6055 2011-04-09  Bruno Haible  <bruno@clisp.org>
6056
6057         careadlinkat: Use common coding style.
6058         * lib/careadlinkat.c: Move gnulib includes after system includes.
6059
6060 2011-04-09  Bruno Haible  <bruno@clisp.org>
6061
6062         careadlinkat: Clarify specification.
6063         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6064         (careadlinkatcwd): Add comment.
6065         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6066
6067 2011-04-09  Bruno Haible  <bruno@clisp.org>
6068
6069         areadlinkat: Avoid link error on many platforms.
6070         * modules/areadlinkat (Depends-on): Add areadlink.
6071
6072 2011-04-09  Bruno Haible  <bruno@clisp.org>
6073
6074         allocator, careadlinkat: Fix double-inclusion guard.
6075         * lib/allocator.h: Fix double-inclusion guard.
6076         * lib/careadlinkat.h: Likewise.
6077
6078 2011-04-09  Bruno Haible  <bruno@clisp.org>
6079
6080         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6081         * lib/relocwrapper.c: Update dependencies hierarchy.
6082         * build-aux/install-reloc: Update list of files to be compiled.
6083         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6084         lib/allocator.[hc].
6085
6086 2011-04-08  Eric Blake  <eblake@redhat.com>
6087
6088         strftime: silence gnulib-tool warning
6089         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6090
6091 2011-04-08  Bruno Haible  <bruno@clisp.org>
6092
6093         verify: Fix syntax error with GCC 4.6 in C++ mode.
6094         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6095         (HAVE_STATIC_ASSERT): New macro.
6096         (verify_true, verify): Use 'static_assert' if it is supported and
6097         '_Static_assert' is not supported.
6098
6099 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6100
6101         allocator: New module.
6102         * modules/allocator, lib/allocator.c: New files.
6103         * lib/allocator.h (stdlib_allocator): New decl.
6104         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6105         Remove.  Do not include <stdlib.h>.
6106         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6107         * modules/careadlinkat (Files): Remove lib/allocator.h.
6108         (Depends-on): Add allocator.
6109
6110         stdlib: let modules use system malloc, realloc
6111         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6112         if !_GL_USE_STDLIB_ALLOC.
6113         (malloc, realloc): Limit this change to a smaller scope.
6114
6115         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6116         (malloc, realloc): Don't #undef; no longer needed.
6117         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6118         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6119         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6120         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6121         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6122         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6123         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6124         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6125
6126         careadlinkat: rename members to avoid problem
6127         * lib/allocator.h (struct allocator): Rename members from
6128         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6129         and realloc are #define'd.  Reported by Eric Blake in
6130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6131         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6132
6133 2011-04-08  Eric Blake  <eblake@redhat.com>
6134
6135         nonblocking: reduce dependency
6136         * tests/test-nonblocking.c: Only test sockets when in use.
6137         * modules/nonblocking-tests (Depends-on): Drop socket.
6138         (Makefile.am): Link even if sockets are not present.
6139         * modules/pipe2-tests (Makefile.am): Likewise.
6140         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6141
6142         pipe2: fix O_NONBLOCK support on mingw
6143         * modules/pipe2 (Depends-on): Add nonblocking.
6144         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6145         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6146         * tests/test-nonblocking.c (main): Likewise.
6147         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6148
6149         fcntl-h: fix O_ACCMODE on cygwin
6150         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6151         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6152
6153         pipe-filter: drop O_NONBLOCK workarounds
6154         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6155         * modules/pipe-filter-ii (Depends-on): Likewise.
6156         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6157
6158         nonblocking: provide O_NONBLOCK for mingw
6159         * modules/nonblocking (Depends-on): Add open.
6160         (configure.ac): Set new witness macro.
6161         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6162         * modules/fcntl-h (Makefile.am): Substitute it.
6163         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6164         nonblocking module is in use.
6165         * lib/nonblocking.c: Adjust portability test.
6166         * lib/open.c (open): Don't let native open see gnulib flag.
6167         * tests/test-fcntl-h.c (main): Enhance test.
6168         * tests/test-open.h (test_open): Likewise.
6169         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6170
6171         careadlinkat: fix compilation error on mingw
6172         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6173         within struct allocator.
6174
6175 2011-04-06  Eric Blake  <eblake@redhat.com>
6176
6177         binary-io: relicense under LGPLv2+
6178         * modules/binary-io (License): Relax to LGPLv2+.
6179         Requested for libvirt, and required by pipe2.
6180
6181 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6182
6183         verify: use _Static_assert if available
6184         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6185         (verify_true, verify): Use it if available.  This generates better
6186         diagnostics with GCC 4.6.0 and later.
6187
6188 2011-04-05  Bruno Haible  <bruno@clisp.org>
6189
6190         Remove leftover generated .h files after config.status changed.
6191
6192         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6193         GL_GENERATE_ALLOCA_H.
6194         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6195         GL_GENERATE_ALLOCA_H evaluates to false.
6196
6197         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6198         GL_GENERATE_ARGZ_H.
6199         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6200         evaluates to false.
6201
6202         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6203         GL_GENERATE_BYTESWAP_H.
6204         * modules/byteswap (Makefile.am): Remove byteswap.h if
6205         GL_GENERATE_BYTESWAP_H evaluates to false.
6206
6207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6208         GL_GENERATE_ERRNO_H.
6209         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6210         evaluates to false.
6211
6212         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6213         GL_GENERATE_FLOAT_H.
6214         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6215         evaluates to false.
6216
6217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6218         GL_GENERATE_FNMATCH_H.
6219         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6220         GL_GENERATE_FNMATCH_H evaluates to false.
6221
6222         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6223         GL_GENERATE_GLOB_H.
6224         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6225         evaluates to false.
6226
6227         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6228         automake conditional GL_GENERATE_ICONV_H.
6229         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6230         evaluates to false.
6231
6232         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6233         GL_GENERATE_NETINET_IN_H.
6234         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6235         GL_GENERATE_NETINET_IN_H evaluates to false.
6236
6237         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6238         conditional GL_GENERATE_PTHREAD_H.
6239         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6240         * modules/pthread (Makefile.am): Remove pthread.h if
6241         GL_GENERATE_PTHREAD_H evaluates to false.
6242
6243         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6244         GL_GENERATE_SCHED_H.
6245         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6246         evaluates to false.
6247
6248         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6249         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6250         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6251         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6252
6253         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6254         GL_GENERATE_STDARG_H.
6255         * modules/stdarg (Makefile.am): Remove stdarg.h if
6256         GL_GENERATE_STDARG_H evaluates to false.
6257
6258         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6259         GL_GENERATE_STDBOOL_H.
6260         * modules/stdbool (Makefile.am): Remove stdbool.h if
6261         GL_GENERATE_STDBOOL_H evaluates to false.
6262
6263         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6264         conditional GL_GENERATE_STDDEF_H.
6265         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6266         * modules/stddef (Makefile.am): Remove stddef.h if
6267         GL_GENERATE_STDDEF_H evaluates to false.
6268
6269         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6270         GL_GENERATE_STDINT_H.
6271         * modules/stdint (Makefile.am): Remove stdint.h if
6272         GL_GENERATE_STDINT_H evaluates to false.
6273
6274         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6275         GL_GENERATE_SYSEXITS_H.
6276         * modules/sysexits (Makefile.am): Remove sysexits.h if
6277         GL_GENERATE_SYSEXITS_H evaluates to false.
6278
6279         Reported by Karl Berry and Ralf Wildenhues.
6280
6281 2011-04-05  Bruno Haible  <bruno@clisp.org>
6282
6283         Ensure to rebuild generated .h files when config.status has changed.
6284         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6285         config.status.
6286         * modules/ctype (Makefile.am): Likewise.
6287         * modules/dirent (Makefile.am): Likewise.
6288         * modules/errno (Makefile.am): Likewise.
6289         * modules/fcntl-h (Makefile.am): Likewise.
6290         * modules/float (Makefile.am): Likewise.
6291         * modules/getopt-posix (Makefile.am): Likewise.
6292         * modules/glob (Makefile.am): Likewise.
6293         * modules/iconv-h (Makefile.am): Likewise.
6294         * modules/inttypes (Makefile.am): Likewise.
6295         * modules/langinfo (Makefile.am): Likewise.
6296         * modules/locale (Makefile.am): Likewise.
6297         * modules/math (Makefile.am): Likewise.
6298         * modules/netdb (Makefile.am): Likewise.
6299         * modules/netinet_in (Makefile.am): Likewise.
6300         * modules/poll-h (Makefile.am): Likewise.
6301         * modules/pthread (Makefile.am): Likewise.
6302         * modules/pty (Makefile.am): Likewise.
6303         * modules/sched (Makefile.am): Likewise.
6304         * modules/search (Makefile.am): Likewise.
6305         * modules/selinux-h (Makefile.am): Likewise.
6306         * modules/signal (Makefile.am): Likewise.
6307         * modules/spawn (Makefile.am): Likewise.
6308         * modules/stdarg (Makefile.am): Likewise.
6309         * modules/stdbool (Makefile.am): Likewise.
6310         * modules/stddef (Makefile.am): Likewise.
6311         * modules/stdint (Makefile.am): Likewise.
6312         * modules/stdio (Makefile.am): Likewise.
6313         * modules/stdlib (Makefile.am): Likewise.
6314         * modules/string (Makefile.am): Likewise.
6315         * modules/strings (Makefile.am): Likewise.
6316         * modules/sys_file (Makefile.am): Likewise.
6317         * modules/sys_ioctl (Makefile.am): Likewise.
6318         * modules/sys_select (Makefile.am): Likewise.
6319         * modules/sys_socket (Makefile.am): Likewise.
6320         * modules/sys_stat (Makefile.am): Likewise.
6321         * modules/sys_time (Makefile.am): Likewise.
6322         * modules/sys_times (Makefile.am): Likewise.
6323         * modules/sys_utsname (Makefile.am): Likewise.
6324         * modules/sys_wait (Makefile.am): Likewise.
6325         * modules/sysexits (Makefile.am): Likewise.
6326         * modules/termios (Makefile.am): Likewise.
6327         * modules/time (Makefile.am): Likewise.
6328         * modules/unistd (Makefile.am): Likewise.
6329         * modules/wchar (Makefile.am): Likewise.
6330         * modules/wctype-h (Makefile.am): Likewise.
6331         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6332
6333 2011-04-05  Bruno Haible  <bruno@clisp.org>
6334
6335         pipe2: Relicense under LGPLv2+.
6336         * modules/pipe2 (License): Change to LGPLv2+.
6337         Requested by Eric Blake, for libvirt.
6338
6339 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6340
6341         bootstrap: compute gnulib_extra_files after updating build_aux
6342         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6343         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6344
6345 2011-04-05  Eric Blake  <eblake@redhat.com>
6346
6347         bootstrap: preserve git whitelist item sorting
6348         * build-aux/bootstrap (sort_patterns): New function.
6349         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6350
6351 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6352
6353         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6354         sc_space_tab check.
6355
6356 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6357
6358         areadlink, areadlinkat: rewrite in terms of careadlinkat
6359         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6360         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6361         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6362         (malloc, realloc): Remove #undefs.
6363         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6364         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6365         readlink, ssize_t, stdint, unistd.
6366         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6367         areadlink, stdint.
6368
6369         careadlinkat: new module
6370         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6371         * modules/careadlinkat: New files, written by me with
6372         a review and feedback from Ben Pfaff in
6373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6374
6375 2011-04-01  Bruno Haible  <bruno@clisp.org>
6376
6377         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6378         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6379         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6380         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6381         Reported by Bruce Korb <bruce.korb@gmail.com>.
6382
6383 2011-04-01  Bruno Haible  <bruno@clisp.org>
6384
6385         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6386         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6387         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6388         * modules/wcpcpy (Depends-on): Add extensions.
6389         * modules/wcpncpy (Depends-on): Likewise.
6390         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6391         systems.
6392         * doc/posix-functions/wcpncpy.texi: Likewise.
6393         * doc/posix-functions/wcwidth.texi: Likewise.
6394
6395 2011-03-31  Eric Blake  <eblake@redhat.com>
6396
6397         nonblocking: fix mingw test failures
6398         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6399         non-blocking flag on regular file.
6400         (get_nonblocking_flag): Set errno on invalid fd.
6401         * tests/test-nonblocking.c (main): Avoid test failure on
6402         directories if fchdir is not active.
6403         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6404
6405 2011-03-31  Bruno Haible  <bruno@clisp.org>
6406
6407         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6408         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6409         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6410         Reported by Simon Josefsson <simon@josefsson.org>.
6411
6412 2011-03-31  Bruno Haible  <bruno@clisp.org>
6413         and Eric Blake  <eblake@redhat.com>
6414
6415         nonblocking: new module
6416         * modules/nonblocking: New module.
6417         * modules/nonblocking-tests: Likewise.
6418         * lib/nonblocking.h: New file.
6419         * lib/nonblocking.c: Likewise.
6420         * tests/test-nonblocking.c: New test.
6421         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6422
6423 2011-03-30  Bruno Haible  <bruno@clisp.org>
6424
6425         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6426         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6427         instead of 'printf' format for GCC >= 4.4.
6428         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6429         (fprintf, printf, vfprintf, vprintf): Declare with
6430         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6431         the system's vfprintf() function.
6432         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6433
6434 2011-03-30  Eric Blake  <eblake@redhat.com>
6435
6436         passfd: fix scoping bug
6437         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6438         before sendmsg/recvmsg.
6439
6440         passfd: standardize coding conventions
6441         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6442         can be learned at compile time.
6443         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6444         ifdefs.
6445         (sendfd, recvfd): Follow gnulib code conventions.
6446
6447         passfd: fix incorrect sendmsg arguments
6448         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6449         incorrect msg_controllen value.
6450         * modules/passfd-tests (Depends-on): Check for alarm.
6451         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6452         Reported by Bastien ROUCARIES.
6453
6454 2011-03-30  Bruno Haible  <bruno@clisp.org>
6455
6456         c-strcasestr: Relicense under LGPLv2+.
6457         * modules/c-strcasestr (License): Change to LGPLv2+.
6458         Requested by Eric Blake, for libvirt.
6459
6460 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6461
6462         * users.txt: Add libidn2.  Fix libtasn1 link.
6463
6464 2011-03-30  Jim Meyering  <meyering@redhat.com>
6465
6466         tests: readlink* ("",... fails with EINVAL on newer kernels
6467         readlink and readlinkat have typically failed with ENOENT for
6468         the invalid, empty file name,  "".  However, with the advent
6469         of linux-2.6.39, they fail with EINVAL.
6470         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6471         when operating on the empty file name.
6472         * tests/test-readlink.h (test_readlink): Likewise.
6473
6474 2011-03-29  Bruno Haible  <bruno@clisp.org>
6475
6476         Relicense some modules under LGPLv2+, for libidn2.
6477         * modules/array-mergesort (License): Change to LGPLv2+.
6478         * modules/c-strcaseeq (License): Likewise.
6479         * modules/striconveh (License): Likewise.
6480         * modules/striconveha (License): Likewise.
6481         * modules/uniconv/base (License): Likewise.
6482         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6483         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6484         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6485         * modules/unictype/base (License): Likewise.
6486         * modules/unictype/bidiclass-of (License): Likewise.
6487         * modules/unictype/category-M (License): Likewise.
6488         * modules/unictype/category-none (License): Likewise.
6489         * modules/unictype/category-of (License): Likewise.
6490         * modules/unictype/category-test (License): Likewise.
6491         * modules/unictype/category-test-withtable (License): Likewise.
6492         * modules/unictype/combining-class (License): Likewise.
6493         * modules/unictype/joiningtype-of (License): Likewise.
6494         * modules/unictype/scripts (License): Likewise.
6495         * modules/uninorm/base (License): Likewise.
6496         * modules/uninorm/canonical-decomposition (License): Likewise.
6497         * modules/uninorm/composition (License): Likewise.
6498         * modules/uninorm/decompose-internal (License): Likewise.
6499         * modules/uninorm/decomposition-table (License): Likewise.
6500         * modules/uninorm/nfc (License): Likewise.
6501         * modules/uninorm/nfd (License): Likewise.
6502         * modules/uninorm/u32-normalize (License): Likewise.
6503         * modules/unistr/base (License): Likewise.
6504         * modules/unistr/u32-cpy (License): Likewise.
6505         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6506         * modules/unistr/u32-to-u8 (License): Likewise.
6507         * modules/unistr/u32-uctomb (License): Likewise.
6508         * modules/unistr/u8-check (License): Likewise.
6509         * modules/unistr/u8-mblen (License): Likewise.
6510         * modules/unistr/u8-mbtouc (License): Likewise.
6511         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6512         * modules/unistr/u8-mbtoucr (License): Likewise.
6513         * modules/unistr/u8-prev (License): Likewise.
6514         * modules/unistr/u8-strlen (License): Likewise.
6515         * modules/unistr/u8-to-u32 (License): Likewise.
6516         * modules/unistr/u8-uctomb (License): Likewise.
6517         * modules/unitypes (License): Likewise.
6518         Requested by Simon Josefsson.
6519
6520 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6521
6522         lib-symbol-visibility: Add a notice.
6523         * modules/lib-symbol-visibility (Notice): New field.
6524
6525 2011-03-29  Bruno Haible  <bruno@clisp.org>
6526
6527         getaddrinfo: Doc fix.
6528         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6529         section "fixed in Gnulib".
6530
6531 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6532
6533         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6534         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6535
6536 2011-03-26  Bruno Haible  <bruno@clisp.org>
6537
6538         unictype/property-byname: Reduce the number of load-time relocations.
6539         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6540         (UC_PROPERTY_INDEX_*): New enumeration values.
6541         (uc_property_byname): Convert an index from the lookup table to an
6542         uc_property_t.
6543         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6544         values.
6545
6546 2011-03-26  Bruno Haible  <bruno@clisp.org>
6547
6548         unictype/property-byname: Allow omitted word separators and aliases.
6549         * lib/unictype/pr_byname.gperf: Add property names without word
6550         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6551         for 'space'.
6552
6553 2011-03-26  Bruno Haible  <bruno@clisp.org>
6554
6555         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6556         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6557         also hyphens to space.
6558         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6559         without spaces.
6560         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6561
6562 2011-03-26  Bruno Haible  <bruno@clisp.org>
6563
6564         unictype/joiningtype-byname: Recognize long names as well.
6565         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6566         a long name.
6567         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6568         unictype/joiningtype_byname.h.
6569         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6570         * lib/unictype/joiningtype_byname.gperf: New file.
6571         * modules/unictype/joiningtype-byname (Files): Add
6572         lib/unictype/joiningtype_byname.gperf.
6573         (Depends-on): Add gperf.
6574         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6575         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6576         long names.
6577
6578         Tests for module 'unictype/joiningtype-longname'.
6579         * modules/unictype/joiningtype-longname-tests: New file.
6580         * tests/unictype/test-joiningtype_longname.c: New file.
6581
6582         New module 'unictype/joiningtype-longname'.
6583         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6584         * lib/unictype/joiningtype_longname.c: New file.
6585         * modules/unictype/joiningtype-longname: New file.
6586         * modules/unictype/joiningtype-all (Depends-on): Add
6587         unictype/joiningtype-longname.
6588
6589 2011-03-26  Bruno Haible  <bruno@clisp.org>
6590
6591         unictype/bidiclass-byname: Recognize long names as well.
6592         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6593         name.
6594         * lib/unictype/bidi_byname.c: Include <string.h>,
6595         unictype/bidi_byname.h.
6596         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6597         * lib/unictype/bidi_byname.gperf: New file.
6598         * modules/unictype/bidiclass-byname (Files): Add
6599         lib/unictype/bidi_byname.gperf.
6600         (Depends-on): Add gperf.
6601         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6602         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6603         long names.
6604
6605         Tests for module 'unictype/bidiclass-longname'.
6606         * modules/unictype/bidiclass-longname-tests: New file.
6607         * tests/unictype/test-bidi_longname.c: New file.
6608
6609         New module 'unictype/bidiclass-longname'.
6610         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6611         * lib/unictype/bidi_longname.c: New file.
6612         * modules/unictype/bidiclass-longname: New file.
6613         * modules/unictype/bidiclass-all (Depends-on): Add
6614         unictype/bidiclass-longname.
6615
6616 2011-03-26  Bruno Haible  <bruno@clisp.org>
6617
6618         unictype/bidi*: Rename modules.
6619         * modules/unictype/bidiclass-all: Renamed from
6620         modules/unictype/bidicategory-all.
6621         * modules/unictype/bidiclass-name: Renamed from
6622         modules/unictype/bidiclass-name.
6623         (Description): Update.
6624         * modules/unictype/bidiclass-name-tests: Renamed from
6625         modules/unictype/bidicategory-name-tests.
6626         * modules/unictype/bidiclass-byname: Renamed from
6627         modules/unictype/bidicategory-byname.
6628         (Description): Update.
6629         * modules/unictype/bidiclass-byname-tests: Renamed from
6630         modules/unictype/bidicategory-byname-tests.
6631         * modules/unictype/bidiclass-of: Renamed from
6632         modules/unictype/bidicategory-of.
6633         (Description): Update.
6634         * modules/unictype/bidiclass-of-tests: Renamed from
6635         modules/unictype/bidicategory-of-tests.
6636         * modules/unictype/bidiclass-test: Renamed from
6637         modules/unictype/bidicategory-test.
6638         (Description): Update.
6639         * modules/unictype/bidiclass-test-tests: Renamed from
6640         modules/unictype/bidicategory-test-tests.
6641         * modules/unictype/bidicategory-all: New file, a simple redirection.
6642         * modules/unictype/bidicategory-name: Likewise.
6643         * modules/unictype/bidicategory-byname: Likewise.
6644         * modules/unictype/bidicategory-of: Likewise.
6645         * modules/unictype/bidicategory-test: Likewise.
6646         * modules/unictype/property-bidi-* (Dependencies): Update.
6647         * lib/unictype/bidi_*.c: Update comment.
6648
6649 2011-03-26  Bruno Haible  <bruno@clisp.org>
6650
6651         unictype/bidi*: Rename functions, part 2.
6652         * modules/unictype/bidicategory-name (configure.ac): Update required
6653         libunistring version.
6654         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6655
6656 2011-03-25  Bruno Haible  <bruno@clisp.org>
6657
6658         New module 'unictype/combining-class-all'.
6659         * modules/unictype/combining-class-all: New file.
6660
6661         Tests for module 'unictype/combining-class-byname'.
6662         * modules/unictype/combining-class-byname-tests: New file.
6663         * tests/unictype/test-combiningclass_byname.c: New file.
6664
6665         New module 'unictype/combining-class-byname'.
6666         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6667         * lib/unictype/combiningclass_byname.c: New file.
6668         * lib/unictype/combiningclass_byname.gperf: New file.
6669         * modules/unictype/combining-class-byname: New file.
6670
6671         Tests for module 'unictype/combining-class-longname'.
6672         * modules/unictype/combining-class-longname-tests: New file.
6673         * tests/unictype/test-combiningclass_longname.c: New file.
6674
6675         New module 'unictype/combining-class-longname'.
6676         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6677         * lib/unictype/combiningclass_longname.c: New file.
6678         * modules/unictype/combining-class-longname: New file.
6679
6680         Tests for module 'unictype/combining-class-name'.
6681         * modules/unictype/combining-class-name-tests: New file.
6682         * tests/unictype/test-combiningclass_name.c: New file.
6683
6684         New module 'unictype/combining-class-name'.
6685         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6686         * lib/unictype/combiningclass_name.c: New file.
6687         * modules/unictype/combining-class-name: New file.
6688
6689 2011-03-25  Bruno Haible  <bruno@clisp.org>
6690
6691         unictype/combining-class: Rename source files.
6692         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6693         of unictype/combining.h.
6694         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6695         Update.
6696         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6697         * modules/unictype/combining-class (Description): Fix.
6698         (Files, Makefile.am): Update.
6699         * tests/unictype/test-combiningclass.c: Renamed from
6700         tests/unictype/test-combining.c.
6701         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6702
6703 2011-03-25  Bruno Haible  <bruno@clisp.org>
6704
6705         unictype: Update list of canonical combining classes.
6706         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6707
6708 2011-03-25  Bruno Haible  <bruno@clisp.org>
6709
6710         unictype/category-byname: Recognize long names as well.
6711         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6712         a long name.
6713         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6714         unictype/categ_byname.h.
6715         (UC_CATEGORY_INDEX_*): New enumeration values.
6716         (uc_general_category_byname): Use uc_general_category_lookup and
6717         convert from index to value.
6718         * lib/unictype/categ_byname.gperf: New file.
6719         * modules/unictype/category-byname (Files): Add
6720         lib/unictype/categ_byname.gperf.
6721         (Depends-on): Add gperf.
6722         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6723         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6724         long names.
6725
6726         Tests for module 'unictype/category-longname'.
6727         * modules/unictype/category-longname-tests: New file.
6728         * tests/unictype/test-categ_longname.c: New file.
6729
6730         New module 'unictype/category-longname'.
6731         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6732         * lib/unictype/categ_longname.c: New file.
6733         * modules/unictype/category-longname: New file.
6734         * modules/unictype/category-all (Depends-on): Add it.
6735
6736 2011-03-25  Bruno Haible  <bruno@clisp.org>
6737
6738         Tests for module 'unictype/category-LC'.
6739         * modules/unictype/category-LC-tests: New file.
6740         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6741
6742         New module 'unictype/category-LC'.
6743         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6744         (UC_CATEGORY_LC): New declaration.
6745         (UC_CASED_LETTER): New macro.
6746         * lib/gen-uni-tables.c (is_category_LC): New function.
6747         (output_categories): Also handle category LC.
6748         (UC_CATEGORY_MASK_LC): New enumeration value.
6749         (general_category_byname): Also handle category LC.
6750         * lib/unictype/categ_LC.c: New file.
6751         * lib/unictype/categ_LC.h: New file, automatically generated.
6752         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6753         category LC.
6754         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6755         * modules/unictype/category-LC: New file.
6756         * modules/unictype/category-byname (Depends-on): Add
6757         unictype/category-LC.
6758         * modules/unictype/category-all (Depends-on): Likewise.
6759
6760 2011-03-25  Eric Blake  <eblake@redhat.com>
6761
6762         xmalloc: revert yesterday's regression
6763         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6764         realloc's underlying behavior (allowing allocation of zero-size
6765         objects, especially if malloc-gnu is also in use).
6766
6767 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6768
6769         maint.mk: add missing version to VC-tag
6770         * top/maint.mk: git tag was missing actual tag name; add it.
6771
6772         valgrind: do leak checking, and exit with code 1 on error (not 0)
6773         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6774         to VALGRIND.
6775
6776 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6777
6778         posix-modules: say what it does.
6779         * posix-modules: Add a line to the --help output saying what it does.
6780
6781 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6782
6783         xmalloc: Do not leak if underlying realloc is C99 compatible.
6784         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6785         This avoids a leak on C99-based systems.  See
6786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6787
6788 2011-03-24  Eric Blake  <eblake@redhat.com>
6789
6790         realloc: document portability problem
6791         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6792         passing 0 size to realloc.
6793
6794 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6795
6796         doc: update users.txt
6797         * users.txt: Add cvsps, tmpwatch
6798
6799 2011-03-23  Matt Rice  <ratmice@gmail.com>
6800
6801         doc: update users.txt
6802         * users.txt: Add gdb.
6803
6804 2011-03-23  Jim Meyering  <meyering@redhat.com>
6805
6806         doc: update users.txt
6807         Looking through matches up to the following URL (there are still
6808         several more pages), I found several projects that use gnulib:
6809         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6810         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6811         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6812
6813 2011-03-22  Bruno Haible  <bruno@clisp.org>
6814
6815         unictype/bidi*: Rename functions.
6816         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6817         uc_bidi_class, uc_is_bidi_class): New declarations.
6818         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6819         uc_bidi_category_byname.
6820         (uc_bidi_category_byname): New function.
6821         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6822         u_bidi_category_name.
6823         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6824         (uc_bidi_category_name): New function.
6825         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6826         uc_bidi_category.
6827         (uc_bidi_category): New function.
6828         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6829         uc_is_bidi_category. Invoke uc_bidi_class.
6830         (uc_is_bidi_category): New function.
6831         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6832         instead of uc_bidi_category_byname.
6833         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6834         instead of uc_bidi_category_name.
6835         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6836         uc_bidi_category.
6837         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6838         instead of uc_is_bidi_category.
6839
6840 2011-03-21  Bruno Haible  <bruno@clisp.org>
6841
6842         New module 'unictype/joininggroup-all'.
6843         * modules/unictype/joininggroup-all: New file.
6844
6845         Tests for module 'unictype/joininggroup-of'.
6846         * modules/unictype/joininggroup-of-tests: New file.
6847         * tests/unictype/test-joininggroup_of.c: New file.
6848         * tests/unictype/test-joininggroup_of.h: New file, automatically
6849         generated by gen-uni-tables.
6850
6851         New module 'unictype/joininggroup-of'.
6852         * modules/unictype/joininggroup-of: New file.
6853         * lib/unictype/joininggroup_of.c: New file.
6854         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6855         gen-uni-tables.
6856
6857         Tests for module 'unictype/joininggroup-byname'.
6858         * modules/unictype/joininggroup-byname-tests: New file.
6859         * tests/unictype/test-joininggroup_byname.c: New file.
6860
6861         New module 'unictype/joininggroup-byname'.
6862         * modules/unictype/joininggroup-byname: New file.
6863         * lib/unictype/joininggroup_byname.c: New file.
6864         * lib/unictype/joininggroup_byname.gperf: New file.
6865
6866         Tests for module 'unictype/joininggroup-name'.
6867         * modules/unictype/joininggroup-name-tests: New file.
6868         * tests/unictype/test-joininggroup_name.c: New file.
6869
6870         New module 'unictype/joininggroup-name'.
6871         * modules/unictype/joininggroup-name: New file.
6872         * lib/unictype/joininggroup_name.c: New file.
6873         * lib/unictype/joininggroup_name.h: New file.
6874
6875         New module 'unictype/joiningtype-all'.
6876         * modules/unictype/joiningtype-all: New file.
6877
6878         Tests for module 'unictype/joiningtype-of'.
6879         * modules/unictype/joiningtype-of-tests: New file.
6880         * tests/unictype/test-joiningtype_of.c: New file.
6881         * tests/unictype/test-joiningtype_of.h: New file, automatically
6882         generated by gen-uni-tables.
6883
6884         New module 'unictype/joiningtype-of'.
6885         * modules/unictype/joiningtype-of: New file.
6886         * lib/unictype/joiningtype_of.c: New file.
6887         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6888         gen-uni-tables.
6889
6890         Tests for module 'unictype/joiningtype-byname'.
6891         * modules/unictype/joiningtype-byname-tests: New file.
6892         * tests/unictype/test-joiningtype_byname.c: New file.
6893
6894         New module 'unictype/joiningtype-byname'.
6895         * modules/unictype/joiningtype-byname: New file.
6896         * lib/unictype/joiningtype_byname.c: New file.
6897
6898         Tests for module 'unictype/joiningtype-name'.
6899         * modules/unictype/joiningtype-name-tests: New file.
6900         * tests/unictype/test-joiningtype_name.c: New file.
6901
6902         New module 'unictype/joiningtype-name'.
6903         * modules/unictype/joiningtype-name: New file.
6904         * lib/unictype/joiningtype_name.c: New file.
6905
6906         unictype: Add support for Arabic shaping properties.
6907         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6908         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6909         declarations.
6910         (UC_JOINING_GROUP_*): New enumeration values.
6911         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6912         declarations.
6913         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6914         (unicode_joining_type): New variable.
6915         (UC_JOINING_GROUP_*): New enumeration values.
6916         (unicode_joining_group): New variable.
6917         (fill_arabicshaping, joining_type_as_c_identifier,
6918         output_joining_type_test, output_joining_type,
6919         joining_group_as_c_identifier, output_joining_group_test,
6920         output_joining_group): New functions.
6921         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6922         fill_arabicshaping and output_joining_type_test, output_joining_type,
6923         output_joining_group_test, output_joining_group.
6924         Reported by Simon Josefsson.
6925
6926 2011-03-21  Jim Meyering  <meyering@redhat.com>
6927
6928         strftime: fix a bug in yesterday's change
6929         * lib/strftime.c (add): Accommodate width's initial value of -1.
6930         Otherwise, nstrftime would copy uninitialized data into
6931         the result buffer.
6932
6933 2011-03-21  Jim Meyering  <meyering@redhat.com>
6934
6935         tests: add strftime-tests module
6936         * tests/test-strftime.c: New file.
6937         * modules/strftime-tests: New module.
6938
6939 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6940
6941         strftime: don't assume a byte count fits in 'int'
6942         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6943         found this problem by static analysis, using gcc -Wstrict-overflow
6944         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6945         on an integer overflow having undefined behavior, but it turns out
6946         that the argument is a size, which might not fit in 'int' anyway,
6947
6948 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6949
6950         stdio: don't require ignore_value around fwrite
6951
6952         This patch works around libc bug 11959
6953         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6954         Without this patch, applications must often write
6955         ignore_value (fwrite (...)) even though the ignore_value is
6956         not helpful here.  It's common to write many objects, using
6957         fwrite/printf/etc., and then use ferror to detect output error.
6958
6959         I considered making this patch optional, but decided against it,
6960         because libc is obviously being inconsistent here: there is no
6961         reason libc should insist that user code must inspect fwrite
6962         return's value without also insisting that it inspect printf's,
6963         putchar's, etc.  If user code wants to have a strict style where
6964         all these functions' values are checked (so that ferror need not
6965         be checked), we could add support for that style in a new gnulib
6966         module, but in the meantime it's better to be consistent and to
6967         support common usage.
6968
6969         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6970         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6971         that we are compiling in checking mode, and if not C++, and
6972         if not already wrapping fwrite for some other reason.
6973         (fwrite): #define to rpl_fwrite if the latter is defined.
6974
6975 2011-03-20  Bruno Haible  <bruno@clisp.org>
6976
6977         verror: Fix compilation error introduced on 2011-02-13.
6978         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6979         instead of __attribute__.
6980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6981
6982 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6983             Bruno Haible  <bruno@clisp.org>
6984
6985         socklen: do not depend on sys_socket
6986         While trying to modify Emacs to use gnulib's socklen module,
6987         I discovered a circular dependency: socklen depends on sys_socket
6988         and vice versa.  Emacs can use socklen, but it does not need
6989         sys_socket because it has its own substitute for sys/socket.h.
6990         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6991         gl_TYPE_SOCKLEN_T.
6992         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6993         gl_PREREQ_SYS_H_SOCKET.
6994         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6995         gl_PREREQ_SYS_H_SOCKET.
6996         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6997         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6998         * modules/socklen (Depends-on): Do not depend on sys_socket.
6999         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7000
7001 2011-03-20  Jim Meyering  <meyering@redhat.com>
7002
7003         maint.mk: sort file names *after* new transformation
7004         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7005         prefix would have led to an unwarranted failure in GNU parted.
7006         Sort after that transformation.
7007
7008 2011-03-19  Jim Meyering  <meyering@redhat.com>
7009
7010         maint.mk: fix po-file syntax-check rule
7011         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7012         Patch by Bruno Haible.
7013
7014 2011-03-19  Bruno Haible  <bruno@clisp.org>
7015
7016         socklen: Update comment.
7017         * m4/socklen.m4: Update comment about platforms.
7018
7019 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7020             Bruno Haible  <bruno@clisp.org>
7021
7022         inet_ntop, inet_pton: Simplify.
7023         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7024         documented to provide socklen_t and we already depend on sys_socket.
7025         * modules/inet_pton (Depends-on): Likewise.
7026         * lib/arpa_inet.in.h: Adjust comment.
7027
7028 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7029             Bruno Haible  <bruno@clisp.org>
7030
7031         netdb: Simplify.
7032         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7033         documented to provide socklen_t and we already depend on sys_socket.
7034         * lib/netdb.in.h: Adjust comment.
7035
7036 2011-03-19  Bruno Haible  <bruno@clisp.org>
7037
7038         sys_socket, netdb: Document problem with socklen_t.
7039         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7040         platforms.
7041         * doc/posix-headers/netdb.texi: Likewise.
7042
7043 2011-03-18  Eric Blake  <eblake@redhat.com>
7044
7045         maint.mk: let po check work in VPATH build
7046         * top/maint.mk (po_file): Allow cfg.mk override.
7047         (sc_po_check): Allow VPATH use.
7048         Reported by Jiri Denemark.
7049
7050 2011-03-16  Jim Meyering  <meyering@redhat.com>
7051
7052         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7053         Before, you would have had to create one .x-sc_ file per rule in order
7054         to exempt offending files.  Now, you may instead use a Make variable --
7055         usually defined in cfg.mk -- whose name identifies the affected rule.
7056         * top/maint.mk (_sc_excl): Define.
7057         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7058         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7059
7060 2011-03-13  Bruno Haible  <bruno@clisp.org>
7061
7062         ignore-value tests: Avoid warnings.
7063         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7064         empty for gcc < 3.4.
7065
7066 2011-03-13  Bruno Haible  <bruno@clisp.org>
7067
7068         passfd: Fix link error on Solaris.
7069         * modules/passfd (Description): Correct.
7070         (Depends-on): Add socketlib.
7071         (Link): New section.
7072         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7073
7074 2011-03-13  Bruno Haible  <bruno@clisp.org>
7075
7076         passfd: Fix link error on AIX 5.2.
7077         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7078
7079 2011-03-13  Bruno Haible  <bruno@clisp.org>
7080
7081         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7082         * lib/sys_socket.in.h: Include <stddef.h>.
7083         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7084         CMSG_FIRSTHDR. Remove unused variable.
7085
7086 2011-03-13  Bruno Haible  <bruno@clisp.org>
7087
7088         passfd: Fix compilation error on OpenBSD.
7089         * lib/passfd.c: Include <sys/uio.h>.
7090
7091 2011-03-13  Bruno Haible  <bruno@clisp.org>
7092
7093         passfd test: Fix warnings.
7094         * tests/test-passfd.c: Include <sys/wait.h>.
7095         (main): Fix typo.
7096
7097 2011-03-13  Bruno Haible  <bruno@clisp.org>
7098
7099         passfd module, part 4, tweaks.
7100         * tests/test-passfd.c: Reorder includes.
7101         (main): Fix perror and printf calls.
7102
7103 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7104
7105         passfd module, part 4.
7106         * modules/passfd-tests: New file.
7107         * tests/test-passfd.c: New file.
7108
7109 2011-03-13  Jim Meyering  <meyering@redhat.com>
7110
7111         Makefile: rely on GNU make; derive syntax-check rule names
7112         Rather than requiring that each sc_ rule be listed as a dependent
7113         of "check", use features of GNU make to derive the list.
7114         * Makefile (syntax-check-rules): Define.
7115         (check): Depend on the new variable, not the hard-coded list.
7116
7117 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7118             Bruno Haible  <bruno@clisp.org>
7119
7120         passfd module, part 3.
7121         * lib/passfd.h (recvfd): Add a flags argument.
7122         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7123         (recvfd): Add a flags argument.
7124         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7125         exists.
7126         * modules/passfd (Depends-on): Add cloexec.
7127         Suggested by Eric Blake.
7128
7129 2011-03-13  Bruno Haible  <bruno@clisp.org>
7130
7131         passfd module, part 2, tweaks.
7132         * modules/passfd (Files): Reorder.
7133         (Depends-on): Remove errno.
7134         (Include): Remove <sys/socket.h>, <sys/un.h>.
7135         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7136         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7137         specification header. Include <sys/socket.h> always. Don't include
7138         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7139         (sendfd): Clarify that it sets errno when it fails.
7140         (recvfd): Fix specification.
7141
7142 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7143
7144         passfd module, part 2.
7145         * modules/passfd: New file.
7146         * lib/passfd.h: New file.
7147         * lib/passfd.c: New file.
7148
7149 2011-03-12  Bruno Haible  <bruno@clisp.org>
7150
7151         wcswidth, mbswidth: Avoid integer overflow.
7152         * lib/wcswidth.c: Include <limits.h>.
7153         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7154         * lib/mbswidth.c: Include <limits.h>.
7155         (mbsnwidth): Avoid 'int' overflow.
7156         Reported by Jim Meyering.
7157
7158 2011-03-12  Bruno Haible  <bruno@clisp.org>
7159
7160         futimens, utimensat: Avoid endless recursion on Solaris 10.
7161         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7162         Solaris.
7163         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7164         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7165
7166 2011-03-11  Jim Meyering  <meyering@redhat.com>
7167
7168         maint.mk: relax a regexp to accommodate other formatting styles
7169         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7170         between "ngettext" and the following "(".
7171
7172 2011-03-11  Pádraig Brady <P@draigBrady.com>
7173
7174         maint.mk: suppress a false positive warning
7175         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7176         diagnostics are marked with ngettext.
7177
7178 2011-03-10  Eric Blake  <eblake@redhat.com>
7179
7180         wchar: add explicit dependencies, for Tru64
7181         * modules/mbmemcasecoll (Depends-on): Add wchar.
7182         * modules/mbtowc (Depends-on): Likewise.
7183         * modules/vasnprintf (Depends-on): Likewise.
7184         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7185         * modules/wctomb (Depends-on): Likewise.
7186         Reported by Peter O'Gorman.
7187
7188 2011-03-08  Bruno Haible  <bruno@clisp.org>
7189
7190         passfd module, part 1, tweaks.
7191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7192         Improve indentation. Improve AC_MSG_CHECKING messages.
7193         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7194         gl_SOCKET_FAMILIES.
7195
7196 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7197
7198         passfd module, part 1.
7199         * m4/afunix.m4: New file.
7200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7201         sockets.
7202
7203 2011-03-08  Bruno Haible  <bruno@clisp.org>
7204
7205         regex-quote: New API.
7206         * lib/regex-quote.h: Include <stdbool.h>.
7207         (struct regex_quote_spec): New type.
7208         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7209         New declarations.
7210         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7211         'const struct regex_quote_spec *' argument.
7212         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7213         (pcre_special): New constant.
7214         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7215         New functions.
7216         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7217         'const struct regex_quote_spec *' argument.
7218         * modules/regex-quote (Depends-on): Add stdbool.
7219         * tests/test-regex-quote.c (check): Update for new API. Add test for
7220         anchored results.
7221         * NEWS: Mention the API change.
7222         Reported by Reuben Thomas and Eric Blake.
7223
7224 2011-03-06  Bruno Haible  <bruno@clisp.org>
7225
7226         regex-quote: Fix creation of POSIX extended regular expressions.
7227         * lib/regex-quote.c (ere_special): Add grouping and alternation
7228         operators.
7229
7230 2011-03-05  Bruno Haible  <bruno@clisp.org>
7231
7232         doc: Improve doc regarding autopoint vs. gnulib.
7233         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7234         disable autopoint while running autoreconf.
7235         Suggested by Ralf Wildenhues.
7236
7237 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7238
7239         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7240         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7241
7242 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7243
7244         parse-duration: remove xalloc.h dependency
7245         * lib/parse-duration.c (parse_period): handle NULL return from
7246         strdup instead of calling xstrdup().
7247         * modules/parse-duration: remove "xalloc" dependency
7248
7249 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7250
7251         bootstrap: honor m4_base when running aclocal
7252         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7253
7254 2011-03-02  Jim Meyering  <meyering@redhat.com>
7255
7256         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7257         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7258         on request from Matt Booth.
7259
7260 2011-03-01  Eric Blake  <eblake@redhat.com>
7261
7262         test-link: work on Hurd
7263         * tests/test-link.h (test_link): Hurd rejects linking directories
7264         with EISDIR instead of the POSIX-mandated EPERM.
7265
7266 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7267
7268         stdio: simplify by moving files to printf-posix, sigpipe
7269         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7270         since this symbol is needed only if printf is replaced.
7271         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7272         Require gl_ASM_SYMBOL_PREFIX.
7273         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7274         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7275         (Depends-on): Add 'raise'.
7276         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7277         * modules/stdio (Files): Remove lib/stdio-write.c,
7278         m4/asm-underscore.m4.
7279         (Depends-on): Remove 'raise'.
7280
7281         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7282         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7283         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7284         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7285
7286 2011-02-28  Bruno Haible  <bruno@clisp.org>
7287
7288         localcharset: Assume ANSI C behaviour of free().
7289         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7290         calling free().
7291         Suggested by Simon Josefsson <simon@josefsson.org>.
7292
7293 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7294             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7295             Bruno Haible  <bruno@clisp.org>  (tiny change)
7296
7297         On Cygwin, use /proc file system instead of win32 API.
7298         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7299         Win32 file names.
7300         (DllMain): Simplify by removing Cygwin specific code.
7301         (find_shared_library_fullname): Use Linux specific implementation also
7302         for Cygwin.
7303         (get_shared_library_fullname): Update accordingly.
7304         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7305         Win32 file names.
7306         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7307         Cygwin specific code.
7308
7309 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7310             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7311
7312         Fix OpenMP flag detection for various Fortran compilers.
7313         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7314         OpenMP-conditional compilation construct, to force compile
7315         failure with missing OpenMP flag.
7316         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7317
7318 2011-02-25  Eric Blake  <eblake@redhat.com>
7319
7320         strstr: expand test coverage
7321         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7322         compilation.
7323         * tests/test-memmem.c (main): Duplicate tests.
7324         * tests/test-strcasestr.c (main): Likewise.
7325         * tests/test-c-strcasestr.c (main): Likewise.
7326
7327 2011-02-25  Jim Meyering  <meyering@redhat.com>
7328
7329         maint.mk: detect missing-NL-at-EOF, too
7330         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7331         it also detects when a file lacks a newline at EOF.
7332         (require_exactly_one_NL_at_EOF_): Renamed from
7333         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7334         since people may well have .x-sc_... file names tied to the
7335         existing name.  Suggested by Eric Blake.
7336
7337 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7338
7339         dirname: move m4/dos.m4 functionality into lib/dosname.h
7340
7341         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7342         extracts symbols from it, puts them into config.h; but it's much
7343         easier to use the symbols directly.  filename.h already does this,
7344         but it disagrees with dos.m4 in some respects.  This patch
7345         introduces a different include file dosname.h that packages up
7346         dos.m4, and then later we can work on merging filename.h and
7347         dosname.h.  Applications that need only the easy-to-configure
7348         symbols should consider including dosname.h rather than dirname.h.
7349         * NEWS: Mention incompatible changes.
7350         * m4/dos.m4: Remove.
7351         * lib/dosname.h, modules/dosname: New files.
7352         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7353         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7354         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7355         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7356         Include dosname.h, not dirname.h.
7357         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7358         Include dosname.h, for definitions of symbols like ISSLASH
7359         that used to be in config.h.
7360         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7362         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7363         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7364         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7365         * modules/rmdir (Files): Likewise.
7366         * modules/stat (Files): Likewise.
7367         * modules/unlink (Files): Likewise.
7368         * modules/dirname-lgpl (Depends-on): Add dosname.
7369         * modules/lstat (Depends-on): Likewise.
7370         * modules/openat (Depends-on): Likewise.
7371         * modules/rmdir (Depends-on): Likewise.
7372         * modules/savewd (Depends-on): Likewise.
7373         * modules/stat (Depends-on): Likewise.
7374         * modules/unlink (Depends-on): Likewise.
7375         * modules/openat (Depends-on): Remove dirname-lgpl.
7376         * modules/savewd (Depends-on): Likewise.
7377         * tests/test-dirname.c: Do not use removed symbols like
7378         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7379         the remaining symbols, e.g., ISSLASH ('\\').
7380
7381 2011-02-25  Eric Blake  <eblake@redhat.com>
7382
7383         strstr: revert patches that introduced bug and pessimization
7384         * lib/str-two-way.h: Add another reference.
7385         (two_way_short_needle, two_way_long_needle): Revert changes from
7386         2011-02-24; they pessimize search speed.
7387         (critical_factorization): Partially revert changes from
7388         2010-06-22; they violate the requirement that the left half of the
7389         needle be smaller than the period of the needle.
7390
7391 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         filenamecat: remove unnecessary dependency on dirname-lgpl
7394         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7395         is no direct dependency, just an indirect one via filenamecat-lgpl.
7396
7397         remove: remove unnecessary use of m4/dos.m4
7398         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7399         * modules/remove (FILES): Remove m4/dos.m4.
7400
7401         * lib/openat-proc.c: Don't include dirname.h; not needed.
7402
7403         backupfile: remove unnecessary use of m4/dos.m4
7404         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7405         of its symbols are used by the backupfile code.  backupfile.c does
7406         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7407         for the rare case of programs that want all their backup file
7408         names to live within 8+3 limits, and dos.m4 doesn't address that.
7409         * modules/backupfile (Files): Remove m4/dos.m4.
7410
7411 2011-02-24  Jim Meyering  <meyering@redhat.com>
7412
7413         strstr: fix a bug whereby strstr would mistakenly return NULL
7414         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7415         in period calculation.
7416         (two_way_long_needle): Likewise.
7417         The original problem was reported by Mike Stump in
7418         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7419         Ralf Wildenhues provided the short needle and haystack.
7420         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7421         Add a more involved test to trigger the bug in two_way_long_needle.
7422
7423 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7424
7425         gnulib-tool: remove use of bold display in help screen
7426         * gnulib-tool (func_usage): Do not use bold display anymore in the
7427         help screen.  That was just meant to be a temporary emphasis for a
7428         backward-incompatible change.
7429
7430 2011-02-23  Bruno Haible  <bruno@clisp.org>
7431
7432         Fix misindentation of preprocessor directives.
7433         * lib/argp-namefrob.h: Reindent preprocessor directives.
7434         * lib/getopt_int.h (struct _getopt_data): Likewise.
7435         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7436         * lib/vasnprintf.c (decode_long_double): Likewise.
7437         * tests/test-argmatch.c: Insert blank lines, for clarity.
7438         * tests/test-exclude.c: Likewise.
7439
7440 2011-02-22  Bruno Haible  <bruno@clisp.org>
7441
7442         ioctl: Fix for MacOS X in 64-bit mode.
7443         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7444         value.
7445         Suggested by Eric Blake.
7446         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7447
7448 2011-02-22  Jim Meyering  <meyering@redhat.com>
7449
7450         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7451         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7452         in lib/.
7453
7454 2011-02-22  Eric Blake  <eblake@redhat.com>
7455
7456         maint: avoid any CDPATH issue
7457         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7458
7459         maint: adjust cpp indentation for my modules, as well
7460         * Makefile (sc_cpp_indent_check): Add my name.
7461         * lib/fbufmode.c: Filter through cppi.
7462         * lib/fpurge.c: Likewise.
7463         * lib/freadable.c: Likewise.
7464         * lib/freading.c: Likewise.
7465         * lib/fwritable.c: Likewise.
7466         * lib/fwriting.c: Likewise.
7467         * lib/sigaction.c: Likewise.
7468
7469 2011-02-22  Jim Meyering  <meyering@redhat.com>
7470
7471         maint: adjust cpp indentation to reflect nesting depth
7472         I.e., in a block of code that begins with an unnested "#if",
7473         put one space between the "#" in column 1 and following token.
7474         For example,
7475         -#include <sys/vfs.h>
7476         +# include <sys/vfs.h>
7477         Do this only in .c files that are part of a module I maintain.
7478         * lib/linkat.c: Filter through cppi.
7479         * lib/nanosleep.c: Likewise.
7480         * lib/openat.c: Likewise.
7481         * lib/openat-die.c: Likewise.
7482         * lib/dup3.c: Likewise.
7483         * lib/fchownat.c: Likewise.
7484         * lib/flock.c: Likewise.
7485         * lib/fsync.c: Likewise.
7486         * lib/fts.c: Likewise.
7487         * lib/getpass.c: Likewise.
7488         * lib/gettimeofday.c: Likewise.
7489         * lib/userspec.c: Likewise.
7490         * Makefile (sc_cpp_indent_check): New rule, to check this.
7491
7492 2011-02-22  Bruno Haible  <bruno@clisp.org>
7493
7494         New module 'wctomb'.
7495         * lib/stdlib.in.h (wctomb): New declaration.
7496         * lib/wctomb.c: New file.
7497         * lib/wctomb-impl.h: New file.
7498         * m4/wctomb.m4: New file.
7499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7500         REPLACE_WCTOMB.
7501         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7502         REPLACE_WCTOMB.
7503         * modules/wctomb: New file.
7504         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7505         * doc/posix-functions/wctomb.texi: Mention the new module.
7506         * modules/wctob (Depends-on): Add wctomb.
7507
7508 2011-02-22  Bruno Haible  <bruno@clisp.org>
7509
7510         New module 'mbtowc'.
7511         * lib/stdlib.in.h (mbtowc): New declaration.
7512         * lib/mbtowc.c: New file.
7513         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7514         * m4/mbtowc.m4: New file.
7515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7516         REPLACE_MBTOWC.
7517         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7518         REPLACE_MBTOWC.
7519         * modules/mbtowc: New file.
7520         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7521         * doc/posix-functions/mbtowc.texi: Mention the new module.
7522         * modules/btowc (Depends-on): Add mbtowc.
7523
7524 2011-02-22  Bruno Haible  <bruno@clisp.org>
7525
7526         wcrtomb: Add more tests for native Windows platforms.
7527         * tests/test-wcrtomb-w32-1.sh: New file.
7528         * tests/test-wcrtomb-w32-2.sh: New file.
7529         * tests/test-wcrtomb-w32-3.sh: New file.
7530         * tests/test-wcrtomb-w32-4.sh: New file.
7531         * tests/test-wcrtomb-w32-5.sh: New file.
7532         * tests/test-wcrtomb-w32.c: New file.
7533         * modules/wcrtomb-tests (Files): Add them.
7534         (Makefile.am): Arrange to run these tests.
7535         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7536         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7537
7538 2011-02-20  Bruno Haible  <bruno@clisp.org>
7539
7540         wcrtomb: Enhance test.
7541         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7542
7543 2011-02-20  Bruno Haible  <bruno@clisp.org>
7544
7545         mbrtowc: Tiny optimization.
7546         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7547
7548 2011-02-20  Jim Meyering  <meyering@redhat.com>
7549
7550         test-exclude.c: remove unmatched #endif
7551         * tests/test-exclude.c: Remove stray #endif, left over from
7552         the change of a week ago.
7553
7554 2011-02-19  Jim Meyering  <meyering@redhat.com>
7555
7556         git-version-gen: skip "-dirty" check when appropriate
7557         * build-aux/git-version-gen: Don't run any git commands when the
7558         version string comes from .tarball-version.  Prior to this, we
7559         would run git update-index --refresh even from a just-unpacked
7560         tarball directory, and that could affect a .git/ directory in a
7561         parent of the build directory.  Reported by Mike Frysinger.
7562
7563 2011-02-19  Bruno Haible  <bruno@clisp.org>
7564
7565         unictype/property-byname: Reduce the size of the 'data' segment.
7566         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7567
7568 2011-02-19  Bruno Haible  <bruno@clisp.org>
7569
7570         unictype/scripts: Reduce the size of the 'data' segment.
7571         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7572         '%pic'.
7573         * lib/unictype/scripts_byname.gperf: Regenerated.
7574
7575 2011-02-19  Bruno Haible  <bruno@clisp.org>
7576
7577         stdint: Update documentation.
7578         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7579
7580 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7581
7582         stdint: omit redundant check for wchar.h
7583         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7584         always tests whether wchar.h exists, so remove the now-redundant test.
7585
7586 2011-02-18  Bruno Haible  <bruno@clisp.org>
7587
7588         stdint: Cut dependency to module 'wchar'.
7589         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7590         include the necessary prerequisites.
7591         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7592         * modules/stdint (Depends-on): Remove wchar.
7593         (Makefile.am): Substitute HAVE_WCHAR_H.
7594         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7595
7596 2011-02-18  Eric Blake  <eblake@redhat.com>
7597
7598         longlong: skip, rather than fail, on cross-compilation
7599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7600         when cross-compiling; regression from 2011-02-16.
7601
7602 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7603
7604         * NEWS: Mention 2011-02-08 change to stdlib.
7605
7606 2011-02-17  Bruno Haible  <bruno@clisp.org>
7607
7608         getloadavg: Add comments about platforms.
7609         * m4/getloadavg.m4: Add comment.
7610         * lib/getloadavg.c: Likewise.
7611
7612 2011-02-17  Bruno Haible  <bruno@clisp.org>
7613
7614         getloadavg: Fix link error on Solaris 2.6.
7615         * modules/getloadavg (Link): New section.
7616         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7617         linking test-getloadavg.
7618         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7619         getloadavg.
7620
7621 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7622
7623         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7624         It was 'int', but this doesn't match the IRIX 6.5 manual.
7625         Suggested by Bruno Haible in
7626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7627
7628 2011-02-17  Bruno Haible  <bruno@clisp.org>
7629
7630         havelib: Fix comments.
7631         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7632         change.
7633
7634 2011-02-17  Bruno Haible  <bruno@clisp.org>
7635
7636         havelib: Update config.rpath.
7637         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7638
7639 2011-02-17  Bruno Haible  <bruno@clisp.org>
7640
7641         getloadavg test: Add some plausibility checks.
7642         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7643         is improbable.
7644
7645 2011-02-16  Eric Blake  <eblake@redhat.com>
7646
7647         maintainer-makefile: make syntax-check a no-op from tarballs
7648         * top/maint.mk (no-vc-detected): New rule.
7649         (local-checks-available): Use it to avoid hanging if someone tries
7650         'make syntax-check' from a tarball.  Also append to any non-syntax
7651         checks already defined in cfg.mk.
7652
7653 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7654
7655         longlong: tune, particularly for common case of c99
7656
7657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7658         or running anything if c99, or if unsigned long long int does not
7659         work.  In either case, we know the answer without further tests.
7660         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7661         it at most once, and use its results for both long long int and
7662         unsigned long long int.  This is more likely to be efficient in
7663         the common case where the program wants to check for both long
7664         long int and unsigned long long int.
7665         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7666         since the answer is already known.
7667
7668 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7669
7670         getloadavg: set errno
7671         * lib/getloadavg.c: Set errno when returning -1.  If no other
7672         error number looks appropriate, set it to ENOSYS if the getloadavg
7673         looks like it can't possibly ever work, ENOTSUP otherwise.
7674         Suggested by Bruno Haible in
7675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7676
7677         getloadavg: trim unused parts and speed up 'configure'
7678         * NEWS: Document this.
7679         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7680         always compiled if getloadavg is absent.
7681         Move test code to ...
7682         * tests/test-getloadavg.c: New file, containing previous
7683         contents of test from lib/getloadavg.c.  It also contains
7684         suggestions by Bruno Haible in
7685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7686         * modules/getloadavg-tests: New file.
7687         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7688         Do tests in the same order as they're needed for getloadavg.c.
7689         Omit setgid-related tests that generate symbols KMEM_GROUP,
7690         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7691         Do only the tests that are needed to see whether the system has
7692         getloadavg, moving the other tests into ...
7693         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7694         NLIST_NAME_UNION; nobody should be using it.  Do not define
7695         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7696         relevant, as the user of this module shouldn't care how getloadavg
7697         is implemented.
7698
7699         getloadavg: omit unused var
7700         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7701
7702 2011-02-15  Jim Meyering  <meyering@redhat.com>
7703
7704         doc: update users.txt
7705         * users.txt: Update iwhd's URL.
7706
7707 2011-02-13  Bruno Haible  <bruno@clisp.org>
7708
7709         Consistent macro naming for macros that use GCC __attribute__.
7710         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7711         _ATTRIBUTE_NONNULL_.
7712         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7713         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7714         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7715         ATTRIBUTE_DEPRECATED.
7716         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7717         ATTRIBUTE_NORETURN.
7718         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7719         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7720         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7721         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7722         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7723         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7724         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7725         ATTRIBUTE_SENTINEL.
7726         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7727         ATTRIBUTE_RETURN_CHECK.
7728         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7729         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7730         ATTRIBUTE_NORETURN.
7731         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7732         Reported by Paul Eggert.
7733
7734 2011-02-13  Bruno Haible  <bruno@clisp.org>
7735
7736         Don't interfere with a program's definition of __attribute__.
7737         * lib/argp.h (__attribute__): Remove definition.
7738         (_GL_ATTRIBUTE_FORMAT): New macro.
7739         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7740         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7741         (_GL_ATTRIBUTE_FORMAT): New macro.
7742         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7743         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7744         GCC 3 or newer.
7745         * lib/error.h (__attribute__): Remove definition.
7746         (_GL_ATTRIBUTE_FORMAT): New macro.
7747         (error, error_at_line): Use it.
7748         * lib/hash.h (__attribute__): Remove definition.
7749         (ATTRIBUTE_WUR): Update definition. Define always.
7750         * lib/openat.h (__attribute__): Remove definition.
7751         (ATTRIBUTE_NORETURN): Update definition. Define always.
7752         * lib/sigpipe-die.h (__attribute__): Remove definition.
7753         (ATTRIBUTE_NORETURN): Update definition. Define always.
7754         * lib/vasnprintf.h (__attribute__): Remove definition.
7755         (_GL_ATTRIBUTE_FORMAT): New macro.
7756         (asnprintf, vasnprintf): Use it.
7757         * lib/xalloc.h (__attribute__): Remove definition.
7758         (ATTRIBUTE_NORETURN): Update definition. Define always.
7759         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7760         * lib/xmemdup0.h (__attribute__): Remove definition.
7761         (ATTRIBUTE_NORETURN): Update definition. Define always.
7762         * lib/xprintf.h (__attribute__): Remove definition.
7763         (_GL_ATTRIBUTE_FORMAT): New macro.
7764         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7765         * lib/xstrtol.h (__attribute__): Remove definition.
7766         (ATTRIBUTE_NORETURN): Update definition. Define always.
7767         * lib/xvasprintf.h (__attribute__): Remove definition.
7768         (_GL_ATTRIBUTE_FORMAT): New macro.
7769         (xasprintf, xvasprintf): Use it.
7770         * tests/test-argmatch.c (__attribute__): Remove definition.
7771         (ATTRIBUTE_NORETURN): Update definition. Define always.
7772         * tests/test-exclude.c (__attribute__): Remove definition.
7773         (ATTRIBUTE_NORETURN): Update definition. Define always.
7774         Reported by Paul Eggert.
7775
7776 2011-02-13  Bruno Haible  <bruno@clisp.org>
7777
7778         mbrtowc: Add more tests for native Windows platforms.
7779         * tests/test-mbrtowc-w32-1.sh: New file.
7780         * tests/test-mbrtowc-w32-2.sh: New file.
7781         * tests/test-mbrtowc-w32-3.sh: New file.
7782         * tests/test-mbrtowc-w32-4.sh: New file.
7783         * tests/test-mbrtowc-w32-5.sh: New file.
7784         * tests/test-mbrtowc-w32.c: New file.
7785         * modules/mbrtowc-tests (Files): Add them.
7786         (Makefile.am): Arrange to run these tests.
7787         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7788         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7789
7790 2011-02-13  Bruno Haible  <bruno@clisp.org>
7791
7792         mbrtowc: Work around native Windows bug.
7793         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7794         guess when no suitable locale for testing was found.
7795         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7796
7797 2011-02-13  Bruno Haible  <bruno@clisp.org>
7798
7799         mbsinit: Work around mingw bug.
7800         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7801         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7802         Windows.
7803         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7804
7805 2011-02-13  Bruno Haible  <bruno@clisp.org>
7806
7807         mbsinit: Don't crash for a NULL argument.
7808         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7809         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7810
7811 2011-02-13  Bruno Haible  <bruno@clisp.org>
7812
7813         Don't interfere with a program's definition of __attribute__.
7814         * lib/stdio.in.h (__attribute__): Remove definition.
7815         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7816         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7817         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7818         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7819         * lib/string.in.h (__attribute__): Remove definition.
7820         Reported by Paul Eggert.
7821
7822 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7823
7824         stdlib: don't get in the way of non-GCC __attribute__
7825         See thread starting at
7826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7827         Revert previous stdlib change, installing the following instead:
7828         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7829         to get in the way of a non-GCC compiler that supports __attribute__.
7830         (_GL_ATTRIBUTE_RETURN): New macro.
7831         (_Exit): Use it instead of __attribute__.
7832
7833 2011-02-12  Bruno Haible  <bruno@clisp.org>
7834
7835         quotearg test: Avoid test failure on mingw.
7836         * tests/test-quotearg.sh: Convert the locale identifier from native
7837         Windows syntax to Unix syntax.
7838
7839 2011-02-12  Bruno Haible  <bruno@clisp.org>
7840
7841         setlocale: Prefer gnulib's override over libintl's override.
7842         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7843         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7844         GNULIB_defined_setlocale is set.
7845
7846 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7847
7848         stdlib: support non-GCC __attribute__
7849
7850         Fix a serious and tricky problem encountered when attempting to
7851         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7852         5.5, but it crashed due to memory corruption on Solaris 10 with
7853         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7854         bits that are otherwise zero.  This tagging is optional inside
7855         Emacs but is preferred and is used when __attribute__ ((__aligned
7856         (8))) works, as it does with both recent-enough GCC and with Sun C
7857         5.11.  However, Sun C 5.11 is not GCC and does not #define
7858         __GNUC__ and __GNUC_MINOR__.
7859
7860         When I added the getloadavg module to Emacs, it brought in
7861         stdlib.in.h, which contained this fragment:
7862
7863            #ifndef __attribute__
7864            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7865            #  define __attribute__(Spec)   /* empty */
7866            # endif
7867            #endif
7868
7869         When files that include <stdlib.h> were compiled with Sun C 5.11,
7870         the above code disabled __attribute__ ((__aligned (8))), which
7871         caused variables to not be properly aligned, which eventually led
7872         to the pointer corruption mentioned above.  (This was a bit hard
7873         to diagnose, unfortunately.)
7874
7875         Several "#define __attribute__(X) /* empty */" code snippets need
7876         to be eradicated from Gnulib to work with non-GCC compilers that
7877         support __attribute__.  The Autoconf way to do this is to test for
7878         each kind of attribute that we want support for, and selectively
7879         enable that in source code.
7880
7881         Fix this problem just for stdlib.h, by adding a test for the
7882         __noreturn__ attribute, and change stdlib.in.h to use that test
7883         when needed.  This technique can be easily generalized to the
7884         other *.in.h files and attributes, and a similar technique can be
7885         used for *.h and *.c files.  This patch is enough to solve the
7886         problem for Emacs + getloadavg, and I thought I'd publish it for
7887         feedback before undertaking further, similar fixes in other
7888         modules.
7889
7890         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7891         because it's not needed for stdlib.h.  It merely substitutes the
7892         value directly into stdlib.h.  We may well need to #define it, or
7893         similar symbols, for other modules, but it's nice to also have an
7894         option to not #define it for applications like Emacs that do not
7895         need it.
7896
7897         * lib/stdlib.in.h (__attribute__): Do not #define.
7898         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7899         be defined only if the _Exit module is also used.
7900         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7902         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7903         platforms.
7904         * modules/_Exit (Files): Add m4/attribute.m4.
7905         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7906         * m4/attribute.m4: New file.
7907
7908 2011-02-12  Bruno Haible  <bruno@clisp.org>
7909
7910         wcsrtombs: Work around bug on native Windows.
7911         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7912         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7913         instead of len.
7914         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7915
7916 2011-02-12  Bruno Haible  <bruno@clisp.org>
7917
7918         mbsrtowcs: Work around bug on native Windows.
7919         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7920         against mingw bug.
7921         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7922
7923 2011-02-12  Bruno Haible  <bruno@clisp.org>
7924
7925         Avoid setlocale bugs in tests.
7926         * modules/btowc (Dependencies): Add setlocale.
7927         * modules/c-strcase (Dependencies): Likewise.
7928         * modules/mbmemcasecmp (Dependencies): Likewise.
7929         * modules/mbmemcasecoll (Dependencies): Likewise.
7930         * modules/mbrtowc (Dependencies): Likewise.
7931         * modules/mbscasecmp (Dependencies): Likewise.
7932         * modules/mbscasestr (Dependencies): Likewise.
7933         * modules/mbschr (Dependencies): Likewise.
7934         * modules/mbscspn (Dependencies): Likewise.
7935         * modules/mbsinit (Dependencies): Likewise.
7936         * modules/mbsncasecmp (Dependencies): Likewise.
7937         * modules/mbsnrtowcs (Dependencies): Likewise.
7938         * modules/mbspbrk (Dependencies): Likewise.
7939         * modules/mbspcasecmp (Dependencies): Likewise.
7940         * modules/mbsrchr (Dependencies): Likewise.
7941         * modules/mbsrtowcs (Dependencies): Likewise.
7942         * modules/mbsspn (Dependencies): Likewise.
7943         * modules/mbsstr (Dependencies): Likewise.
7944         * modules/nl_langinfo (Dependencies): Likewise.
7945         * modules/quotearg (Dependencies): Likewise.
7946         * modules/unicase/locale-language (Dependencies): Likewise.
7947         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7948         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7949         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7950         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7951         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7952         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7953         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7954         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7955         * modules/vasnprintf-posix (Dependencies): Likewise.
7956         * modules/wcrtomb (Dependencies): Likewise.
7957         * modules/wcsnrtombs (Dependencies): Likewise.
7958         * modules/wcsrtombs (Dependencies): Likewise.
7959
7960 2011-02-12  Bruno Haible  <bruno@clisp.org>
7961
7962         setlocale: Workaround native Windows bug.
7963         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7964         succeeds but sets LC_CTYPE to "C", report a failure.
7965         * tests/test-setlocale2.sh: New file.
7966         * tests/test-setlocale2.c: New file.
7967         * modules/setlocale-tests (Files): Add the new files.
7968         (Makefile.am): Enable test-setlocale2.sh test.
7969         * doc/posix-functions/setlocale.texi: Mention workaround.
7970
7971 2011-02-11  Bruno Haible  <bruno@clisp.org>
7972
7973         Tests for module 'setlocale'.
7974         * modules/setlocale-tests: New file.
7975         * tests/test-setlocale1.sh: New file.
7976         * tests/test-setlocale1.c: New file.
7977
7978         New module 'setlocale'.
7979         * lib/locale.in.h (setlocale): New declaration.
7980         * lib/setlocale.c: New file, based on
7981         gettext/gettext-runtime/intl/setlocale.c.
7982         * m4/setlocale.m4: New file.
7983         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7984         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7985         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7986         REPLACE_SETLOCALE.
7987         * modules/setlocale: New file.
7988         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7989         * doc/posix-functions/setlocale.texi: Mention the new module.
7990
7991 2011-02-11  Bruno Haible  <bruno@clisp.org>
7992
7993         Prepare for locale dependent tests on mingw.
7994         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7995         because it has the wrong locale encoding.
7996         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7997         French_France.1252 instead of "fr".
7998         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7999         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8000         because it has the wrong locale encoding.
8001         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8002         native Windows, try Turkish_Turkey.65001.
8003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8004         Chinese_China.54936.
8005
8006         Prepare for locale dependent tests on mingw.
8007         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8008         differently.
8009         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8010         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8011         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8013
8014 2011-02-11  Eric Blake  <eblake@redhat.com>
8015
8016         strptime: avoid compiler warnings
8017         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8018         compiler warnings about dead code.
8019         Reported by Daniel P. Berrange.
8020
8021 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8022
8023         doc: update users.txt
8024         * users.txt: Add rcs.
8025
8026 2011-02-10  John W. Eaton  <jwe@gnu.org>
8027
8028         doc: update users.txt
8029         * users.txt: Add octave.
8030
8031 2011-02-10  Jim Meyering  <meyering@redhat.com>
8032
8033         doc: update users.txt
8034         * users.txt: Add iwhd.
8035
8036 2011-02-09  Bruno Haible  <bruno@clisp.org>
8037
8038         gnulib-tool: Make copyright notice adjustment more robust.
8039         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8040         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8041         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8042         License".
8043         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8044
8045 2011-02-06  Bruno Haible  <bruno@clisp.org>
8046
8047         New module 'towctrans'.
8048         * modules/towctrans: New file.
8049         * lib/wctype.in.h (towctrans): New declaration.
8050         * lib/towctrans.c: New file.
8051         * lib/towctrans-impl.h: New file.
8052         * m4/towctrans.m4: New file.
8053         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8054         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8055         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8056         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8057         * doc/posix-functions/towctrans.texi: Mention the new module.
8058
8059 2011-02-06  Bruno Haible  <bruno@clisp.org>
8060
8061         New module 'wctrans'.
8062         * modules/wctrans: New file.
8063         * lib/wctype.in.h (wctrans): New declaration.
8064         * lib/wctrans.c: New file.
8065         * lib/wctrans-impl.h: New file.
8066         * m4/wctrans.m4: New file.
8067         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8068         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8069         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8070         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8071         * doc/posix-functions/wctrans.texi: Mention the new module.
8072
8073 2011-02-06  Bruno Haible  <bruno@clisp.org>
8074
8075         New module 'iswctype'.
8076         * modules/iswctype: New file.
8077         * lib/wctype.in.h (iswctype): New declaration.
8078         * lib/iswctype.c: New file.
8079         * lib/iswctype-impl.h: New file.
8080         * m4/iswctype.m4: New file.
8081         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8082         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8083         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8084         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8085         * doc/posix-functions/iswctype.texi: Mention the new module and the
8086         HP-UX 11.00 problem.
8087
8088 2011-02-06  Bruno Haible  <bruno@clisp.org>
8089
8090         New module 'wctype'.
8091         * modules/wctype: Change to represent the wctype() substitute.
8092         * lib/wctype.in.h (wctype): New declaration.
8093         * lib/wctype.c: New file.
8094         * lib/wctype-impl.h: New file.
8095         * m4/wctype.m4: New file.
8096         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8097         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8098         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8099         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8100         * doc/posix-functions/wctype.texi: Mention the new module and the
8101         HP-UX 11.00 problem.
8102
8103 2011-02-06  Bruno Haible  <bruno@clisp.org>
8104
8105         wctype-h: Ensure wctype_t and wctrans_t are defined.
8106         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8107         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8108         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8109         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8110         HAVE_WCTRANS_T.
8111         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8112
8113 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8114
8115         flock: fix license typo
8116
8117         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8118         omitted.
8119
8120 2011-02-08  Bruno Haible  <bruno@clisp.org>
8121
8122         Split large sed scripts, for HP-UX sed.
8123         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8124         to avoid HP-UX limit of 99 commands, in the near future.
8125         * modules/stdlib (Makefile.am): Likewise.
8126         * modules/unistd (Makefile.am): Likewise.
8127         * modules/wchar (Makefile.am): Likewise.
8128         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8129         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8131
8132 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8133             Bruno Haible  <bruno@clisp.org>
8134
8135         stdlib: improve random_r modularization
8136         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8137         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8138         you also need the random_r module to get this material right.
8139         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8140         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8141         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8142
8143 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8144
8145         stdlib: don't depend on stdint
8146         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8147         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8148         be independent of whether stdint.h is needed.
8149         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8150         here, instead of ...
8151         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8152         struct random_data should be using the random_r module, not just
8153         the stdlib module (which wouldn't make sense: what package needs
8154         just struct random_data without also needing random_r?).
8155         * modules/stdlib (Depends-on): Remove stdint.
8156
8157         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8158         See the thread rooted at
8159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8160         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8161         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8162         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8163         __VMS)); previously it was always included (via fcntl--.h).
8164         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8165         hand; this is good enough for load averages.  Also, do not use
8166         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8167         flags directly if available and don't bother otherwise.  (Packages
8168         that need the extra reliability should use the modules that define
8169         these flags on older platforms that lack them.)
8170         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8171         fcntl-safer.
8172
8173 2011-02-08  Jim Meyering  <meyering@redhat.com>
8174
8175         di-set.h, ino-map.h: add multiple-inclusion guard
8176         Technically, the guard is required only for ino-map.h, due to its
8177         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8178         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8179         * lib/ino-map.h: Likewise.
8180
8181 2011-02-06  Bruno Haible  <bruno@clisp.org>
8182
8183         iswblank: Ensure declaration on glibc systems.
8184         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8185         * modules/iswblank (Dependencies): Add 'extensions'.
8186         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8187
8188 2011-02-06  Bruno Haible  <bruno@clisp.org>
8189
8190         New module 'iswblank'.
8191         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8192         * modules/iswblank: New file.
8193         * modules/wctype-h (Files): Remove lib/iswblank.c.
8194         (Makefile.am): Substitute GNULIB_ISWBLANK.
8195         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8196         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8197         (gl_WCTYPE_H_DEFAULTS): New macro.
8198         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8199         * modules/iswblank-tests: New file.
8200         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8201         * tests/test-wctype-h.c (main): Remove iswblank tests.
8202         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8203         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8204         of 'wctype-h'.
8205         * NEWS: Mention the change.
8206         * modules/mbchar (Depends-on): Add iswblank.
8207
8208 2011-02-08  Bruno Haible  <bruno@clisp.org>
8209
8210         di-set tests: Refactor.
8211         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8212         unnecessary includes.
8213         (ASSERT): Remove macro.
8214         (main): Make C90 compliant by avoiding variable declaration after
8215         statement.
8216         * modules/di-set-tests (Files): Add tests/macros.h.
8217
8218 2011-02-08  Bruno Haible  <bruno@clisp.org>
8219
8220         ino-map tests: Refactor.
8221         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8222         unnecessary includes.
8223         (ASSERT): Remove macro.
8224         (main): Make C90 compliant by avoiding variable declaration after
8225         statement.
8226         * modules/ino-map-tests (Files): Add tests/macros.h.
8227
8228 2011-02-08  Jim Meyering  <meyering@redhat.com>
8229
8230         di-set: add "const" to a cast
8231         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8232         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8233
8234 2011-02-06  Bruno Haible  <bruno@clisp.org>
8235
8236         Rename module 'wctype' to 'wctype-h'.
8237         * modules/wctype-h: Renamed from modules/wctype.
8238         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8239         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8240         (Files, Depends-on, Makefile.am): Update.
8241         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8242         (Files, Makefile.am): Update.
8243         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8244         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8245         * doc/posix-headers/wctype.texi: Update.
8246         * doc/posix-functions/iswalnum.texi: Update.
8247         * doc/posix-functions/iswalpha.texi: Update.
8248         * doc/posix-functions/iswblank.texi: Update.
8249         * doc/posix-functions/iswcntrl.texi: Update.
8250         * doc/posix-functions/iswdigit.texi: Update.
8251         * doc/posix-functions/iswgraph.texi: Update.
8252         * doc/posix-functions/iswlower.texi: Update.
8253         * doc/posix-functions/iswprint.texi: Update.
8254         * doc/posix-functions/iswpunct.texi: Update.
8255         * doc/posix-functions/iswspace.texi: Update.
8256         * doc/posix-functions/iswupper.texi: Update.
8257         * doc/posix-functions/iswxdigit.texi: Update.
8258         * doc/posix-functions/towlower.texi: Update.
8259         * doc/posix-functions/towupper.texi: Update.
8260         * NEWS: Mention the change.
8261         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8262         * modules/mbchar (Dependencies): Likewise.
8263         * modules/mbswidth (Dependencies): Likewise.
8264         * modules/quotearg (Dependencies): Likewise.
8265         * modules/regex (Dependencies): Likewise.
8266         * modules/wcscasecmp (Dependencies): Likewise.
8267         * modules/wcsncasecmp (Dependencies): Likewise.
8268         * modules/wcwidth (Dependencies): Likewise.
8269
8270 2011-02-06  Bruno Haible  <bruno@clisp.org>
8271
8272         New module 'wcswidth'.
8273         * modules/wcswidth: New file.
8274         * lib/wchar.in.h (wcswidth): New declaration.
8275         * lib/wcswidth.c: New file.
8276         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8277         * m4/wcswidth.m4: New file.
8278         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8279         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8280         REPLACE_WCSWIDTH.
8281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8282         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8283         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8284         * doc/posix-functions/wcswidth.texi: Mention the new module.
8285
8286 2011-02-06  Bruno Haible  <bruno@clisp.org>
8287
8288         New module 'wcstok'.
8289         * modules/wcstok: New file.
8290         * lib/wchar.in.h (wcstok): New declaration.
8291         * lib/wcstok.c: New file.
8292         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8293         * m4/wcstok.m4: New file.
8294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8297         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8298         * doc/posix-functions/wcstok.texi: Mention the new module.
8299
8300 2011-02-06  Bruno Haible  <bruno@clisp.org>
8301
8302         New module 'wcsstr'.
8303         * modules/wcsstr: New file.
8304         * lib/wchar.in.h (wcsstr): New declaration.
8305         * lib/wcsstr.c: New file.
8306         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8307         * m4/wcsstr.m4: New file.
8308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8311         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8312         * doc/posix-functions/wcsstr.texi: Mention the new module.
8313
8314 2011-02-06  Bruno Haible  <bruno@clisp.org>
8315
8316         New module 'wcspbrk'.
8317         * modules/wcspbrk: New file.
8318         * lib/wchar.in.h (wcspbrk): New declaration.
8319         * lib/wcspbrk.c: New file.
8320         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8321         * m4/wcspbrk.m4: New file.
8322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8325         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8326         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8327
8328 2011-02-06  Bruno Haible  <bruno@clisp.org>
8329
8330         New module 'wcsspn'.
8331         * modules/wcsspn: New file.
8332         * lib/wchar.in.h (wcsspn): New declaration.
8333         * lib/wcsspn.c: New file.
8334         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8335         * m4/wcsspn.m4: New file.
8336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8339         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8340         * doc/posix-functions/wcsspn.texi: Mention the new module.
8341
8342 2011-02-06  Bruno Haible  <bruno@clisp.org>
8343
8344         New module 'wcscspn'.
8345         * modules/wcscspn: New file.
8346         * lib/wchar.in.h (wcscspn): New declaration.
8347         * lib/wcscspn.c: New file.
8348         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8349         * m4/wcscspn.m4: New file.
8350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8353         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8354         * doc/posix-functions/wcscspn.texi: Mention the new module.
8355
8356 2011-02-06  Bruno Haible  <bruno@clisp.org>
8357
8358         New module 'wcsrchr'.
8359         * modules/wcsrchr: New file.
8360         * lib/wchar.in.h (wcsrchr): New declaration.
8361         * lib/wcsrchr.c: New file.
8362         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8363         * m4/wcsrchr.m4: New file.
8364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8367         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8368         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8369
8370 2011-02-06  Bruno Haible  <bruno@clisp.org>
8371
8372         New module 'wcschr'.
8373         * modules/wcschr: New file.
8374         * lib/wchar.in.h (wcschr): New declaration.
8375         * lib/wcschr.c: New file.
8376         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8377         * m4/wcschr.m4: New file.
8378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8381         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8382         * doc/posix-functions/wcschr.texi: Mention the new module.
8383
8384 2011-02-06  Bruno Haible  <bruno@clisp.org>
8385
8386         New module 'wcsdup'.
8387         * modules/wcsdup: New file.
8388         * lib/wchar.in.h (wcsdup): New declaration.
8389         * lib/wcsdup.c: New file.
8390         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8391         * m4/wcsdup.m4: New file.
8392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8395         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8396         * doc/posix-functions/wcsdup.texi: Mention the new module.
8397
8398 2011-02-06  Bruno Haible  <bruno@clisp.org>
8399
8400         New module 'wcsxfrm'.
8401         * modules/wcsxfrm: New file.
8402         * lib/wchar.in.h (wcsxfrm): New declaration.
8403         * lib/wcsxfrm.c: New file.
8404         * lib/wcsxfrm-impl.h: New file.
8405         * m4/wcsxfrm.m4: New file.
8406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8409         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8410         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8411
8412 2011-02-06  Bruno Haible  <bruno@clisp.org>
8413
8414         New module 'wcscoll'.
8415         * modules/wcscoll: New file.
8416         * lib/wchar.in.h (wcscoll): New declaration.
8417         * lib/wcscoll.c: New file.
8418         * lib/wcscoll-impl.h: New file.
8419         * m4/wcscoll.m4: New file.
8420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8423         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8424         * doc/posix-functions/wcscoll.texi: Mention the new module.
8425
8426 2011-02-06  Bruno Haible  <bruno@clisp.org>
8427
8428         New module 'wcsncasecmp'.
8429         * modules/wcsncasecmp: New file.
8430         * lib/wchar.in.h (wcsncasecmp): New declaration.
8431         * lib/wcsncasecmp.c: New file.
8432         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8433         * m4/wcsncasecmp.m4: New file.
8434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8437         HAVE_WCSNCASECMP.
8438         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8439         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8440
8441 2011-02-06  Bruno Haible  <bruno@clisp.org>
8442
8443         New module 'wcscasecmp'.
8444         * modules/wcscasecmp: New file.
8445         * lib/wchar.in.h (wcscasecmp): New declaration.
8446         * lib/wcscasecmp.c: New file.
8447         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8448         * m4/wcscasecmp.m4: New file.
8449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8452         HAVE_WCSCASECMP.
8453         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8454         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8455
8456 2011-02-05  Bruno Haible  <bruno@clisp.org>
8457
8458         New module 'wcsncmp'.
8459         * modules/wcsncmp: New file.
8460         * lib/wchar.in.h (wcsncmp): New declaration.
8461         * lib/wcsncmp.c: New file.
8462         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8463         * m4/wcsncmp.m4: New file.
8464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8467         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8468         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8469
8470 2011-02-05  Bruno Haible  <bruno@clisp.org>
8471
8472         New module 'wcscmp'.
8473         * modules/wcscmp: New file.
8474         * lib/wchar.in.h (wcscmp): New declaration.
8475         * lib/wcscmp.c: New file.
8476         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8477         * m4/wcscmp.m4: New file.
8478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8481         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8482         * doc/posix-functions/wcscmp.texi: Mention the new module.
8483
8484 2011-02-05  Bruno Haible  <bruno@clisp.org>
8485
8486         New module 'wcsncat'.
8487         * modules/wcsncat: New file.
8488         * lib/wchar.in.h (wcsncat): New declaration.
8489         * lib/wcsncat.c: New file.
8490         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8491         * m4/wcsncat.m4: New file.
8492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8495         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8496         * doc/posix-functions/wcsncat.texi: Mention the new module.
8497
8498 2011-02-05  Bruno Haible  <bruno@clisp.org>
8499
8500         New module 'wcscat'.
8501         * modules/wcscat: New file.
8502         * lib/wchar.in.h (wcscat): New declaration.
8503         * lib/wcscat.c: New file.
8504         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8505         * m4/wcscat.m4: New file.
8506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8509         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8510         * doc/posix-functions/wcscat.texi: Mention the new module.
8511
8512 2011-02-05  Bruno Haible  <bruno@clisp.org>
8513
8514         New module 'wcpncpy'.
8515         * modules/wcpncpy: New file.
8516         * lib/wchar.in.h (wcpncpy): New declaration.
8517         * lib/wcpncpy.c: New file.
8518         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8519         * m4/wcpncpy.m4: New file.
8520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8522         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8523         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8524         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8525
8526 2011-02-05  Bruno Haible  <bruno@clisp.org>
8527
8528         New module 'wcsncpy'.
8529         * modules/wcsncpy: New file.
8530         * lib/wchar.in.h (wcsncpy): New declaration.
8531         * lib/wcsncpy.c: New file.
8532         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8533         * m4/wcsncpy.m4: New file.
8534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8537         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8538         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8539
8540 2011-02-05  Bruno Haible  <bruno@clisp.org>
8541
8542         New module 'wcpcpy'.
8543         * modules/wcpcpy: New file.
8544         * lib/wchar.in.h (wcpcpy): New declaration.
8545         * lib/wcpcpy.c: New file.
8546         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8547         * m4/wcpcpy.m4: New file.
8548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8550         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8551         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8552         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8553
8554 2011-02-05  Bruno Haible  <bruno@clisp.org>
8555
8556         New module 'wcscpy'.
8557         * modules/wcscpy: New file.
8558         * lib/wchar.in.h (wcscpy): New declaration.
8559         * lib/wcscpy.c: New file.
8560         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8561         * m4/wcscpy.m4: New file.
8562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8565         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8566         * doc/posix-functions/wcscpy.texi: Mention the new module.
8567
8568 2011-02-05  Bruno Haible  <bruno@clisp.org>
8569
8570         New module 'wcsnlen'.
8571         * modules/wcsnlen: New file.
8572         * lib/wchar.in.h (wcsnlen): New declaration.
8573         * lib/wcsnlen.c: New file.
8574         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8575         * m4/wcsnlen.m4: New file.
8576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8579         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8580         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8581
8582 2011-02-05  Bruno Haible  <bruno@clisp.org>
8583
8584         New module 'wcslen'.
8585         * modules/wcslen: New file.
8586         * lib/wchar.in.h (wcslen): New declaration.
8587         * lib/wcslen.c: New file.
8588         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8589         * m4/wcslen.m4: New file.
8590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8593         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8594         * doc/posix-functions/wcslen.texi: Mention the new module.
8595
8596 2011-02-05  Bruno Haible  <bruno@clisp.org>
8597
8598         New module 'wmemset'.
8599         * modules/wmemset: New file.
8600         * lib/wchar.in.h (wmemset): New declaration.
8601         * lib/wmemset.c: New file.
8602         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8603         * m4/wmemset.m4: New file.
8604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8606         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8607         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8608         * doc/posix-functions/wmemset.texi: Mention the new module.
8609
8610 2011-02-05  Bruno Haible  <bruno@clisp.org>
8611
8612         New module 'wmemmove'.
8613         * modules/wmemmove: New file.
8614         * lib/wchar.in.h (wmemmove): New declaration.
8615         * lib/wmemmove.c: New file.
8616         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8617         * m4/wmemmove.m4: New file.
8618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8620         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8621         HAVE_WMEMMOVE.
8622         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8623         * doc/posix-functions/wmemmove.texi: Mention the new module.
8624
8625 2011-02-05  Bruno Haible  <bruno@clisp.org>
8626
8627         New module 'wmemcpy'.
8628         * modules/wmemcpy: New file.
8629         * lib/wchar.in.h (wmemcpy): New declaration.
8630         * lib/wmemcpy.c: New file.
8631         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8632         * m4/wmemcpy.m4: New file.
8633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8635         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8636         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8637         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8638
8639 2011-02-05  Bruno Haible  <bruno@clisp.org>
8640
8641         New module 'wmemcmp'.
8642         * modules/wmemcmp: New file.
8643         * lib/wchar.in.h (wmemcmp): New declaration.
8644         * lib/wmemcmp.c: New file.
8645         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8646         * m4/wmemcmp.m4: New file.
8647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8649         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8650         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8651         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8652
8653 2011-02-07  Jim Meyering  <meyering@redhat.com>
8654
8655         di-set, ino-map: new modules, from coreutils
8656         * lib/di-set.c: New file.
8657         * lib/di-set.h: Likewise.
8658         * lib/ino-map.c: Likewise.
8659         * lib/ino-map.h: Likewise.
8660         * modules/di-set: Likewise.
8661         * modules/di-set-tests: Likewise.
8662         * modules/ino-map: Likewise.
8663         * modules/ino-map-tests: Likewise.
8664         * tests/test-di-set.c: Likewise.
8665         * tests/test-ino-map.c: Likewise.
8666
8667 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8668
8669         getloadavg: merge minor changes from Emacs
8670
8671         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8672         (getloadavg): Use memset, not bzero.
8673
8674         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8675         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8676         clash (bug#86).
8677
8678 2010-11-14  Bruno Haible  <bruno@clisp.org>
8679
8680         Allow multiple gnulib generated replacements to coexist.
8681         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8682         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8683         * lib/langinfo.in.h (nl_item): Likewise.
8684         * lib/math.in.h (_NaN, NAN): Likewise.
8685         * lib/netdb.in.h (struct addrinfo): Likewise.
8686         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8687         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8688         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8689         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8690         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8691         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8692         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8693         pthread_mutexattr_init, pthread_mutexattr_settype,
8694         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8695         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8696         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8697         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8698         * lib/sched.in.h (struct sched_param): Likewise.
8699         * lib/se-selinux.in.h (security_class_t, security_context_t,
8700         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8701         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8702         lsetfilecon, fsetfilecon, security_check_context,
8703         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8704         Likewise.
8705         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8706         Likewise.
8707         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8708         _gl_function_taking_int_returning_void_t, union sigval,
8709         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8710         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8711         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8712         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8713         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8714         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8715         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8716         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8717         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8718         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8719         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8720         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8721         socklen_t, rpl_fd_isset): Likewise.
8722         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8723         * lib/sys_time.in.h (struct timeval): Likewise.
8724         * lib/sys_times.in.h (struct tms): Likewise.
8725         * lib/sys_utsname.in.h (struct utsname):
8726         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8727         * lib/unistd.in.h (getpagesize): Likewise.
8728         * lib/wchar.in.h (mbstate_t): Likewise.
8729         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8730         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8731         towlower, towupper): Likewise.
8732         Reported by Sam Steingold <sds@gnu.org>.
8733
8734 2011-02-05  Eric Blake  <eblake@redhat.com>
8735
8736         unsetenv: work around Haiku issues
8737         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8738         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8739
8740 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8741
8742         libposix: avoid calling error() within libposix
8743         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8744         is defined.
8745
8746 2011-02-05  Eric Blake  <eblake@redhat.com>
8747
8748         strerror_r-posix: port to cygwin
8749         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8750         implementation.
8751         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8752         * tests/test-strerror_r.c (main): Fix test.
8753         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8754         issue.
8755
8756 2011-02-05  Bruno Haible  <bruno@clisp.org>
8757
8758         New module 'wmemchr'.
8759         * modules/wmemchr: New file.
8760         * lib/wchar.in.h (wmemchr): New declaration.
8761         * lib/wmemchr.c: New file.
8762         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8763         * m4/wmemchr.m4: New file.
8764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8766         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8767         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8768         * doc/posix-functions/wmemchr.texi: Mention the new module.
8769
8770 2011-02-04  Eric Blake  <eblake@redhat.com>
8771
8772         fdopendir: detect FreeBSD bug
8773         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8774         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8775
8776 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8777
8778         stdbool: do not define HAVE_STDBOOL_H
8779         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8780         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8781         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8782         imported from the latest Autoconf git.  It was motivated by Emacs,
8783         which uses gnulib but does not need HAVE_STDBOOL_H.
8784
8785 2011-02-04  Bruno Haible  <bruno@clisp.org>
8786
8787         wcsnrtombs: Prepare for new module wwcsnrtombs.
8788         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8789         * lib/wcsnrtombs.c: Include it.
8790         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8791
8792         wcsrtombs: Prepare for new module wwcsrtombs.
8793         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8794         * lib/wcsrtombs.c: Include it.
8795         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8796
8797         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8798         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8799         * lib/mbsnrtowcs.c: Include it.
8800         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8801
8802         mbsrtowcs: Prepare for new module mbsrtowwcs.
8803         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8804         * lib/mbsrtowcs.c: Include it.
8805         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8806
8807 2011-02-04  Bruno Haible  <bruno@clisp.org>
8808
8809         vasnprintf: Reduce use of malloc for small format strings.
8810         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8811         (arguments): Add room for the first 7 arguments.
8812         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8813         (char_directives, u8_directives, u16_directives, u32_directives): Add
8814         room for the first 7 directives.
8815         * lib/printf-parse.c: Include <string.h>.
8816         (PRINTF_PARSE): Change memory handling code so that it uses the first
8817         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8818         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8819         Reported by Pádraig Brady <P@draigbrady.com>.
8820
8821 2011-01-31  Eric Blake  <eblake@redhat.com>
8822
8823         dup2: work around Haiku bug
8824         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8825         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8826         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8827         * tests/test-dup2.c (main): Enhance test.
8828
8829 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8830
8831         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8832         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8833         declared by eglibc 2.11.2.
8834         * lib/stdio.in.h: Likewise.
8835
8836 2011-01-31  Eric Blake  <eblake@redhat.com>
8837
8838         ignore-value: add missing test dependency
8839         * tests/test-ignore-value.c: Revert previous change; stdio.h
8840         provides off_t.
8841         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8842
8843 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8844
8845         mktime: clarify long_int width checking
8846         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8847         the top level, to make it clearer that the assumption about
8848         long_int width is being checked.  See
8849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8850
8851 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8852
8853         ignore-value: Fix self-test.
8854         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8855
8856 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8857
8858         TYPE_MAXIMUM: avoid theoretically undefined behavior
8859         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8860         negative number, which the C Standard says has undefined behavior.
8861         In practice this is not a problem, but might as well do it by the book.
8862         Reported by Rich Felker and Eric Blake; see
8863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8864         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8865         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8867         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8868         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8869         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8870
8871         mktime: #undef mktime before #defining it
8872         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8873
8874         mktime: systematically normalize tm_isdst comparisons
8875         * lib/mktime.c (isdst_differ): New function.
8876         (__mktime_internal): Use it systematically for all isdst comparisons.
8877         This completes the fix for libc BZ #6723, and removes the need for
8878         normalizing tm_isdst.  See
8879         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8880         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8881
8882         mktime: fix some integer overflow issues and sidestep the rest
8883
8884         This was prompted by a bug report by Benjamin Lindner for MinGW
8885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8886         His bug is due to signed integer overflow (0 - INT_MIN), and I
8887         I scanned through mktime.c looking for other integer overflow
8888         problems, fixing all the bugs I found.
8889
8890         Although the C Standard says the resulting code is still not safe
8891         in the presence of integer overflow, in practice it should be good
8892         enough for all real-world two's-complement implementations, except
8893         for debugging environments that deliberately trap on integer
8894         overflow (e.g., gcc -ftrapv).
8895
8896         * lib/mktime.c (WRAPV): New macro.
8897         (SHR): Also check that long_int and time_t shift right in the
8898         usual way, before using the fast-but-unportable method.
8899         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8900         used.  The code already assumed two's complement, so there's
8901         no need to test for alternatives.  All uses removed.
8902         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8903         the C standard.  Problem reported by Rich Felker in
8904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8905         (twos_complement_arithmetic): Also check long_int and time_t.
8906         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8907         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8908         (__mktime_internal): Avoid integer overflow with unary subtraction
8909         in two instances where -1 - X is an adequate replacement for -X,
8910         since the calculations are approximate.
8911
8912 2011-01-29  Eric Blake  <eblake@redhat.com>
8913
8914         mktime: avoid infinite loop
8915         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8916         type; behavior is still undefined but portable to all known targets.
8917         Reported by Rich Felker.
8918
8919 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8920
8921         rename, unlink, same-inode: Relicense.
8922         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8923         * modules/unlink (License): Likewise.
8924         * modules/same-inode (License): Likewise.
8925
8926 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8927
8928         mktime: avoid problems on NetBSD 5 / i386
8929         * lib/mktime.c (long_int): New type.  This works around a problem
8930         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8931         but time_t is 64 bits, and where I expect the existing code is
8932         wrong in some cases.
8933         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8934         (ydhms_diff): Bring back the compile-time check for wide-enough
8935         year and yday.
8936
8937         mktime: fix misspelling in comment
8938         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8939         This merges all recent glibc changes of importance.
8940
8941 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8942
8943         move-if-change: cope with concurrent mv of identical file.
8944         * build-aux/move-if-change (CMPPROG): Accept environment
8945         variable as an override for `cmp'.
8946         (usage): Document CMPPROG.
8947         Adjust comparison to drop stdout.  Cope with failure of mv if
8948         the target file exists and is identical to the source, for
8949         parallel builds.
8950         Report from H.J. Lu against binutils in PR binutils/12283.
8951
8952 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8953
8954         * users.txt: Mention sharutils.
8955
8956 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8957
8958         * users.txt: Mention OATH Toolkit.
8959
8960 2011-01-27  Bruno Haible  <bruno@clisp.org>
8961
8962         Prepare for supporting FreeBSD 10.
8963         * build-aux/config.libpath: Remove handling of freebsd1*.
8964
8965 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8966
8967         Prepare for supporting FreeBSD 10.
8968         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8969         match FreeBSD 10.0.
8970
8971 2011-01-27  Bruno Haible  <bruno@clisp.org>
8972
8973         vma-iter, get-rusage-as: Add OpenBSD support.
8974         * modules/vma-iter (configure.ac): Test for mquery.
8975         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8976         * lib/vma-iter.c: Include <sys/mman.h>.
8977         (vma_iterate): Add an implementation based on mquery().
8978         * lib/resource-ext.h (get_rusage_as): Update comments.
8979         * lib/get-rusage-as.c: Likewise.
8980         * lib/get-rusage-data.c: Likewise.
8981
8982 2011-01-26  Karl Berry  <karl@gnu.org>
8983
8984         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8985         variables to make it easier to override the makeinfo program used.
8986
8987 2011-01-26  Eric Blake  <eblake@redhat.com>
8988
8989         fcntl: work around Haiku F_DUPFD bugs
8990         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8991         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8992         cloexec bit on duplication.
8993         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8994
8995 2011-01-26  Bruno Haible  <bruno@clisp.org>
8996
8997         Enable memory leak tests on AIX.
8998         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8999         * tests/test-fprintf-posix3.c (main): Likewise.
9000
9001 2011-01-26  Bruno Haible  <bruno@clisp.org>
9002
9003         Tests for module 'get-rusage-data'.
9004         * modules/get-rusage-data-tests: New file.
9005         * tests/test-get-rusage-data.c: New file.
9006
9007         New module 'get-rusage-data'.
9008         * lib/resource-ext.h (get_rusage_data): New declaration.
9009         * lib/get-rusage-data.c: New file.
9010         * modules/get-rusage-data: New file.
9011
9012 2011-01-25  Bruno Haible  <bruno@clisp.org>
9013
9014         get-rusage-as: Allow for easier testing.
9015         * lib/resource-ext.h (get_rusage_as): Add comment.
9016         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9017         (main): New function for interactive testing.
9018
9019 2011-01-25  Bruno Haible  <bruno@clisp.org>
9020
9021         vma-iter: Treat Haiku like BeOS.
9022         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9023         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9024
9025 2011-01-25  Eric Blake  <eblake@redhat.com>
9026
9027         c-stack: fix regression on cygwin when libsigsegv is present
9028         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9029
9030 2011-01-24  Bruno Haible  <bruno@clisp.org>
9031
9032         vma-iter: Avoid empty intervals.
9033         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9034         on an empty interval.
9035
9036 2011-01-24  Jim Meyering  <meyering@redhat.com>
9037
9038         u64: remove unnecessary #include
9039         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9040
9041 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9044         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9045
9046 2011-01-23  Bruno Haible  <bruno@clisp.org>
9047
9048         New module 'vma-iter'.
9049         * lib/vma-iter.h: New file.
9050         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9051         * modules/vma-iter: New file.
9052         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9053         for get_rusage_as_via_iterator.
9054         (vma_iterate_callback): New function.
9055         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9056         * modules/get-rusage-as (Depends-on): Add vma-iter.
9057
9058 2011-01-23  Bruno Haible  <bruno@clisp.org>
9059
9060         uninorm: Tweak includes.
9061         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9062         Reported by Jim Meyering.
9063
9064 2011-01-23  Bruno Haible  <bruno@clisp.org>
9065
9066         get-rusage-as: Improve on NetBSD.
9067         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9068         /proc, like on FreeBSD.
9069
9070 2011-01-23  Jim Meyering  <meyering@redhat.com>
9071
9072         xreadlink.h: remove unnecessary #include
9073         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9074
9075         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9076         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9077
9078 2011-01-23  Bruno Haible  <bruno@clisp.org>
9079
9080         get-rusage-as: Fix bug.
9081         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9082         original limit when aborting the first loop.
9083
9084 2011-01-23  Bruno Haible  <bruno@clisp.org>
9085
9086         wctype: Ensure valid C syntax.
9087         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9088         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9089
9090 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9091
9092         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9094         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9095         as they are needed only for configure's test case.
9096         This removes two unnecessary symbols from config.h.
9097
9098         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9099         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9101         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9102         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9103         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9104         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9105         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9106         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9107         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9108         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9110         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9111         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9112         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9114         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9115         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9116
9117 2011-01-21  Eric Blake  <eblake@redhat.com>
9118
9119         maintainer-makefile: work with older git for submodule check
9120         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9121         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9122         Reported by Matthias Bolte.
9123
9124         bootstrap: minor portability fixes
9125         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9126         (usage): Omit leading capital and trailing . on help phrases, per
9127         GNU Coding Standards.
9128         (check_versions, top level): Prefix messages with script name.
9129
9130 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9131
9132         bootstrap: support --no-git option
9133         * build-aux/bootstrap: Add --no-git option, to be used when
9134         --gnulib-srcdir points to the exact desired checkout.
9135
9136 2011-01-21  Eric Blake  <eblake@redhat.com>
9137
9138         strerror_r-posix: work with glibc 2.13
9139         * lib/strerror_r.c (strerror_r): Fix return type.
9140
9141 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9142             Bruno Haible  <bruno@clisp.org>
9143
9144         uN_strstr: New unit tests.
9145         * modules/unistr/u8-strstr-tests: New file.
9146         * modules/unistr/u16-strstr-tests: New file.
9147         * modules/unistr/u32-strstr-tests: New file.
9148         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9149         * tests/unistr/test-u8-strstr.c: New file.
9150         * tests/unistr/test-u16-strstr.c: New file.
9151         * tests/unistr/test-u32-strstr.c: New file.
9152
9153 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9154             Bruno Haible  <bruno@clisp.org>
9155
9156         Make uN_strstr functions O(n) worst-case.
9157         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9158         16-bit and 32-bit unit cases, use the unibyte algorithm from
9159         lib/mbsstr.c.
9160         * lib/unistr/u8-strstr.c: Include <string.h>.
9161         (UNIT_IS_UINT8_T): New macro.
9162         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9163         (U_STRLEN, U_STRNLEN): New macros.
9164         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9165         (U_STRLEN, U_STRNLEN): New macros.
9166         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9167         (configure.ac): Update required libunistring version.
9168         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9169         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9170         malloca.
9171         (configure.ac): Update required libunistring version.
9172         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9173         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9174         malloca.
9175         (configure.ac): Update required libunistring version.
9176
9177 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9178             Bruno Haible  <bruno@clisp.org>
9179
9180         Prepare for faster uN_strstr functions.
9181         * lib/str-kmp.h: Support definable UNITs.
9182         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9183         needle_len argument.
9184         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9185         * lib/mbscasestr.c (mbscasestr): Likewise.
9186
9187 2011-01-21  Pádraig Brady <P@draigBrady.com>
9188
9189         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9190         * tests/test-malloca.c (main): Unset the environment variable
9191         to greatly speed up the test.
9192         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9193         * modules/malloca-tests: Depend on unsetenv.
9194
9195 2011-01-21  Pádraig Brady <P@draigBrady.com>
9196
9197         ignore-value: remove stdint dependency
9198         * lib/ignore-value.h: Remove <stdint.h>
9199         * modules/ignore-value: Remove stdint dependency.
9200
9201 2011-01-21  Jim Meyering  <meyering@redhat.com>
9202
9203         maint.mk: adjust variable name to be consistent with other gl_ vars
9204         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9205         to be lower case.
9206
9207 2011-01-20  Jim Meyering  <meyering@redhat.com>
9208
9209         maint.mk: make "check" depend on public-submodule-commit by default
9210         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9211
9212 2011-01-20  Bruno Haible  <bruno@clisp.org>
9213
9214         mbfile, mbiter: Complete change from 2008-12-21.
9215         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9216         * m4/mbiter.m4 (gl_MBITER): Likewise.
9217
9218 2011-01-20  Jim Meyering  <meyering@redhat.com>
9219
9220         init.sh: insert space between each function name and "()"
9221         * tests/init.sh: Make it a little easier to see that a function's
9222         name is "warn_", and not "warn" when looking at the first part of
9223         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9224
9225 2011-01-20  Jim Meyering  <meyering@redhat.com>
9226
9227         mountlist: clean up code formatting
9228         * lib/mountlist.c (read_file_system_list): Split a long line,
9229         correct bracing style, use NULL in place of "(struct statfs *)0",
9230         don't parenthesize return value, add spaces around "=" and after
9231         ";-in-for-stmt".
9232
9233 2011-01-14  Markus Duft <mduft@gentoo.org>
9234
9235         mountlist: add support for Interix
9236         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9237         Apply statvfs to all entries of /dev/fs.
9238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9239         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9240
9241 2011-01-20  Jim Meyering  <meyering@redhat.com>
9242
9243         maint.mk: improve the public-submodule-commit rule
9244         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9245         to suppress printing of its commands... unless V=1.
9246         Add git submodule's --quiet option to suppress printing of e.g.,
9247         "Entering gnulib" output.
9248         "cd" into $(srcdir) before running git submodule.
9249
9250 2011-01-20  Bruno Haible  <bruno@clisp.org>
9251
9252         include_next: Fix bug introduced on 2011-01-18.
9253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9254         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9255         ac_cv_header_... variable if the second argument is not 'check'.
9256         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9257         gl_NEXT_HEADERS_INTERNAL.
9258
9259 2011-01-20  Bruno Haible  <bruno@clisp.org>
9260
9261         Allow the user to avoid the GNULIB_TEST_* macros.
9262         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9263         Suggested by Paul Eggert.
9264
9265 2011-01-14  Jim Meyering  <meyering@redhat.com>
9266
9267         bootstrap: avoid failure when there is no .gitmodules file
9268         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9269         has been assigned to, even when its value is the empty string.
9270         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9271         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9272         Reported by John W. Eaton <jwe@gnu.org>.
9273
9274 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         assume <ctype.h>, ..., <time.h> exist
9277         For years gnulib has been assuming the existence of the headers
9278         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9279         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9280         them, since they don't appear to be needed.
9281         * README (Portability guidelines): Document this.
9282         * lib/flock.c: Assume <fcntl.h> exists.
9283         * lib/regex_internal.h: Assume <locale.h> exists.
9284         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9285         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9286         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9287         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9288         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9289         * m4/regex.m4 (gl_REGEX): Likewise.
9290         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9291         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9292         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9293         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9294         * tests/test-argp.c: Likewise.
9295         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9296
9297         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9298         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9299         AA_APPLE_UNIVERSAL_BUILD.  See
9300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9301         * NEWS: Document this.
9302
9303 2011-01-19  Eric Blake  <eblake@redhat.com>
9304
9305         c-stack: assume stack overflow if SA_SIGINFO unsupported
9306         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9307         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9308         sigaction will work.
9309         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9310         behavior match Linux.
9311         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9312
9313         stdbool-tests: accomodate Haiku
9314         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9315
9316         binary-io: fix O_TEXT on Haiku
9317         * modules/binary-io (Depends-on): Add fcntl-h.
9318         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9319         than blindly undefining O_TEXT.
9320         Reported by Scott McCreary.
9321
9322 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9323
9324         include_next: do not check for standard headers like stddef.h
9325
9326         I found this problem when modifying Emacs to use gnulib.
9327         I noticed that it added HAVE_STDDEF_H to config.h, even though
9328         gnulib always assumes <stddef.h> exists as per README and this
9329         symbol is unnecessary.
9330         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9331         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9332         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9333         faster for headers like stddef.h that are known to exist.
9334         (gl_CHECK_NEXT_HEADERS): Use it.
9335         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9336         rather than gl_CHECK_NEXT_HEADERS.
9337         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9338         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9339
9340 2011-01-18  Eric Blake  <eblake@redhat.com>
9341
9342         ansi-c++-opt: skip C++ dependency style if C++ is unused
9343         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9344         tests when we know C++ compilation is not desired.
9345         Reported by Scott McCreary.
9346
9347 2011-01-18  Bruno Haible  <bruno@clisp.org>
9348
9349         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9350         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9351         (main): Perform test also when getrlimit and setrlimit don't exist or
9352         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9353         limiting the address space size using setrlimit, compare the address
9354         space size before and after the the test.
9355         * tests/test-dprintf-posix2.c: Likewise.
9356         * tests/test-fprintf-posix3.sh: Update skip messages.
9357         * tests/test-dprintf-posix2.sh: Likewise.
9358         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9359         * modules/dprintf-posix-tests (Depends-on): Likewise.
9360         Reported by Bruce Korb <bkorb@gnu.org> and
9361         Gary V. Vaughan <gary@gnu.org>.
9362
9363 2011-01-18  Bruno Haible  <bruno@clisp.org>
9364
9365         get-rusage-as: Improvement for Cygwin.
9366         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9367         areas that are merely reserved.
9368
9369 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9370
9371         strftime: remove dependencies on multibyte modules
9372
9373         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9374         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9375         only if __osf__ is defined, and I suspect OSF doesn't need these
9376         other modules.  If my guess is wrong, we'll need to come up with a
9377         variant of strftime that doesn't need the multibyte modules.
9378
9379         I discovered this problem when attempting modify Emacs to use the
9380         strftime module.  With the previous gnulib, this caused Emacs to
9381         need 31 new files, ranging from lib/config.charset to
9382         m4/wint_t.m4.  This was overkill and I expect would be offputting
9383         to the Emacs maintainers.  After this change, only 6 new files are
9384         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9385         stdbool.m4, and tm_gmtoff.m4.
9386
9387         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9388         Suggested by Bruno Haible in
9389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9391         and do not check for wchar.h.
9392         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9393         (Depends-on): Remove mbrlen, mbsinit, wchar.
9394
9395 2011-01-18  Bruno Haible  <bruno@clisp.org>
9396
9397         Tests for module 'get-rusage-as'.
9398         * modules/get-rusage-as-tests: New file.
9399         * tests/test-get-rusage-as.c: New file.
9400
9401         New module 'get-rusage-as'.
9402         * modules/get-rusage-as: New file.
9403         * lib/resource-ext.h: New file.
9404         * lib/get-rusage-as.c: New file.
9405
9406 2011-01-17  Eric Blake  <eblake@redhat.com>
9407
9408         sigaction: relax license from LGPLv3+ to LGPLv2+
9409         * modules/sigaction (License): Relax to LGPLv2+.
9410
9411 2011-01-14  Bruno Haible  <bruno@clisp.org>
9412
9413         filemode: Make function declarations usable in C++ mode.
9414         * lib/filemode.h: Enclose function declarations in extern "C" block.
9415         Reported by John W. Eaton <jwe@gnu.org>.
9416
9417 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9418
9419         save-cwd: no longer include "xgetcwd.h"
9420         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9421         This avoids a compilation failure in projects that use save-cwd
9422         without also using the xgetcwd module.
9423
9424 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9425
9426         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9427         This is so that a program like Emacs, which needs only dtoastr,
9428         does not have to bother with distributing and compiling ftoastr
9429         and ldtoastr.
9430         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9431         * modules/dtoastr, modules/ldtoastr: New files.
9432         * modules/ftoastr: Now works just for 'float'.
9433         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9434         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9435         dtoastr.c, ldtoastr.c.
9436
9437 2011-01-11  Jim Meyering  <meyering@redhat.com>
9438
9439         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9440         There is no need to work around the lack of the fchdir function,
9441         since gnulib can now provide a replacement when required.
9442         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9443         * modules/save-cwd (Depends-on): Add fchdir.
9444
9445 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9446
9447         openat, save-cwd: avoid xmalloc
9448
9449         This removes a direct (but undocumented) dependency of openat on
9450         xalloc, along with an indirect dependency via save-cwd.  It also
9451         removes a dependency of save-cwd on xgetcwd, and thereby
9452         indirectly on xalloc.  This change causes the openat substitute
9453         to fall back on save_cwd when memory is tight, and for save_cwd to
9454         fail instead of dying when memory is tight, but that's good enough.
9455         Problem and initial idea for fix reported by Bastien Roucaries in
9456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9457
9458         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9459         xalloc.h (for xmalloc).
9460         (openat_proc_name): Use malloc, not xmalloc.
9461         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9462         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9463
9464         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9465         This avoids heap allocation for file names whose lengths are in
9466         the range 512..1023, with the upper bound increasing to at most
9467         4031 depending on the platform's PATH_MAX.  (We do not want
9468         pathmax.h here as it might supply a non-constant PATH_MAX.)
9469         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9470         Perhaps they should be moved to malloca.h?
9471         (OPENAT_BUFFER_SIZE): Use them.
9472
9473 2011-01-10  Bruno Haible  <bruno@clisp.org>
9474
9475         doc: Update users.txt.
9476         * users.txt: Add recutils.
9477
9478 2011-01-09  Karl Berry  <karl@gnu.org>
9479
9480         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9481
9482         * doc/configmake.texi: New file.
9483         * doc/gnulib.texi: Include it.
9484         * modules/configmake: Move documentation from here.
9485
9486 2011-01-09  Bruno Haible  <bruno@clisp.org>
9487
9488         Update to Unicode 6.0.0.
9489         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9490         (get_lbp): Update for Unicode 6.0.0.
9491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9492         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9493         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9494         U+11001, U+11038..U+11046. Remove U+06DE.
9495         (uc_width): Fix bounds of planes.
9496         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9497         lib/uniwidth/width.c.
9498         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9499         trailing whitespace removed.
9500         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9501         without comments, but with the original copyright notice.
9502         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9503         * lib/unicase/ignorable.h: Likewise.
9504         * lib/unicase/tocasefold.h: Likewise.
9505         * lib/unicase/tolower.h: Likewise.
9506         * lib/unicase/totitle.h: Likewise.
9507         * lib/unicase/toupper.h: Likewise.
9508         * lib/unictype/bidi_of.h: Likewise.
9509         * lib/unictype/blocks.h: Likewise.
9510         * lib/unictype/categ_C.h: Likewise.
9511         * lib/unictype/categ_Cn.h: Likewise.
9512         * lib/unictype/categ_L.h: Likewise.
9513         * lib/unictype/categ_Ll.h: Likewise.
9514         * lib/unictype/categ_Lm.h: Likewise.
9515         * lib/unictype/categ_Lo.h: Likewise.
9516         * lib/unictype/categ_Lu.h: Likewise.
9517         * lib/unictype/categ_M.h: Likewise.
9518         * lib/unictype/categ_Mc.h: Likewise.
9519         * lib/unictype/categ_Me.h: Likewise.
9520         * lib/unictype/categ_Mn.h: Likewise.
9521         * lib/unictype/categ_N.h: Likewise.
9522         * lib/unictype/categ_Nd.h: Likewise.
9523         * lib/unictype/categ_No.h: Likewise.
9524         * lib/unictype/categ_P.h: Likewise.
9525         * lib/unictype/categ_Po.h: Likewise.
9526         * lib/unictype/categ_S.h: Likewise.
9527         * lib/unictype/categ_Sc.h: Likewise.
9528         * lib/unictype/categ_Sk.h: Likewise.
9529         * lib/unictype/categ_Sm.h: Likewise.
9530         * lib/unictype/categ_So.h: Likewise.
9531         * lib/unictype/categ_of.h: Likewise.
9532         * lib/unictype/combining.h: Likewise.
9533         * lib/unictype/ctype_alnum.h: Likewise.
9534         * lib/unictype/ctype_alpha.h: Likewise.
9535         * lib/unictype/ctype_graph.h: Likewise.
9536         * lib/unictype/ctype_lower.h: Likewise.
9537         * lib/unictype/ctype_print.h: Likewise.
9538         * lib/unictype/ctype_punct.h: Likewise.
9539         * lib/unictype/ctype_upper.h: Likewise.
9540         * lib/unictype/decdigit.h: Likewise.
9541         * lib/unictype/digit.h: Likewise.
9542         * lib/unictype/numeric.h: Likewise.
9543         * lib/unictype/pr_alphabetic.h: Likewise.
9544         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9545         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9546         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9547         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9548         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9549         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9550         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9551         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9552         * lib/unictype/pr_case_ignorable.h: Likewise.
9553         * lib/unictype/pr_cased.h: Likewise.
9554         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9555         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9556         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9557         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9558         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9559         * lib/unictype/pr_combining.h: Likewise.
9560         * lib/unictype/pr_composite.h: Likewise.
9561         * lib/unictype/pr_currency_symbol.h: Likewise.
9562         * lib/unictype/pr_decimal_digit.h: Likewise.
9563         * lib/unictype/pr_deprecated.h: Likewise.
9564         * lib/unictype/pr_format_control.h: Likewise.
9565         * lib/unictype/pr_grapheme_base.h: Likewise.
9566         * lib/unictype/pr_grapheme_extend.h: Likewise.
9567         * lib/unictype/pr_grapheme_link.h: Likewise.
9568         * lib/unictype/pr_id_continue.h: Likewise.
9569         * lib/unictype/pr_id_start.h: Likewise.
9570         * lib/unictype/pr_ideographic.h: Likewise.
9571         * lib/unictype/pr_lowercase.h: Likewise.
9572         * lib/unictype/pr_math.h: Likewise.
9573         * lib/unictype/pr_numeric.h: Likewise.
9574         * lib/unictype/pr_other_alphabetic.h: Likewise.
9575         * lib/unictype/pr_other_id_continue.h: Likewise.
9576         * lib/unictype/pr_other_math.h: Likewise.
9577         * lib/unictype/pr_punctuation.h: Likewise.
9578         * lib/unictype/pr_sentence_terminal.h: Likewise.
9579         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9580         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9581         * lib/unictype/pr_unified_ideograph.h: Likewise.
9582         * lib/unictype/pr_uppercase.h: Likewise.
9583         * lib/unictype/pr_xid_continue.h: Likewise.
9584         * lib/unictype/pr_xid_start.h: Likewise.
9585         * lib/unictype/scripts.h: Likewise.
9586         * lib/unictype/scripts_byname.gperf: Likewise.
9587         * lib/unictype/sy_java_ident.h: Likewise.
9588         * lib/unigbrk/gbrkprop.h: Likewise.
9589         * lib/unilbrk/lbrkprop1.h: Likewise.
9590         * lib/unilbrk/lbrkprop2.h: Likewise.
9591         * lib/uninorm/decomposition-table2.h: Likewise.
9592         * lib/uniwbrk/wbrkprop.h: Likewise.
9593         * tests/unicase/test-cased.c: Likewise.
9594         * tests/unicase/test-ignorable.c: Likewise.
9595         * tests/unicase/test-uc_tolower.c: Likewise.
9596         * tests/unicase/test-uc_totitle.c: Likewise.
9597         * tests/unicase/test-uc_toupper.c: Likewise.
9598         * tests/unictype/test-categ_C.c: Likewise.
9599         * tests/unictype/test-categ_Cn.c: Likewise.
9600         * tests/unictype/test-categ_L.c: Likewise.
9601         * tests/unictype/test-categ_Ll.c: Likewise.
9602         * tests/unictype/test-categ_Lm.c: Likewise.
9603         * tests/unictype/test-categ_Lo.c: Likewise.
9604         * tests/unictype/test-categ_Lu.c: Likewise.
9605         * tests/unictype/test-categ_M.c: Likewise.
9606         * tests/unictype/test-categ_Mc.c: Likewise.
9607         * tests/unictype/test-categ_Me.c: Likewise.
9608         * tests/unictype/test-categ_Mn.c: Likewise.
9609         * tests/unictype/test-categ_N.c: Likewise.
9610         * tests/unictype/test-categ_Nd.c: Likewise.
9611         * tests/unictype/test-categ_No.c: Likewise.
9612         * tests/unictype/test-categ_P.c: Likewise.
9613         * tests/unictype/test-categ_Po.c: Likewise.
9614         * tests/unictype/test-categ_S.c: Likewise.
9615         * tests/unictype/test-categ_Sc.c: Likewise.
9616         * tests/unictype/test-categ_Sk.c: Likewise.
9617         * tests/unictype/test-categ_Sm.c: Likewise.
9618         * tests/unictype/test-categ_So.c: Likewise.
9619         * tests/unictype/test-ctype_alnum.c: Likewise.
9620         * tests/unictype/test-ctype_alpha.c: Likewise.
9621         * tests/unictype/test-ctype_graph.c: Likewise.
9622         * tests/unictype/test-ctype_lower.c: Likewise.
9623         * tests/unictype/test-ctype_print.c: Likewise.
9624         * tests/unictype/test-ctype_punct.c: Likewise.
9625         * tests/unictype/test-ctype_upper.c: Likewise.
9626         * tests/unictype/test-decdigit.h: Likewise.
9627         * tests/unictype/test-digit.h: Likewise.
9628         * tests/unictype/test-numeric.h: Likewise.
9629         * tests/unictype/test-pr_alphabetic.c: Likewise.
9630         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9631         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9632         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9633         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9634         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9635         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9636         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9637         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9638         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9639         * tests/unictype/test-pr_cased.c: Likewise.
9640         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9641         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9642         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9643         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9644         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9645         * tests/unictype/test-pr_combining.c: Likewise.
9646         * tests/unictype/test-pr_composite.c: Likewise.
9647         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9648         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9649         * tests/unictype/test-pr_deprecated.c: Likewise.
9650         * tests/unictype/test-pr_format_control.c: Likewise.
9651         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9652         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9653         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9654         * tests/unictype/test-pr_id_continue.c: Likewise.
9655         * tests/unictype/test-pr_id_start.c: Likewise.
9656         * tests/unictype/test-pr_ideographic.c: Likewise.
9657         * tests/unictype/test-pr_lowercase.c: Likewise.
9658         * tests/unictype/test-pr_math.c: Likewise.
9659         * tests/unictype/test-pr_numeric.c: Likewise.
9660         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9661         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9662         * tests/unictype/test-pr_other_math.c: Likewise.
9663         * tests/unictype/test-pr_punctuation.c: Likewise.
9664         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9665         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9666         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9667         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9668         * tests/unictype/test-pr_uppercase.c: Likewise.
9669         * tests/unictype/test-pr_xid_continue.c: Likewise.
9670         * tests/unictype/test-pr_xid_start.c: Likewise.
9671         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9672         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9673         changes.
9674         * lib/unictype/categ_Cc.h: Likewise.
9675         * lib/unictype/categ_Cf.h: Likewise.
9676         * lib/unictype/categ_Co.h: Likewise.
9677         * lib/unictype/categ_Cs.h: Likewise.
9678         * lib/unictype/categ_Lt.h: Likewise.
9679         * lib/unictype/categ_Nl.h: Likewise.
9680         * lib/unictype/categ_Pc.h: Likewise.
9681         * lib/unictype/categ_Pd.h: Likewise.
9682         * lib/unictype/categ_Pe.h: Likewise.
9683         * lib/unictype/categ_Pf.h: Likewise.
9684         * lib/unictype/categ_Pi.h: Likewise.
9685         * lib/unictype/categ_Ps.h: Likewise.
9686         * lib/unictype/categ_Z.h: Likewise.
9687         * lib/unictype/categ_Zl.h: Likewise.
9688         * lib/unictype/categ_Zp.h: Likewise.
9689         * lib/unictype/categ_Zs.h: Likewise.
9690         * lib/unictype/ctype_blank.h: Likewise.
9691         * lib/unictype/ctype_cntrl.h: Likewise.
9692         * lib/unictype/ctype_digit.h: Likewise.
9693         * lib/unictype/ctype_space.h: Likewise.
9694         * lib/unictype/ctype_xdigit.h: Likewise.
9695         * lib/unictype/mirror.h: Likewise.
9696         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9697         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9698         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9699         * lib/unictype/pr_bidi_control.h: Likewise.
9700         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9701         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9702         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9703         * lib/unictype/pr_bidi_pdf.h: Likewise.
9704         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9705         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9706         * lib/unictype/pr_dash.h: Likewise.
9707         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9708         * lib/unictype/pr_diacritic.h: Likewise.
9709         * lib/unictype/pr_extender.h: Likewise.
9710         * lib/unictype/pr_hex_digit.h: Likewise.
9711         * lib/unictype/pr_hyphen.h: Likewise.
9712         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9713         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9714         * lib/unictype/pr_ignorable_control.h: Likewise.
9715         * lib/unictype/pr_iso_control.h: Likewise.
9716         * lib/unictype/pr_join_control.h: Likewise.
9717         * lib/unictype/pr_left_of_pair.h: Likewise.
9718         * lib/unictype/pr_line_separator.h: Likewise.
9719         * lib/unictype/pr_logical_order_exception.h: Likewise.
9720         * lib/unictype/pr_non_break.h: Likewise.
9721         * lib/unictype/pr_not_a_character.h: Likewise.
9722         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9723         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9724         * lib/unictype/pr_other_id_start.h: Likewise.
9725         * lib/unictype/pr_other_lowercase.h: Likewise.
9726         * lib/unictype/pr_other_uppercase.h: Likewise.
9727         * lib/unictype/pr_paired_punctuation.h: Likewise.
9728         * lib/unictype/pr_paragraph_separator.h: Likewise.
9729         * lib/unictype/pr_pattern_syntax.h: Likewise.
9730         * lib/unictype/pr_pattern_white_space.h: Likewise.
9731         * lib/unictype/pr_private_use.h: Likewise.
9732         * lib/unictype/pr_quotation_mark.h: Likewise.
9733         * lib/unictype/pr_radical.h: Likewise.
9734         * lib/unictype/pr_soft_dotted.h: Likewise.
9735         * lib/unictype/pr_space.h: Likewise.
9736         * lib/unictype/pr_titlecase.h: Likewise.
9737         * lib/unictype/pr_variation_selector.h: Likewise.
9738         * lib/unictype/pr_white_space.h: Likewise.
9739         * lib/unictype/pr_zero_width.h: Likewise.
9740         * lib/unictype/sy_c_ident.h: Likewise.
9741         * lib/unictype/sy_c_whitespace.h: Likewise.
9742         * lib/unictype/sy_java_whitespace.h: Likewise.
9743         * lib/uninorm/composition-table.gperf: Likewise.
9744         * lib/uninorm/decomposition-table1.h: Likewise.
9745         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9746         LB8.
9747         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9748         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9749         * modules/unictype/*: Bump version number of expected libunistring
9750         version.
9751
9752 2011-01-09  Bruno Haible  <bruno@clisp.org>
9753
9754         Update to Unicode 5.2.0.
9755         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9756         trailing whitespace removed.
9757
9758 2011-01-09  Bruno Haible  <bruno@clisp.org>
9759
9760         New Unicode character properties, from Unicode 5.2.0.
9761         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9762         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9763         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9764         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9765         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9766         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9767         uc_is_property_cased, uc_is_property_case_ignorable,
9768         uc_is_property_changes_when_lowercased,
9769         uc_is_property_changes_when_uppercased,
9770         uc_is_property_changes_when_titlecased,
9771         uc_is_property_changes_when_casefolded,
9772         uc_is_property_changes_when_casemapped): New declarations.
9773         * lib/unictype/pr_byname.gperf: Add the new properties.
9774         * modules/unictype/property-byname (Depends-on): Depend on the new
9775         properties modules.
9776         * modules/unictype/property-all (Depends-on): Likewise.
9777         * MODULES.html.sh (Unicode string functions): Add
9778         unictype/property-case-ignorable, unictype/property-cased,
9779         unictype/property-changes-when-casefolded,
9780         unictype/property-changes-when-casemapped,
9781         unictype/property-changes-when-lowercased,
9782         unictype/property-changes-when-titlecased,
9783         unictype/property-changes-when-uppercased.
9784
9785         New module 'unictype/property-changes-when-casemapped'.
9786         * modules/unictype/property-changes-when-casemapped: New file.
9787         * lib/unictype/pr_changes_when_casemapped.c: New file.
9788         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9789         generated by gen-uni-tables.
9790         * modules/unictype/property-changes-when-casemapped-tests: New file.
9791         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9792         automatically generated by gen-uni-tables.
9793
9794         New module 'unictype/property-changes-when-casefolded'.
9795         * modules/unictype/property-changes-when-casefolded: New file.
9796         * lib/unictype/pr_changes_when_casefolded.c: New file.
9797         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9798         generated by gen-uni-tables.
9799         * modules/unictype/property-changes-when-casefolded-tests: New file.
9800         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9801         automatically generated by gen-uni-tables.
9802
9803         New module 'unictype/property-changes-when-titlecased'.
9804         * modules/unictype/property-changes-when-titlecased: New file.
9805         * lib/unictype/pr_changes_when_titlecased.c: New file.
9806         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9807         generated by gen-uni-tables.
9808         * modules/unictype/property-changes-when-titlecased-tests: New file.
9809         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9810         automatically generated by gen-uni-tables.
9811
9812         New module 'unictype/property-changes-when-uppercased'.
9813         * modules/unictype/property-changes-when-uppercased: New file.
9814         * lib/unictype/pr_changes_when_uppercased.c: New file.
9815         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9816         generated by gen-uni-tables.
9817         * modules/unictype/property-changes-when-uppercased-tests: New file.
9818         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9819         automatically generated by gen-uni-tables.
9820
9821         New module 'unictype/property-changes-when-lowercased'.
9822         * modules/unictype/property-changes-when-lowercased: New file.
9823         * lib/unictype/pr_changes_when_lowercased.c: New file.
9824         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9825         generated by gen-uni-tables.
9826         * modules/unictype/property-changes-when-lowercased-tests: New file.
9827         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9828         automatically generated by gen-uni-tables.
9829
9830         New module 'unictype/property-case-ignorable'.
9831         * modules/unictype/property-case-ignorable: New file.
9832         * lib/unictype/pr_case_ignorable.c: New file.
9833         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9834         by gen-uni-tables.
9835         * modules/unictype/property-case-ignorable-tests: New file.
9836         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9837         generated by gen-uni-tables.
9838
9839         New module 'unictype/property-cased'.
9840         * modules/unictype/property-cased: New file.
9841         * lib/unictype/pr_cased.c: New file.
9842         * lib/unictype/pr_cased.h: New file, automatically generated by
9843         gen-uni-tables.
9844         * modules/unictype/property-cased-tests: New file.
9845         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9846         gen-uni-tables.
9847
9848 2011-01-09  Bruno Haible  <bruno@clisp.org>
9849
9850         Update to Unicode 5.2.0.
9851         * lib/gen-uni-tables.c (output_predicate, output_category,
9852         output_combclass, output_bidi_category, output_decimal_digit_test,
9853         output_decimal_digit, output_digit_test, output_digit,
9854         output_numeric_test, output_numeric, output_mirror, output_scripts,
9855         output_scripts_byname, output_blocks, output_ident_category): Fix
9856         comment header.
9857         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9858         get_wbp.
9859         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9860         items.
9861         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9862         Changes_When_Lowercased, Changes_When_Uppercased,
9863         Changes_When_Titlecased, Changes_When_Casefolded,
9864         Changes_When_Casemapped.
9865         (is_property_alphabetic, is_property_default_ignorable_code_point):
9866         Update for Unicode 5.2.0.
9867         (is_property_cased, is_property_case_ignorable,
9868         is_property_changes_when_lowercased,
9869         is_property_changes_when_uppercased,
9870         is_property_changes_when_titlecased,
9871         is_property_changes_when_casefolded,
9872         is_property_changes_when_casemapped): New functions.
9873         (output_properties): Output also the properties cased, case_ignorable,
9874         changes_when_lowercased, changes_when_uppercased,
9875         changes_when_titlecased, changes_when_casefolded,
9876         changes_when_casemapped.
9877         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9878         Unicode TR#11 revision 17 -> 19.
9879         (LBP_CP): New enumeration value.
9880         (LBP_*): Adjust values accordingly.
9881         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9882         TR#14 revision 22 -> 24.
9883         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9884         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9885         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9886         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9887         is_WBP_MIDLETTER.
9888         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9889         the code1 and code2 of each composition rule.
9890         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9891         * lib/unicase/ignorable.h: Likewise.
9892         * lib/unicase/tocasefold.h: Likewise.
9893         * lib/unicase/tolower.h: Likewise.
9894         * lib/unicase/totitle.h: Likewise.
9895         * lib/unicase/toupper.h: Likewise.
9896         * lib/unictype/bidi_of.h: Likewise.
9897         * lib/unictype/blocks.h: Likewise.
9898         * lib/unictype/categ_C.h: Likewise.
9899         * lib/unictype/categ_Cf.h: Likewise.
9900         * lib/unictype/categ_Cn.h: Likewise.
9901         * lib/unictype/categ_L.h: Likewise.
9902         * lib/unictype/categ_Ll.h: Likewise.
9903         * lib/unictype/categ_Lm.h: Likewise.
9904         * lib/unictype/categ_Lo.h: Likewise.
9905         * lib/unictype/categ_Lu.h: Likewise.
9906         * lib/unictype/categ_M.h: Likewise.
9907         * lib/unictype/categ_Mc.h: Likewise.
9908         * lib/unictype/categ_Mn.h: Likewise.
9909         * lib/unictype/categ_N.h: Likewise.
9910         * lib/unictype/categ_Nd.h: Likewise.
9911         * lib/unictype/categ_Nl.h: Likewise.
9912         * lib/unictype/categ_No.h: Likewise.
9913         * lib/unictype/categ_P.h: Likewise.
9914         * lib/unictype/categ_Pd.h: Likewise.
9915         * lib/unictype/categ_Po.h: Likewise.
9916         * lib/unictype/categ_S.h: Likewise.
9917         * lib/unictype/categ_Sc.h: Likewise.
9918         * lib/unictype/categ_So.h: Likewise.
9919         * lib/unictype/categ_of.h: Likewise.
9920         * lib/unictype/combining.h: Likewise.
9921         * lib/unictype/ctype_alnum.h: Likewise.
9922         * lib/unictype/ctype_alpha.h: Likewise.
9923         * lib/unictype/ctype_graph.h: Likewise.
9924         * lib/unictype/ctype_lower.h: Likewise.
9925         * lib/unictype/ctype_print.h: Likewise.
9926         * lib/unictype/ctype_punct.h: Likewise.
9927         * lib/unictype/ctype_upper.h: Likewise.
9928         * lib/unictype/decdigit.h: Likewise.
9929         * lib/unictype/digit.h: Likewise.
9930         * lib/unictype/numeric.h: Likewise.
9931         * lib/unictype/pr_alphabetic.h: Likewise.
9932         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9933         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9934         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9935         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9936         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9937         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9938         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9939         * lib/unictype/pr_combining.h: Likewise.
9940         * lib/unictype/pr_composite.h: Likewise.
9941         * lib/unictype/pr_currency_symbol.h: Likewise.
9942         * lib/unictype/pr_dash.h: Likewise.
9943         * lib/unictype/pr_decimal_digit.h: Likewise.
9944         * lib/unictype/pr_deprecated.h: Likewise.
9945         * lib/unictype/pr_diacritic.h: Likewise.
9946         * lib/unictype/pr_extender.h: Likewise.
9947         * lib/unictype/pr_grapheme_base.h: Likewise.
9948         * lib/unictype/pr_grapheme_extend.h: Likewise.
9949         * lib/unictype/pr_grapheme_link.h: Likewise.
9950         * lib/unictype/pr_id_continue.h: Likewise.
9951         * lib/unictype/pr_id_start.h: Likewise.
9952         * lib/unictype/pr_ideographic.h: Likewise.
9953         * lib/unictype/pr_ignorable_control.h: Likewise.
9954         * lib/unictype/pr_logical_order_exception.h: Likewise.
9955         * lib/unictype/pr_lowercase.h: Likewise.
9956         * lib/unictype/pr_numeric.h: Likewise.
9957         * lib/unictype/pr_other_alphabetic.h: Likewise.
9958         * lib/unictype/pr_punctuation.h: Likewise.
9959         * lib/unictype/pr_sentence_terminal.h: Likewise.
9960         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9961         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9962         * lib/unictype/pr_unified_ideograph.h: Likewise.
9963         * lib/unictype/pr_uppercase.h: Likewise.
9964         * lib/unictype/pr_xid_continue.h: Likewise.
9965         * lib/unictype/pr_xid_start.h: Likewise.
9966         * lib/unictype/pr_zero_width.h: Likewise.
9967         * lib/unictype/scripts.h: Likewise.
9968         * lib/unictype/scripts_byname.gperf: Likewise.
9969         * lib/unictype/sy_java_ident.h: Likewise.
9970         * lib/unigbrk/gbrkprop.h: Likewise.
9971         * lib/unilbrk/lbrkprop1.h: Likewise.
9972         * lib/unilbrk/lbrkprop2.h: Likewise.
9973         * lib/unilbrk/lbrktables.h: Likewise.
9974         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9975         LBP_CP. Implement rule LB30.
9976         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9977         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9978         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9979         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9980         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9981         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9982         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9983         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9984         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9985         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9986         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9987         bits instead of 16 bits in the code1 and code2 of each composition
9988         rule.
9989         (uc_composition): Update for Unicode 5.2.0.
9990         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9991         * lib/uninorm/decomposition-table2.h: Likewise.
9992         * lib/uniwbrk/wbrkprop.h: Likewise.
9993         * tests/unicase/test-cased.c: Likewise.
9994         * tests/unicase/test-ignorable.c: Likewise.
9995         * tests/unicase/test-uc_tolower.c: Likewise.
9996         * tests/unicase/test-uc_totitle.c: Likewise.
9997         * tests/unicase/test-uc_toupper.c: Likewise.
9998         * tests/unictype/test-categ_C.c: Likewise.
9999         * tests/unictype/test-categ_Cf.c: Likewise.
10000         * tests/unictype/test-categ_Cn.c: Likewise.
10001         * tests/unictype/test-categ_L.c: Likewise.
10002         * tests/unictype/test-categ_Ll.c: Likewise.
10003         * tests/unictype/test-categ_Lm.c: Likewise.
10004         * tests/unictype/test-categ_Lo.c: Likewise.
10005         * tests/unictype/test-categ_Lu.c: Likewise.
10006         * tests/unictype/test-categ_M.c: Likewise.
10007         * tests/unictype/test-categ_Mc.c: Likewise.
10008         * tests/unictype/test-categ_Mn.c: Likewise.
10009         * tests/unictype/test-categ_N.c: Likewise.
10010         * tests/unictype/test-categ_Nd.c: Likewise.
10011         * tests/unictype/test-categ_Nl.c: Likewise.
10012         * tests/unictype/test-categ_No.c: Likewise.
10013         * tests/unictype/test-categ_P.c: Likewise.
10014         * tests/unictype/test-categ_Pd.c: Likewise.
10015         * tests/unictype/test-categ_Po.c: Likewise.
10016         * tests/unictype/test-categ_S.c: Likewise.
10017         * tests/unictype/test-categ_Sc.c: Likewise.
10018         * tests/unictype/test-categ_So.c: Likewise.
10019         * tests/unictype/test-ctype_alnum.c: Likewise.
10020         * tests/unictype/test-ctype_alpha.c: Likewise.
10021         * tests/unictype/test-ctype_graph.c: Likewise.
10022         * tests/unictype/test-ctype_lower.c: Likewise.
10023         * tests/unictype/test-ctype_print.c: Likewise.
10024         * tests/unictype/test-ctype_punct.c: Likewise.
10025         * tests/unictype/test-ctype_upper.c: Likewise.
10026         * tests/unictype/test-decdigit.h: Likewise.
10027         * tests/unictype/test-digit.h: Likewise.
10028         * tests/unictype/test-numeric.h: Likewise.
10029         * tests/unictype/test-pr_alphabetic.c: Likewise.
10030         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10032         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10033         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10034         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10035         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10036         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10037         * tests/unictype/test-pr_combining.c: Likewise.
10038         * tests/unictype/test-pr_composite.c: Likewise.
10039         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10040         * tests/unictype/test-pr_dash.c: Likewise.
10041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10042         * tests/unictype/test-pr_deprecated.c: Likewise.
10043         * tests/unictype/test-pr_diacritic.c: Likewise.
10044         * tests/unictype/test-pr_extender.c: Likewise.
10045         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10046         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10047         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10048         * tests/unictype/test-pr_id_continue.c: Likewise.
10049         * tests/unictype/test-pr_id_start.c: Likewise.
10050         * tests/unictype/test-pr_ideographic.c: Likewise.
10051         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10052         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10053         * tests/unictype/test-pr_lowercase.c: Likewise.
10054         * tests/unictype/test-pr_numeric.c: Likewise.
10055         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10056         * tests/unictype/test-pr_punctuation.c: Likewise.
10057         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10058         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10061         * tests/unictype/test-pr_uppercase.c: Likewise.
10062         * tests/unictype/test-pr_xid_continue.c: Likewise.
10063         * tests/unictype/test-pr_xid_start.c: Likewise.
10064         * tests/unictype/test-pr_zero_width.c: Likewise.
10065         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10066         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10067         changed behaviour: line breaking is now disallowed between a letter
10068         or '=' and '('.
10069         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10070         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10071         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10072         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10073         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10074         lib/uniwidth/width.c.
10075         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10076         without comments, but with the original copyright notice.
10077         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10078         changes.
10079         * lib/unictype/categ_Cc.h: Likewise.
10080         * lib/unictype/categ_Co.h: Likewise.
10081         * lib/unictype/categ_Cs.h: Likewise.
10082         * lib/unictype/categ_Lt.h: Likewise.
10083         * lib/unictype/categ_Me.h: Likewise.
10084         * lib/unictype/categ_Pc.h: Likewise.
10085         * lib/unictype/categ_Pe.h: Likewise.
10086         * lib/unictype/categ_Pf.h: Likewise.
10087         * lib/unictype/categ_Pi.h: Likewise.
10088         * lib/unictype/categ_Ps.h: Likewise.
10089         * lib/unictype/categ_Sk.h: Likewise.
10090         * lib/unictype/categ_Sm.h: Likewise.
10091         * lib/unictype/categ_Z.h: Likewise.
10092         * lib/unictype/categ_Zl.h: Likewise.
10093         * lib/unictype/categ_Zp.h: Likewise.
10094         * lib/unictype/categ_Zs.h: Likewise.
10095         * lib/unictype/ctype_blank.h: Likewise.
10096         * lib/unictype/ctype_cntrl.h: Likewise.
10097         * lib/unictype/ctype_digit.h: Likewise.
10098         * lib/unictype/ctype_space.h: Likewise.
10099         * lib/unictype/ctype_xdigit.h: Likewise.
10100         * lib/unictype/mirror.h: Likewise.
10101         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10103         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10104         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10105         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10106         * lib/unictype/pr_bidi_control.h: Likewise.
10107         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10108         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10109         * lib/unictype/pr_bidi_pdf.h: Likewise.
10110         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10111         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10112         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10113         * lib/unictype/pr_format_control.h: Likewise.
10114         * lib/unictype/pr_hex_digit.h: Likewise.
10115         * lib/unictype/pr_hyphen.h: Likewise.
10116         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10117         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10118         * lib/unictype/pr_iso_control.h: Likewise.
10119         * lib/unictype/pr_join_control.h: Likewise.
10120         * lib/unictype/pr_left_of_pair.h: Likewise.
10121         * lib/unictype/pr_line_separator.h: Likewise.
10122         * lib/unictype/pr_math.h: Likewise.
10123         * lib/unictype/pr_non_break.h: Likewise.
10124         * lib/unictype/pr_not_a_character.h: Likewise.
10125         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10126         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10127         * lib/unictype/pr_other_id_continue.h: Likewise.
10128         * lib/unictype/pr_other_id_start.h: Likewise.
10129         * lib/unictype/pr_other_lowercase.h: Likewise.
10130         * lib/unictype/pr_other_math.h: Likewise.
10131         * lib/unictype/pr_other_uppercase.h: Likewise.
10132         * lib/unictype/pr_paired_punctuation.h: Likewise.
10133         * lib/unictype/pr_paragraph_separator.h: Likewise.
10134         * lib/unictype/pr_pattern_syntax.h: Likewise.
10135         * lib/unictype/pr_pattern_white_space.h: Likewise.
10136         * lib/unictype/pr_private_use.h: Likewise.
10137         * lib/unictype/pr_quotation_mark.h: Likewise.
10138         * lib/unictype/pr_radical.h: Likewise.
10139         * lib/unictype/pr_soft_dotted.h: Likewise.
10140         * lib/unictype/pr_space.h: Likewise.
10141         * lib/unictype/pr_titlecase.h: Likewise.
10142         * lib/unictype/pr_variation_selector.h: Likewise.
10143         * lib/unictype/pr_white_space.h: Likewise.
10144         * lib/unictype/sy_c_ident.h: Likewise.
10145         * lib/unictype/sy_c_whitespace.h: Likewise.
10146         * lib/unictype/sy_java_whitespace.h: Likewise.
10147         * modules/uni*/*: Bump version number of expected libunistring version.
10148         Reported by Simon Josefsson.
10149
10150 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10151
10152         useless-if-before-free: fix typo in --help and make the internal,
10153         automatic version date update process work once again.
10154         --help output contained a NUL character instead of the
10155         backslash-zero that was intended.  Also, the "must lie within
10156         the first 8 lines" line is on line 9, and hence not getting
10157         automatically updated.
10158         * build-aux/useless-if-before-free: Fix the former by adding a
10159         backslash, and the latter by condensing the three lines of what-it-does
10160         to a single line, leaving one line of slack for the future.
10161
10162 2011-01-09  Bruno Haible  <bruno@clisp.org>
10163
10164         uniwidth/width: Fix width of U+1D173..U+1D17A.
10165         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10166         symbolic_width, output_width_property_test): New functions.
10167         (main): Invoke output_nonspacing_property, output_width_property_test.
10168         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10169         U+1D173..U+1D17A.
10170         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10171         1.
10172         * modules/uniwidth/*: Bump version number of expected libunistring
10173         version.
10174         * modules/unilbrk/*: Likewise.
10175
10176 2011-01-08  Bruno Haible  <bruno@clisp.org>
10177
10178         uninorm tests: Preserve copyright of Unicode data file.
10179         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10180         Mention modifications.
10181
10182 2011-01-08  Bruno Haible  <bruno@clisp.org>
10183
10184         gen-uni-tables: Prepare for Unicode 5.2.0.
10185         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10186         (debug_output_lbp, output_lbp): Update.
10187
10188 2011-01-08  Bruno Haible  <bruno@clisp.org>
10189
10190         unilbrk: Clarify gen-uni-tables.c code.
10191         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10192         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10193         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10194
10195 2011-01-07  Bruno Haible  <bruno@clisp.org>
10196
10197         strtod: Restore errno when successfully parsing Infinity or NaN.
10198         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10199         restore the original errno.
10200
10201 2011-01-07  Bruno Haible  <bruno@clisp.org>
10202
10203         remove test: Avoid failure on HP-UX 11.
10204         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10205
10206 2011-01-07  Bruno Haible  <bruno@clisp.org>
10207
10208         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10209         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10210         error code.
10211
10212 2011-01-07  Pádraig Brady <P@draigBrady.com>
10213
10214         ignore-value: fixup comments, and add Eric Blake
10215         as an author since he rewrote the macros.
10216         * lib/ignore-value.h (ignore_value):  State that
10217         we now support aggregates.  Also specify exactly
10218         when the GCC warn_unused_result feature was added.
10219
10220 2011-01-06  Eric Blake  <eblake@redhat.com>
10221
10222         ignore-value: support aggregate types
10223         * lib/ignore-value.h (ignore_value): Provide separate gcc
10224         definition.
10225         * modules/ignore-value-tests: New test module.
10226         * tests/test-ignore-value.c: New test.
10227
10228         maint.mk: improve sc_prohibit_strcmp regex
10229         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10230         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10231         definition of STRNEQ.
10232
10233         signal: work around Haiku issue with SIGBUS
10234         * lib/siglist.h: Add comment.
10235         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10236         strsignal's favoring of SIGSEGV.
10237         * tests/test-signal.c (main): Avoid test failure.
10238         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10239         Reported by Scott McCreary.
10240
10241         maint.mk: add pre-release check to ensure submodule commits are public
10242         * top/maint.mk (public-submodule-commit): New rule.
10243         (submodule-checks): New variable.
10244         (alpha beta stable): Depend on the variable.
10245
10246 2011-01-05  Pádraig Brady <P@draigBrady.com>
10247         and Jim Meyering  <meyering@redhat.com>
10248
10249         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10250         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10251         (ATTRIBUTE_DEPRECATED): Define.
10252         (_ignore_case): New function.
10253         (ignore_value): New macro, to replace the old function.
10254         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10255         * modules/ignore-value (Depends-on): Add stdint.
10256
10257 2011-01-04  Eric Blake  <eblake@redhat.com>
10258
10259         doc: regenerate INSTALL
10260         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10261         @firstparagraphindent support, now that autoconf dropped it.
10262         (INSTALL_PRELUDE): Reinstate old macro.
10263         * doc/install.texi: Resync from autoconf.
10264         * doc/INSTALL: Reflect recent autoconf update.
10265         * doc/INSTALL.ISO: Likewise.
10266         * doc/INSTALL.UTF-8: Likewise.
10267         Reported by Karl Berry.
10268
10269 2011-01-04  Bruce Korb  <address@hidden>
10270
10271         git-version-gen: avoid a sub-shell
10272         * build-aux/git-version-gen: Redirect stderr in `...` via
10273         "exec 2>...", rather than via an added sub-shell.
10274
10275 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10276
10277         git-version-gen: use (...) rather than sh -c '...'
10278         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10279         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10280
10281 2011-01-03  Jim Meyering  <meyering@redhat.com>
10282
10283         git-version-gen: convert leading TABs to spaces
10284         * build-aux/git-version-gen: Expand leading TABs.
10285
10286         git-version-gen: handle failed "git rev-list"
10287         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10288         from git and proceeding as if it had succeeded but printed no SHA1
10289         checksums, suppress the diagnostic and handle the failure.
10290         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10291
10292         git-version-gen: include command name in one more diagnostic
10293         * build-aux/git-version-gen: When the required .tarball-version file
10294         was missing or unreadable, you might see the diagnostic from "cat",
10295         but no trace of the name of the invoking script.  Now, you still see
10296         the diagnostic from cat, but also get one from "git-version-gen: ".
10297         Inspired by a patch from Bruce Korb.
10298
10299         update-copyright: adjust test to match changed code
10300         * tests/test-update-copyright.sh: Change test's expected output
10301         to match new actual output.
10302
10303 2011-01-02  Bruno Haible  <bruno@clisp.org>
10304
10305         getlogin_r: Avoid test failure on HP-UX 11.
10306         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10307         ERANGE when the second argument is zero.
10308         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10309         portability problem.
10310
10311 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10312
10313         * build-aux/update-copyright: doc Simon's changes
10314
10315 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10316
10317         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10318         environment variable.
10319
10320 2011-01-02  Bruno Haible  <bruno@clisp.org>
10321
10322         unigbrk: Avoid gcc warnings.
10323         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10324         unused variable.
10325         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10326         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10327         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10328         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10329         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10330         Change type of first argument to 'const char *'.
10331         (main): Remove unused variable.
10332         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10333         type of first argument to 'const char *'.
10334         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10335         Likewise.
10336         (main): Change type of variable 's'.
10337         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10338         to 'int'.
10339
10340 2011-01-02  Bruno Haible  <bruno@clisp.org>
10341
10342         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10343         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10344         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10345         bug.
10346         * lib/pwrite.c: Undo 2010-12-31 patch.
10347         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10348
10349 2011-01-02  Bruno Haible  <bruno@clisp.org>
10350
10351         pread: Fix test whether it works.
10352         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10353
10354 2011-01-02  Bruno Haible  <bruno@clisp.org>
10355
10356         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10357         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10358         ends in "6". Don't require a specific month name. Try also the locale
10359         names found on HP-UX 11 and Solaris 7.
10360
10361 2011-01-02  Bruno Haible  <bruno@clisp.org>
10362
10363         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10364         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10365         C linkage.
10366         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10367
10368 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10369
10370         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10371         for consistency, since the "cluster" term is not used elsewhere.
10372         * lib/unigbrk.in.h: Update name.
10373         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10374         * lib/unigbrk/u16-grapheme-next.c: Update name.
10375         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10376         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10377         * lib/unigbrk/u32-grapheme-next.c: Update name.
10378         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10379         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10380         * lib/unigbrk/u8-grapheme-next.c: Update name.
10381         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10382         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10383         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10384         Suggested by Bruno Haible.
10385
10386 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10387
10388         Remove module 'u8-grapheme-len' as too redundant with
10389         'u8-grapheme-next'.
10390         * modules/unigbrk/u8-grapheme-len: Delete file.
10391         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10392         * lib/unigbrk.in.h: Remove prototype for deleted function.
10393         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10394         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10395
10396         Remove module 'u16-grapheme-len' as too redundant with
10397         'u16-grapheme-next'.
10398         * modules/unigbrk/u16-grapheme-len: Delete file.
10399         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10400         * lib/unigbrk.in.h: Remove prototype for deleted function.
10401         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10402         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10403
10404         Remove module 'u32-grapheme-len' as too redundant with
10405         'u32-grapheme-next'.
10406         * modules/unigbrk/u32-grapheme-len: Delete file.
10407         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10408         * lib/unigbrk.in.h: Remove prototype for deleted function.
10409         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10410         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10411
10412         Suggested by Bruno Haible.
10413
10414 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10415
10416         * unigbrk.in.h: Fix typo: "ben" => "been".
10417         Reported by Bruno Haible.
10418
10419 2011-01-01  Jim Meyering  <meyering@redhat.com>
10420
10421         maint: update almost all copyright ranges to include 2011
10422         Run the new "make update-copyright" rule.
10423
10424 2011-01-01  Jim Meyering  <meyering@redhat.com>
10425
10426         maint: update-copyright: exempt doc/INSTALL*
10427         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10428         since they are generated.  Suggested by Bruno Haible.
10429
10430 2011-01-01  Jim Meyering  <meyering@redhat.com>
10431
10432         maint: refine the update-copyright rule
10433         * Makefile (update-copyright): Also exclude any file that includes
10434         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10435         code that merely generates the comment.
10436
10437 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10438
10439         New module 'u8-grapheme-len'.
10440         * modules/unigbrk/u8-grapheme-len: New file.
10441         * modules/unigbrk/u8-grapheme-len-tests: New file.
10442         * lib/unigbrk.in.h: Add prototype for new function.
10443         * lib/unigbrk/u8-grapheme-len.c: New file.
10444         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10445
10446         New module 'u16-grapheme-len'.
10447         * modules/unigbrk/u16-grapheme-len: New file.
10448         * modules/unigbrk/u16-grapheme-len-tests: New file.
10449         * lib/unigbrk.in.h: Add prototype for new function.
10450         * lib/unigbrk/u16-grapheme-len.c: New file.
10451         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10452
10453         New module 'u32-grapheme-len'.
10454         * modules/unigbrk/u32-grapheme-len: New file.
10455         * modules/unigbrk/u32-grapheme-len-tests: New file.
10456         * lib/unigbrk.in.h: Add prototype for new function.
10457         * lib/unigbrk/u32-grapheme-len.c: New file.
10458         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10459
10460         New module 'u8-grapheme-next'.
10461         * modules/unigbrk/u8-grapheme-next: New file.
10462         * modules/unigbrk/u8-grapheme-next-tests: New file.
10463         * lib/unigbrk.in.h: Add prototype for new function.
10464         * lib/unigbrk/u8-grapheme-next.c: New file.
10465         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10466
10467         New module 'u16-grapheme-next'.
10468         * modules/unigbrk/u16-grapheme-next: New file.
10469         * modules/unigbrk/u16-grapheme-next-tests: New file.
10470         * lib/unigbrk.in.h: Add prototype for new function.
10471         * lib/unigbrk/u16-grapheme-next.c: New file.
10472         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10473
10474         New module 'u32-grapheme-next'.
10475         * modules/unigbrk/u32-grapheme-next: New file.
10476         * modules/unigbrk/u32-grapheme-next-tests: New file.
10477         * lib/unigbrk.in.h: Add prototype for new function.
10478         * lib/unigbrk/u32-grapheme-next.c: New file.
10479         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10480
10481         New module 'u8-grapheme-prev'.
10482         * modules/unigbrk/u8-grapheme-prev: New file.
10483         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10484         * lib/unigbrk.in.h: Add prototype for new function.
10485         * lib/unigbrk/u8-grapheme-prev.c: New file.
10486         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10487
10488         New module 'u16-grapheme-prev'.
10489         * modules/unigbrk/u16-grapheme-prev: New file.
10490         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10491         * lib/unigbrk.in.h: Add prototype for new function.
10492         * lib/unigbrk/u16-grapheme-prev.c: New file.
10493         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10494
10495         New module 'u32-grapheme-prev'.
10496         * modules/unigbrk/u32-grapheme-prev: New file.
10497         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10498         * lib/unigbrk.in.h: Add prototype for new function.
10499         * lib/unigbrk/u32-grapheme-prev.c: New file.
10500         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10501
10502         New module 'u8-grapheme-breaks'.
10503         * modules/unigbrk/u8-grapheme-breaks: New file.
10504         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10505         * lib/unigbrk.in.h: Add prototype for new function.
10506         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10507         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10508
10509         New module 'u16-grapheme-breaks'.
10510         * modules/unigbrk/u16-grapheme-breaks: New file.
10511         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10512         * lib/unigbrk.in.h: Add prototype for new function.
10513         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10514         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10515
10516         New module 'u32-grapheme-breaks'.
10517         * modules/unigbrk/u32-grapheme-breaks: New file.
10518         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10519         * lib/unigbrk.in.h: Add prototype for new function.
10520         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10521         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10522
10523         New module 'ulc-grapheme-breaks'.
10524         * modules/unigbrk/ulc-grapheme-breaks: New file.
10525         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10526         * m4/locale-ar.m4: New file.
10527         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10528         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10529         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10530
10531 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10532
10533         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10534         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10535         modified how this file was generated before I initially submitted
10536         the module, but failed to regenerate it.  This meant that several
10537         of the level2 entries were wrong.
10538         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10539         Remove the division-by-2 that is folded into the table now that
10540         gbrkprop.h has been regenerated properly.  Now -1 entries are
10541         handled correctly.
10542
10543         New module 'unigbrk/uc-gbrk-prop-tests'.
10544         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10545         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10546         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10547         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10548
10549 2011-01-01  Bruno Haible  <bruno@clisp.org>
10550
10551         Avoid use of hexadecimal escapes.
10552         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10553         instead of hexadecimal escapes.
10554
10555 2011-01-01  Jim Meyering  <meyering@redhat.com>
10556
10557         maint: new rule to update copyright year ranges
10558         * Makefile (update-copyright): New rule.
10559
10560         maint: indent with TABs in Makefile
10561         * Makefile: Expand leading sequences of spaces to TABs
10562
10563         version-etc: update the copyright year it reports
10564         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10565
10566 2010-12-31  Bruno Haible  <bruno@clisp.org>
10567
10568         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10569         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10570         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10571         zero.
10572
10573 2010-12-31  Bruno Haible  <bruno@clisp.org>
10574
10575         pwrite: Work around HP-UX 11.11 bug.
10576         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10577         works and set REPLACE_PWRITE if not.
10578         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10579         function.
10580         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10581
10582 2010-12-31  Bruno Haible  <bruno@clisp.org>
10583
10584         pread: Work around HP-UX 11 bugs.
10585         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10586         and set REPLACE_PREAD if not.
10587         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10588
10589 2010-12-31  Eric Blake  <eblake@redhat.com>
10590
10591         nl_langinfo: fix YESEXPR on Irix 6.5
10592         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10593         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10595         it.
10596
10597 2010-12-31  Bruno Haible  <bruno@clisp.org>
10598
10599         iconv: Document HP-UX 11 bug.
10600         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10601
10602 2010-12-31  Bruno Haible  <bruno@clisp.org>
10603
10604         ldexpl: Fix link error on HP-UX 11.
10605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10606         LDEXPL_LIBM, using $ISNANL_LIBM.
10607
10608 2010-12-31  Eric Blake  <eblake@redhat.com>
10609
10610         ftello: avoid compilation failure with SunStudio c89
10611         * lib/ftello.c (ftello): Use lseek, not llseek.
10612
10613         tests: avoid failing coreutils tests on cygwin
10614         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10615         (create_exe_shims_): Return 0 when skipping.
10616
10617 2010-12-31  Bruno Haible  <bruno@clisp.org>
10618
10619         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10620         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10621
10622 2010-12-31  Bruno Haible  <bruno@clisp.org>
10623
10624         waitpid: Fix link error in C++ mode.
10625         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10626
10627 2010-12-31  Bruno Haible  <bruno@clisp.org>
10628
10629         isnan: Use GCC built-ins when possible.
10630         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10631         __builtin_isnan.
10632         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10633         (isnan): Define using GCC built-ins for GCC >= 4.0.
10634
10635 2010-12-31  Bruno Haible  <bruno@clisp.org>
10636
10637         isnand: Fix mistake.
10638         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10639         __builtin_isnand.
10640
10641 2010-12-31  Bruno Haible  <bruno@clisp.org>
10642
10643         open: Avoid C++ error on HP-UX 11.
10644         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10645
10646 2010-12-31  Bruno Haible  <bruno@clisp.org>
10647
10648         time_r: Add missing declarations on HP-UX 11.
10649         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10650         instead of HAVE_LOCALTIME_R.
10651         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10652         HAVE_LOCALTIME_R always.
10653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10654         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10655         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10656         HAVE_LOCALTIME_R.
10657         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10658         * doc/posix-functions/localtime_r.texi: Likewise.
10659
10660 2010-12-29  Eric Blake  <eblake@redhat.com>
10661
10662         mountlist: tweak previous commit
10663         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10664         Reported by Paul Eggert.
10665
10666         mountlist: fix local drive detection on cygwin
10667         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10668         that works for cygwin.
10669
10670 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10671
10672         ftoastr, snprintf: ftoastr + snprintf module
10673         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10674         since the snprintf module now should be good enough here.
10675         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10676         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10677         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10678         GNULIB_SNPRINTF only for the test directory, and the latter
10679         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10680         seems to suffice by itself.
10681
10682 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         alloca: one step towards thread-safety
10685         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10686         need for a static variable.  All callers changed.  This does not
10687         make the alloca replacement thread-safe, but it's one step.
10688
10689         tests: minor indenting change
10690         * tests/init.sh: Sync from coreutils housekeeping patch
10691         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10692         to keep lines within 80 columns.
10693
10694 2010-12-28  Jim Meyering  <meyering@redhat.com>
10695
10696         regex: don't infloop on persistent failing calloc
10697         * lib/regexec.c (build_trtable): Return failure indication upon
10698         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10699         In glibc, this was fixed for version 2.13:
10700         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10701
10702 2010-12-28  Bruno Haible  <bruno@clisp.org>
10703             Paul Eggert <eggert@cs.ucla.edu>
10704
10705         linkat: Make implementation robust against system behaviour variations.
10706         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10707         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10708         way, and to -2 if it needs a generic runtime test.
10709         * lib/linkat.c (solaris_optimized_link_immediate,
10710         solaris_optimized_link_follow): New functions.
10711         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10712         (check_same_link): Use it.
10713
10714 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10715
10716         New module 'unigbrk/base'.
10717         * modules/unigbrk/base: New file.
10718         * lib/unigbrk.in.h: New file.
10719
10720         New module 'unigbrk/uc-gbrk-prop'.
10721         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10722         * modules/unigbrk/uc-gbrk-prop: New file.
10723         * lib/unigbrk/gbrkprop.h: New file.
10724         * lib/unigbrk/uc-gbrk-prop.c: New file.
10725
10726         New module 'unigbrk/uc-is-grapheme-break'.
10727         * modules/unigbrk/uc-is-grapheme-break: New file.
10728         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10729         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10730         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10731         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10732         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10733
10734         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10735
10736 2010-12-27  Bruno Haible  <bruno@clisp.org>
10737
10738         linkat test: Avoid failure on Solaris 11 2010-11.
10739         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10740
10741 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10742
10743         utimens: work around glibc rounding bug on more platforms
10744         * lib/utimens.c (fdutimens): Work around rounding bug even if
10745         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10746         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10747
10748 2010-12-27  Bruno Haible  <bruno@clisp.org>
10749
10750         select tests: Improve comments.
10751         * tests/test-select.c (do_select): Add comments.
10752
10753 2010-12-27  Bruno Haible  <bruno@clisp.org>
10754
10755         select tests: Safer way of handling timeout.
10756         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10757         at every invocation.
10758
10759 2010-12-27  Bruno Haible  <bruno@clisp.org>
10760
10761         select tests: Use 'bool' where appropriate.
10762         * tests/test-select.c (connect_to_socket): Change argument type to
10763         'bool'.
10764
10765 2010-12-27  Bruno Haible  <bruno@clisp.org>
10766
10767         select tests: Use existing modules.
10768         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10769         (configure.ac): Don't test for unistd.h.
10770         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10771         declared in <unistd.h>.
10772
10773 2010-12-27  Bruno Haible  <bruno@clisp.org>
10774
10775         mbrtowc: Work around a Solaris 7 bug.
10776         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10777         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10778         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10779         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10780         MBRTOWC_NULL_ARG1_BUG.
10781         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10782         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10783         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10784         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10785
10786 2010-12-27  Jim Meyering  <meyering@redhat.com>
10787
10788         read-file.c: tweak syntax
10789         * lib/read-file.c (fread_file): Remove space after "*" in function
10790         definitions.
10791
10792 2010-12-27  Bruno Haible  <bruno@clisp.org>
10793
10794         times test: Avoid gcc warnings on OSF/1.
10795         * tests/test-times.c (main): Cast printf arguments from clock_t to
10796         'long int'.
10797
10798 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10799
10800         utimens: work around glibc rounding bug on older Linux kernels
10801         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10802         on Linux with a glibc whose utimes might not work, then work
10803         around a longstanding glibc bug involving rounding rather than
10804         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10805         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10806
10807 2010-12-26  Bruno Haible  <bruno@clisp.org>
10808
10809         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10810         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10811         _GL_CXXALIAS_SYS.
10812         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10813
10814 2010-12-26  Bruno Haible  <bruno@clisp.org>
10815
10816         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10817         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10819         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10820         looking for the declaration.
10821         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10822         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10823         problem.
10824         * doc/posix-functions/inet_pton.texi: Likewise.
10825
10826 2010-12-26  Bruno Haible  <bruno@clisp.org>
10827
10828         arpa_inet: Use the common idioms with C++ support.
10829         * lib/arpa_inet.in.h: Include c++defs.h.
10830         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10831         support.
10832         * modules/arpa_inet (Depends-on): Add c++defs.
10833         (Makefile.am): Substitute the contents of c++defs.h.
10834         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10835         * modules/arpa_inet-c++-tests: New file.
10836         * tests/test-arpa_inet-c++.cc: New file.
10837
10838 2010-12-25  Bruno Haible  <bruno@clisp.org>
10839
10840         Fix more C++ link errors on Solaris 8.
10841         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10842         $(LIB_EACCESS).
10843         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10844         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10845         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10846         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10847         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10848
10849 2010-12-25  Bruno Haible  <bruno@clisp.org>
10850
10851         printf-posix: Fix link error when a non-GCC compiler is used.
10852         * lib/stdio.in.h (printf): When not using GCC, override printf
10853         correctly.
10854         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10855
10856 2010-12-25  Bruno Haible  <bruno@clisp.org>
10857
10858         strerror_r-posix: Update doc.
10859         * doc/posix-functions/strerror_r.texi: Update doc about the return
10860         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10861
10862 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         utimens: simplify the logic of the previous change
10865         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10866         This should not affect whether the test succeeds or fails.
10867
10868         utimens: configure better on hosts with NFS clock skew
10869         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10870         uses the clock of the local host.  It might use the clock of the
10871         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10873
10874 2010-12-25  Bruno Haible  <bruno@clisp.org>
10875
10876         ptsname test: Avoid failure on Solaris.
10877         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10878         open a pseudo-terminal; don't use BSD-style ptys.
10879         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10880
10881 2010-12-25  Bruno Haible  <bruno@clisp.org>
10882
10883         ptsname: Avoid ERANGE failure on some systems.
10884         * lib/ptsname.c (buffer): Increase size.
10885
10886 2010-12-25  Bruno Haible  <bruno@clisp.org>
10887
10888         rename, renameat: Avoid test failures at NFS mounted locations.
10889         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10890         so that subsequent mkdir calls succeed.
10891
10892 2010-12-25  Bruno Haible  <bruno@clisp.org>
10893
10894         iswblank: Fix C++ link error on Solaris 8.
10895         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10896         _GL_FUNCDECL_SYS.
10897
10898 2010-12-25  Bruno Haible  <bruno@clisp.org>
10899
10900         unistd: Fix C++ link error on Solaris 8.
10901         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10902
10903 2010-12-25  Bruno Haible  <bruno@clisp.org>
10904
10905         readlink doc: Mention an old glibc bug.
10906         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10907
10908 2010-12-25  Bruno Haible  <bruno@clisp.org>
10909
10910         fcntl-h: Fix for use of C++ on glibc systems.
10911         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10912         also on glibc systems in C++ mode.
10913         Reported by Gary V. Vaughan <gary@gnu.org>.
10914
10915 2010-12-25  Bruno Haible  <bruno@clisp.org>
10916
10917         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10918         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10919
10920 2010-12-25  Bruno Haible  <bruno@clisp.org>
10921
10922         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10923         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10924         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10925         test whether truncl works according to ISO C 99 with IEC 60559.
10926         * m4/truncl-ieee.m4: New file.
10927         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10928         m4/signbit.m4.
10929         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10930
10931 2010-12-25  Bruno Haible  <bruno@clisp.org>
10932
10933         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10934         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10935         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10936         test whether ceill works according to ISO C 99 with IEC 60559.
10937         * m4/ceill-ieee.m4: New file.
10938         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10939         m4/signbit.m4.
10940         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10941
10942 2010-12-25  Bruno Haible  <bruno@clisp.org>
10943
10944         Ensure all prerequisites of <wchar.h> are included.
10945         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10946         before <wchar.h>.
10947         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10948         gl_MBRLEN_NUL_RETVAL): Likewise.
10949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10950         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10951         AC_FUNC_MBRTOWC): Likewise.
10952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10953         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10954         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10955         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10956         Likewise.
10957         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10958         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10959         (gl_WCHAR_H): Improve comments.
10960         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10961
10962 2010-12-25  Bruno Haible  <bruno@clisp.org>
10963
10964         strtok_r: Fix C syntax error in autoconf macro.
10965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10966         characters in test program.
10967
10968 2010-12-24  Bruno Haible  <bruno@clisp.org>
10969
10970         ceil, trunc, round: Fix gcc warnings.
10971         * lib/ceil.c (MIN): Undefine before redefining.
10972         * lib/trunc.c (MIN): Likewise.
10973         * lib/round.c (MIN): Likewise.
10974         Include <math.h> first.
10975
10976 2010-12-24  Bruno Haible  <bruno@clisp.org>
10977
10978         select tests: Avoid failures on OSF/1 5.1.
10979         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10980         failure of closing the last socket; it may fail with ECONNRESET.
10981
10982 2010-12-24  Eric Blake  <eblake@redhat.com>
10983
10984         stdint: avoid HP-UX 10.20 preprocessor bug
10985         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10986         than #if.
10987         * tests/test-floor2.c (main): Likewise.
10988         Reported by Peter O'Gorman.
10989
10990         pipe: make obsoletion transition easier
10991         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10992         * modules/pipe (Files): Include revived file.
10993         (Include): Drop reference, to mirror getdate's behavior.
10994
10995 2010-12-24  Bruno Haible  <bruno@clisp.org>
10996
10997         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10998         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10999         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11001
11002 2010-12-24  Bruno Haible  <bruno@clisp.org>
11003
11004         gethostname: Ensure declaration on NonStop Kernel.
11005         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11007
11008 2010-12-24  Bruno Haible  <bruno@clisp.org>
11009
11010         sys_select: Ensure all necessary types on NonStop Kernel.
11011         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11012         include <sys/time.h>.
11013         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11014         NonStop Kernel.
11015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11016
11017 2010-12-24  Bruno Haible  <bruno@clisp.org>
11018
11019         sys_select: Remove unneeded include.
11020         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11021         have <sys/select.h>.
11022
11023 2010-12-24  Bruno Haible  <bruno@clisp.org>
11024
11025         gethostname: Provide a fallback for HOST_NAME_MAX.
11026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11027         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11028         instead.
11029         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11030
11031 2010-12-24  Bruno Haible  <bruno@clisp.org>
11032
11033         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11034         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11035         (SA_RESTART): Likewise.
11036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11037
11038 2010-12-24  Bruno Haible  <bruno@clisp.org>
11039
11040         signal: Define NSIG.
11041         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11042         * tests/test-signal.c (nsig): New variable.
11043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11044
11045 2010-12-24  Bruno Haible  <bruno@clisp.org>
11046
11047         rename, renameat: Avoid test failures on OSF/1 5.1.
11048         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11049         alternative error codes.
11050         * tests/test-renameat.c (main): Likewise.
11051
11052 2010-12-24  Bruno Haible  <bruno@clisp.org>
11053
11054         *printf: Detect large precisions bug on Solaris 10/SPARC.
11055         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11056         by Paul Eggert.
11057         * tests/test-snprintf-posix.h (test_function): Add this test code here
11058         too.
11059         * tests/test-sprintf-posix.h (test_function): Likewise.
11060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11061         * tests/test-vasprintf-posix.c (test_function): Likewise.
11062         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11063         around by gnulib.
11064         * doc/posix-functions/printf.texi: Likewise.
11065         * doc/posix-functions/snprintf.texi: Likewise.
11066         * doc/posix-functions/sprintf.texi: Likewise.
11067         * doc/posix-functions/vfprintf.texi: Likewise.
11068         * doc/posix-functions/vprintf.texi: Likewise.
11069         * doc/posix-functions/vsnprintf.texi: Likewise.
11070         * doc/posix-functions/vsprintf.texi: Likewise.
11071         * doc/posix-functions/dprintf.texi: Undo last commit.
11072         * doc/posix-functions/vdprintf.texi: Likewise.
11073
11074 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         tests: port test-fdutimensat.c to Solaris 8
11077         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11078         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11079         On Solaris 8, it fails with errno == ENOSYS, because there is no
11080         futimens (so it can't use the fd), and there is no lutimens (so it
11081         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11082
11083         vsnprintf: make more consistent with snprintf; doc fixes
11084
11085         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11086         the byte count return problem was promoted from the snprintf-posix
11087         to the snprintf module.
11088         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11089         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11090         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11091         * tests/test-snprintf.c (main): Check the byte count returned.
11092         * tests/test-vsnprintf.c (main): Likewise.
11093
11094 2010-12-23  Eric Blake  <eblake@redhat.com>
11095
11096         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11097         * modules/sigpipe (License): Relax license.
11098
11099 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11100
11101         doc: document Solaris printf bug with large float precisions
11102         * doc/posix-functions/dprintf.texi (dprintf):
11103         * doc/posix-functions/fprintf.texi (fprintf):
11104         * doc/posix-functions/printf.texi (printf):
11105         * doc/posix-functions/snprintf.texi (snprintf):
11106         * doc/posix-functions/sprintf.texi (sprintf):
11107         * doc/posix-functions/vdprintf.texi (vdprintf):
11108         * doc/posix-functions/vfprintf.texi (vfprintf):
11109         * doc/posix-functions/vprintf.texi (vprintf):
11110         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11111         * doc/posix-functions/vsprintf.texi (vsprintf):
11112         Mention that these functions mishandle large floating point
11113         precisions on Solaris 10.  The same bug is also present in Solaris
11114         8, and I assume earlier.  This causes "cd gnulib-tests; make
11115         check" to fail on Solaris 8 (and I assume, later) when building
11116         the latest coreutils, in test-vasprintf-posix's call to
11117         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11118         the wide flavors (e.g., wprintf) so this patch just updates the
11119         documentation for the narrow ones.
11120
11121         test-posixtm.c: add two tests
11122         * tests/test-posixtm.c: Add two tests, to highlight the
11123         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11124         around this bug; this is merely to document it.
11125
11126 2010-12-22  Bruno Haible  <bruno@clisp.org>
11127
11128         getlogin_r: Work around portability problem on OSF/1.
11129         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11130         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11131         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11132         test for a truncated result.
11133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11134         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11135         * modules/getlogin_r (Depends-on): Add memchr.
11136         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11137
11138 2010-12-22  Bruno Haible  <bruno@clisp.org>
11139
11140         ptsname: Avoid test failure on OSF/1 5.1.
11141         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11142         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11143         (same_slave): New function.
11144         (main): Use it to compare ptsname's result with the expected file name.
11145
11146 2010-12-22  Bruno Haible  <bruno@clisp.org>
11147
11148         Port extended stdio modules to HP NonStop Kernel.
11149         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11150         macros.
11151         * lib/fbufmode.c: Update comments.
11152         * lib/fflush.c: Likewise.
11153         * lib/fpurge.c: Likewise.
11154         * lib/freadable.c: Likewise.
11155         * lib/freadahead.c: Likewise.
11156         * lib/freading.c: Likewise.
11157         * lib/freadptr.c: Likewise.
11158         * lib/freadseek.c: Likewise.
11159         * lib/fseeko.c: Likewise.
11160         * lib/fseterr.c: Likewise.
11161         * lib/fwritable.c: Likewise.
11162         * lib/fwriting.c: Likewise.
11163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11164
11165 2010-12-22  Bruno Haible  <bruno@clisp.org>
11166
11167         ttyname_r: Work around bug on OSF/1 5.1.
11168         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11170         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11171         present.
11172         * lib/ttyname_r.c (ttyname_r): Update comments.
11173
11174 2010-12-22  Bruno Haible  <bruno@clisp.org>
11175
11176         round: Implement result sign according to IEEE 754.
11177         * lib/round.c (MIN, MINUS_ZERO): New macros.
11178         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11179         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11180         * tests/test-round-ieee.c (main): Likewise.
11181         * tests/test-roundl-ieee.c (main): Likewise.
11182
11183         trunc: Implement result sign according to IEEE 754.
11184         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11185         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11186         * tests/test-trunc2.c: Include minus-zero.h.
11187         (MINUS_ZERO): New macro.
11188         (trunc_reference): Keep in sync with lib/trunc.c.
11189         * tests/test-truncf2.c: Include minus-zero.h.
11190         (MINUS_ZERO): New macro.
11191         (truncf_reference): Keep in sync with lib/trunc.c.
11192         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11193         * tests/test-trunc-ieee.c (main): Likewise.
11194         * tests/test-truncl-ieee.c (main): Likewise.
11195
11196         ceil: Implement result sign according to IEEE 754.
11197         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11198         (FUNC): Return -0.0 for -1 < x < 0.
11199         * tests/test-ceil2.c: Include minus-zero.h.
11200         (MINUS_ZERO): New macro.
11201         (ceil_reference): Keep in sync with lib/ceil.c.
11202         * tests/test-ceilf2.c: Include minus-zero.h.
11203         (MINUS_ZERO): New macro.
11204         (ceilf_reference): Keep in sync with lib/ceil.c.
11205         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11206         * tests/test-ceil-ieee.c (main): Likewise.
11207         * tests/test-ceill-ieee.c (main): Likewise.
11208
11209         floor: Implement result sign according to IEEE 754.
11210         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11211         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11212         * tests/test-floorf2.c (floorf_reference): Likewise.
11213         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11214         * tests/test-floor-ieee.c (main): Likewise.
11215         * tests/test-floorl-ieee.c (main): Likewise.
11216
11217 2010-12-22  Bruno Haible  <bruno@clisp.org>
11218
11219         getaddrinfo: Update doc.
11220         * doc/posix-functions/gai_strerror.texi: Return type is also different
11221         on AIX and HP-UX.
11222
11223 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11224
11225         getaddrinfo, inet_ntop: Update doc for Solaris.
11226         * doc/posix-functions/gai_strerror.texi: Return type is also an
11227         issue on Solaris 9 and earlier.
11228         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11229         on Solaris 10 and earlier.
11230
11231 2010-12-21  Bruno Haible  <bruno@clisp.org>
11232
11233         New module 'roundl-ieee'.
11234         * modules/roundl-ieee: New file.
11235         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11236         test whether roundl works according to ISO C 99 with IEC 60559.
11237         * m4/roundl-ieee.m4: New file.
11238         * modules/roundl-ieee-tests: New file.
11239         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11240         * tests/test-roundl.c (main): Remove signbit tests.
11241         * modules/roundl-tests (Depends-on): Remove signbit.
11242         * doc/posix-functions/roundl.texi: Mention the new module.
11243
11244 2010-12-21  Bruno Haible  <bruno@clisp.org>
11245
11246         New module 'truncl-ieee'.
11247         * modules/truncl-ieee: New file.
11248         * modules/truncl-ieee-tests: New file.
11249         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11250         * tests/test-truncl.c (main): Remove signbit tests.
11251         * modules/truncl-tests (Depends-on): Remove signbit.
11252         * doc/posix-functions/truncl.texi: Mention the new module.
11253
11254 2010-12-21  Bruno Haible  <bruno@clisp.org>
11255
11256         New module 'ceill-ieee'.
11257         * modules/ceill-ieee: New file.
11258         * modules/ceill-ieee-tests: New file.
11259         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11260         * tests/test-ceill.c (main): Remove signbit tests.
11261         * modules/ceill-tests (Depends-on): Remove signbit.
11262         * doc/posix-functions/ceill.texi: Mention the new module.
11263
11264 2010-12-21  Bruno Haible  <bruno@clisp.org>
11265
11266         New module 'floorl-ieee'.
11267         * modules/floorl-ieee: New file.
11268         * modules/floorl-ieee-tests: New file.
11269         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11270         * tests/test-floorl.c (main): Remove signbit tests.
11271         * modules/floorl-tests (Depends-on): Remove signbit.
11272         * doc/posix-functions/floorl.texi: Mention the new module.
11273
11274 2010-12-21  Bruno Haible  <bruno@clisp.org>
11275
11276         New module 'round-ieee'.
11277         * modules/round-ieee: New file.
11278         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11279         whether round works according to ISO C 99 with IEC 60559.
11280         * m4/round-ieee.m4: New file.
11281         * modules/round-ieee-tests: New file.
11282         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11283         * tests/test-round1.c (main): Remove signbit tests.
11284         * modules/round-tests (Depends-on): Remove 'signbit'.
11285         * doc/posix-functions/round.texi: Mention the new module.
11286
11287 2010-12-21  Bruno Haible  <bruno@clisp.org>
11288
11289         New module 'trunc-ieee'.
11290         * modules/trunc-ieee: New file.
11291         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11292         whether trunc works according to ISO C 99 with IEC 60559.
11293         * m4/trunc-ieee.m4: New file.
11294         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11296         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11297         * modules/trunc-ieee-tests: New file.
11298         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11299         * tests/test-trunc1.c (main): Remove signbit tests.
11300         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11301         * doc/posix-functions/trunc.texi: Mention the new module.
11302
11303 2010-12-21  Bruno Haible  <bruno@clisp.org>
11304
11305         New module 'ceil-ieee'.
11306         * modules/ceil-ieee: New file.
11307         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11308         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11309         ISO C 99 with IEC 60559.
11310         * m4/ceil-ieee.m4: New file.
11311         * modules/ceil (Files): Add lib/ceil.c.
11312         (Depends-on): Add 'float'.
11313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11314         * lib/math.in.h (ceil): New declaration.
11315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11316         REPLACE_CEIL.
11317         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11318         * modules/ceil-ieee-tests: New file.
11319         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11320         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11321         * doc/posix-functions/ceil.texi: Mention the new module.
11322
11323 2010-12-21  Bruno Haible  <bruno@clisp.org>
11324
11325         New module 'floor-ieee'.
11326         * modules/floor-ieee: New file.
11327         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11328         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11329         ISO C 99 with IEC 60559.
11330         * m4/floor-ieee.m4: New file.
11331         * modules/floor (Files): Add lib/floor.c.
11332         (Depends-on): Add 'float'.
11333         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11334         * lib/math.in.h (floor): New declaration.
11335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11336         REPLACE_FLOOR.
11337         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11338         * modules/floor-ieee-tests: New file.
11339         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11340         * tests/test-math-c++.cc: Check the signature of 'floor'.
11341         * doc/posix-functions/floor.texi: Mention the new module.
11342
11343 2010-12-21  Bruno Haible  <bruno@clisp.org>
11344
11345         New module 'roundf-ieee'.
11346         * modules/roundf-ieee: New file.
11347         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11348         test whether roundf works according to ISO C 99 with IEC 60559.
11349         * m4/roundf-ieee.m4: New file.
11350         * modules/roundf-ieee-tests: New file.
11351         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11352         * tests/test-roundf1.c (main): Remove signbit tests.
11353         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11354         * doc/posix-functions/roundf.texi: Mention the new module.
11355
11356 2010-12-21  Bruno Haible  <bruno@clisp.org>
11357
11358         New module 'truncf-ieee'.
11359         * modules/truncf-ieee: New file.
11360         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11361         test whether truncf works according to ISO C 99 with IEC 60559.
11362         * m4/truncf-ieee.m4: New file.
11363         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11365         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11366         * modules/truncf-ieee-tests: New file.
11367         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11368         * tests/test-truncf1.c (main): Remove signbit tests.
11369         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11370         * doc/posix-functions/truncf.texi: Mention the new module.
11371
11372 2010-12-21  Bruno Haible  <bruno@clisp.org>
11373
11374         New module 'ceilf-ieee'.
11375         * modules/ceilf-ieee: New file.
11376         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11377         test whether ceilf works according to ISO C 99 with IEC 60559.
11378         * m4/ceilf-ieee.m4: New file.
11379         * modules/ceilf-ieee-tests: New file.
11380         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11381         * tests/test-ceilf1.c (main): Remove signbit tests.
11382         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11383         * doc/posix-functions/ceilf.texi: Mention the new module.
11384
11385 2010-12-21  Bruno Haible  <bruno@clisp.org>
11386
11387         New module 'floorf-ieee'.
11388         * modules/floorf-ieee: New file.
11389         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11390         test whether floorf works according to ISO C 99 with IEC 60559.
11391         * m4/floorf-ieee.m4: New file.
11392         * modules/floorf-ieee-tests: New file.
11393         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11394         * tests/test-floorf1.c (main): Remove signbit tests.
11395         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11396         * doc/posix-functions/floorf.texi: Mention the new module.
11397
11398 2010-12-21  Bruno Haible  <bruno@clisp.org>
11399
11400         Support for minus zero in autoconf macros.
11401         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11402         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11403         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11404         * tests/minus-zero.h: Update comments.
11405
11406 2010-12-21  Bruno Haible  <bruno@clisp.org>
11407
11408         Tests for module 'ceil'.
11409         * modules/ceil-tests: New file.
11410         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11411         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11412
11413 2010-12-21  Bruno Haible  <bruno@clisp.org>
11414
11415         Tests for module 'floor'.
11416         * modules/floor-tests: New file.
11417         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11418         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11419
11420 2010-12-21  Bruno Haible  <bruno@clisp.org>
11421
11422         math: Fix indentation.
11423         * lib/math.in.h (floorf): Fix indentation.
11424
11425 2010-12-21  Bruno Haible  <bruno@clisp.org>
11426
11427         Fix cross-compilation guesses on Solaris.
11428         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11429         not match "solaris2.10".
11430         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11431         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11432         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11433
11434 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11435
11436         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11437         This fixes a problem observed with the latest coreutils snapshot
11438         that caused a test to fail on Solaris 8.  src/csplit.c's call
11439         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11440         earlier, instead of returning the number of bytes that would have
11441         been generated; this causes csplit to incorrectly report memory
11442         exhaustion.
11443         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11444         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11445         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11446         comments to match.
11447         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11448         Fix typo in matching older versions of Solaris: "solaris2.10"
11449         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11450         only for guessing while cross-compiling.
11451         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11452
11453 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11454
11455         ftoastr: fix comment again
11456         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11457         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11458         Also, simplify example a bit by using flags = 0.
11459
11460 2010-12-20  Bruno Haible  <bruno@clisp.org>
11461
11462         round*, trunc*: Update documentation regarding glibc.
11463         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11464         * doc/posix-functions/round.texi: Likewise.
11465         * doc/posix-functions/roundl.texi: Likewise.
11466         * doc/posix-functions/truncf.texi: Likewise.
11467         * doc/posix-functions/trunc.texi: Likewise.
11468         * doc/posix-functions/truncl.texi: Likewise.
11469
11470 2010-12-20  Bruno Haible  <bruno@clisp.org>
11471
11472         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11473         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11474         * doc/posix-functions/round.texi: Likewise.
11475         * doc/posix-functions/roundl.texi: Likewise.
11476
11477 2010-12-20  Bruno Haible  <bruno@clisp.org>
11478
11479         ttyname_r: Add missing declaration on HP-UX 11.
11480         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11481         HAVE_TTYNAME_R.
11482         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11483         declared. Set HAVE_TTYNAME_R always.
11484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11485         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11486         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11487         HAVE_TTYNAME_R.
11488         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11489
11490 2010-12-20  Bruno Haible  <bruno@clisp.org>
11491
11492         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11493         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11494         * doc/posix-functions/getlogin_r.texi: Likewise.
11495         * tests/test-getlogin.c: Include <errno.h>.
11496         (main): Avoid test failure on HP-UX 11.11.
11497         * tests/test-getlogin_r.c (main): Likewise.
11498
11499 2010-12-20  Bruno Haible  <bruno@clisp.org>
11500
11501         getlogin_r: Add missing declaration on HP-UX 11.
11502         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11503         declared also when it exists as a function.
11504         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11505
11506 2010-12-20  Bruno Haible  <bruno@clisp.org>
11507
11508         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11509         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11510         through wcrtomb.
11511
11512 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11513
11514         ftoastr: fix comment
11515         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11517
11518 2010-12-19  Bruno Haible  <bruno@clisp.org>
11519
11520         isnan: Ensure it is a macro.
11521         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11522         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11523         Solaris.
11524
11525 2010-12-19  Bruno Haible  <bruno@clisp.org>
11526
11527         ldexpl test: Fix link error on OSF/1 5.1.
11528         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11529
11530 2010-12-19  Bruno Haible  <bruno@clisp.org>
11531
11532         wctype: Make it work in C++ mode on OSF/1 5.1.
11533         * lib/wctype.in.h (iswblank): Declare but not define here.
11534         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11535         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11536         * modules/wctype (Files): Add lib/iswblank.c.
11537
11538 2010-12-19  Bruno Haible  <bruno@clisp.org>
11539
11540         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11541         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11542         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11543
11544 2010-12-19  Bruno Haible  <bruno@clisp.org>
11545
11546         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11548         _POSIX_PII_SOCKET.
11549         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11550         * doc/posix-functions/recvfrom.texi: Likewise.
11551         * doc/posix-functions/send.texi: Likewise.
11552         * doc/posix-functions/sendto.texi: Likewise.
11553
11554 2010-12-19  Bruno Haible  <bruno@clisp.org>
11555
11556         tcgetsid: Add missing declaration on OSF/1 5.1.
11557         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11558         HAVE_TCGETSID.
11559         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11560         Don't set HAVE_TCGETSID.
11561         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11562         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11563         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11564         HAVE_TCGETSID.
11565         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11566
11567 2010-12-19  Bruno Haible  <bruno@clisp.org>
11568
11569         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11570         * lib/stdio.in.h: During the include_next statement, let recursive
11571         includes of this file include only the system header file.
11572
11573 2010-12-19  Bruno Haible  <bruno@clisp.org>
11574
11575         iconv_open: Fix regression from 2010-12-04.
11576         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11577         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11578
11579 2010-12-19  Bruno Haible  <bruno@clisp.org>
11580
11581         stdbool test: Avoid a gcc warning.
11582         * tests/test-stdbool.c (main): Fail if e1 is false.
11583         Reported by Jim Meyering.
11584
11585 2010-12-19  Jim Meyering  <meyering@redhat.com>
11586
11587         setenv: restore to working order
11588         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11589         mistakenly removed.
11590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11591         HAVE_SETENV.
11592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11593         HAVE_SETENV.
11594
11595 2010-12-19  Bruno Haible  <bruno@clisp.org>
11596
11597         Document some different function declarations on OSF/1 5.1.
11598         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11599         * doc/posix-functions/inet_ntop.texi: Likewise.
11600         * doc/posix-functions/gethostname.texi: Likewise.
11601         * lib/unistd.in.h (gethostname): Update comment.
11602
11603 2010-12-19  Bruno Haible  <bruno@clisp.org>
11604
11605         doc: Mention vasprintf-posix module.
11606         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11607         the 'vasprintf-posix' module.
11608         * doc/glibc-functions/vasprintf.texi: Likewise.
11609
11610 2010-12-19  Bruno Haible  <bruno@clisp.org>
11611
11612         unsetenv: Add missing declaration on OSF/1 5.1.
11613         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11614         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11615         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11617         not HAVE_UNSETENV.
11618         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11619         HAVE_UNSETENV.
11620         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11621
11622 2010-12-19  Bruno Haible  <bruno@clisp.org>
11623
11624         setenv: Add missing declaration on OSF/1 5.1.
11625         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11626         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11627         declared. Don't set HAVE_SETENV.
11628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11629         not HAVE_SETENV.
11630         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11631         HAVE_SETENV.
11632         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11633
11634 2010-12-19  Bruno Haible  <bruno@clisp.org>
11635
11636         nl_langinfo tests: Avoid gcc warning.
11637         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11638
11639 2010-12-19  Bruno Haible  <bruno@clisp.org>
11640
11641         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11642         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11643         _GL_CXXALIAS_SYS.
11644
11645 2010-12-19  Bruno Haible  <bruno@clisp.org>
11646
11647         stdbool: Relax test.
11648         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11649         address to 'bool' work in static initializer, for compilers other than
11650         GCC.
11651
11652 2010-12-19  Bruno Haible  <bruno@clisp.org>
11653
11654         ftello: Add missing declaration on OSF/1 5.1.
11655         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11656         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11658         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11659         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11660
11661 2010-12-19  Bruno Haible  <bruno@clisp.org>
11662
11663         fseeko: Add missing declaration on OSF/1 5.1.
11664         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11667         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11668         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11669
11670 2010-12-19  Bruno Haible  <bruno@clisp.org>
11671
11672         fchdir: Add missing declaration on OSF/1 5.1.
11673         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11676         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11677         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11678
11679 2010-12-19  Bruno Haible  <bruno@clisp.org>
11680
11681         relocatable-prog-wrapper: Separate from relocatable-prog.
11682         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11683         uninstall-relocwrapper rule here.
11684         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11685         Reported by Ian Beckwith <ianb@erislabs.net>.
11686
11687 2010-12-19  Bruno Haible  <bruno@clisp.org>
11688
11689         unistr/u8-mbsnlen: Add missing dependency.
11690         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11691         Reported by Ian Beckwith <ianb@erislabs.net>.
11692
11693 2010-12-19  Bruno Haible  <bruno@clisp.org>
11694
11695         iconv: Make it possible again to use this module without 'iconv-h'.
11696         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11697         if it is not defined.
11698         Reported by Ian Beckwith <ianb@erislabs.net>.
11699
11700 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11701
11702         acl: port to Solaris 8 when copying from tmpfs to ufs
11703         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11704         error number.  Problem observed on Solaris 8 with latest
11705         coreutils, with "mv A B", where A is on a tmpfs file system and B
11706         is on a ufs file system.  This caused coreutils' mv/part-symlink
11707         test to fail.
11708
11709         tests: set fail=0 at start
11710         * tests/init.sh (setup_): Move fail=0 initialization here ...
11711         (mktempd_): ... from here, so that tests can rely on fail being
11712         set to 0 initially.  This fixes a problem in coreutils; see:
11713         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11714
11715 2010-12-18  Bruno Haible  <bruno@clisp.org>
11716
11717         memmem-simple: Stylistic changes.
11718         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11719         Fix preprocessor directive indentation.
11720
11721 2010-12-15  Pádraig Brady <P@draigBrady.com>
11722
11723         memmem, memmem-simple: reorganize and expand empty needle check
11724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11725         functional checks to memmem-simple so that one has a fully functional
11726         memmem by using just this module.
11727         Restrict the performance only check to the memmem module.
11728         Also expand the empty needle check to ensure the correct
11729         pointer is returned, not just a non NULL pointer.
11730         * doc/glibc-functions/memmem.texi: Rearrange the portability
11731         documentation to correlate with the rearranged checks.
11732         Clarify exactly how the memmem and memmem-simple modules
11733         relate to each other.
11734
11735 2010-12-15  Pádraig Brady <P@draigBrady.com>
11736             Bruno Haible  <bruno@clisp.org>
11737
11738         Improve cross-compilation guesses for uClibc.
11739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11740         that uClibc does not have the glibc bug.
11741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11742         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11743
11744 2010-12-14  Eric Blake  <eblake@redhat.com>
11745
11746         configmake: provide fallbacks for oldest supported autotools
11747         * m4/configmake.m4: New file.
11748         * modules/configmake (Files): Ship it.
11749         (configure.ac): Use it to guarantee fallbacks.
11750
11751 2010-12-13  Pádraig Brady <P@draigBrady.com>
11752
11753         read-file: Improve handling of large files
11754         * lib/read-file.c (fread_file): Minimize realloc()s
11755         for regular files, and better manage sizes around SIZE_MAX.
11756
11757 2010-12-13  Eric Blake  <eblake@redhat.com>
11758
11759         cloexec, fcntl: relax license
11760         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11761         consent from all contributors.
11762         * modules/fcntl (License): Likewise.
11763
11764 2010-12-10  Bruno Haible  <bruno@clisp.org>
11765
11766         Tests for module 'pipe-posix'.
11767         * modules/pipe-posix-tests: New file.
11768         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11769
11770 2010-12-10  Bruno Haible  <bruno@clisp.org>
11771
11772         pipe-posix: Make it work in C++ mode.
11773         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11774         (pipe): Use common idiom, not a macro definition.
11775         * lib/pipe.c: New file.
11776         * m4/pipe.m4: New file.
11777         * modules/pipe-posix (Description): Enhance.
11778         (Files): Add lib/pipe.c, m4/pipe.m4.
11779         (configure.ac): Invoke gl_FUNC_PIPE.
11780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11781         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11782         * tests/test-unistd-c++.cc: Check the signature of pipe.
11783
11784 2010-12-10  Bruno Haible  <bruno@clisp.org>
11785
11786         Rename module 'pipe' to 'spawn-pipe'.
11787         * modules/spawn-pipe: New file, renamed from modules/pipe.
11788         (Files, configure.ac, Makefile.am): Update.
11789         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11790         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11791         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11792         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11793         "spawn-pipe.h" instead of "pipe.h".
11794         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11795         to gl_SPAWN_PIPE.
11796         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11797         (Files, Makefile.am): Update.
11798         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11799         Update.
11800         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11801         Include "spawn-pipe.h" instead of "pipe.h".
11802         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11803         * lib/javacomp.c: Likewise.
11804         * lib/javaversion.c: Likewise.
11805         * lib/pipe-filter-gi.c: Likewise.
11806         * lib/pipe-filter-ii.c: Likewise.
11807         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11808         * modules/javacomp (Depends-on): Likewise.
11809         * modules/javaversion (Depends-on): Likewise.
11810         * modules/pipe-filter-gi (Depends-on): Likewise.
11811         * modules/pipe-filter-ii (Depends-on): Likewise.
11812         * MODULES.html.sh (Executing programs): Update.
11813         * NEWS: Mention the change.
11814
11815 2010-12-10  Eric Blake  <eblake@redhat.com>
11816
11817         pipe-posix: new module
11818         * modules/pipe-posix: New file.
11819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11820         (gl_UNISTD_H): Check for declaration.
11821         * modules/unistd (Makefile.am): Substitute it.
11822         * lib/unistd.in.h (pipe): Provide it for mingw.
11823         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11824         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11825
11826 2010-12-07  Bruno Haible  <bruno@clisp.org>
11827
11828         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11829         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11830         u8_strcmp_gnu.
11831         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11832
11833 2010-12-06  Bruno Haible  <bruno@clisp.org>
11834
11835         Update internal documentation.
11836         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11837
11838 2010-12-04  Bruno Haible  <bruno@clisp.org>
11839
11840         Put more information about failed tests into the test return codes.
11841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11842         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11843         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11848         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11849         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11851         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11852         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11853         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11854         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11855         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11856         returns a bit mask.
11857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11858         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11859         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11860         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11861         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11862         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11865         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11866         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11867         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11868         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11871         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11872         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11873         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11874         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11875         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11876         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11878         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11880         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11881         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11882         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11883         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11884         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11885         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11886         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11887         gl_PRINTF_PRECISION): Likewise.
11888         * m4/regex.m4 (gl_REGEX): Likewise.
11889         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11891         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11892         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11896         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11897         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11898         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11899         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11900         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11902         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11903         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11905         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11908         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11909         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11910         enumerated value.
11911         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11912
11913 2010-12-04  Bruno Haible  <bruno@clisp.org>
11914
11915         Update for Solaris 11 2010-11.
11916         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11917         Express, released in November 2010.
11918
11919 2010-12-04  Bruno Haible  <bruno@clisp.org>
11920
11921         nproc: Relax license.
11922         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11923         and Paul Eggert.
11924         Requested by Ludovic Courtès <ludo@gnu.org>.
11925
11926 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11927
11928         utimecmp: fine-grained src to nearby coarse-grained dest
11929
11930         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11931         and the source is on a file system with higher-resolution time
11932         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11933         not work, and the time stamps are close together, the algorithm to
11934         determine the exact resolution from the read-back mtime was buggy:
11935         it had a "!=" where it should have had an "==".  This bug has been
11936         in the code ever since it was introduced to gnulib.
11937         Problem reported by Dan Jacobson in
11938         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11939
11940 2010-11-30  Bruno Haible  <bruno@clisp.org>
11941
11942         strerror_r-posix: Fix autoconf test.
11943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11944
11945 2010-11-28  Bruno Haible  <bruno@clisp.org>
11946             Paul Eggert  <eggert@cs.ucla.edu>
11947
11948         Tests for module 'getdomainname'.
11949         * modules/getdomainname-tests: New file.
11950         * tests/test-getdomainname.c: New file, based on
11951         tests/test-gethostname.c.
11952
11953 2010-11-28  Bruno Haible  <bruno@clisp.org>
11954             Paul Eggert  <eggert@cs.ucla.edu>
11955
11956         getdomainname: Use the system function when possible.
11957         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11958         (getdomainname): Replace if needed. Provide the declaration if it is
11959         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11960         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11961         (getdomainname): When the system has getdomainname, call the system
11962         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11963         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11964         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11965         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11966         the function if its second argument is of type 'int' or if it is found
11967         in libnsl.
11968         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11969         <sys/systeminfo.h> and sysinfo().
11970         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11972         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11973         HAVE_GETDOMAINNAME.
11974         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11975         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11976         * doc/glibc-functions/getdomainname.texi: Document the problems with
11977         the getdomainname declaration.
11978
11979 2010-11-28  Bruno Haible  <bruno@clisp.org>
11980
11981         sys_socket: Ensure ss_family field on AIX.
11982         * lib/sys_socket.in.h (ss_family): New macro definition.
11983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11984         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11985         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11986         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11987         * modules/sys_socket (Makefile.am): Substitute
11988         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11989         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11990
11991 2010-11-27  Bruno Haible  <bruno@clisp.org>
11992
11993         readline: Improve configure output.
11994         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11995         "checking for readline..." result understandable.
11996
11997 2010-11-27  Bruno Haible  <bruno@clisp.org>
11998
11999         *printf-posix: Detect a bug on Solaris 10/x86.
12000         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12001         for floating-point output.
12002         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12003         directive.
12004         * tests/test-snprintf-posix.h (test_function): Likewise.
12005         * tests/test-sprintf-posix.h (test_function): Likewise.
12006         * tests/test-vasprintf-posix.c (test_function): Likewise.
12007         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12008         * doc/posix-functions/printf.texi: Likewise.
12009         * doc/posix-functions/snprintf.texi: Likewise.
12010         * doc/posix-functions/sprintf.texi: Likewise.
12011         * doc/posix-functions/vfprintf.texi: Likewise.
12012         * doc/posix-functions/vprintf.texi: Likewise.
12013         * doc/posix-functions/vsnprintf.texi: Likewise.
12014         * doc/posix-functions/vsprintf.texi: Likewise.
12015         * doc/glibc-functions/obstack_printf.texi: Likewise.
12016         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12017
12018 2010-11-27  Bruno Haible  <bruno@clisp.org>
12019
12020         Fix link error when module libunistring-optional is in use.
12021         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12022         * modules/striconveha-tests (Makefile.am): Likewise.
12023
12024 2010-11-27  Bruno Haible  <bruno@clisp.org>
12025
12026         regex: Mention link dependencies.
12027         * modules/regex (Link): New section.
12028         * modules/rpmatch (Link): Likewise.
12029         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12030
12031 2010-11-27  Bruno Haible  <bruno@clisp.org>
12032
12033         ftoastr: Fix compilation error on Solaris.
12034         * lib/ftoastr.c: Include <config.h>.
12035
12036 2010-11-27  Bruno Haible  <bruno@clisp.org>
12037
12038         getloadavg: Update documentation.
12039         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12040
12041 2010-11-27  Bruno Haible  <bruno@clisp.org>
12042
12043         sys_socket: Fix test whether the functions are declared.
12044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12045         not <sys/select.h>.
12046
12047 2010-11-27  Bruno Haible  <bruno@clisp.org>
12048
12049         getpass: Make sure to get system declaration on some platforms.
12050         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12051         gl_USE_SYSTEM_EXTENSIONS.
12052         * modules/getpass (Depends-on): Add extensions.
12053
12054 2010-11-26  Bruno Haible  <bruno@clisp.org>
12055
12056         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12057         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12058         'iconv' module is present.
12059         (ICONV_CONST): New macro.
12060         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12061         ICONV_CONST.
12062         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12063         set ICONV_CONST.
12064         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12065         here.
12066         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12067         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12068         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12069         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12070         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12071         present.
12072
12073 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         ftoastr: comment fix
12076         * lib/ftoastr.c: "little" -> "little or no" in comment
12077
12078 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         stdint: port to GCC 4.3 + OSX + Octave
12081         On this platform, stdint.h is buggy and defines int64_t to long
12082         long int.  The replacement defined it to long int, causing
12083         problems with C++ style name mangling.  Instead, trust the system
12084         definition if INT64_MAX is defined, and likewise for the unsigned
12085         variant.   Problem reported by Jarno Rajahalme in
12086         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12087         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12088         and don't mess with int64_t and INT64_MAX in this case.
12089         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12090
12091 2010-11-24  Bruno Haible  <bruno@clisp.org>
12092
12093         doc: Corrections regarding MacOS X 10.4 and 10.5.
12094         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12095         MacOS X.
12096         Reported by Simon Josefsson.
12097
12098 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12099
12100         Uninstall ".bin" files installed by relocwrapper.
12101         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12102         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12103         unless it is already there.
12104
12105 2010-11-21  Bruno Haible  <bruno@clisp.org>
12106
12107         Update for NetBSD 5.0.
12108         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12109         NetBSD; the test fails on NetBSD 5.0.
12110         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12111         about NetBSD.
12112
12113 2010-11-21  Bruno Haible  <bruno@clisp.org>
12114
12115         Update for HP-UX 11.23 and HP-UX 11.31.
12116         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12117         HP-UX.
12118
12119 2010-11-21  Bruno Haible  <bruno@clisp.org>
12120
12121         Update for MacOS X 10.5.
12122         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12123         MacOS X; the test fails on MacOS X 10.5.8.
12124         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12125         about MacOS X.
12126
12127 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12128
12129         bootstrap: add bootstrap_sync option.
12130         See discussion at
12131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12133         * build-aux/bootstrap: Accept --bootstrap-sync to update
12134         bootstrap if it is not identical to the local gnulib's
12135         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12136         enable this by default.  Accept --no-bootstrap-sync to disable
12137         it.
12138
12139 2010-11-20  Bruno Haible  <bruno@clisp.org>
12140
12141         Ensure that <features.h> is included before __GLIBC__ is tested.
12142         * lib/printf-parse.h: Include <features.h>.
12143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12144         Reported by Mike Frysinger <vapier@gentoo.org>.
12145
12146         Ensure that <features.h> is included before __GLIBC__ is tested.
12147         * lib/wchar.in.h: Include <features.h>.
12148         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12149         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12150         Reported by Mike Frysinger <vapier@gentoo.org>.
12151
12152         Ensure that <features.h> is included before __GLIBC__ is tested.
12153         * lib/arpa_inet.in.h: Include <features.h>.
12154         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12155         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12156         Reported by Mike Frysinger <vapier@gentoo.org>.
12157
12158         Ensure that <features.h> is included before __GLIBC__ is tested.
12159         * build-aux/link-warning.h: Include <features.h>.
12160         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12161         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12162         Reported by Mike Frysinger <vapier@gentoo.org>.
12163
12164         Ensure that <features.h> is included before __GLIBC__ is tested.
12165         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12166         Reported by Mike Frysinger <vapier@gentoo.org>.
12167
12168 2010-11-20  Bruno Haible  <bruno@clisp.org>
12169
12170         memmem: Fix autoconf test.
12171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12172
12173 2010-11-20  Bruno Haible  <bruno@clisp.org>
12174
12175         Port to uClibc.
12176         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12177         * lib/fcntl.in.h: Likewise.
12178         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12179         * lib/mbrtowc.c (mbrtowc): Likewise.
12180         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12181         * lib/strerror_r.c: Likewise.
12182         * lib/unistr/u8-strnlen.c: Likewise.
12183         * lib/vasnprintf.c (decimal_point_char): Likewise.
12184         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12185         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12187         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12188         * tests/test-sigaction.c (handler, main): Likewise.
12189         * lib/freading.h: Treat uClibc like a non-glibc platform.
12190         * lib/freading.c: Likewise.
12191         * lib/gettext.h: Likewise.
12192         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12193         Likewise.
12194         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12195         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12196         * lib/propername.c (proper_name_utf8): Likewise.
12197         * lib/spawn.in.h: Likewise.
12198         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12199         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12200         mem_cd_iconveh_internal): Likewise.
12201         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12202         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12203         strstr, strcasestr): Likewise.
12204         * lib/unicodeio.c (unicode_to_mb): Likewise.
12205         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12206         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12207         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12208         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12209         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12210         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12211         * lib/unistr/u8-stpncpy.c: Likewise.
12212         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12213         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12214         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12215         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12216         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12218         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12221         Likewise.
12222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12223         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12227         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12228         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12229         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12230         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12231         * tests/test-striconveha.c (main): Likewise.
12232         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12233         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12234         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12235         * doc/posix-functions/getline.texi: Likewise.
12236         Reported by Mike Frysinger <vapier@gentoo.org>.
12237
12238 2010-11-20  Bruno Haible  <bruno@clisp.org>
12239
12240         nproc: Fix condition.
12241         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12242         HAVE_PTHREAD_AFFINITY_NP.
12243
12244 2010-11-20  Bruno Haible  <bruno@clisp.org>
12245
12246         Fix a comment.
12247         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12248
12249 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         ftoastr: don't assume snprintf
12252         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12253         Implement a subset of snprintf here, by using sprintf safely.
12254         * modules/ftoastr (Depends-on): Remove snprintf.
12255
12256 2010-11-19  Jim Meyering  <meyering@redhat.com>
12257
12258         test-rename.h: fix compilation failure
12259         * tests/test-rename.h (test_rename): Add omitted "}".
12260
12261 2010-11-17  Jim Meyering  <meyering@redhat.com>
12262
12263         maint.mk: add a URL discussing the no-@acronym policy
12264         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12265
12266 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12267
12268         ftoastr: depend on snprintf, improve comments
12269         * lib/ftoastr.c: Also mention Loitsch's draft.
12270         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12271         needed in the current implementation, but it might simplify
12272         speeding up the code later.
12273         * modules/ftoastr: Depend on snprintf; this improves portability.
12274         Suggested by Bruno Haible in the same email.
12275
12276         ftoastr: port to hosts lacking strtof and strtold
12277         Problem reported by Bruno Haible in
12278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12279         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12280         environment and strtold (and presumably strtof) are not available.
12281         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12282         (configure.ac): Require gl_C99_STRTOLD.
12283
12284 2010-11-18  Bruno Haible  <bruno@clisp.org>
12285
12286         c-strtold: Avoid link error on AIX 7.
12287         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12288         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12289         (gl_C_STRTOLD): Test whether strtold_l exists.
12290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12291
12292 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12293
12294         intprops: new macro INT_BITS_STRLEN_BOUND
12295         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12296         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12297         not exposed.  Also, it uses a slightly tighter bound than before;
12298         though this makes no practical difference, we might as well be as
12299         tight as we easily can.
12300
12301         ftoastr: new module, for lossless conversion of floats to short strings
12302         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12303         * modules/ftoastr: New files.
12304
12305 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12306
12307         bootstrap: port to Solaris sed
12308         * build-aux/bootstrap (get_version): Port to Solaris sed.
12309         See Ralf Wildenhues's note in
12310         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12311
12312 2010-11-14  Jim Meyering  <meyering@redhat.com>
12313
12314         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12315         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12316         and move definition closer to sole use.
12317
12318 2010-11-13  Jim Meyering  <meyering@redhat.com>
12319
12320         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12321         Now we require at least autoconf-2.59, which means the work-around
12322         is no longer needed.
12323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12328
12329 2010-11-13  Bruno Haible  <bruno@clisp.org>
12330
12331         rename, renameat: Avoid test failures at NFS mounted locations.
12332         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12333         functions.
12334         (test_rename): Use assert_nonexistent.
12335         * tests/test-rename.c: Include <dirent.h>.
12336         * tests/test-renameat.c: Likewise.
12337         Reported by Gary V. Vaughan <gary@gnu.org>.
12338
12339         rename, renameat: Document Linux bug with NFS
12340         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12341         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12342         * doc/posix-functions/renameat.texi: Likewise.
12343         Suggested by Eric Blake.
12344
12345 2010-11-13  Bruno Haible  <bruno@clisp.org>
12346
12347         rename test: Add comments.
12348         * tests/test-rename.h (test_rename): Add structure and comments.
12349
12350 2010-11-13  Eric Blake  <eblake@redhat.com>
12351
12352         maintainer-makefile: cover a few more files
12353         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12354         scripts generated within C files, for libvirt.
12355
12356 2010-11-13  Bruno Haible  <bruno@clisp.org>
12357
12358         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12359         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12360         character, return the number of bytes that belong together, not always
12361         1.
12362         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12363         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12364         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12365         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12366         number of bytes of an invalid character.
12367         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12368         (main): Invoke it.
12369         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12370         results.
12371         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12372         malformed byte sequences.
12373         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12374         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12375         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12376         Reported by Ben Pfaff and Paolo Bonzini.
12377
12378 2010-11-13  Bruno Haible  <bruno@clisp.org>
12379
12380         openat: Work around glibc bug with fchownat() and empty file names.
12381         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12382         (gl_FUNC_FCHOWNAT): Invoke it.
12383         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12384         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12385         Reported by Gary V. Vaughan <gary@gnu.org>.
12386
12387 2010-11-13  Bruno Haible  <bruno@clisp.org>
12388
12389         openat: Ensure autoconf macro ordering.
12390         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12391         gl_USE_SYSTEM_EXTENSIONS.
12392         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12393
12394 2010-11-13  Bruno Haible  <bruno@clisp.org>
12395
12396         Update comments.
12397         * lib/unistr/u8-check.c: Update file name in comments.
12398         * lib/unistr/u8-mblen.c: Likewise.
12399         * lib/unistr/u8-prev.c: Likewise.
12400         * lib/unistr/u8-strmblen.c: Likewise.
12401         * lib/unistr/u8-strmbtouc.c: Likewise.
12402
12403 2010-11-13  Jim Meyering  <meyering@redhat.com>
12404
12405         tests: avoid test failure on Solaris 10 due to lack of PATH export
12406         * tests/test-update-copyright.sh: Don't forget to export PATH.
12407
12408         init.sh: ensure that IFS is defined, just in case...
12409         * tests/init.sh (setup_): Ensure that IFS is defined,
12410         so that saving and restoring it works as expected.  This
12411         appears to be useful at least for an old version of dash
12412         from a long time ago (RH 6).  See here for details:
12413         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12414
12415         maint.mk: tighten "test a == b" check
12416         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12417         test to files that contain something like #!/bin/sh.
12418         Without this, coreutils would get two false positives in
12419         the comments of C source files.
12420
12421 2010-11-12  Eric Blake  <eblake@redhat.com>
12422
12423         bootstrap: fix typo in previous attempt
12424         * build-aux/bootstrap (buildreq): Correct the grouping.
12425         Reported by Paul Eggert.
12426
12427         maintainer-makefile: prohibit test x == x
12428         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12429         Based on a report by Matthias Bolte.
12430
12431         bootstrap: allow FreeBSD gzip
12432         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12433         which has no '.' and goes to stderr.
12434         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12435         Reported by Matthias Bolte.
12436
12437         maintainer-makefile: check for i18n setup
12438         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12439         will likely work.
12440
12441 2010-11-12  Bruno Haible  <bruno@clisp.org>
12442
12443         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12444         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12445         * lib/nanosleep.c (nanosleep): Likewise.
12446
12447 2010-11-11  Bruno Haible  <bruno@clisp.org>
12448
12449         fcntl-h: Fix for use of C++ on glibc systems.
12450         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12451         also on glibc systems in C++ mode.
12452         Reported by Gary V. Vaughan <gary@gnu.org>.
12453
12454 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12455
12456         mknod: avoid false failure with dash
12457         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12458
12459 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12460
12461         unlink: Fix "is it should" typo in diagnostic.
12462         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12464
12465 2010-11-11  Bruno Haible  <bruno@clisp.org>
12466
12467         Tests for module 'strerror_r-posix'.
12468         * modules/strerror_r-posix-tests: New file.
12469         * tests/test-strerror_r.c: New file.
12470         * tests/test-string-c++.cc: Check the signature of strerror_r.
12471
12472         New module 'strerror_r-posix'.
12473         * lib/string.in.h (strerror_r): New declaration.
12474         * lib/strerror_r.c: New file.
12475         * m4/strerror_r.m4: New file.
12476         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12477         of strerror_r.
12478         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12479         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12480         * modules/strerror_r-posix: New file.
12481         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12482         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12483         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12484         portability problems.
12485
12486 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12487
12488         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12489         line is also considered for output. Quoted function name in shell
12490         command, so temporary files for functions like MyClass::operator()
12491         are removed correctly without errors.
12492
12493 2010-11-09  Bruno Haible  <bruno@clisp.org>
12494
12495         * doc/posix-functions/strerror.texi: List more failing platforms.
12496
12497         * doc/posix-functions/strerror.texi: Add a comment.
12498
12499 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12500
12501         fdopendir: fix bug on MacOS X when low on file descriptors
12502
12503         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12504         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12505         All callers changed.
12506         (fdopendir): Invoke save_cwd at the top level, not after using
12507         multiple dup() calls to use up file descriptors.  Then retry
12508         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12509         less than the maximum number of open file descriptors, because
12510         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12511         on Mac OS X 10.6.4 for tar 1.24
12512         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12513         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12514         and for tar 1.25
12515         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12516
12517 2010-11-07  Bruno Haible  <bruno@clisp.org>
12518
12519         vasnprintf: Support I flag on glibc systems.
12520         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12521         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12522         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12523         snprintf function.
12524         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12525         glibc systems.
12526         * tests/test-vasnprintf-posix3.c: New file.
12527         * modules/vasnprintf-posix-tests (Files): Add it.
12528         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12529
12530 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12531
12532         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12533         * MODULES.html.sh: For compiler warnings, use name
12534         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12535
12536 2010-11-05  Eric Blake  <eblake@redhat.com>
12537
12538         ceil, floor: avoid spurious failure with icc
12539         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12540         [denormals-as-zero] when optimizing without -mieee-fp option.
12541         * tests/test-floorf2.c (floorf_reference): Likewise.
12542         * tests/test-ceilf1.c (dummy): New function.
12543         (main): Use it to outsmart icc's optimization.
12544         * tests/test-floorf1.c (dummy, main): Likewise.
12545
12546         tests: require working signbit
12547         * modules/ceilf-tests (Depends-on): Add signbit.
12548         * modules/ceill-tests (Depends-on): Likewise.
12549         * modules/floorf-tests (Depends-on): Likewise.
12550         * modules/floorl-tests (Depends-on): Likewise.
12551         * modules/round-tests (Depends-on): Likewise.
12552         * modules/roundf-tests (Depends-on): Likewise.
12553         * modules/roundl-tests (Depends-on): Likewise.
12554         * modules/trunc-tests (Depends-on): Likewise.
12555         * modules/truncf-tests (Depends-on): Likewise.
12556         * modules/truncl-tests (Depends-on): Likewise.
12557
12558         strtod: work around icc bug
12559         * lib/strtod.c (minus_zero): Define to working value.
12560         (strtod): Use it to avoid icc bug.
12561
12562         copysign: enhance tests
12563         * modules/copysign-tests (Files): Add minus-zero.h.
12564         * tests/test-copysign.c (main): Also test zeros.
12565
12566 2010-11-04  Eric Blake  <eblake@redhat.com>
12567
12568         ceil, floor, round, trunc: enhance tests of -0
12569         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12570         * tests/test-ceill.c (main): Likewise.
12571         * tests/test-floorf1.c (main): Likewise.
12572         * tests/test-floorl.c (main): Likewise.
12573         * tests/test-round1.c (main): Likewise.
12574         * tests/test-roundf1.c (main): Likewise.
12575         * tests/test-roundl.c (main): Likewise.
12576         * tests/test-trunc1.c (main): Likewise.
12577         * tests/test-truncf1.c (main): Likewise.
12578         * tests/test-truncl.c (main): Likewise.
12579
12580 2010-11-04  Eric Blake  <eblake@redhat.com>
12581
12582         frexp, tests: work around ICC bug with -zero
12583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12584         works with more compilers.
12585         * tests/minus-zero.h: New file.
12586         * modules/ceilf-tests (Files): Include it.
12587         * modules/ceill-tests (Files): Likewise.
12588         * modules/floorf-tests (Files): Likewise.
12589         * modules/floorl-tests (Files): Likewise.
12590         * modules/frexp-nolibm-tests (Files): Likewise.
12591         * modules/frexp-tests (Files): Likewise.
12592         * modules/frexpl-nolibm-tests (Files): Likewise.
12593         * modules/frexpl-tests (Files): Likewise.
12594         * modules/isnan-tests (Files): Likewise.
12595         * modules/isnand-nolibm-tests (Files): Likewise.
12596         * modules/isnand-tests (Files): Likewise.
12597         * modules/isnanf-nolibm-tests (Files): Likewise.
12598         * modules/isnanf-tests (Files): Likewise.
12599         * modules/isnanl-nolibm-tests (Files): Likewise.
12600         * modules/isnanl-tests (Files): Likewise.
12601         * modules/round-tests (Files): Likewise.
12602         * modules/roundf-tests (Files): Likewise.
12603         * modules/roundl-tests (Files): Likewise.
12604         * modules/ldexpl-tests (Files): Likewise.
12605         * modules/signbit-tests (Files): Likewise.
12606         * modules/snprintf-posix-tests (Files): Likewise.
12607         * modules/sprintf-posix-tests (Files): Likewise.
12608         * modules/strtod-tests (Files): Likewise.
12609         * modules/trunc-tests (Files): Likewise.
12610         * modules/truncf-tests (Files): Likewise.
12611         * modules/truncl-tests (Files): Likewise.
12612         * modules/vsnprintf-posix-tests (Files): Likewise.
12613         * modules/vsprintf-posix-tests (Files): Likewise.
12614         * modules/vasnprintf-posix-tests (Files): Likewise.
12615         * modules/vasprintf-posix-tests (Files): Likewise.
12616         * tests/test-ceilf1.c (main): Use it.
12617         * tests/test-ceill.c (main): Likewise.
12618         * tests/test-floorf1.c (main): Likewise.
12619         * tests/test-floorl.c (main): Likewise.
12620         * tests/test-frexp.c (main): Likewise.
12621         * tests/test-frexpl.c (main): Likewise.
12622         * tests/test-isnan.c (main): Likewise.
12623         * tests/test-isnand.h (main): Likewise.
12624         * tests/test-isnanf.h (main): Likewise.
12625         * tests/test-isnanl.h (main): Likewise.
12626         * tests/test-ldexpl.c (main): Likewise.
12627         * tests/test-round.c (main): Likewise.
12628         * tests/test-roundf.c (main): Likewise.
12629         * tests/test-roundl.c (main): Likewise.
12630         * tests/test-signbit.c (test_signbitf, test_signbitd)
12631         (test_signbitl): Likewise.
12632         * tests/test-snprintf-posix.h (test_function): Likewise.
12633         * tests/test-sprintf-posix.h (test_function): Likewise.
12634         * tests/test-strtod.c (main): Likewise.
12635         * tests/test-trunc1.c (main): Likewise.
12636         * tests/test-truncf1.c (main): Likewise.
12637         * tests/test-truncl.c (main): Likewise.
12638
12639         isnanl: work around icc bug
12640         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12641
12642 2010-11-03  Eric Blake  <eblake@redhat.com>
12643
12644         tests: fix compiler warnings
12645         * tests/test-getopt.h (test_getopt): Fix condition.
12646         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12647         * tests/test-pipe2.c (main): Likewise.
12648         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12649
12650         utimens: fix broken m4 test
12651         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12652
12653 2010-10-28  Bruno Haible  <bruno@clisp.org>
12654
12655         posix_spawn*, getdtablesize: Relax license.
12656         * modules/posix_spawn (License): Change to LGPLv2+.
12657         * modules/posix_spawnp (License): Likewise.
12658         * modules/posix_spawn-internal (License): Likewise.
12659         * modules/posix_spawnattr_init (License): Likewise.
12660         * modules/posix_spawnattr_getflags (License): Likewise.
12661         * modules/posix_spawnattr_setflags (License): Likewise.
12662         * modules/posix_spawnattr_getpgroup (License): Likewise.
12663         * modules/posix_spawnattr_setpgroup (License): Likewise.
12664         * modules/posix_spawnattr_getschedparam (License): Likewise.
12665         * modules/posix_spawnattr_setschedparam (License): Likewise.
12666         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12667         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12668         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12669         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12670         * modules/posix_spawnattr_getsigmask (License): Likewise.
12671         * modules/posix_spawnattr_setsigmask (License): Likewise.
12672         * modules/posix_spawnattr_destroy (License): Likewise.
12673         * modules/posix_spawn_file_actions_init (License): Likewise.
12674         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12675         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12676         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12677         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12678         * modules/getdtablesize (License): Likewise.
12679         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12680
12681 2010-10-26  Bruno Haible  <bruno@clisp.org>
12682
12683         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12684         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12685         Cygwin and mingw.
12686         Suggested by Eric Blake.
12687
12688 2010-10-26  Bruno Haible  <bruno@clisp.org>
12689
12690         stdio: Work around compilation error due to renameat() on Solaris 10.
12691         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12692         * lib/renameat.c: Don't include <unistd.h> here.
12693         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12694         Reported by Paul Eggert and Eric Blake.
12695
12696 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         renameat: port to Solaris 10, which declares renameat in unistd.h
12699
12700         * lib/renameat.c: Include unistd.h before stdio.h, because
12701         Solaris 10 declares renameat in unistd.h.  Problem encountered
12702         when building GNU tar 1.24 on Solaris 10.
12703
12704 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12705
12706         fdopendir: fix C89 compilation
12707         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12708         compilers.
12709
12710 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         inttostr: simplify by removing unnecessary redundancy
12713         * lib/anytostr.c: Don't include verify.h.
12714         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12715         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12716         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12717         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12718         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12719         Likewise.
12720         * modules/inttostr (Depends-on): Remove 'verify'.
12721
12722 2010-10-23  Bruno Haible  <bruno@clisp.org>
12723
12724         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12725         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12726         Reported by Eric Blake.
12727
12728 2010-10-23  Bruno Haible  <bruno@clisp.org>
12729
12730         Tests: Fix LOCALE_JA on MirBSD 10.
12731         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12732         to an UTF-8 locale.
12733         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12734         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12735         Reported by Eric Blake.
12736
12737 2010-10-21  Bruno Haible  <bruno@clisp.org>
12738
12739         nl_langinfo test: Avoid test failure on NetBSD 5.
12740         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12741         Reported by Eric Blake.
12742
12743 2010-10-21  Eric Blake  <eblake@redhat.com>
12744
12745         c-stack: work around libsigsegv 2.8 bug
12746         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12747         overflow on at least PowerPC64.
12748
12749 2010-10-17  Bruno Haible  <bruno@clisp.org>
12750
12751         userspec: Drop redundant file.
12752         * modules/userspec (Files): Remove lib/inttostr.h.
12753
12754 2010-10-17  Bruno Haible  <bruno@clisp.org>
12755
12756         nl_langinfo tests: Silence some warnings.
12757         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12758         Reported by Jim Meyering.
12759
12760 2010-10-17  Bruno Haible  <bruno@clisp.org>
12761
12762         Make use of GCC's attribute __alloc_size__.
12763         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12764         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12765         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12766         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12767         __alloc_size__.
12768         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12769         Suggested by Jim Meyering.
12770
12771 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12772
12773         bootstrap: anchor .gitignore entries.
12774         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12775         with...
12776         (insert_vc_ignore): ... this new function, which prepends `/' to
12777         all .gitignore entries before passing them to
12778         insert_sorted_if_absent.
12779
12780 2010-10-16  Bruno Haible  <bruno@clisp.org>
12781
12782         nextafter: Fix configure check.
12783         * modules/nextafter (configure.ac): Correct expected prototype.
12784
12785 2010-10-16  Bruno Haible  <bruno@clisp.org>
12786
12787         termios: Update documentation.
12788         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12789
12790 2010-10-16  Bruno Haible  <bruno@clisp.org>
12791
12792         tests: Make them compile with TinyCC.
12793         * tests/test-strstr.c (main): Remove parentheses around array
12794         initializer.
12795
12796 2010-10-15  Eric Blake  <eblake@redhat.com>
12797
12798         ignore-value: make header idempotent
12799         * lib/ignore-value.h: Add double-inclusion guards.
12800         Reported by Stefan Berger.
12801
12802 2010-10-15  Jim Meyering  <meyering@redhat.com>
12803
12804         GNUmakefile: handle "stable" target, not "major"
12805         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12806         lists in maint.mk and announce-gen.  Without this, "make stable"
12807         would fail to ensure that $(VERSION) is up to date.
12808
12809 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12810
12811         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12812         & co.
12813
12814 2010-10-14  Bruno Haible  <bruno@clisp.org>
12815
12816         vasnprintf: Don't set errno to 0.
12817         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12818         block that sets it to 0.
12819         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12820
12821 2010-10-14  Bruno Haible  <bruno@clisp.org>
12822
12823         socketlib: Fix.
12824         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12825         gl_PREREQ_SYS_H_WINSOCK2.
12826         Reported by Ian Beckwith <ianb@erislabs.net>.
12827
12828 2010-10-13  Jim Meyering  <meyering@redhat.com>
12829
12830         test-select-stdin.c: avoid warn_unused_result warnings
12831         * tests/test-select-stdin.c: Include "macros.h".
12832         ASSERT that read and fflush succeed.
12833
12834 2010-10-13  Jim Meyering  <meyering@redhat.com>
12835
12836         git-version-gen: do require git-VC'd files in cwd
12837         * build-aux/git-version-gen: Reject a git version string
12838         if there are no commits associated with the current directory.
12839         This avoids an unlikely false-positive (unrelated dir whose parent
12840         repository also contains a tag matching v*), as pointed out
12841         by Giuseppe Scrivano in
12842         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12843
12844 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12845
12846         argv-iter: omit nonconforming declaration
12847         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12848         enum arg_iter_err declaration, which doesn't conform to C99.
12849         Solaris 10 cc warns about this.
12850
12851 2010-10-13  Eric Blake  <eblake@redhat.com>
12852
12853         termios: fix compilation on mingw
12854         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12855         (gl_TERMIOS_H): Adjust it on mingw.
12856         * modules/termios (Makefile.am): Substitute new key.
12857         * lib/termios.in.h (includes): Make include_next conditional.
12858         * doc/posix-headers/termios.texi (termios.h): Update
12859         documentation.
12860         Reported by Daniel P. Berrange.
12861
12862 2010-10-13  Jim Meyering  <meyering@redhat.com>
12863
12864         git-version-gen: don't require that .git/ be in the current dir
12865         * build-aux/git-version-gen: Adjust this script so that it works
12866         when run from any working directory beneath the top-level .git/-
12867         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12869
12870         test-select: avoid warn_unused_result warnings
12871         * tests/test-select.c: Include "macros.h".
12872         ASSERT that each call to read, write, and pipe succeeds.
12873         While not technically required, also check each "close".
12874         * modules/select-tests (Files): Add tests/macros.h.
12875
12876         test-symlinkat: remove declaration of unused local
12877         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12878
12879         test-inttostr: avoid shadowing warnings
12880         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12881         and use malloc rather than the stack for the same reason as
12882         mentioned in the comment justifying the other allocation.
12883
12884 2010-10-11  Bruno Haible  <bruno@clisp.org>
12885
12886         stdlib: Allow multiple gnulib generated replacements to coexist.
12887         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12888         Reported by Sam Steingold <sds@gnu.org>.
12889
12890 2010-10-11  Jim Meyering  <meyering@redhat.com>
12891
12892         fix a documentation typo
12893         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12894
12895 2010-10-11  Eric Blake  <eblake@redhat.com>
12896
12897         futimens: work around Solaris 11 bug
12898         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12899         * tests/test-futimens.h (test_futimens): Enhance, rather than
12900         weaken test.
12901         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12902
12903 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12904
12905         Indentation.
12906         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12907         higher-level operators more to the left.
12908
12909 2010-10-11  Jim Meyering  <meyering@redhat.com>
12910
12911         test-futimens: avoid unwarranted test failure on Solaris 5.11
12912         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12913         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12914         because it tries to dereference the NULL name argument.
12915
12916 2010-10-11  Bruno Haible  <bruno@clisp.org>
12917
12918         Indentation.
12919         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12920         indentation.
12921
12922 2010-10-11  Jim Meyering  <meyering@redhat.com>
12923
12924         spawn.in.h: make indentation consistent with parentheses
12925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12926         Make indentation consistent with parentheses.
12927
12928 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12929
12930         Fix mismatched parens in previous commit
12931         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12932         parens.
12933
12934 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12935
12936         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12937
12938         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12939         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12940         * lib/malloca.c: Include "verify.h".
12941         (verify1): Remove, replacing with a verify call.
12942         * lib/relocwrapper.c (verify1): Likewise.
12943         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12944         Likewise.
12945         * modules/malloca (Depends-on): Add 'verify'.
12946         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12947         * modules/vasnprintf (Depends-on): Add 'verify'.
12948         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12955
12956         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12957
12958         Formerly the style was sometimes 2*X - 1, because the C standard
12959         was wrongly thought to disallow ?: in integral constant expressions.
12960         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12961         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12962         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12963         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12964         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12965         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12966         verify that time_t cannot be floating.
12967
12968 2010-10-08  Eric Blake  <eblake@redhat.com>
12969
12970         time: enforce recent POSIX ruling that time_t is integral
12971         * lib/time.in.h (__time_t_must_be_integral): Detect any
12972         problematic systems, allowing the rest of gnulib to assume POSIX.
12973
12974 2010-10-08  Jim Meyering  <meyering@redhat.com>
12975
12976         fdopendir: fix a bug on systems lacking openat and /proc support
12977         OpenBSD 4.7 is one such system.  The most noticeable effect was
12978         failure of any application making nontrivial use of fts: rm, du,
12979         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12980           ./rm: traversal failed: `a': Bad file descriptor
12981         Debugging that, you see that even though FD 6 was closed just
12982         prior to the opendir call in fd_clone_opendir, its resulting
12983         dir->dd_fd was 8, rather than the expected value of 6:
12984
12985         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12986         93                close (fd);
12987         (gdb) n
12988         94                dir = fd_clone_opendir (dupfd);
12989         (gdb) n
12990         95                saved_errno = errno;
12991         (gdb) p dir->dd_fd
12992         $11 = 8
12993
12994         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12995         The problem is that on OpenBSD, fd_clone_opendir has to resort
12996         to using the old-style save/restore CWD mechanism, due to its
12997         lack of openat/proc support, and *that* would steal the FD (6)
12998         that opendir was supposed to use.
12999
13000         The fix is to squirrel away the desired FD so that save_cwd uses a
13001         different one, and then free the dest FD right before calling opendir.
13002         That guarantees opendir will use the required file descriptor.
13003
13004         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13005
13006 2010-10-08  Bruno Haible  <bruno@clisp.org>
13007
13008         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13009         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13010
13011 2010-10-08  Bruno Haible  <bruno@clisp.org>
13012
13013         nanosleep: Make replacement POSIX compliant.
13014         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13015         is out of range.
13016         Reported by Jim Meyering.
13017
13018 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13019
13020         bootstrap: add hook for altering gnulib.mk, for Bison
13021         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13022         the Bison bootstrapping process can rewrite file names and variables
13023         in this file before later parts of 'bootstrap' use the file.
13024         Bison wants to include lib/gnulib.mk from the top-level makefile,
13025         so it needs the file names in this file to be relative to the top
13026         level, not relative to lib; plus it needs variable names to be
13027         rewritten.
13028         (slurp): Use the new function.
13029
13030         bootstrap: reformat for readability
13031         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13032
13033 2010-10-08  Eric Blake  <eblake@redhat.com>
13034
13035         docs: update cygwin progress
13036         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13037         1.7.7.
13038         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13039         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13040         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13041         * doc/posix-functions/carg.texi (carg): Likewise.
13042         * doc/posix-functions/cargf.texi (cargf): Likewise.
13043         * doc/posix-functions/casin.texi (casin): Likewise.
13044         * doc/posix-functions/casinf.texi (casinf): Likewise.
13045         * doc/posix-functions/casinh.texi (casinh): Likewise.
13046         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13047         * doc/posix-functions/catan.texi (catan): Likewise.
13048         * doc/posix-functions/catanf.texi (catanf): Likewise.
13049         * doc/posix-functions/catanh.texi (catanh): Likewise.
13050         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13051         * doc/posix-functions/ccos.texi (ccos): Likewise.
13052         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13053         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13054         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13055         * doc/posix-functions/cexp.texi (cexp): Likewise.
13056         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13057         * doc/posix-functions/cimag.texi (cimag): Likewise.
13058         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13059         * doc/posix-functions/clog.texi (clog): Likewise.
13060         * doc/posix-functions/clogf.texi (clogf): Likewise.
13061         * doc/posix-functions/conj.texi (conj): Likewise.
13062         * doc/posix-functions/conjf.texi (conjf): Likewise.
13063         * doc/posix-functions/cpow.texi (cpow): Likewise.
13064         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13065         * doc/posix-functions/cproj.texi (cproj): Likewise.
13066         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13067         * doc/posix-functions/creal.texi (creal): Likewise.
13068         * doc/posix-functions/crealf.texi (crealf): Likewise.
13069         * doc/posix-functions/csin.texi (csin): Likewise.
13070         * doc/posix-functions/csinf.texi (csinf): Likewise.
13071         * doc/posix-functions/csinh.texi (csinh): Likewise.
13072         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13073         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13074         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13075         * doc/posix-functions/ctan.texi (ctan): Likewise.
13076         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13077         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13078         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13079         * doc/posix-headers/complex.texi (complex.h): Likewise.
13080
13081 2010-10-07  Jim Meyering  <meyering@redhat.com>
13082
13083         parse-datetime: avoid compilation failure on OpenBSD 4.7
13084         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13085         This works around a compilation failure on OpenBSD 4.7:
13086         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13087
13088 2010-10-07  Eric Blake  <eblake@redhat.com>
13089
13090         docs: update cygwin progress
13091         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13092         1.7.6.
13093         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13094         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13095         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13096         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13097         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13098         Likewise.
13099         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13100         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13101         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13102         Likewise.
13103         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13104         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13105         Likewise.
13106         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13107         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13108         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13109         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13110         Likewise.
13111         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13112         Likewise.
13113         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13114
13115         docs: update parse-datetime history
13116         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13117         documentation of this function's history and alternatives.
13118
13119         cygwin: use more robust version check
13120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13121         exclude an eventual cygwin 1.9.1.
13122         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13124         (gl_FUNC_STRCASESTR): Likewise.
13125         Reported by Bruno Haible.
13126
13127 2010-10-06  Bruno Haible  <bruno@clisp.org>
13128
13129         string, sys_select: Avoid #including large headers unless necessary.
13130         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13131         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13132         OSF/1, BeOS, Haiku.
13133         Reported by Jim Meyering.
13134
13135 2010-10-05  Eric Blake  <eblake@redhat.com>
13136
13137         memmem, strstr, strcasestr: fix bug with long periodic needle
13138         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13139         periodic needle having false positive.
13140         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13141         and cygwin 1.7.7.
13142         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13144         (gl_FUNC_STRCASESTR): Likewise.
13145         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13146         * tests/test-memmem.c (main): Expose the bug.
13147         * tests/test-strcasestr.c (main): Likewise.
13148         * tests/test-strstr.c (main): Likewise.
13149         * tests/test-c-strcasestr.c (main): Likewise.
13150         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13151         * doc/posix-functions/strstr.texi (strstr): Likewise.
13152         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13153         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13154
13155 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13156
13157         parse-datetime: do some more renaming
13158         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13159         parse_datetime, not get_date.  Mention the renaming.
13160         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13161         in comments.
13162         * m4/bison.m4: Likewise.
13163
13164 2010-10-05  Eric Blake  <eblake@redhat.com>
13165
13166         parse-datetime: better name than get_date
13167         * NEWS: Reword the deprecation notice.
13168         * modules/get_date: Rename to modules/parse-datetime.
13169         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13170         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13171         * lib/get_date.y: Rename to lib/parse-datetime.y.
13172         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13173         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13174         * doc/getdate.texi: Provide fallback wrapper.
13175         * lib/getdate.h: Move guts, and wrap...
13176         * lib/parse-datetime.h: ...new file.
13177         * lib/parse-datetime.y (get_date): Rename...
13178         (parse_datetime): ...to this.
13179         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13180         (gl_PARSE_DATETIME): ...to this.
13181         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13182         documentation.
13183         * modules/getdate (Files): Provide fallback docs and header.
13184         (Notice, Depends-on): Update references.
13185         * tests/test-parse-datetime.c: Likewise.
13186         * DEPENDENCIES: Likewise.
13187         * MODULES.html.sh (Date and time <time.h>): Likewise.
13188         * doc/parse-datetime.texi (Date input formats)
13189         (Authors of parse_datetime): Likewise.
13190         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13191         (Include): Likewise.
13192         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13193         * gnulib-tool: Likewise.
13194         * m4/bison.m4 (gl_BISON): Likewise.
13195         Suggested by Bruno Haible.
13196
13197 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         more ports to Solaris tr, which needs [] around ranges
13200         * gnulib-tool: Solaris tr needs [] around ranges.
13201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13202         * tests/test-pipe-filter-gi1.c (main): Likewise.
13203         * tests/test-pipe-filter-ii1.c (main): Likewise.
13204
13205 2010-10-05  Eric Blake  <eblake@redhat.com>
13206
13207         bootstrap: fix Solaris regression
13208         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13209         around ranges.
13210         Reported by Pádraig Brady.
13211
13212         bootstrap: work with pkg-config
13213         * build-aux/bootstrap (check_versions): Also transliterate - in
13214         prerequisite name.
13215         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13216         prerequisites that were already found, to avoid confusion.
13217         Reported by Justin Clift.
13218
13219         faccessat: remove unused wrappers
13220         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13221         presence of these wrappers dragged in -lgen on Solaris.
13222         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13223
13224 2010-10-05  Jim Meyering  <meyering@redhat.com>
13225
13226         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13227         * Makefile (sc_pragma_columns): New syntax-check rule.
13228
13229 2010-10-04  Bruno Haible  <bruno@clisp.org>
13230
13231         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13232         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13233         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13234         Reported by Bruce Korb and Eric Blake.
13235
13236 2010-10-04  Bruno Haible  <bruno@clisp.org>
13237
13238         threadlib: Make option --with-libpth-prefix work.
13239         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13240         use $LIBPTH, not just -lpth.
13241
13242 2010-10-04  Bruno Haible  <bruno@clisp.org>
13243
13244         Avoid line length limitation from HP NonStop system header files.
13245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13246         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13247         * lib/ctype.in.h: Likewise.
13248         * lib/dirent.in.h: Likewise.
13249         * lib/errno.in.h: Likewise.
13250         * lib/fcntl.in.h: Likewise.
13251         * lib/float.in.h: Likewise.
13252         * lib/getopt.in.h: Likewise.
13253         * lib/iconv.in.h: Likewise.
13254         * lib/inttypes.in.h: Likewise.
13255         * lib/langinfo.in.h: Likewise.
13256         * lib/locale.in.h: Likewise.
13257         * lib/math.in.h: Likewise.
13258         * lib/netdb.in.h: Likewise.
13259         * lib/netinet_in.in.h: Likewise.
13260         * lib/poll.in.h: Likewise.
13261         * lib/pthread.in.h: Likewise.
13262         * lib/pty.in.h: Likewise.
13263         * lib/sched.in.h: Likewise.
13264         * lib/se-selinux.in.h: Likewise.
13265         * lib/search.in.h: Likewise.
13266         * lib/signal.in.h: Likewise.
13267         * lib/spawn.in.h: Likewise.
13268         * lib/stdarg.in.h: Likewise.
13269         * lib/stddef.in.h: Likewise.
13270         * lib/stdint.in.h: Likewise.
13271         * lib/stdio.in.h: Likewise.
13272         * lib/stdlib.in.h: Likewise.
13273         * lib/string.in.h: Likewise.
13274         * lib/strings.in.h: Likewise.
13275         * lib/sys_file.in.h: Likewise.
13276         * lib/sys_ioctl.in.h: Likewise.
13277         * lib/sys_select.in.h: Likewise.
13278         * lib/sys_socket.in.h: Likewise.
13279         * lib/sys_stat.in.h: Likewise.
13280         * lib/sys_time.in.h: Likewise.
13281         * lib/sys_times.in.h: Likewise.
13282         * lib/sys_utsname.in.h: Likewise.
13283         * lib/sys_wait.in.h: Likewise.
13284         * lib/sysexits.in.h: Likewise.
13285         * lib/termios.in.h: Likewise.
13286         * lib/time.in.h: Likewise.
13287         * lib/unistd.in.h: Likewise.
13288         * lib/wchar.in.h: Likewise.
13289         * lib/wctype.in.h: Likewise.
13290         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13291         * modules/ctype (Makefile.am): Likewise.
13292         * modules/dirent (Makefile.am): Likewise.
13293         * modules/errno (Makefile.am): Likewise.
13294         * modules/fcntl-h (Makefile.am): Likewise.
13295         * modules/float (Makefile.am): Likewise.
13296         * modules/getopt-posix (Makefile.am): Likewise.
13297         * modules/iconv-h (Makefile.am): Likewise.
13298         * modules/inttypes (Makefile.am): Likewise.
13299         * modules/langinfo (Makefile.am): Likewise.
13300         * modules/locale (Makefile.am): Likewise.
13301         * modules/math (Makefile.am): Likewise.
13302         * modules/netdb (Makefile.am): Likewise.
13303         * modules/netinet_in (Makefile.am): Likewise.
13304         * modules/poll-h (Makefile.am): Likewise.
13305         * modules/pthread (Makefile.am): Likewise.
13306         * modules/pty (Makefile.am): Likewise.
13307         * modules/sched (Makefile.am): Likewise.
13308         * modules/search (Makefile.am): Likewise.
13309         * modules/selinux-h (Makefile.am): Likewise.
13310         * modules/signal (Makefile.am): Likewise.
13311         * modules/spawn (Makefile.am): Likewise.
13312         * modules/stdarg (Makefile.am): Likewise.
13313         * modules/stddef (Makefile.am): Likewise.
13314         * modules/stdint (Makefile.am): Likewise.
13315         * modules/stdio (Makefile.am): Likewise.
13316         * modules/stdlib (Makefile.am): Likewise.
13317         * modules/string (Makefile.am): Likewise.
13318         * modules/strings (Makefile.am): Likewise.
13319         * modules/sys_file (Makefile.am): Likewise.
13320         * modules/sys_ioctl (Makefile.am): Likewise.
13321         * modules/sys_select (Makefile.am): Likewise.
13322         * modules/sys_socket (Makefile.am): Likewise.
13323         * modules/sys_stat (Makefile.am): Likewise.
13324         * modules/sys_time (Makefile.am): Likewise.
13325         * modules/sys_times (Makefile.am): Likewise.
13326         * modules/sys_utsname (Makefile.am): Likewise.
13327         * modules/sys_wait (Makefile.am): Likewise.
13328         * modules/sysexits (Makefile.am): Likewise.
13329         * modules/termios (Makefile.am): Likewise.
13330         * modules/time (Makefile.am): Likewise.
13331         * modules/unistd (Makefile.am): Likewise.
13332         * modules/wchar (Makefile.am): Likewise.
13333         * modules/wctype (Makefile.am): Likewise.
13334
13335 2010-10-04  Bruno Haible  <bruno@clisp.org>
13336
13337         read-file tests: Avoid a test failure on NonStop Kernel.
13338         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13339         a regular file.
13340         Reported by Joachim Schmitz <schmitz@hp.com>.
13341
13342 2010-10-03  Bruno Haible  <bruno@clisp.org>
13343
13344         gnulib-tool: Fixes for --create-testdir with --libtool.
13345         * gnulib-tool (func_get_automake_snippet): Don't augment
13346         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13347         an executable.
13348         (func_create_testdir): Handle module 'alloca' like func_import.
13349         Reported by Bruce Korb <bruce.korb@gmail.com>.
13350
13351 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         Avoid some lines longer than 80 characters.
13354         * lib/stdint.in.h: Break long comment lines.
13355         * lib/math.in.h: Likewise.
13356         (_GL_NUM_UINT_WORDS): New macro, for readability.
13357         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13358         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13359         * lib/stdlib.in.h: Likewise.
13360         * lib/spawn.in.h: Likewise.
13361         * lib/sys_socket.in.h: Update an URL.
13362         * lib/sys_stat.in.h: Break long line.
13363
13364 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13365
13366         Improve pmccabe2html.
13367         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13368         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13369         when the sources change. Remove the line in the HTML about "Used
13370         ranges" (which implied that there might be other unused ranges),
13371         rename "Resume" to "Summary" (easier to understand for more users).
13372         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13373         styles, and some unnecessary blank lines.
13374
13375 2010-10-03  Bruno Haible  <bruno@clisp.org>
13376             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13377
13378         acl: Add support for ACLs on NonStop Kernel.
13379         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13380         Check whether the function aclsort() exists.
13381         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13382         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13383         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13384         (acl_nontrivial [HAVE_ACLSORT]: New function.
13385         (file_has_acl): Implement for NonStop Kernel.
13386         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13387         (qset_acl): Implement for NonStop Kernel.
13388         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13389         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13390         (main): Implement for NonStop Kernel.
13391         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13392         Kernel. Handle this flavor.
13393         * tests/test-set-mode-acl.sh: Likewise.
13394         * tests/test-copy-acl.sh: Likewise.
13395         * tests/test-copy-file.sh: Likewise.
13396
13397 2010-10-03  Bruno Haible  <bruno@clisp.org>
13398
13399         Info about ACLs on NonStop Kernel.
13400         * doc/acl-resources.txt: Add info about NonStop Kernel.
13401         References by Joachim Schmitz <schmitz@hp.com>.
13402
13403 2010-10-02  Bruno Haible  <bruno@clisp.org>
13404
13405         Define missing EDQUOT on NonStop Kernel.
13406         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13407         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13409         missing.
13410         * doc/posix-headers/errno.texi: Mention the NSK bug.
13411         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13412         Reported by Joachim Schmitz <schmitz@hp.com>.
13413
13414 2010-10-02  Bruno Haible  <bruno@clisp.org>
13415
13416         Update doc for POSIX:2008.
13417         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13418         Update URL of POSIX specification.
13419
13420 2010-10-02  Bruno Haible  <bruno@clisp.org>
13421
13422         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13423         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13424         from gnulib, not from Automake.
13425
13426 2010-10-02  Bruno Haible  <bruno@clisp.org>
13427
13428         New module 'system-posix'.
13429         * modules/system-posix: New file.
13430         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13431         module is present.
13432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13433         GNULIB_SYSTEM_POSIX.
13434         * modules/stdlib (Depends-on): Remove sys_wait.
13435         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13436         * doc/posix-functions/system.texi: Mention the new module.
13437         * doc/posix-headers/stdlib.texi: Likewise.
13438         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13439         define test_sys_wait_macros to a no-op.
13440         Reported by Sam Steingold <sds@gnu.org>.
13441
13442 2010-09-30  Bruno Haible  <bruno@clisp.org>
13443
13444         More renaming from 'getdate' to 'get_date'.
13445         * doc/get_date.texi: Renamed from doc/getdate.texi.
13446         * modules/get_date (Files): Update.
13447         * MODULES.html.sh (Date and time <time.h>): Update.
13448         * DEPENDENCIES: Update.
13449         * gnulib-tool: Update comment.
13450         * m4/bison.m4 (gl_BISON): Likewise.
13451         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13452
13453 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13454
13455         bootstrap: support ACLOCAL_FLAGS during aclocal
13456         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13457         can add additional -I dir for third-party .m4 files.
13458
13459 2010-09-30  Eric Blake  <eblake@redhat.com>
13460
13461         bootstrap: use glibtoolize on MacOS
13462         * build-aux/bootstrap (check_versions): Convert libtool into
13463         libtoolize.
13464         (tool search): Move libtool check earlier, and look for
13465         glibtoolize for MacOS.
13466         (gnulib_tool_options): Auto-add --libtool when appropriate.
13467         Reported by Justin Clift.
13468
13469         poll: fix typo that broke test on MacOS
13470         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13471         Reported by Justin Clift.
13472
13473         getdate: rename to get_date
13474         Note: getdate.h is not renamed, to minimize client impact.
13475         * modules/getdate: Mark obsolete.  Move old contents...
13476         * modules/get_date: ...to new module name.
13477         * modules/getdate-tests: Move...
13478         * modules/get_date-tests: ...here.
13479         * m4/getdate.m4: Move...
13480         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13481         * lib/getdate.y: Move...
13482         * lib/get_date.y: ...here.
13483         * tests/test-getdate.c: Move...
13484         * tests/test-get_date.c: ...here.
13485         * doc/posix-functions/getdate.texi (getdate): Update name.
13486         * NEWS: Mention the change.
13487
13488 2010-09-29  Bruno Haible  <bruno@clisp.org>
13489
13490         Separate the module 'waitpid' from the module 'sys_wait'.
13491         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13492         present.
13493         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13494         gl_MODULE_INDICATOR_FOR_TESTS.
13495         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13496         * modules/sys_wait (Depends-on): Remove waitpid.
13497         (Makefile.am): Substitute GNULIB_WAITPID.
13498         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13499         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13500         signature only if the 'waitpid' module is present.
13501         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13502         * NEWS: Mention the change.
13503         * modules/grantpt (Depends-on): Add waitpid.
13504         * modules/wait-process (Depends-on): Likewise.
13505
13506 2010-09-29  Bruno Haible  <bruno@clisp.org>
13507
13508         More tests for module 'sys_wait'.
13509         * modules/sys_wait-c++-tests: New file.
13510         * tests/test-sys_wait-c++.cc: New file.
13511         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13512         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13513
13514 2010-09-29  Bruno Haible  <bruno@clisp.org>
13515
13516         New module 'waitpid'.
13517         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13518         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13519         Don't include <process.h>.
13520         (waitpid): Declare only, using modern idiom.
13521         * m4/waitpid.m4: New file.
13522         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13523         * modules/waitpid: New file.
13524         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13525         (Makefile.am): Update.
13526         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13527
13528 2010-09-28  Bruno Haible  <bruno@clisp.org>
13529
13530         poll: Assume ANSI C.
13531         * lib/poll.c (poll): Use an ANSI C declaration.
13532
13533 2010-09-28  Bruno Haible  <bruno@clisp.org>
13534
13535         poll-h: Create poll.h on all platforms.
13536         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13537         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13538         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13539         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13540         (gl_REPLACE_POLL_H): Don't set POLL_H.
13541         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13542         * modules/poll-h (Depends-on): Add include_next.
13543         (Makefile.am): Create poll.h unconditionally. Substitute also
13544         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13545
13546 2010-09-28  Bruno Haible  <bruno@clisp.org>
13547
13548         Tests for module 'poll-h'.
13549         * modules/poll-h-c++-tests: New file.
13550         * tests/test-poll-h-c++.cc: New file.
13551
13552         Tests for module 'poll-h'.
13553         * modules/poll-h-tests: New file.
13554         * tests/test-poll-h.c: New file.
13555
13556 2010-09-28  Bruno Haible  <bruno@clisp.org>
13557
13558         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13559         * modules/poll-h (Depends-on): Add 'extensions'.
13560
13561 2010-09-28  Bruno Haible  <bruno@clisp.org>
13562
13563         New module 'poll-h'.
13564         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13565         (poll): Use modern idiom.
13566         * modules/poll-h: New file.
13567         * modules/poll (Files): Remove lib/poll.in.h.
13568         (Depends-on): Add poll-h.
13569         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13570         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13571         * m4/poll_h.m4: New file.
13572         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13573         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13574         and invoke gl_REPLACE_POLL_H.
13575         * lib/poll.c: Use common idiom.
13576         * tests/test-poll.c: Likewise.
13577         * doc/posix-headers/poll.texi: Mention the poll-h module.
13578         Suggested by Eric Blake.
13579
13580 2010-09-26  Bruno Haible  <bruno@clisp.org>
13581
13582         sys_wait: Implement WSTOPSIG.
13583         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13584         Reported by Simon Josefsson.
13585
13586 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13587
13588         stdlib, sys_wait: Avoid compilation error on mingw.
13589         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13590
13591 2010-09-26  Bruno Haible  <bruno@clisp.org>
13592
13593         stdlib tests: Avoid code duplication.
13594         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13595         * modules/sys_wait-tests (Files): Likewise.
13596         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13597         * tests/test-stdlib.c: Include test-sys_wait.h.
13598         (main): Invoke test_sys_wait_macros.
13599         * tests/test-sys_wait.c: Include test-sys_wait.h.
13600         (main): Invoke test_sys_wait_macros.
13601
13602 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13603
13604         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13605         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13606         sure Windows sockets are working before calling getaddrinfo.
13607         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13608         * doc/gnulib.texi (Windows sockets): Fix typo.
13609
13610 2010-09-25  Bruno Haible  <bruno@clisp.org>
13611
13612         Tests for module 'regex-quote'.
13613         * modules/regex-quote-tests: New file.
13614         * tests/test-regex-quote.c: New file.
13615
13616         New module 'regex-quote'.
13617         * lib/regex-quote.h: New file.
13618         * lib/regex-quote.c: New file.
13619         * modules/regex-quote: New file.
13620         Suggested by Reuben Thomas <rrt@sc3d.org>.
13621
13622 2010-09-24  Bruno Haible  <bruno@clisp.org>
13623
13624         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13625         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13626
13627 2010-09-23  Bruno Haible  <bruno@clisp.org>
13628
13629         setenv: Relax license.
13630         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13631         Blake.
13632         Requested by Eric Blake.
13633
13634 2010-09-22  Bruno Haible  <bruno@clisp.org>
13635
13636         termios: Relax license.
13637         * modules/termios (License): Change to LGPLv2+.
13638         Requested by Eric Blake.
13639
13640 2010-09-22  Bruno Haible  <bruno@clisp.org>
13641
13642         threadlib: Allow the package to change the default to 'no'.
13643         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13644         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13645         Reported by Paul Eggert.
13646
13647 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13648             Bruno Haible  <bruno@clisp.org>
13649
13650         Fix endless loop in mbmemcasecoll.
13651         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13652         byte.
13653         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13654
13655 2010-09-22  Bruno Haible  <bruno@clisp.org>
13656
13657         Tests for module 'memcoll'.
13658         * modules/memcoll-tests: New file.
13659         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13660
13661         memcoll, xmemcoll: Clarify size vs. length.
13662         * modules/memcoll.c (memcoll0): Clarify specification.
13663         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13664         passed to collate_error.
13665
13666 2010-09-22  Bruno Haible  <bruno@clisp.org>
13667
13668         Tests for module 'memcasecmp'.
13669         * modules/memcasecmp-tests: New file.
13670         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13671
13672 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         * lib/pthread.in.h: Add split double-inclusion guard, and include
13675         system <pthread.h> if there is one.  Use @@-style as in other
13676         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13677         pthread.h doesn't.
13678         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13679         (pthread_mutexattr_settype, pthread_mutex_trylock):
13680         New static inline functions, if there's no system <pthread.h>.
13681         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13682         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13683         Approximate with mutexes if the system lacks spinlocks, as in
13684         MacOS.
13685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13686         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13687         @@-style.  Check for spinlocks separately.
13688         (gl_PTHREAD_DEFAULTS): New macro.
13689         * modules/pthread: Redo to use a more typical style for in.h files.
13690
13691 2010-09-21  Eric Blake  <eblake@redhat.com>
13692
13693         net_if: enhance tests
13694         * tests/test-net_if.c (main): Move signature checks earlier.
13695         Print failures to stderr.
13696         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13697         Document the bug that we do not yet fix.
13698
13699 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13700
13701         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13702         about gnulib, not GSS.
13703
13704 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13705
13706         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13707         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13708         for Emacs.
13709         * build-aux/pmccabe2html: Make Makefile.am example code more
13710         cut-and-paste friendly.
13711
13712 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13713
13714         * tests/test-net_if.c: New file.
13715         * modules/net_if-tests: New file.
13716
13717 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13718
13719         pthread: add pthread_spin_destroy
13720         * lib/pthread.in.h (pthread_spin_destroy): New function.
13721
13722 2010-09-19  Bruno Haible  <bruno@clisp.org>
13723
13724         gnulib-tool: Fix --help output.
13725         * gnulib-tool (func_usage): Fix help message.
13726         Reported by Reuben Thomas <rrt@sc3d.org>.
13727
13728 2010-09-18  Jim Meyering  <meyering@redhat.com>
13729
13730         maint.mk: avoid unexpanded \n in two diagnostics
13731         * top/maint.mk (sc_prohibit_always_true_header_tests):
13732         Don't use a literal \n in a halt=... assignment.  It would not be
13733         expanded, and the two \n bytes would appear in the diagnostic output
13734         rather than the desired newline.  Use halt=$$(printf ... instead.
13735         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13736
13737 2010-09-18  Bruno Haible  <bruno@clisp.org>
13738
13739         netinet_in: Doc tweak.
13740         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13741         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13742
13743 2010-09-18  Jim Meyering  <meyering@redhat.com>
13744
13745         init.sh: correct an outdated comment
13746         * tests/init.sh (create_exe_shims_):  s/function/alias/
13747
13748         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13749         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13750         a file named "*.exe" is removed between the glob expansion and the
13751         processing of that oddly named file.
13752
13753 2010-09-17  Eric Blake  <eblake@redhat.com>
13754
13755         mirbsd: add some more support
13756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13757         in BSD family.
13758         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13759         devices as OpenBSD.
13760         * m4/host-os.m4 (mirbsd): Add MirBSD.
13761
13762         tests: fix unportable assumption on sys/wait.h
13763         * tests/test-sys_wait.c (main): Relax test.
13764         * tests/test-stdlib.c (main): Likewise.
13765
13766         init.sh: accomodate directory with no .exes
13767         * tests/init.sh: Accomodate directory containing only scripts.
13768
13769         tests: avoid compiler warning
13770         * tests/test-stdlib.c (main): Use the variable.
13771
13772         fdutimens, fdutimensat: update signature, again
13773         * lib/utimens.h (gl_futimens): Delete, and move signature...
13774         (fdutimens): ...here.
13775         (fdutimensat): Rearrange signature.
13776         (lutimensat): Rename variable for clarity.
13777         * lib/fdutimensat.c (fdutimensat): Update signature.
13778         * lib/utimens.c (fdutimens): Likewise.
13779         (gl_futimens): Delete.
13780         (utimens, lutimens): Update callers.
13781         * lib/futimens.c (futimens): Likewise.
13782         * tests/test-fdutimensat.c: Likewise.
13783         * tests/test-utimens.c: Likewise.
13784         * tests/test-futimens.h: Update comment.
13785         * NEWS: Mention this.
13786         Suggested by Paul Eggert.
13787
13788 2010-09-17  Bruno Haible  <bruno@clisp.org>
13789
13790         Take over the maintenance of some older macros from Autoconf.
13791         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13792         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13793         GNU Autoconf.
13794         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13795         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13796
13797 2010-09-17  Eric Blake  <eblake@redhat.com>
13798
13799         fdutimensat: drop atflag validation
13800         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13801         with valid fd, to close a race scenario where futimens is
13802         unsupported and FILE was replaced by a symlink.
13803         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13804         accordingly.
13805         Suggested by Paul Eggert.
13806
13807 2010-09-16  Bruno Haible  <bruno@clisp.org>
13808
13809         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13810         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13811
13812 2010-09-16  Bruno Haible  <bruno@clisp.org>
13813
13814         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13815         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13816         login_tty exists.
13817         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13818
13819 2010-09-16  Bruno Haible  <bruno@clisp.org>
13820
13821         login_tty: Make the replacement code work on BSD systems.
13822         * lib/login_tty.c: Include <sys/ioctl.h>.
13823         (login_tty): Use ioctl TIOCSCTTY when available.
13824         * modules/login_tty (Depends-on): Add sys_ioctl.
13825         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13826
13827 2010-09-16  Bruno Haible  <bruno@clisp.org>
13828
13829         login_tty: Stricter unit test.
13830         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13831         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13832         and tcgetsid() after login_tty.
13833         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13834
13835 2010-09-16  Bruno Haible  <bruno@clisp.org>
13836
13837         New module 'tcgetsid'.
13838         * lib/tcgetsid.c: New file.
13839         * m4/tcgetsid.m4: New file.
13840         * modules/tcgetsid: New file.
13841         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13842         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13843         GNULIB_TCGETSID, HAVE_TCGETSID.
13844         * lib/termios.in.h: Include <sys/types.h>.
13845         (tcgetsid): New declaration.
13846         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13847         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13848         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13849         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13850
13851 2010-09-16  Bruno Haible  <bruno@clisp.org>
13852
13853         Tests for module 'termios'.
13854         * modules/termios-c++-tests: New file.
13855         * modules/termios-tests: New file.
13856         * tests/test-termios-c++.cc: New file.
13857         * tests/test-termios.c: New file.
13858
13859         New module 'termios'.
13860         * modules/termios: New file.
13861         * lib/termios.in.h: New file.
13862         * m4/termios_h.m4: New file.
13863         * doc/posix-headers/termios.texi: Mention the new module.
13864
13865 2010-09-16  Eric Blake  <eblake@redhat.com>
13866
13867         fdutimensat: add an atflag parameter
13868         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13869         * lib/utimens.h (fdutimensat): Update prototype.
13870         * tests/test-fdutimensat.c: Adjust test to match.
13871         * NEWS: Document the change.
13872         Suggested by Paul Eggert.
13873
13874 2010-09-16  Bruno Haible  <bruno@clisp.org>
13875
13876         Fix typos in comments.
13877         * lib/striconveh.h: Fix typo in comment.
13878         * lib/login_tty.c (login_tty): Likewise.
13879
13880 2010-09-15  Bruno Haible  <bruno@clisp.org>
13881
13882         stdlib: clarify MirBSD WEXITSTATUS bug
13883         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13884         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13885
13886 2010-09-15  Eric Blake  <eblake@redhat.com>
13887
13888         stdlib: work around MirBSD WEXITSTATUS bug
13889         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13890         * modules/stdlib (Depends-on): Add sys_wait.
13891         * tests/test-sys_wait.c (main): Enhance test.
13892         * tests/test-stdlib.c (main): Likewise.
13893         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13894
13895         docs: mention MacOS issue with WEXITSTATUS(constant)
13896         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13897         issue.
13898         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13899
13900         strnlen: add tests
13901         * modules/strnlen-tests: New file.
13902         * tests/test-strnlen.c: Likewise.
13903
13904 2010-09-14  Bruno Haible  <bruno@clisp.org>
13905
13906         unistr/base: Avoid link errors when module 'libunistring' is also used.
13907         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13908         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13909         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13910         Declare also when HAVE_LIBUNISTRING is set.
13911         Reported by Pádraig Brady <P@draigbrady.com>.
13912
13913 2010-09-14  Eric Blake  <eblake@redhat.com>
13914
13915         test-rawmemchr: make more robust
13916         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13917         (Depends-on, configure.ac): Add needed prerequisites to use it.
13918         * modules/memchr-tests (Files, Depends-on, configure.ac):
13919         Likewise, to avoid implicit reliance on memchr module prereqs.
13920         * tests/test-memchr.c (main): Ensure proper masking.
13921         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13922         reads.
13923
13924         memchr: detect glibc Alpha bug
13925         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13926         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13927         Alpha.
13928         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13929         * tests/test-memchr.c (main): Enhance test.
13930         Reported by Nelson H. F. Beebe.
13931
13932 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         fts, getcwd, glob: audit for dirfd returning -1
13935         * lib/fts.c (opendir): Remove #define; no longer used.
13936         (opendirat): New arg PDIR_FD.  All callers changed.
13937         (fts_build, _opendir2): Use new opendirat to avoid the need for
13938         dirfd, or for checking whether dirfd returns a negative value.
13939         Don't use opendir; always use openat followed by fdopendir.
13940         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13941         it.
13942         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13943         returns -1 here.
13944         * modules/fts (Depends-on): Remove dirfd.
13945         * modules/getcwd (Depends-on): Likewise.
13946
13947 2010-09-13  Eric Blake  <eblake@redhat.com>
13948
13949         float: fix broken MirBSD header
13950         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13951         * doc/posix-headers/float.texi (float.h): Document it.
13952
13953 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13954
13955         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13956         * lib/fts.c (opendirat): New arg extra_flags.
13957         (__opendir2): Use it to avoid following symlinks when opening
13958         a directory, if symlinks are not supposed to be followed.  See
13959         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13960
13961         fdopendir: preserve argument fd before returning
13962         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13963         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13964         (fdopendir): Use them, arranging for FD to be open to the same
13965         directory that it was when it started.  (It might be temporarily
13966         closed while fdopendir is running, so this not thread- or
13967         signal-safe.)  Be careful to do the right thing even when file
13968         descriptors are scarce and dup fails with errno == EMFILE.  See
13969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13970
13971 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13972
13973         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13974         * NEWS: Document change.
13975         * m4/regex.m4: Disable test for regoff_t size.
13976
13977 2010-09-13  Jim Meyering  <meyering@redhat.com>
13978
13979         fts: don't operate on an invalid file descriptor after failed dup
13980         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13981         negative file descriptor.
13982
13983 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13984
13985         savedir: add streamsavedir, deprecate fdsavedir
13986         * NEWS: Mention deprecation of fdsavedir.
13987         * lib/savedir.c (streamsavedir): New extern function, whose name
13988         ends in "savedir" to be consistent with the others.  This differs
13989         from savedirstream in that it doesn't close its argument.  The
13990         next version of GNU tar will use this instead of fdsavedir, to
13991         avoid some race conditions and conserve file descriptors.
13992         (savedirstream): Reimplement as a wrapper around streamsavedir.
13993         (fdsavedir): Add a comment deprecating this function.  As far as
13994         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13995         * lib/savedir.h (streamsavedir): New decl.
13996         (fdsavedir): Add a comment deprecating this.
13997
13998 2010-09-10  Bruno Haible  <bruno@clisp.org>
13999
14000         langinfo: Fix last commit.
14001         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14002         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14004
14005 2010-09-10  Bruno Haible  <bruno@clisp.org>
14006
14007         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14008         * lib/progreloc.c (O_EXEC): Define fallback.
14009
14010 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14011
14012         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14013         * NEWS: Document recent changes to fcntl-h.
14014         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14015         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14016         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14017         Similarly for O_SEARCH; this last was already true, but not documented.
14018         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14019         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14020         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14021         Likewise.
14022         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14023         is zero, not whether it is defined.
14024         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14025         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14026         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14027
14028 2010-09-10  Bruno Haible  <bruno@clisp.org>
14029
14030         langinfo, nl_langinfo: Fix for IRIX 5.3.
14031         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14032         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14033         HAVE_LANGINFO_YESEXPR.
14034         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14035         HAVE_LANGINFO_YESEXPR.
14036         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14037         HAVE_LANGINFO_T_FMT_AMPM is 0.
14038         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14039         HAVE_LANGINFO_YESEXPR is 0.
14040         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14041         NOEXPR.
14042         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14043         * doc/posix-functions/nl_langinfo.texi: Likewise.
14044         Reported by Eric Blake.
14045
14046 2010-09-10  Bruno Haible  <bruno@clisp.org>
14047
14048         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14049         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14050         on FreeBSD 8.0 and OpenBSD 4.6.
14051         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14052         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14053         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14054         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14055         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14056         ac_includes_default.
14057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14058
14059 2010-09-09  Eric Blake  <eblake@redhat.com>
14060
14061         strsignal: work around NetBSD bug
14062         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14063         * lib/string.in.h (includes): Likewise.
14064         * doc/posix-functions/strsignal.texi (strsignal): Document the
14065         bug.
14066         Reported by Nelson H. F. Beebe.
14067
14068         gnulib-tool: work with NetBSD /bin/sh
14069         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14070         (func_get_description, func_get_comment, func_get_status)
14071         (func_get_notice, func_get_applicability, func_get_filelist)
14072         (func_get_dependencies, func_get_autoconf_early_snippet)
14073         (func_get_autoconf_snippet, func_get_automake_snippet)
14074         (func_get_include_directive, func_get_link_directive)
14075         (func_get_license, func_get_maintainer, func_import): Avoid
14076         shell syntax errors from parsing syntax extensions.
14077
14078 2010-09-09  Bruno Haible  <bruno@clisp.org>
14079
14080         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14081         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14082         a reliable way to determine whether the 'alias' command works.
14083
14084 2010-09-08  Jim Meyering  <meyering@redhat.com>
14085
14086         init.sh: penalize a set-x-impaired shell; don't disqualify it
14087         * tests/init.sh: Too many shells corrupt application stderr when
14088         you set -x, so we can't afford to disqualify them, since at least
14089         on Irix-6.5, that would disqualify all bourne shells.
14090         Instead, use a two-pass approach.
14091         On the first pass, try to find a shell that meets the stricter
14092         condition that set -x does not corrupt stderr.
14093         If no shell meets the stricter condition, retest each candidate
14094         shell, but without that extra condition.  Finally, when
14095         VERBOSE=yes is requested and set -x might cause trouble, simply
14096         issue a warning and refrain from enabling debug output.
14097
14098 2010-09-08  Eric Blake  <eblake@redhat.com>
14099
14100         unsetenv: fix OpenBSD bug
14101         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14102         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14103         documentation.
14104         Reported by Jim Meyering.
14105
14106         strtod: work around IRIX 6.5 bug
14107         * lib/strtod.c (strtod): Reparse number on shorter string if
14108         exponent parse was invalid.
14109         * tests/test-strtod.c (main): Add check for "0x1p 2".
14110         Reported by Tom G. Christensen.
14111
14112         getopt: optimize previous patch
14113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14114         empty variable.  Speed up awk script.
14115         Reported by Paolo Bonzini.
14116
14117 2010-09-08  Jim Meyering  <meyering@redhat.com>
14118
14119         test.sh: disqualify shells for which set -x corrupts stderr
14120         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14121         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14122         appear in stderr output.  For example, this command:
14123             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14124         prints "P=1" on those two systems:
14125
14126 2010-09-08  Bruno Haible  <bruno@clisp.org>
14127
14128         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14129         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14130         commands, because some shells ignore redirections when there is an
14131         error in the command lookup.
14132         Reported by Eric Blake.
14133
14134 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14135
14136         * lib/regex.h: Fix a mention of `regex_compile' (should be
14137         `re_compile_pattern').
14138         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14139         (re_set_registers): Correct name of parameter in comment.
14140
14141         * doc/regex.texi: Add documentation for missing syntax flags.
14142         Remove commented-out documentation of defunct syntax option
14143         RE_NO_EMPTY_ALTS.
14144         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14145         Add documentation of re_set_registers.
14146         Document trick to re-use a pattern buffer by setting fastmap manually.
14147         Update documentation of struct re_pattern_buffer per public members.
14148         Uncomment documentation of equivalence class operators and
14149         collating symbol operators, since they are now implemented,
14150         Explain leftmost-longest matching in relation to alternatives.
14151         Tidy documentation of substring matching.
14152         Remove POSIX documentation, which is done better in
14153         glibc, and refer the reader there. Keep BSD API documentation, as
14154         that is not readily available elsewhere.
14155
14156 2010-09-07  Eric Blake  <eblake@redhat.com>
14157
14158         getopt: handle POSIXLY_CORRECT set but not exported
14159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14160         export state of POSIXLY_CORRECT, due to bash set -o posix.
14161         Reported by Dustin J. Mitchell.
14162
14163 2010-09-05  Bruno Haible  <bruno@clisp.org>
14164
14165         gnulib-tool: Highlight the changed options.
14166         * gnulib-tool (func_usage): Display the --import, --add-import,
14167         --remove-import explanations in bold font.
14168
14169 2010-09-06  Karl Berry  <karl@gnu.org>
14170
14171         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14172
14173 2010-09-05  Bruno Haible  <bruno@clisp.org>
14174
14175         uniwidth/width: Update comment.
14176         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14177         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14178
14179 2010-09-05  Bruno Haible  <bruno@clisp.org>
14180
14181         isinf, isnan: Relax license.
14182         * modules/isinf (License): Change from GPL to LGPL, with consent from
14183         Ben Pfaff.
14184         * modules/isnan (License): Likewise.
14185         Requested by Ludovic Courtès.
14186
14187 2010-09-04  Bruno Haible  <bruno@clisp.org>
14188
14189         gnulib-tool: Help migration from --import to --add-import or --update.
14190         * gnulib-tool: Emit a verbose error message when --import is used
14191         without any module name.
14192
14193 2010-09-04  Bruno Haible  <bruno@clisp.org>
14194
14195         Update doc about gnulib-tool.
14196         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14197         'gnulib-tool --update' in more detail.
14198         Reported by Eric Blake.
14199
14200 2010-09-04  Bruno Haible  <bruno@clisp.org>
14201
14202         gnulib-tool: Change --import. New options --add/remove-import.
14203         * gnulib-tool: New options --add-import, --remove-import.
14204         (func_usage): Document them.
14205         (have_associative): Define always.
14206         (func_import): In import mode, don't merge the specified settings with
14207         the cached settings. Implement remove-import mode.
14208         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14209         Explain when to use them versus --import.
14210         (Simple update): Use --add-import instead of --import.
14211         * NEWS: Mention the change.
14212
14213 2010-09-04  Bruno Haible  <bruno@clisp.org>
14214
14215         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14216         separate gnulib.mk.
14217
14218 2010-09-04  Bruno Haible  <bruno@clisp.org>
14219
14220         gnulib-tool: Don't talk about CVS any more.
14221         * gnulib-tool (func_usage, func_import): Write "version control"
14222         instead of CVS.
14223
14224 2010-09-04  Jim Meyering  <meyering@redhat.com>
14225
14226         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14227         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14228         false positives (whose names may be ill-chosen) when searching
14229         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14230         would cause a false-positive.
14231
14232         avoid coreutils "make distcheck" failure
14233         Coreutils tests with an absolute build directory name that contains
14234         a space.  Not quoting this directory name caused a failure.
14235         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14236         * tests/test-vc-list-files-cvs.sh: Likewise.
14237
14238 2010-09-04  Bruno Haible  <bruno@clisp.org>
14239
14240         gnulib-tool: Avoid error when run in a package without Makefile.am.
14241         * gnulib-tool: When collecting the m4dirs in a package that does not
14242         have a Makefile.am, eliminate those directories that contain no
14243         gnulib-cache.m4. Fix expression that counts these directories.
14244
14245 2010-09-04  Bruno Haible  <bruno@clisp.org>
14246
14247         update-copyright test: Improve output when perl is missing or too old.
14248         * tests/test-update-copyright.sh: Move test of Perl version down after
14249         the test whether Perl exists. Provide an explanation relating Perl's
14250         error message to Automake's SKIP: message.
14251
14252 2010-09-04  Bruno Haible  <bruno@clisp.org>
14253
14254         Don't augment PATH in TESTS_ENVIRONMENT.
14255         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14256         set abs_aux_dir instead of augmenting PATH.
14257         * modules/vc-list-files-tests (Makefile.am): Likewise.
14258         * tests/test-update-copyright.sh: Augment PATH here.
14259         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14260         path_prepend_.
14261         * tests/test-vc-list-files-git.sh: Likewise.
14262
14263 2010-09-04  Jim Meyering  <meyering@redhat.com>
14264
14265         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14266         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14267
14268 2010-09-04  Bruno Haible  <bruno@clisp.org>
14269
14270         strdup: Fix compilation error in C++ mode.
14271         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14272         the macro.
14273
14274 2010-09-04  Bruno Haible  <bruno@clisp.org>
14275
14276         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14277         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14278         macro into a function.
14279         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14280
14281 2010-09-04  Bruno Haible  <bruno@clisp.org>
14282
14283         Set PATH_SEPARATOR the same way autoconf does.
14284         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14285         the value of PATH_SEPARATOR the same way autoconf-generated configure
14286         scripts do.
14287         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14288         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14289
14290 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14291
14292         Set PATH_SEPARATOR the same way autoconf does.
14293         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14294         the same way autoconf-generated configure scripts do.
14295         * posix-modules: Likewise.
14296
14297 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14298
14299         hash: fix safe_hasher const typo
14300         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14301         const; otherwise, there is a type error later.
14302
14303 2010-09-02  Jim Meyering  <meyering@redhat.com>
14304
14305         test-update-copyright.sh: require perl 5.8.0
14306         * tests/test-update-copyright.sh: Require 5.8.0,
14307         which Tom G. Christensen has confirmed is adequate,
14308         while 5.6.1 is not.
14309
14310 2010-09-02  Eric Blake  <eblake@redhat.com>
14311
14312         tests: init.sh improvements for re-exec'ing with zsh
14313         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14314         -vx through shell re-exec.
14315         Reported by Tom G. Christensen.
14316
14317         wctype: fix typo in previous commit
14318         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14319         Reported by Ludovic Courtès.
14320
14321 2010-09-02  Jim Meyering  <meyering@redhat.com>
14322
14323         test-update-copyright.sh: skip test if Perl is too old
14324         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14325         Reported by Tom G. Christensen.
14326
14327 2010-09-02  Bruno Haible  <bruno@clisp.org>
14328
14329         wctype: Avoid compilation error on IRIX 6.5.30.
14330         * lib/wctype.in.h (iswblank): Declare with a replacement if
14331         REPLACE_ISWBLANK is set.
14332         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14333         declared. Set REPLACE_ISWBLANK.
14334         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14335         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14336         * doc/posix-headers/wctype.texi: Likewise.
14337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14338
14339 2010-09-01  Bruno Haible  <bruno@clisp.org>
14340
14341         New module 'socketlib'.
14342         * modules/socketlib: New file.
14343         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14344         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14345         * modules/sockets (Depends-on): Add socketlib.
14346         Suggested by Sam Steingold <sds@gnu.org>.
14347
14348 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14351
14352         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14353         when one needs search access to a directory but not read access.
14354         On systems where it is available, it works in some cases where
14355         O_RDONLY does not, namely on directories that are searchable but
14356         not readable, and which need only to be searchable.  If O_SEARCH
14357         is not available, fall back to the traditional method of using
14358         O_RDONLY.
14359
14360         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14361         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14362         when opening a directory that needs only to be searchable.
14363         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14364         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14365         * lib/openat-proc.c (openat_proc_name): Likewise.
14366         * lib/openat.c (openat_needs_fchdir): Likewise.
14367         * lib/save-cwd.c (save_cwd): Likewise.
14368         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14369
14370 2010-08-28  Bruno Haible  <bruno@clisp.org>
14371
14372         New module 'host-cpu-c-abi'.
14373         * modules/host-cpu-c-abi: New file.
14374         * m4/host-cpu-c-abi.m4: New file, based on part of
14375         clisp/src/m4/general.m4.
14376         Requested by Sam Steingold <sds@gnu.org>.
14377
14378 2010-08-31  Eric Blake  <eblake@redhat.com>
14379         and Jim Meyering  <meyering@redhat.com>
14380
14381         hash: factor, and guard against misbehaving hasher function
14382         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14383         of table->hasher's return value.  Also protect against a hash value
14384         so large that adding it to table->bucket results in a NULL pointer.
14385         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14386         Use it in place of open-coded check-and-abort.
14387
14388 2010-08-30  Bruno Haible  <bruno@clisp.org>
14389
14390         hash: silence spurious clang warning
14391         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14392         Reported by Eric Blake.
14393
14394 2010-08-30  Eric Blake  <eblake@redhat.com>
14395
14396         strstr, memmem, strcasestr: avoid leaked shell message
14397         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14398         FreeBSD.
14399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14401
14402         tests: silence clang warning
14403         * tests/test-malloca.c (do_allocation): Avoid dead store.
14404
14405 2010-08-29  Bruno Haible  <bruno@clisp.org>
14406
14407         gettext: Fix recent mistake.
14408         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14409
14410 2010-08-29  Bruno Haible  <bruno@clisp.org>
14411
14412         selinux-h: Offer a --without-selinux option.
14413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14414         --without-selinux was specified, skip all tests and define
14415         HAVE_SELINUX_SELINUX_H to 0.
14416         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14417         set LIB_SELINUX to empty.
14418         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14419         gl_LIBSELINUX. If --without-selinux was specified, replace
14420         selinux/context.h.
14421         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14422
14423 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14424             Bruno Haible  <bruno@clisp.org>
14425
14426         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14427         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14428         of HAVE_REALLOC.
14429         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14430         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14431         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14432         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14433
14434 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14435             Bruno Haible  <bruno@clisp.org>
14436
14437         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14438         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14439         HAVE_CALLOC.
14440         * lib/xmalloc.c: Update accordingly.
14441         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14442         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14443         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14444
14445 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14446             Bruno Haible  <bruno@clisp.org>
14447
14448         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14449         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14450         HAVE_MALLOC.
14451         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14452         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14453         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14454
14455 2010-08-29  Bruno Haible  <bruno@clisp.org>
14456
14457         Update modules list.
14458         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14459         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14460         (String handling <string.h>): Add astrxfrm.
14461         (File system functions): Add readlinkat.
14462
14463 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14464
14465         Tests for module 'realloc-gnu'.
14466         * modules/realloc-gnu-tests: New file.
14467         * tests/test-realloc-gnu.c: New file.
14468
14469         Tests for module 'calloc-gnu'.
14470         * modules/calloc-gnu-tests: New file.
14471         * tests/test-calloc-gnu.c: New file.
14472
14473         Tests for module 'malloc-gnu'.
14474         * modules/malloc-gnu-tests: New file.
14475         * tests/test-malloc-gnu.c: New file.
14476
14477 2010-08-28  Bruno Haible  <bruno@clisp.org>
14478
14479         Rename module 'realloc' -> 'realloc-gnu'.
14480         * modules/realloc-gnu: New file, copied from modules/realloc.
14481         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14482         obsolete.
14483         * modules/mgetgroups (Depends-on): Update.
14484         * doc/posix-functions/realloc.texi: Update.
14485         * NEWS: Mention the change.
14486
14487         Rename module 'calloc' -> 'calloc-gnu'.
14488         * modules/calloc-gnu: New file, copied from modules/calloc.
14489         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14490         obsolete.
14491         * doc/posix-functions/calloc.texi: Update.
14492         * NEWS: Mention the change.
14493
14494         Rename module 'malloc' -> 'malloc-gnu'.
14495         * modules/malloc-gnu: New file, copied from modules/malloc.
14496         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14497         obsolete.
14498         * modules/argp (Depends-on): Update.
14499         * modules/regex (Depends-on): Update.
14500         * doc/posix-functions/malloc.texi: Update.
14501         * NEWS: Mention the change.
14502
14503 2010-08-28  Eric Blake  <eblake@redhat.com>
14504
14505         pread, pwrite: add missing dependency
14506         * modules/pread (Depends-on): Add extensions.
14507         * modules/pwrite (Depends-on): Likewise.
14508
14509 2010-08-28  Bruno Haible  <bruno@clisp.org>
14510
14511         unistr/u*-strchr: Fix tests dependencies.
14512         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14513         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14514         Reported by Ian Beckwith <ianb@erislabs.net>.
14515
14516 2010-08-28  Bruno Haible  <bruno@clisp.org>
14517
14518         read-file: Don't occupy too much unused memory.
14519         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14520
14521 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14522             Eric Blake  <eblake@redhat.com>
14523             Bruno Haible  <bruno@clisp.org>
14524
14525         read-file: Avoid memory reallocations with regular files.
14526         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14527         (fread_file): With regular files, use the remaining length as the
14528         initial buffer size.  Check against overflow.
14529         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14530         sys_stat.
14531
14532 2010-08-28  Bruno Haible  <bruno@clisp.org>
14533
14534         ftello: Relax license.
14535         * modules/ftello (License): Relax to LGPLv2+.
14536         Reported by Eric Blake.
14537
14538 2010-08-28  Bruno Haible  <bruno@clisp.org>
14539
14540         Avoid relocwrapper link errors due to gnulib replacement functions.
14541         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14542         function.
14543         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14544
14545 2010-08-28  Bruno Haible  <bruno@clisp.org>
14546
14547         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14548         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14549         defined.
14550         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14551         Suggested by Eric Blake.
14552
14553 2010-08-28  Bruno Haible  <bruno@clisp.org>
14554
14555         sys_socket, netdb: Ensure socklen_t gets defined.
14556         * modules/sys_socket (Depends-on): Add socklen.
14557         * modules/netdb (Depends-on): Likewise.
14558         * modules/getaddrinfo (Depends-on): Remove socklen.
14559         * modules/getsockopt (Depends-on): Likewise.
14560         * modules/setsockopt (Depends-on): Likewise.
14561         * tests/test-sys_socket.c: Check that socklen_t is defined.
14562         * tests/test-netdb.c: Likewise.
14563         * m4/socklen.m4: Update comments.
14564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14565
14566 2010-08-27  Eric Blake  <eblake@redhat.com>
14567
14568         login_tty: add missing dependency
14569         * modules/login_tty (Depends-on): Add pty.
14570
14571 2010-08-26  Eric Blake  <eblake@redhat.com>
14572
14573         lib-symbol-versions: fix m4 quoting
14574         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14575         format for AC_LINK_IFELSE.
14576
14577         glob: fix compile test
14578         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14579
14580         btowc: fix missing file
14581         * modules/btowc (Files): Also ship locale-fr.m4.
14582
14583         lseek: fix link test
14584         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14585         AC_LINK_IFELSE.
14586
14587         include_next: silence autoconf 2.68 warning
14588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14589         AC_COMPILE_IFELSE as special.
14590         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14591         autoconf < 2.68.
14592
14593         acl: fix compilation test
14594         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14595         AC_COMPILE_IFELSE.
14596
14597 2010-08-26  Bruno Haible  <bruno@clisp.org>
14598
14599         Modernize AC_TRY_RUN invocations.
14600         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14602         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14603         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14604         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14605         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14606         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14608         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14609         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14611         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14612         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14613         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14615         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14616         gl_MBRLEN_NUL_RETVAL): Likewise.
14617         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14618         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14619         Likewise.
14620         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14621         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14622         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14623         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14624         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14625         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14626         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14627         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14628         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14629         Likewise.
14630         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14631         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14633         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14635         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14636         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14637         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14638         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14640
14641 2010-08-26  Bruno Haible  <bruno@clisp.org>
14642
14643         Modernize AC_TRY_LINK invocations.
14644         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14645         AC_TRY_LINK.
14646         * m4/argp.m4 (gl_ARGP): Likewise.
14647         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14648         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14649         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14650         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14651         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14652         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14653         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14654         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14655         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14656         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14657         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14658         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14659         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14660         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14661         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14662         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14663         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14664         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14665         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14666         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14667         Likewise.
14668         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14669         Likewise.
14670         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14671         Likewise.
14672         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14673         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14674         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14675         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14676         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14677         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14678         * m4/servent.m4 (gl_SERVENT): Likewise.
14679         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14680         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14681         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14682         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14683         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14684         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14685         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14686         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14687         * modules/tsearch-tests (configure.ac): Likewise.
14688
14689 2010-08-26  Bruno Haible  <bruno@clisp.org>
14690
14691         Modernize AC_TRY_COMPILE invocations.
14692         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14693         AC_TRY_COMPILE.
14694         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14695         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14696         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14697         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14698         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14699         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14700         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14701         * m4/lock.m4 (gl_LOCK): Likewise.
14702         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14703         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14704         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14706         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14707         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14708         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14710         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14711         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14712         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14714         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14715         extraneous semicolon.
14716
14717 2010-08-26  Jim Meyering  <meyering@redhat.com>
14718
14719         stat-time: relax license LGPL
14720         * modules/stat-time (License): Change from GPL to LGPL,
14721         with consent from all contributors, for use in libguile.
14722         Requested by Ludovic Courtès.
14723
14724 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14725
14726         poll: return immediately on POLLHUP.
14727         * lib/poll.c (poll): Always set timeout before wait_timeout is
14728         computed.
14729
14730 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14731
14732         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14733         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14734         rmdir ("dir/.//"), unlinkat.
14735
14736 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         stdbool: avoid spurious failure with modern xlc
14739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14740
14741 2010-08-24  Bruno Haible  <bruno@clisp.org>
14742
14743         getloadavg: simplify code
14744         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14745         gl_have_func. Update comments.
14746
14747 2010-08-24  Eric Blake  <eblake@redhat.com>
14748
14749         getloadavg: don't define SVR4 on cygwin
14750         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14751         only define SVR4 when -lkvm is required.
14752         Reported by Yaakov Selkowitz.
14753
14754 2010-08-24  Bruno Haible  <bruno@clisp.org>
14755
14756         priv-set: fix comment
14757         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14758
14759 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         priv-set: fix comments
14762         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14763         to match code, as suggested by David Bartley in:
14764         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14765
14766 2010-08-23  Eric Blake  <eblake@redhat.com>
14767
14768         stdbool: avoid rejecting clang
14769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14770         * tests/test-stdbool.c: Enable more tests if using the system
14771         <stdbool.h> instead of the gnulib replacement.
14772         (main): Move xlc bug test to a runtime test for all compilers.
14773         Reported by Anders Kaseorg.
14774
14775         argz: fix shell quoting issue
14776         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14777         Reported by Charles Wilson.
14778
14779 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14780             Erik Faye-Lund <kusmabite@gmail.com>
14781
14782         poll, select: handle ERROR_BROKEN_PIPE.
14783         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14784         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14785         * lib/select.c (win32_compute_revents): Do not mark a pipe
14786         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14787
14788 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14789
14790         fts: allow compilation with C++
14791         * lib/fts_.h: Specify extern "C" linkage with C++.
14792
14793 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14794
14795         Fix gnulib-tool sed script de-commentation for AIX sed.
14796         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14797         sed.
14798
14799 2010-08-17  Eric Blake  <eblake@redhat.com>
14800
14801         test-stddef: test for (some) offsetof bugs
14802         * tests/test-stddef.c: Enhance test to ensure correct type of
14803         offsetof.
14804         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14805         that we are not fixing at this time.
14806
14807 2010-08-15  Bruno Haible  <bruno@clisp.org>
14808
14809         stpncpy: Allow stpncpy to be defined as a macro.
14810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14811         if it's already correctly declared.
14812         * lib/string.in.h (stpncpy): Undefine before redefining.
14813         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14814
14815 2010-08-14  Bruno Haible  <bruno@clisp.org>
14816
14817         Rename module 'memxfrm' to 'amemxfrm'.
14818         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14819         (amemxfrm): Renamed from memxfrm.
14820         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14821         (amemxfrm): Renamed from memxfrm.
14822         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14823         * NEWS: Mention the change.
14824         * MODULES.html.sh (String handling <string.h>): Update.
14825         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14826         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14827         * lib/unicase/u16-casexfrm.c: Likewise.
14828         * lib/unicase/u32-casexfrm.c: Likewise.
14829         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14830         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14831         * lib/uninorm/u16-normxfrm.c: Likewise.
14832         * lib/uninorm/u32-normxfrm.c: Likewise.
14833         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14834         memxfrm.
14835         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14836         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14837         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14838         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14839         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14840         Suggested by Paul Eggert.
14841
14842 2010-08-14  Bruno Haible  <bruno@clisp.org>
14843
14844         Tests for module 'astrxfrm'.
14845         * modules/astrxfrm-tests: New file.
14846         * tests/test-astrxfrm.c: New file.
14847
14848         New module 'astrxfrm'.
14849         * lib/astrxfrm.h: New file.
14850         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14851         * modules/astrxfrm: New file.
14852
14853 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14854
14855         regex: Tweak doc.
14856         * doc/regex.texi (Overview): Don't mention regex.c.
14857         (GNU Regular Expression Compiling): Likewise.
14858         (Match-end-of-line Operator): Mention 'not_eol'.
14859
14860 2010-08-14  Brian Gough  <bjg@gnu.org>
14861             Bruno Haible  <bruno@clisp.org>
14862
14863         git-merge-changelog: add doc relating to use with bzr and hg.
14864         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14865
14866 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14867
14868         pthread: fix pthread.h creation for srcdir != builddir
14869         * modules/pthread (Makefile.am): Fix the rule to work also in a
14870         non-srcdir build.
14871
14872 2010-08-13  Karl Berry  <karl@gnu.org>
14873
14874         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14875         * doc/posix-*/*: force line break before @url of POSIX
14876         specifications.
14877         Suggested by Werner Lemberg.
14878
14879 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14880
14881         strtod: fix const diagnostic
14882         * lib/strtod.c (strtod): Don't assign const char * to char *,
14883         as this elicits a warning from GCC when warnings are enabled.
14884
14885 2010-08-10  Pádraig Brady <P@draigbrady.com>
14886         and Eric Blake  <eblake@redhat.com>
14887
14888         copy-acl: ignore ENOTSUP on HP-UX
14889         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14890         so that it is available for HP-UX.
14891         * lib/copy-acl.c (qcopy_acl): Use it.
14892         Reported by Patrick M. Callahan.
14893
14894 2010-08-10  Eric Blake  <eblake@redhat.com>
14895
14896         open, chown: relax license
14897         * modules/open (License): Change to LGPLv2+, with consent by all
14898         authors, for use in augeas.
14899         * modules/chown (License): Likewise.
14900         * modules/lchown (Likewise): Likewise.
14901         Requested by Adam Stokes.
14902
14903 2010-08-09  Karl Berry  <karl@gnu.org>
14904
14905         * build-aux/ar-lib: new file, import from Automake.
14906         * config/srclist.txt: autocheck for updates.
14907
14908 2010-08-09  Eric Blake  <eblake@redhat.com>
14909
14910         readlinkat: adjust client modules
14911         * modules/areadlinkat (Depends-on): Use readlinkat, not
14912         symlinkat.
14913         * modules/areadlinkat-with-size (Depends-on): Likewise.
14914
14915         mknod: be more vocal about danger of running tests as root
14916         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14917         root, since that is just asking for problems.
14918         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14919
14920         readlinkat: split into its own module
14921         * modules/symlinkat: Split readlinkat...
14922         * modules/readlinkat: ...into separate module.
14923         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14924         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14925         * lib/symlinkat.c (readlinkat): Move...
14926         * lib/readlinkat.c: ...into new file.
14927         * modules/symlinkat-tests: Split readlinkat test...
14928         * modules/readlinkat-tests: ...into separate module.
14929         * tests/test-symlinkat.c: Split...
14930         * tests/test-readlinkat.c: ...into new file.
14931         * NEWS: Document the split.
14932         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14933         * lib/unistd.in.h (readlinkat): Likewise.
14934         Suggested by Bruno Haible.
14935
14936 2010-08-08  Bruno Haible  <bruno@clisp.org>
14937
14938         memxfrm: Speed up.
14939         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14940         that usually only one call to strxfrm is necessary for each string
14941         part.
14942         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14943
14944 2010-08-07  Karl Berry  <karl@gnu.org>
14945
14946         * doc/posix-headers/limits.texi,
14947         * doc/posix-functions/malloc.texi,
14948         * doc/posix-functions/strsignal.texi: missing @item.
14949         * doc/ld-version-script.texi: spurious leading i.
14950         * doc/regex.texi (Interval Operators): no commas inside @var.
14951
14952 2010-08-01  Bruno Haible  <bruno@clisp.org>
14953
14954         Integrate the regex documentation.
14955         * doc/gnulib.texi: Define 'cn' index.
14956         (Regular expressions): New a chapter that includes regex.texi and
14957         regexprops-generic.texi.
14958         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14959         syntax.
14960
14961         Whitespace cleanup.
14962         * doc/regex.texi: Remove trailing spaces.
14963
14964         Add regex documentation.
14965         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14966         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14967         Written by Kathy A. Hargreaves and Karl Berry.
14968
14969 2010-08-01  Bruno Haible  <bruno@clisp.org>
14970
14971         link: Update documentation.
14972         * doc/posix-functions/link.texi: Update regarding Solaris.
14973
14974 2010-07-31  Bruno Haible  <bruno@clisp.org>
14975
14976         Update modules list.
14977         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14978         (String handling <string.h>): Add memcmp2, memxfrm.
14979         (Container data structures): Add xlist, xsublist, xoset.
14980         (Core language properties): Add alignof, unused-parameter.
14981         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14982         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14983         (Unibyte characters <ctype.h>): New section.
14984         (String handling <string.h>): New section.
14985         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14986         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14987         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14988         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14989         tan, tanh, tanl, y0, y1, yn.
14990         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14991         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14992         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14993         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14994         unlockpt, vdprintf, vdprintf-posix.
14995         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14996         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14997         xconcat-filename.
14998         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14999         getdtablesize, pipe2, pipe2-safer.
15000         (Security): New section.
15001         (Networking functions): Add accept4.
15002         (Signal handling): Add sigpipe.
15003         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15004         mbmemcasecoll.
15005         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15006         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15007         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15008         pipe-filter-ii.
15009         (Misc): Add argp-version-etc, login_tty, parse-duration.
15010
15011 2010-07-31  Bruno Haible  <bruno@clisp.org>
15012
15013         Improve doc in MODULES.html.
15014         * modules/linkat (Description): Add the word "function".
15015         * modules/mkfifo (Description): Likewise.
15016         * modules/mknod (Description): Likewise.
15017         * modules/remove (Description): Likewise.
15018         * modules/renameat (Description): Likewise.
15019         * modules/stat (Description): Likewise.
15020         * modules/symlink (Description): Likewise.
15021         * modules/unlink (Description): Likewise.
15022
15023 2010-07-31  Bruno Haible  <bruno@clisp.org>
15024
15025         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15026         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15027         option --enable/disable-c++ instead of --enable/disable-cxx.
15028         * NEWS: Mention the change.
15029
15030 2010-07-31  Bruno Haible  <bruno@clisp.org>
15031
15032         readlink, areadlink: Relax test a bit.
15033         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15034         alternative to ENOTDIR.
15035         * tests/test-areadlink.h (test_areadlink): Likewise.
15036         Reported by Rainer Tammer.
15037
15038 2010-07-31  Bruno Haible  <bruno@clisp.org>
15039
15040         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15041         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15042         character, perform the search using U_STRCHR.
15043         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15044         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15045         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15046         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15047         Suggested by Paolo Bonzini.
15048
15049 2010-07-31  Bruno Haible  <bruno@clisp.org>
15050
15051         unistr/u*-strstr: Fix dependencies.
15052         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15053         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15054         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15055
15056 2010-07-31  Bruno Haible  <bruno@clisp.org>
15057
15058         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15059         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15060         the beginning of the loop.
15061         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15062         cases in 'switch' statement.
15063
15064         unistr/u8-strchr: Fix several bugs.
15065         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15066         the string. When not found, return NULL, not a pointer near the end.
15067
15068         More tests for unistr/u8-strchr.
15069         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15070         that the function does not read past the first occurrence of the byte
15071         being searched.
15072         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15073         * tests/unistr/test-u16-strchr.c (main): New function.
15074         * tests/unistr/test-u32-strchr.c (main): New function.
15075
15076 2010-07-31  Bruno Haible  <bruno@clisp.org>
15077
15078         posix-modules: Ignore backup files of documentation files.
15079         * posix-modules: grep only through files named *.texi.
15080
15081 2010-07-31  Bruno Haible  <bruno@clisp.org>
15082
15083         symlinkat: Fix documentation.
15084         * doc/posix-functions/readlinkat.texi: Fix module name.
15085
15086 2010-07-31  Bruno Haible  <bruno@clisp.org>
15087
15088         fchownat: Replace also when chown has the trailing slash bug.
15089         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15090         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15091         introduced on 2010-04-10.
15092         Reported by Rainer Tammer.
15093
15094 2010-07-31  Bruno Haible  <bruno@clisp.org>
15095
15096         linkat: Work around AIX 7.1 bug.
15097         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15098         whether linkat handles trailing slash correctly. If not, replace linkat
15099         and define LINKAT_TRAILING_SLASH_BUG.
15100         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15101         check whether (fd1,file1) points to a directory if file1 or file2 ends
15102         in a slash. Code taken from lib/link.c.
15103         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15104         Reported by Rainer Tammer.
15105
15106 2010-07-31  Bruno Haible  <bruno@clisp.org>
15107
15108         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15109         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15110         This disables an xlc optimization that was causing wrong test results.
15111         Reported by Rainer Tammer.
15112
15113 2010-07-31  Bruno Haible  <bruno@clisp.org>
15114
15115         iconv: Work around AIX 6.1..7.1 bug.
15116         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15117         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15118         cross-compiling, guess no on all versions of AIX.
15119         Reported by Rainer Tammer.
15120
15121 2010-07-31  Bruno Haible  <bruno@clisp.org>
15122
15123         readlink: Relax test a bit.
15124         * tests/test-readlink.h (test_readlink): Allow different errno value
15125         when readlink is called with a file name that ends in / and refers to
15126         a file.
15127         Suggested by Eric Blake.
15128         Reported by Rainer Tammer.
15129
15130 2010-07-31  Bruno Haible  <bruno@clisp.org>
15131
15132         copysign: Does not require -lm on glibc systems.
15133         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15134         gl_COMMON_DOUBLE_MATHFUNC.
15135         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15136
15137 2010-07-31  Bruno Haible  <bruno@clisp.org>
15138
15139         duplocale: Work around AIX 7.1 bug.
15140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15141         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15142         * lib/duplocale.c (rpl_duplocale): Update comment.
15143         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15144         Reported by Rainer Tammer.
15145
15146 2010-07-30  Bruno Haible  <bruno@clisp.org>
15147
15148         dirfd: Avoid link error on AIX 7.1.
15149         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15150         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15151         exist, set REPLACE_DIRFD.
15152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15153         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15154         * doc/posix-functions/dirfd.texi: Update.
15155         Reported by Rainer Tammer.
15156
15157 2010-07-30  Eric Blake  <eblake@redhat.com>
15158
15159         strtod: next round of AIX fixes
15160         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15161         exponent.
15162         * tests/test-strtod.c (main): Enhance tests.
15163         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15164         Reported by Rainer Tammer.
15165
15166         futimens: fix configure check
15167         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15168         Reported by Bruno Haible.
15169
15170 2010-07-30  Bruno Haible  <bruno@clisp.org>
15171
15172         getline: Update regarding AIX.
15173         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15174         Reported by Rainer Tammer.
15175
15176 2010-07-30  Bruno Haible  <bruno@clisp.org>
15177
15178         wcwidth: Drop replacement on AIX 7.
15179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15180         AIX 7.
15181         Reported by Rainer Tammer.
15182
15183 2010-07-30  Bruno Haible  <bruno@clisp.org>
15184
15185         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15186         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15187         a 'char *'.
15188         Reported by Rainer Tammer.
15189
15190 2010-07-30  Bruno Haible  <bruno@clisp.org>
15191
15192         unlink: Update regarding AIX.
15193         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15194         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15195         Reported by Rainer Tammer.
15196
15197 2010-07-30  Bruno Haible  <bruno@clisp.org>
15198
15199         symlink: Update regarding AIX.
15200         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15201         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15202         Reported by Rainer Tammer.
15203
15204 2010-07-30  Bruno Haible  <bruno@clisp.org>
15205
15206         strndup: Update regarding AIX.
15207         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15208         AIX 7.
15209         Reported by Rainer Tammer.
15210
15211 2010-07-30  Bruno Haible  <bruno@clisp.org>
15212
15213         stat: Update regarding AIX.
15214         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15215         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15216         Reported by Rainer Tammer.
15217
15218 2010-07-30  Bruno Haible  <bruno@clisp.org>
15219
15220         truncl: Fix autoconf test.
15221         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15222         whether truncl works.
15223         Reported by Rainer Tammer.
15224
15225 2010-07-30  Bruno Haible  <bruno@clisp.org>
15226
15227         round: Update regarding AIX.
15228         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15229         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15230         Reported by Rainer Tammer.
15231
15232 2010-07-30  Bruno Haible  <bruno@clisp.org>
15233
15234         rename: Update regarding AIX.
15235         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15236         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15237         Reported by Rainer Tammer.
15238
15239 2010-07-30  Bruno Haible  <bruno@clisp.org>
15240
15241         printf.m4: Update regarding AIX.
15242         * m4/printf.m4: Update comments regarding AIX.
15243         Reported by Rainer Tammer.
15244
15245 2010-07-30  Bruno Haible  <bruno@clisp.org>
15246
15247         iconv: Update regarding AIX.
15248         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15249         AIX 7.
15250         Reported by Rainer Tammer.
15251
15252 2010-07-30  Bruno Haible  <bruno@clisp.org>
15253
15254         getopt: Update regarding AIX.
15255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15256         no on AIX.
15257         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15258         Reported by Rainer Tammer.
15259
15260 2010-07-30  Bruno Haible  <bruno@clisp.org>
15261
15262         ldexpl; Update regarding AIX.
15263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15264         on AIX 7.
15265         Reported by Rainer Tammer.
15266
15267 2010-07-30  Bruno Haible  <bruno@clisp.org>
15268
15269         frexpl: Update regarding AIX.
15270         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15271         on AIX 7.
15272         Reported by Rainer Tammer.
15273
15274 2010-07-30  Bruno Haible  <bruno@clisp.org>
15275
15276         open, fopen: Update regarding AIX.
15277         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15278         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15279         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15280         * doc/posix-functions/fopen.texi: Likewise.
15281         Reported by Rainer Tammer.
15282
15283 2010-07-30  Bruno Haible  <bruno@clisp.org>
15284
15285         chown: Update doc regarding AIX.
15286         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15287         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15288         Reported by Rainer Tammer.
15289
15290 2010-07-30  Eric Blake  <eblake@redhat.com>
15291
15292         strtod: fix bug in replacement function on AIX
15293         * lib/strtod.c (strtod): Special case broken "0x" parse in
15294         underlying strtod.
15295         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15296         * doc/posix-functions/strtod.texi (strtod): Likewise.
15297         Reported by Rainer Tammer.
15298
15299 2010-07-30  Bruno Haible  <bruno@clisp.org>
15300
15301         mbrlen: Fix cross-compilation guess for AIX.
15302         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15303         guess. Leftover from 2008-12-22.
15304
15305 2010-07-30  Bruno Haible  <bruno@clisp.org>
15306
15307         mbrtowc: Fix cross-compilation guess for AIX.
15308         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15309         guess. Leftover from 2008-12-21.
15310
15311 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15312
15313         init.sh: work around trap limitation of some shells
15314         * tests/init.sh (setup_): Move exit trap outside of shell function.
15315
15316 2010-07-29  Eric Blake  <eblake@redhat.com>
15317
15318         strtod: aid debugging
15319         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15320         understanding why strtod is rejected.
15321
15322 2010-07-28  Bruno Haible  <bruno@clisp.org>
15323
15324         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15325         * lib/unistr/u8-chr.c: Include <string.h>.
15326         * tests/unistr/test-u8-chr.c: Likewise.
15327         * tests/unistr/test-u16-chr.c: Likewise.
15328         * tests/unistr/test-u32-chr.c: Likewise.
15329         * tests/unistr/test-u8-strchr.c: Likewise.
15330         * tests/unistr/test-u16-strchr.c: Likewise.
15331         * tests/unistr/test-u32-strchr.c: Likewise.
15332         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15333         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15334         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15335         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15336
15337 2010-07-28  Bruno Haible  <bruno@clisp.org>
15338
15339         Use spaces for indentation, not tabs.
15340         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15341
15342 2010-07-27  Bruno Haible  <bruno@clisp.org>
15343
15344         mbspcasecmp: Fix function specification.
15345         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15346         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15347         Reported by Eric Blake <eblake@redhat.com>.
15348
15349 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15350
15351         timespec: use cast and not conditional, as truncation isn't possible
15352         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15353         instead of a conditional.  Comment about the situation in more detail.
15354         This undoes most of the 2009-10-29 patch.
15355
15356 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15357
15358         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15359         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15360         * lib/unistr/u8-strchr.c: Likewise.
15361         * modules/unistr/u8-chr: Depend on memchr.
15362
15363         unistr/u*-strchr: add tests
15364         * modules/unistr/u8-strchr-tests: New file.
15365         * modules/unistr/u16-strchr-tests: New file.
15366         * modules/unistr/u32-strchr-tests: New file.
15367         * tests/unistr/test-strchr.h: New file.
15368         * tests/unistr/test-u8-strchr.c: New file.
15369         * tests/unistr/test-u16-strchr.c: New file.
15370         * tests/unistr/test-u32-strchr.c: New file.
15371
15372         unistr/u*-chr: test multibyte sequences more
15373         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15374         test vector.
15375         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15376         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15377         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15378
15379         unistr/u*-chr: test multibyte sequences
15380         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15381
15382         unistr/u*-chr: prepare for multibyte tests
15383         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15384         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15385         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15386         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15387         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15388         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15389
15390 2010-07-18  Bruno Haible  <bruno@clisp.org>
15391
15392         unistr/u8-strchr: Optimize non-ASCII argument case.
15393         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15394         because the first byte often matches anyway.
15395         Reported by Pádraig Brady <P@draigbrady.com>.
15396
15397 2010-07-15  Karl Berry  <karl@gnu.org>
15398
15399         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15400
15401 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15402
15403         getcwd: on Solaris, work better if ancestors are inaccessible
15404         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15405         buffer and size, try again with a large buffer.  This works better
15406         on Solaris, since its getcwd succeeds even if the path to the root
15407         is inaccessible, and this is helpful in common cases such as .zfs
15408         hidden directories.  Problem reported by J Chapman Flack in
15409         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15410         Use system getcwd if it's declared, not merely if it's partly
15411         working; use the partly-working test only to avoid needless effort
15412         if the system getcwd fails.
15413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15414         comment that was already obsolete and is now even more obsolete.
15415         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15416         now might call strdup.
15417
15418 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15419
15420         pthread: Add enough so that coreutils/src/sort.c compiles.
15421         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15422         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15423         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15424         Include <sys/types.h>, in case it defines pthread_t.
15425         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15426         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15427         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15428         (pthread_rwlockattr_t, pthread_spinlock_t):
15429         New typedefs, if HAVE_PTHREAD_T is not defined.
15430         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15431         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15432         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15433         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15434         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15435         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15436         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15437         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15438         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15439         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15440         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15441         New macros.
15442         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15443         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15444         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15445         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15446         (pthread_spin_unlock): New dummy functions.
15447         (pthread_create): Return EAGAIN; don't set errno.
15448         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15449         require AC_C_INLINE.
15450         * modules/pthread (Depends-on): Add sched, time.
15451         (pthread.h): Use AM_V_GEN.
15452
15453 2010-07-13  Bruno Haible  <bruno@clisp.org>
15454
15455         striconveh: Don't malloc memory if the result buffer is sufficient.
15456         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15457         buffer if its size is sufficient.
15458         Reported by Ludovic Courtès <ludo@gnu.org>.
15459
15460 2010-07-13  Bruno Haible  <bruno@clisp.org>
15461
15462         strtod: Add safety check.
15463         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15464
15465 2010-07-12  Bruno Haible  <bruno@clisp.org>
15466
15467         Unify tests that set gl_cv_func_ldexpl_no_libm.
15468         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15469         gl_FUNC_LDEXPL.
15470         (gl_FUNC_LDEXPL): Invoke it.
15471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15472
15473 2010-07-12  Bruno Haible  <bruno@clisp.org>
15474
15475         Unify tests that set gl_cv_func_ldexp_no_libm.
15476         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15477         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15478         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15479         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15480         * modules/strtod (Files): Add m4/ldexp.m4.
15481
15482 2010-07-12  Bruno Haible  <bruno@clisp.org>
15483
15484         Unify tests that set gl_cv_func_frexpl_no_libm.
15485         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15486         gl_FUNC_FREXPL_NO_LIBM.
15487         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15488         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15489
15490 2010-07-12  Bruno Haible  <bruno@clisp.org>
15491
15492         Unify tests that set gl_cv_func_frexp_no_libm.
15493         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15494         gl_FUNC_FREXP_NO_LIBM.
15495         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15496         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15497
15498 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15499
15500         memcoll: clarify sizes versus lengths, document better, and tweak perf
15501         * lib/memcoll.c (strcoll_loop, memcoll0):
15502         Improve quality of descriptive comments.  Name variables
15503         consistently as to whether they are lengths (which do not include
15504         terminating null) versus sizes (which do).
15505         * lib/xmemcoll.c (xmemcoll0): Likewise.
15506         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15507         returned when s1size == 0; this is easier to compile and saves
15508         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15509
15510 2010-07-12  Bruno Haible  <bruno@clisp.org>
15511
15512         Tests for module '_Exit'.
15513         * modules/_Exit-tests: New file.
15514         * tests/test-_Exit.sh: New file.
15515         * tests/test-_Exit.c: New file.
15516
15517         New module '_Exit'.
15518         * lib/stdlib.in.h (__attribute__): New macro.
15519         (_Exit): New declaration.
15520         * lib/_Exit.c: New file.
15521         * m4/_Exit.m4: New file.
15522         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15523         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15524         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15525         * modules/_Exit: New file.
15526         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15527         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15528
15529 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15530
15531         strtod: make it more-accurate typically, and don't require libm
15532         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15533         Include limits.h.  Don't include string.h.
15534         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15535         (locale_isspace): New function, so that no casts are needed to
15536         check whether *s is a space.
15537         (ldexp): Provide an unused dummy if not available.
15538         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15539         (strtod): Use them.  This implementation prefers to use the
15540         underlying strtod if available, falling back on our own code
15541         only to fix known bugs.  This is more likely to produce an
15542         accurate result.  Also, it avoids the use of libm functions.
15543         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15544         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15545         was absent, but it caused a test failure with coreutils.
15546         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15547         with libm.
15548         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15549         * modules/strtod-tests (Makefile.am): Likewise.
15550
15551 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15552             Bruno Haible  <bruno@clisp.org>
15553
15554         unistr/u8-strchr: Optimize ASCII argument case.
15555         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15556
15557 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15558
15559         (x)memcoll: minor tweaks
15560         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15561         is after the type that it qualifies.
15562         (memcoll0): Likewise.
15563         * lib/memcoll.h (memcoll0): Likewise.
15564         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15565         * lib/xmemcoll.h (xmemcoll0): Likewise.
15566         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15567         differs from memcoll in that the NUL byte is part of the argument.
15568         Omit the abort-checks, as performance is a real issue here.  Plus,
15569         the checks were wrong anyway (an off-by-one error).  Omit local
15570         variable 'diff', as it's a bit clearer that way.
15571         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15572         no longer needed.
15573
15574 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15575
15576         (x)memcoll: speedup when input is known to be NUL delimited
15577         * lib/memcoll.c: Include stdlib.
15578         (memcoll0): New function.
15579         (strcoll_loop): New function, refactored for use in both memcoll
15580         and memcoll0.
15581         * lib/memcoll.h (memcoll0): Add prototype.
15582         * lib/xmemcoll.c (xmemcoll0): New function.
15583         (collate_error): New function, refactored for use in both xmemcoll
15584         and xmemcoll0.
15585         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15586         * m4/memcoll.m4: add inline invocation.
15587
15588 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15589
15590         * build-aux/bootstrap: Remove any local translations
15591         from the translation project synchronization directory,
15592         so that local only translations are not distributed.
15593
15594 2010-07-04  Bruno Haible  <bruno@clisp.org>
15595
15596         fsusage: Clarify which code applies to which platforms.
15597         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15598         platform.
15599         * lib/fsusage.c (get_fs_usage): Likewise.
15600
15601 2010-07-04  Bruno Haible  <bruno@clisp.org>
15602
15603         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15604         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15605         Reported by Martin Lambers <marlam@marlam.de>.
15606
15607 2010-07-04  Jim Meyering  <meyering@redhat.com>
15608
15609         hash: once again explicitly disallow insertion of NULL
15610         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15611         inserting a NULL pointer cannot work with these functions.
15612         Add a comment with details.
15613         This reverts part of the 2010-07-01 commit, 5bef1a35
15614         "hash: extend module to deal with non-pointer keys".
15615
15616 2010-07-01  Bruno Haible  <bruno@clisp.org>
15617
15618         stdbool: Update doc.
15619         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15620         Info from Christian Weisgerber <naddy@mips.inka.de>.
15621
15622 2010-07-01  Jim Meyering  <meyering@redhat.com>
15623
15624         hash: extend module to deal with non-pointer keys
15625         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15626         but that allows insertion of non-pointer entries.
15627         Do not disallow an ENTRY value of NULL.
15628         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15629         * lib/hash.h (hash_insert0): Declare.
15630
15631 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15632
15633         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15634         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15635         not present (i.e. with autoconf 2.59 and when using gettextize, not
15636         gnulib), require AC_GNU_SOURCE instead.
15637
15638 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15639
15640         idpriv-drop: Fix tests.
15641         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15642         not to the test-idpriv-droptemp program.
15643
15644 2010-06-29  Bruno Haible  <bruno@clisp.org>
15645
15646         string: Fix syntax error with g++ 2.96.
15647         * lib/string.in.h (__pure__): Remove definition.
15648         (_GL_ATTRIBUTE_PURE): New macro.
15649         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15650         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15651         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15652
15653 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15654
15655         unitypes: Fix bug introduced on 2010-05-18.
15656         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15657
15658 2010-06-22  Eric Blake  <eblake@redhat.com>
15659
15660         memmem: slight optimization
15661         * lib/str-two-way.h (critical_factorization): Update comments.
15662         Reduce work during factorization phase.
15663         Reported by Carlos Bueno <carlos@bueno.org>.
15664
15665 2010-06-21  Bruno Haible  <bruno@clisp.org>
15666
15667         Fix HAVE_CALLOC_POSIX misnomer.
15668         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15669         !HAVE_CALLOC_POSIX.
15670         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15671         HAVE_CALLOC_POSIX.
15672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15673         instead of HAVE_CALLOC_POSIX.
15674         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15675         HAVE_CALLOC_POSIX.
15676
15677         Use modern idiom for calloc() replacement.
15678         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15679         AC_FUNC_CALLOC.
15680         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15681         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15682         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15683         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15684         (gl_REPLACE_CALLOC): New macro.
15685
15686 2010-06-21  Bruno Haible  <bruno@clisp.org>
15687
15688         Fix HAVE_REALLOC_POSIX misnomer.
15689         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15690         !HAVE_REALLOC_POSIX.
15691         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15692         HAVE_REALLOC_POSIX.
15693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15694         instead of HAVE_REALLOC_POSIX.
15695         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15696         HAVE_REALLOC_POSIX.
15697
15698         Use modern idiom for realloc() replacement.
15699         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15700         AC_FUNC_REALLOC.
15701         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15702         Autoconf's AC_FUNC_REALLOC.
15703         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15704         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15705         (gl_REPLACE_REALLOC): New macro.
15706         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15707
15708 2010-06-21  Bruno Haible  <bruno@clisp.org>
15709
15710         Fix HAVE_MALLOC_POSIX misnomer.
15711         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15712         !HAVE_MALLOC_POSIX.
15713         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15714         HAVE_MALLOC_POSIX.
15715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15716         instead of HAVE_MALLOC_POSIX.
15717         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15718         HAVE_MALLOC_POSIX.
15719
15720         Use modern idiom for malloc() replacement.
15721         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15722         AC_FUNC_MALLOC.
15723         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15724         Autoconf's AC_FUNC_MALLOC.
15725         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15726         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15727         (gl_REPLACE_MALLOC): New macro.
15728         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15729
15730 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15731
15732         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15733         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15734         This macro takes 3 arguments, not 4.
15735
15736 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15737
15738         ipv6: fix detection under mingw
15739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15740         in6_addr.
15741
15742 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15743
15744         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15745         that strtod() works when cross-compiling to a glibc version known
15746         to work.
15747
15748 2010-06-15  Bruno Haible  <bruno@clisp.org>
15749
15750         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15751
15752 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15753
15754         select: Correct timeout.
15755         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15756
15757 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15758
15759         git-version-gen: init shell var to avoid env var influence
15760         * build-aux/git-version-gen (v): Init shell var to empty.
15761
15762 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         priv-set: Don't assume that priv.h exists merely because getppriv does.
15765         See Jan Andersen's bug report about AIX 5L in
15766         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15767         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15768         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15769         * lib/priv-set.h: Likewise.
15770         * tests/test-priv-set.c: Likewise.
15771
15772 2010-06-13  Bruno Haible  <bruno@clisp.org>
15773
15774         relocatable: Make it easier to test whether to install wrappers.
15775         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15776         RELOCATABLE_VIA_WRAPPER.
15777
15778 2010-06-13  Bruno Haible  <bruno@clisp.org>
15779
15780         gnulib-tool: Display specified modules and dependencies differently.
15781         * gnulib-tool (func_show_module_list): New function.
15782         (func_import, func_create_testdir): Invoke it.
15783         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15784
15785 2010-06-13  Bruno Haible  <bruno@clisp.org>
15786
15787         gnulib-tool: Align code of func_import and func_create_testdir.
15788         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15789         specified_modules.
15790
15791 2010-06-12  Jim Meyering  <meyering@redhat.com>
15792
15793         test-inttostr: avoid spurious failure on Solaris 9
15794         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15795         to accept "%ju".  Reported by Bruno Haible.
15796
15797 2010-06-11  Jim Meyering  <meyering@redhat.com>
15798
15799         test-sys_socket: mark variables as used more readably
15800         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15801         as "used" explicitly via (void) statement casts.  This is more
15802         readable than using them in an artificial return expression.
15803         Suggestion from Bruno Haible.
15804
15805 2010-06-11  Bruno Haible  <bruno@clisp.org>
15806
15807         Avoid some more warnings from "gcc -Wwrite-strings".
15808         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15809         to 'const char *'.
15810         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15811         * tests/test-c-strcasestr.c (main): Likewise.
15812         * tests/test-mbscasestr1.c (main): Likewise.
15813         * tests/test-mbscasestr2.c (main): Likewise.
15814         * tests/test-memmem.c (main): Likewise.
15815         * tests/test-strstr.c (main): Likewise.
15816         * tests/test-strcasestr.c (main): Likewise.
15817
15818 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15819
15820         init.sh: change framework_failure_ to fail with status 99, not 1
15821         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15822         automake's parallel-tests rule that this is an unexpected failure,
15823         even if the test is listed in XFAIL_TESTS.
15824
15825 2010-06-11  Jim Meyering  <meyering@redhat.com>
15826
15827         test-inttostr: avoid warnings about 4-6KB literal strings
15828         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15829         Include "macros.h", for its definition of ASSERT.
15830         (CK): s/assert/ASSERT/
15831         * modules/inttostr-tests (Files): Add macros.h.
15832
15833         init.sh: don't use $ME_ or skip_ before they are defined
15834         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15835         their first uses.  Also hoist their companions: warn_, fail_,
15836         framework_failure_, $stderr_fileno.  Prompted by a patch from
15837         Stefano Lattarini.
15838
15839         test-sys_socket: avoid set-but-not-used warnings from gcc
15840         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15841         avoid warning about set-but-not-used variables.
15842
15843         test-xvasprintf: avoid 'const' discard warnings
15844         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15845         "const" when assigning from literal strings.
15846         (test_xasprintf): Add "void" in function argument list to placate
15847         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15848
15849         tests: avoid compilation warnings in argmatch and exclude tests...
15850         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15851         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15852         Since it always exits, declare with the "noreturn" attribute.
15853         * tests/test-argmatch.c: Likewise.
15854
15855         tests: avoid 'const' discard warnings in mbsstr tests
15856         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15857         * tests/test-mbsstr2.c (main): Likewise.
15858
15859         test-verify: avoid warning from gcc's -Wmissing-declarations
15860         * tests/test-verify.c (function): Declare to be static.
15861
15862         test-inttostr.c: include <string.h> for use of strcmp
15863         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15864
15865         test-linkat: avoid failed assertion on "other" architectures
15866         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15867         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15868         sparc: https://bugs.launchpad.net/bugs/591968
15869
15870 2010-06-11  Jim Meyering  <meyering@redhat.com>
15871
15872         printf.m4: avoid autoconf's "Expanded Before Required" warning
15873         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15874         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15875         autoconf warning.
15876
15877 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15878
15879         Replacement header templates are now named with ".in", not "_".
15880         * doc/gnulib-intro.texi: Correct.
15881
15882 2010-06-10  Jim Meyering  <meyering@redhat.com>
15883
15884         inttostr-tests: depend on snprintf, not snprintf-posix
15885         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15886         snprintf-posix, to avoid this aclocal failure:
15887           missing file gnulib-tests/vasnprintf.c
15888           configure.ac:45: error: expected source file, required through \
15889           AC_LIBSOURCES, not found
15890
15891 2010-06-10  Jim Meyering  <meyering@redhat.com>
15892
15893         inttostr: add a new function, inttostr, and tests
15894         The namesake function was not available.  The existence of the
15895         template file, inttostr.c makes its addition nontrivial.
15896         * lib/anytostr.c: Rename from inttostr.c.
15897         (anytostr): Rename from inttostr.
15898         * lib/inttostr.c: New file.
15899         * modules/inttostr (Files): Add anytostr.c.
15900         (Makefile.am): Set lib_SOURCES instead of ...
15901         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15902         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15903         * lib/offtostr.c: Likewise.
15904         * lib/uinttostr.c: Likewise.
15905         * lib/umaxtostr.c: Likewise.
15906         * modules/inttostr-tests: New file.
15907         * tests/test-inttostr.c: New file.  Test these functions.
15908
15909 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15910             Bruno Haible  <bruno@clisp.org>
15911
15912         Add "Extending Gnulib" chapter to manual.
15913         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15914         chapter.
15915         (Extending Gnulib): New chapter.
15916         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15917         chapter.
15918
15919 2010-06-09  Bruno Haible  <bruno@clisp.org>
15920
15921         Avoid relocwrapper link errors due to gnulib replacement functions.
15922         * lib/areadlink.c: Use the system's malloc, realloc functions.
15923         (areadlink): Set errno to ENOMEM explicitly.
15924         * modules/areadlink (Depends-on): Remove malloc-posix.
15925         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15926
15927 2010-06-09  Bruno Haible  <bruno@clisp.org>
15928
15929         Avoid relocwrapper link errors due to gnulib replacement functions.
15930         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15931         * lib/malloca.c: Likewise.
15932         * lib/relocatable.c: Likewise.
15933         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15934         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15935         * lib/setenv.c: Use the system's malloc, realloc functions.
15936         * lib/strerror.c: Use the system's sprintf function.
15937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15938
15939 2010-06-04  Bruno Haible  <bruno@clisp.org>
15940
15941         Prefer documented low-level autoconf macro names.
15942         * m4/lib-link.m4: Use m4_translit instead of translit.
15943         * m4/environ.m4: Likewise.
15944         * m4/mathfunc.m4: Likewise.
15945         * m4/onceonly.m4: Likewise.
15946         * m4/stdint.m4: Likewise.
15947         Suggested by Eric Blake.
15948
15949 2010-06-04  Martin Lambers  <marlam@marlam.de>
15950             Bruno Haible  <bruno@clisp.org>
15951
15952         havelib: Allow library names with '+' characters.
15953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15954         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15955
15956 2010-06-09  Bruno Haible  <bruno@clisp.org>
15957
15958         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15959         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15960         realloc failed.
15961
15962 2010-06-08  Peter Simons  <simons@cryp.to>
15963
15964         maint.mk: make the news-check rule more configurable
15965         * top/maint.mk (news-check-lines-spec): New variable.
15966         (news-check): Use "sed -n 1,10p" in place of "head".
15967
15968 2010-06-07  Jim Meyering  <meyering@redhat.com>
15969
15970         do-release-commit-and-tag: fix typo in --help
15971         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15972
15973         regex: avoid new dead-code warning with gcc-4.6.0
15974         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15975         if-block containing a while-loop.  It's been unused for at least
15976         5 years.
15977
15978 2010-06-05  Bruno Haible  <bruno@clisp.org>
15979
15980         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15981         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15982
15983 2010-06-04  Bruno Haible  <bruno@clisp.org>
15984
15985         Update to GNU gettext 0.18.1.
15986         * modules/gettext (configure.ac): Require gettext infrastructure from
15987         version 0.18.1.
15988
15989 2010-06-03  Bruno Haible  <bruno@clisp.org>
15990
15991         Don't use AC_LIBOBJ with file names in subdirectories.
15992         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15993         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15994         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15995         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15996         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15997         gl_LIBUNISTRING_LIBSOURCE.
15998         (Makefile.am): Augment lib_SOURCES here, conditionally.
15999         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16000
16001 2010-06-03  Bruno Haible  <bruno@clisp.org>
16002
16003         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16004         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16005         expansion does not end with a newline.
16006         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16007         unnecessary newline.
16008
16009 2010-06-03  Bruno Haible  <bruno@clisp.org>
16010
16011         Reduce dependencies.
16012         * tests/test-quotearg.h: New file, extracted from
16013         tests/test-quotearg.c.
16014         * tests/test-quotearg-simple.c: New file, extracted from
16015         tests/test-quotearg.c.
16016         * tests/test-quotearg.c: Don't include <ctype.h>.
16017         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16018         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16019         use_quote_double_quotes, use_quotearg_colon): Moved to
16020         tests/test-quotearg.h.
16021         (results_g, flag_results, custom_quotes, custom_results): Moved
16022         to tests/test-quotearg-simple.c.
16023         (main): Moved the part that does not depend on gettext to
16024         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16025         performed.
16026         * modules/quotearg-simple: New file.
16027         * modules/quotearg-simple-tests: New file.
16028         * modules/quotearg (Depends-on): Add quotearg-simple.
16029         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16030         (Files): Add tests/test-quotearg.h.
16031         Reported by Paolo Bonzini.
16032
16033 2010-06-03  Bruno Haible  <bruno@clisp.org>
16034
16035         Reduce dependencies.
16036         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16037
16038 2010-06-03  Bruno Haible  <bruno@clisp.org>
16039
16040         time: Undefine more broken macros.
16041         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16042         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16043         Reported by Eric Blake.
16044
16045 2010-06-03  Bruno Haible  <bruno@clisp.org>
16046
16047         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16048         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16049         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16050         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16051         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16052         Reported by Ludovic Courtès <ludo@gnu.org>.
16053
16054 2010-06-02  Eric Blake  <eblake@redhat.com>
16055
16056         time: work with mingw + pthreads-win32 library
16057         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16058         if timespec is defined only in pthread.h.
16059         * modules/time (Makefile.am): Substitute it.
16060         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16061         <pthread.h>, when needed.
16062         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16063         from the library.
16064
16065 2010-05-31  Bruno Haible  <bruno@clisp.org>
16066
16067         Avoid expanding two macros in the wrong order.
16068         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16069         gl_LIBUNISTRING if it is defined.
16070         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16071         autoconf >= 2.64.
16072         Reported by Ludovic Courtès <ludo@gnu.org>.
16073
16074 2010-05-27  Jim Meyering  <meyering@redhat.com>
16075
16076         maint.mk: also prohibit "#undef" of always-defined symbols
16077         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16078         Allow more than one space before the symbol name.
16079         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16080         the regexp uses alternation.
16081
16082 2010-05-26  Eric Blake  <eblake@redhat.com>
16083
16084         maint.mk: avoid echo -e
16085         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16086         Convert all uses of echo -* to printf.
16087         Reported by Matthias Bolte.
16088
16089 2010-05-25  Bruno Haible  <bruno@clisp.org>
16090
16091         Update to GNU gettext 0.18, part 2.
16092         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16093         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16094
16095 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16096
16097         Add missing include in test-pwrite.c.
16098         * tests/test-pwrite.c: Include string.h, for strcmp.
16099
16100 2010-05-24  Bruno Haible  <bruno@clisp.org>
16101
16102         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16103
16104 2010-05-24  Bruno Haible  <bruno@clisp.org>
16105
16106         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16107         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16108         iconveh_error argument.
16109         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16110         U_STRCONV_TO_LOCALE.
16111         * lib/unistr/u16-strcoll.c: Likewise.
16112         * lib/unistr/u32-strcoll.c: Likewise.
16113         * modules/unistr/u8-strcoll (Depends-on): Add
16114         uniconv/u8-strconv-to-enc, localcharset. Remove
16115         uniconv/u8-strconv-to-locale.
16116         (configure.ac): Bump version number.
16117         * modules/unistr/u16-strcoll (Depends-on): Add
16118         uniconv/u16-strconv-to-enc, localcharset. Remove
16119         uniconv/u16-strconv-to-locale.
16120         (configure.ac): Bump version number.
16121         * modules/unistr/u32-strcoll (Depends-on): Add
16122         uniconv/u32-strconv-to-enc, localcharset. Remove
16123         uniconv/u32-strconv-to-locale.
16124         (configure.ac): Bump version number.
16125
16126 2010-05-24  Bruno Haible  <bruno@clisp.org>
16127
16128         Avoid a test failure on NetBSD 5.0.
16129         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16130         an iconv() bug.
16131
16132 2010-05-24  Bruno Haible  <bruno@clisp.org>
16133
16134         Adjust #include directive style.
16135         * modules/regex (Includes): Recommend to write <regex.h>.
16136
16137 2010-05-24  Bruno Haible  <bruno@clisp.org>
16138
16139         regex: Don't require alloca.
16140         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16141         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16142         only inside if (0).
16143
16144 2010-05-23  Jim Meyering  <meyering@redhat.com>
16145
16146         test-renameat.c: include <sys/stat.h>
16147         * tests/test-renameat.c: Include <sys/stat.h>; required for
16148         definition of S_IS* macros.
16149
16150 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16151
16152         Update maintainer documentation for 'relocatable-prog' module.
16153         * doc/relocatable-maint.texi: Update.
16154         Comments by Bruno Haible.
16155
16156 2010-05-23  Bruno Haible  <bruno@clisp.org>
16157
16158         git-merge-changelog: Enable --split-merged-entry by default.
16159         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16160         (usage): Don't mention this option any more.
16161         Reported by Ralf Wildenhues.
16162
16163 2010-05-23  Jim Meyering  <meyering@redhat.com>
16164
16165         test-pwrite: do not leave behind a test file named "out"
16166         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16167         The trivial-looking use of init.sh is really necessary.
16168         It ensures that the temporary file, "out", is created in
16169         a temporary directory, and removed upon termination.
16170         * tests/test-pwrite.sh: Re-add file.
16171         * modules/pwrite-tests: Reference it.
16172
16173 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16174
16175         Fix output redirection buglet in init.sh.
16176         * tests/init.sh: Fix redirection of stderr.
16177
16178 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16179
16180         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16181
16182 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16183
16184         * modules/valgrind-tests: New file.
16185         * m4/valgrind-tests.m4: New file.
16186         * doc/valgrind-tests.texi: New file.
16187         * doc/gnulib.texi (Running self-tests under valgrind): New
16188         section.
16189
16190 2010-05-19  Bruno Haible  <bruno@clisp.org>
16191
16192         Clean up dead code in recent commit.
16193         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16194         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16195         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16196         Suggested by Paolo Bonzini.
16197
16198 2010-05-19  Bruno Haible  <bruno@clisp.org>
16199
16200         Avoid valgrind error reports from libunistring.
16201         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16202         * modules/libunistring (Files): Add it.
16203         * modules/libunistring-optional (Files): Likewise.
16204
16205 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16206             Bruno Haible  <bruno@clisp.org>
16207
16208         New module 'libunistring-optional'.
16209         * modules/libunistring-optional: New file.
16210         * m4/libunistring-base.m4: New file.
16211         * m4/libunistring-optional.m4: New file.
16212         * lib/unicase.in.h: Renamed from lib/unicase.h.
16213         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16214         * lib/unictype.in.h: Renamed from lib/unictype.h.
16215         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16216         * lib/uniname.in.h: Renamed from lib/uniname.h.
16217         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16218         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16219         * lib/unistr.in.h: Renamed from lib/unistr.h.
16220         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16221         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16222         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16223         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16224         gl_LIBUNISTRING. If the library was found, determine the installed
16225         version and set LIBUNISTRING_VERSION.
16226         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16227         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16228         handle a configuration option --with-included-libunistring.
16229         * modules/libunistring (Files): Add m4/absolute-header.m4.
16230         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16231         Add m4/libunistring-base.m4.
16232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16233         (Makefile.am): Build unicase.h from unicase.in.h.
16234         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16235         Add m4/libunistring-base.m4.
16236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16237         (Makefile.am): Build uniconv.h from uniconv.in.h.
16238         * modules/unictype/base (Files): Use unictype.in.h instead of
16239         unictype.h. Add m4/libunistring-base.m4.
16240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16241         (Makefile.am): Build unictype.h from unictype.in.h.
16242         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16243         Add m4/libunistring-base.m4.
16244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16245         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16246         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16247         Add m4/libunistring-base.m4.
16248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16249         (Makefile.am): Build uniname.h from uniname.in.h.
16250         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16251         Add m4/libunistring-base.m4.
16252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16253         (Makefile.am): Build uninorm.h from uninorm.in.h.
16254         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16255         unistdio.h. Add m4/libunistring-base.m4.
16256         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16257         (Makefile.am): Build unistdio.h from unistdio.in.h.
16258         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16259         Add m4/libunistring-base.m4.
16260         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16261         (Makefile.am): Build unistr.h from unistr.in.h.
16262         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16263         Add m4/libunistring-base.m4.
16264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16265         (Makefile.am): Build unitypes.h from unitypes.in.h.
16266         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16267         Add m4/libunistring-base.m4.
16268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16269         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16270         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16271         uniwidth.h. Add m4/libunistring-base.m4.
16272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16273         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16274         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16275         instead of augmenting lib_SOURCES.
16276         * modules/unicase/empty-suffix-context: Likewise.
16277         * modules/unicase/locale-language: Likewise.
16278         * modules/unicase/tolower: Likewise.
16279         * modules/unicase/totitle: Likewise.
16280         * modules/unicase/toupper: Likewise.
16281         * modules/unicase/u8-casecmp: Likewise.
16282         * modules/unicase/u8-casecoll: Likewise.
16283         * modules/unicase/u8-casefold: Likewise.
16284         * modules/unicase/u8-casexfrm: Likewise.
16285         * modules/unicase/u8-ct-casefold: Likewise.
16286         * modules/unicase/u8-ct-tolower: Likewise.
16287         * modules/unicase/u8-ct-totitle: Likewise.
16288         * modules/unicase/u8-ct-toupper: Likewise.
16289         * modules/unicase/u8-is-cased: Likewise.
16290         * modules/unicase/u8-is-casefolded: Likewise.
16291         * modules/unicase/u8-is-lowercase: Likewise.
16292         * modules/unicase/u8-is-titlecase: Likewise.
16293         * modules/unicase/u8-is-uppercase: Likewise.
16294         * modules/unicase/u8-prefix-context: Likewise.
16295         * modules/unicase/u8-suffix-context: Likewise.
16296         * modules/unicase/u8-tolower: Likewise.
16297         * modules/unicase/u8-totitle: Likewise.
16298         * modules/unicase/u8-toupper: Likewise.
16299         * modules/unicase/u16-casecmp: Likewise.
16300         * modules/unicase/u16-casecoll: Likewise.
16301         * modules/unicase/u16-casefold: Likewise.
16302         * modules/unicase/u16-casexfrm: Likewise.
16303         * modules/unicase/u16-ct-casefold: Likewise.
16304         * modules/unicase/u16-ct-tolower: Likewise.
16305         * modules/unicase/u16-ct-totitle: Likewise.
16306         * modules/unicase/u16-ct-toupper: Likewise.
16307         * modules/unicase/u16-is-cased: Likewise.
16308         * modules/unicase/u16-is-casefolded: Likewise.
16309         * modules/unicase/u16-is-lowercase: Likewise.
16310         * modules/unicase/u16-is-titlecase: Likewise.
16311         * modules/unicase/u16-is-uppercase: Likewise.
16312         * modules/unicase/u16-prefix-context: Likewise.
16313         * modules/unicase/u16-suffix-context: Likewise.
16314         * modules/unicase/u16-tolower: Likewise.
16315         * modules/unicase/u16-totitle: Likewise.
16316         * modules/unicase/u16-toupper: Likewise.
16317         * modules/unicase/u32-casecmp: Likewise.
16318         * modules/unicase/u32-casecoll: Likewise.
16319         * modules/unicase/u32-casefold: Likewise.
16320         * modules/unicase/u32-casexfrm: Likewise.
16321         * modules/unicase/u32-ct-casefold: Likewise.
16322         * modules/unicase/u32-ct-tolower: Likewise.
16323         * modules/unicase/u32-ct-totitle: Likewise.
16324         * modules/unicase/u32-ct-toupper: Likewise.
16325         * modules/unicase/u32-is-cased: Likewise.
16326         * modules/unicase/u32-is-casefolded: Likewise.
16327         * modules/unicase/u32-is-lowercase: Likewise.
16328         * modules/unicase/u32-is-titlecase: Likewise.
16329         * modules/unicase/u32-is-uppercase: Likewise.
16330         * modules/unicase/u32-prefix-context: Likewise.
16331         * modules/unicase/u32-suffix-context: Likewise.
16332         * modules/unicase/u32-tolower: Likewise.
16333         * modules/unicase/u32-totitle: Likewise.
16334         * modules/unicase/u32-toupper: Likewise.
16335         * modules/unicase/ulc-casecmp: Likewise.
16336         * modules/unicase/ulc-casecoll: Likewise.
16337         * modules/unicase/ulc-casexfrm: Likewise.
16338         * modules/uniconv/u8-conv-from-enc: Likewise.
16339         * modules/uniconv/u8-conv-to-enc: Likewise.
16340         * modules/uniconv/u8-strconv-from-enc: Likewise.
16341         * modules/uniconv/u8-strconv-from-locale: Likewise.
16342         * modules/uniconv/u8-strconv-to-enc: Likewise.
16343         * modules/uniconv/u8-strconv-to-locale: Likewise.
16344         * modules/uniconv/u16-conv-from-enc: Likewise.
16345         * modules/uniconv/u16-conv-to-enc: Likewise.
16346         * modules/uniconv/u16-strconv-from-enc: Likewise.
16347         * modules/uniconv/u16-strconv-from-locale: Likewise.
16348         * modules/uniconv/u16-strconv-to-enc: Likewise.
16349         * modules/uniconv/u16-strconv-to-locale: Likewise.
16350         * modules/uniconv/u32-conv-from-enc: Likewise.
16351         * modules/uniconv/u32-conv-to-enc: Likewise.
16352         * modules/uniconv/u32-strconv-from-enc: Likewise.
16353         * modules/uniconv/u32-strconv-from-locale: Likewise.
16354         * modules/uniconv/u32-strconv-to-enc: Likewise.
16355         * modules/uniconv/u32-strconv-to-locale: Likewise.
16356         * modules/unictype/bidicategory-byname: Likewise.
16357         * modules/unictype/bidicategory-name: Likewise.
16358         * modules/unictype/bidicategory-of: Likewise.
16359         * modules/unictype/bidicategory-test: Likewise.
16360         * modules/unictype/block-list: Likewise.
16361         * modules/unictype/block-test: Likewise.
16362         * modules/unictype/category-C: Likewise.
16363         * modules/unictype/category-Cc: Likewise.
16364         * modules/unictype/category-Cf: Likewise.
16365         * modules/unictype/category-Cn: Likewise.
16366         * modules/unictype/category-Co: Likewise.
16367         * modules/unictype/category-Cs: Likewise.
16368         * modules/unictype/category-L: Likewise.
16369         * modules/unictype/category-Ll: Likewise.
16370         * modules/unictype/category-Lm: Likewise.
16371         * modules/unictype/category-Lo: Likewise.
16372         * modules/unictype/category-Lt: Likewise.
16373         * modules/unictype/category-Lu: Likewise.
16374         * modules/unictype/category-M: Likewise.
16375         * modules/unictype/category-Mc: Likewise.
16376         * modules/unictype/category-Me: Likewise.
16377         * modules/unictype/category-Mn: Likewise.
16378         * modules/unictype/category-N: Likewise.
16379         * modules/unictype/category-Nd: Likewise.
16380         * modules/unictype/category-Nl: Likewise.
16381         * modules/unictype/category-No: Likewise.
16382         * modules/unictype/category-P: Likewise.
16383         * modules/unictype/category-Pc: Likewise.
16384         * modules/unictype/category-Pd: Likewise.
16385         * modules/unictype/category-Pe: Likewise.
16386         * modules/unictype/category-Pf: Likewise.
16387         * modules/unictype/category-Pi: Likewise.
16388         * modules/unictype/category-Po: Likewise.
16389         * modules/unictype/category-Ps: Likewise.
16390         * modules/unictype/category-S: Likewise.
16391         * modules/unictype/category-Sc: Likewise.
16392         * modules/unictype/category-Sk: Likewise.
16393         * modules/unictype/category-Sm: Likewise.
16394         * modules/unictype/category-So: Likewise.
16395         * modules/unictype/category-Z: Likewise.
16396         * modules/unictype/category-Zl: Likewise.
16397         * modules/unictype/category-Zp: Likewise.
16398         * modules/unictype/category-Zs: Likewise.
16399         * modules/unictype/category-and: Likewise.
16400         * modules/unictype/category-and-not: Likewise.
16401         * modules/unictype/category-byname: Likewise.
16402         * modules/unictype/category-name: Likewise.
16403         * modules/unictype/category-none: Likewise.
16404         * modules/unictype/category-of: Likewise.
16405         * modules/unictype/category-or: Likewise.
16406         * modules/unictype/category-test: Likewise.
16407         * modules/unictype/combining-class: Likewise.
16408         * modules/unictype/ctype-alnum: Likewise.
16409         * modules/unictype/ctype-alpha: Likewise.
16410         * modules/unictype/ctype-blank: Likewise.
16411         * modules/unictype/ctype-cntrl: Likewise.
16412         * modules/unictype/ctype-digit: Likewise.
16413         * modules/unictype/ctype-graph: Likewise.
16414         * modules/unictype/ctype-lower: Likewise.
16415         * modules/unictype/ctype-print: Likewise.
16416         * modules/unictype/ctype-punct: Likewise.
16417         * modules/unictype/ctype-space: Likewise.
16418         * modules/unictype/ctype-upper: Likewise.
16419         * modules/unictype/ctype-xdigit: Likewise.
16420         * modules/unictype/decimal-digit: Likewise.
16421         * modules/unictype/digit: Likewise.
16422         * modules/unictype/mirror: Likewise.
16423         * modules/unictype/numeric: Likewise.
16424         * modules/unictype/property-alphabetic: Likewise.
16425         * modules/unictype/property-ascii-hex-digit: Likewise.
16426         * modules/unictype/property-bidi-arabic-digit: Likewise.
16427         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16428         * modules/unictype/property-bidi-block-separator: Likewise.
16429         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16430         * modules/unictype/property-bidi-common-separator: Likewise.
16431         * modules/unictype/property-bidi-control: Likewise.
16432         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16433         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16434         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16435         * modules/unictype/property-bidi-european-digit: Likewise.
16436         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16437         * modules/unictype/property-bidi-left-to-right: Likewise.
16438         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16439         * modules/unictype/property-bidi-other-neutral: Likewise.
16440         * modules/unictype/property-bidi-pdf: Likewise.
16441         * modules/unictype/property-bidi-segment-separator: Likewise.
16442         * modules/unictype/property-bidi-whitespace: Likewise.
16443         * modules/unictype/property-byname: Likewise.
16444         * modules/unictype/property-combining: Likewise.
16445         * modules/unictype/property-composite: Likewise.
16446         * modules/unictype/property-currency-symbol: Likewise.
16447         * modules/unictype/property-dash: Likewise.
16448         * modules/unictype/property-decimal-digit: Likewise.
16449         * modules/unictype/property-default-ignorable-code-point: Likewise.
16450         * modules/unictype/property-deprecated: Likewise.
16451         * modules/unictype/property-diacritic: Likewise.
16452         * modules/unictype/property-extender: Likewise.
16453         * modules/unictype/property-format-control: Likewise.
16454         * modules/unictype/property-grapheme-base: Likewise.
16455         * modules/unictype/property-grapheme-extend: Likewise.
16456         * modules/unictype/property-grapheme-link: Likewise.
16457         * modules/unictype/property-hex-digit: Likewise.
16458         * modules/unictype/property-hyphen: Likewise.
16459         * modules/unictype/property-id-continue: Likewise.
16460         * modules/unictype/property-id-start: Likewise.
16461         * modules/unictype/property-ideographic: Likewise.
16462         * modules/unictype/property-ids-binary-operator: Likewise.
16463         * modules/unictype/property-ids-trinary-operator: Likewise.
16464         * modules/unictype/property-ignorable-control: Likewise.
16465         * modules/unictype/property-iso-control: Likewise.
16466         * modules/unictype/property-join-control: Likewise.
16467         * modules/unictype/property-left-of-pair: Likewise.
16468         * modules/unictype/property-line-separator: Likewise.
16469         * modules/unictype/property-logical-order-exception: Likewise.
16470         * modules/unictype/property-lowercase: Likewise.
16471         * modules/unictype/property-math: Likewise.
16472         * modules/unictype/property-non-break: Likewise.
16473         * modules/unictype/property-not-a-character: Likewise.
16474         * modules/unictype/property-numeric: Likewise.
16475         * modules/unictype/property-other-alphabetic: Likewise.
16476         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16477         * modules/unictype/property-other-grapheme-extend: Likewise.
16478         * modules/unictype/property-other-id-continue: Likewise.
16479         * modules/unictype/property-other-id-start: Likewise.
16480         * modules/unictype/property-other-lowercase: Likewise.
16481         * modules/unictype/property-other-math: Likewise.
16482         * modules/unictype/property-other-uppercase: Likewise.
16483         * modules/unictype/property-paired-punctuation: Likewise.
16484         * modules/unictype/property-paragraph-separator: Likewise.
16485         * modules/unictype/property-pattern-syntax: Likewise.
16486         * modules/unictype/property-pattern-white-space: Likewise.
16487         * modules/unictype/property-private-use: Likewise.
16488         * modules/unictype/property-punctuation: Likewise.
16489         * modules/unictype/property-quotation-mark: Likewise.
16490         * modules/unictype/property-radical: Likewise.
16491         * modules/unictype/property-sentence-terminal: Likewise.
16492         * modules/unictype/property-soft-dotted: Likewise.
16493         * modules/unictype/property-space: Likewise.
16494         * modules/unictype/property-terminal-punctuation: Likewise.
16495         * modules/unictype/property-test: Likewise.
16496         * modules/unictype/property-titlecase: Likewise.
16497         * modules/unictype/property-unassigned-code-value: Likewise.
16498         * modules/unictype/property-unified-ideograph: Likewise.
16499         * modules/unictype/property-uppercase: Likewise.
16500         * modules/unictype/property-variation-selector: Likewise.
16501         * modules/unictype/property-white-space: Likewise.
16502         * modules/unictype/property-xid-continue: Likewise.
16503         * modules/unictype/property-xid-start: Likewise.
16504         * modules/unictype/property-zero-width: Likewise.
16505         * modules/unictype/scripts: Likewise.
16506         * modules/unictype/syntax-c-ident: Likewise.
16507         * modules/unictype/syntax-c-whitespace: Likewise.
16508         * modules/unictype/syntax-java-ident: Likewise.
16509         * modules/unictype/syntax-java-whitespace: Likewise.
16510         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16511         * modules/unilbrk/u8-width-linebreaks: Likewise.
16512         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16513         * modules/unilbrk/u16-width-linebreaks: Likewise.
16514         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16515         * modules/unilbrk/u32-width-linebreaks: Likewise.
16516         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16517         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16518         * modules/uniname/uniname: Likewise.
16519         * modules/uninorm/canonical-decomposition: Likewise.
16520         * modules/uninorm/composition: Likewise.
16521         * modules/uninorm/decomposing-form: Likewise.
16522         * modules/uninorm/decomposition: Likewise.
16523         * modules/uninorm/filter: Likewise.
16524         * modules/uninorm/nfc: Likewise.
16525         * modules/uninorm/nfd: Likewise.
16526         * modules/uninorm/nfkc: Likewise.
16527         * modules/uninorm/nfkd: Likewise.
16528         * modules/uninorm/u8-normalize: Likewise.
16529         * modules/uninorm/u8-normcmp: Likewise.
16530         * modules/uninorm/u8-normcoll: Likewise.
16531         * modules/uninorm/u8-normxfrm: Likewise.
16532         * modules/uninorm/u16-normalize: Likewise.
16533         * modules/uninorm/u16-normcmp: Likewise.
16534         * modules/uninorm/u16-normcoll: Likewise.
16535         * modules/uninorm/u16-normxfrm: Likewise.
16536         * modules/uninorm/u32-normalize: Likewise.
16537         * modules/uninorm/u32-normcmp: Likewise.
16538         * modules/uninorm/u32-normcoll: Likewise.
16539         * modules/uninorm/u32-normxfrm: Likewise.
16540         * modules/unistdio/u8-asnprintf: Likewise.
16541         * modules/unistdio/u8-asprintf: Likewise.
16542         * modules/unistdio/u8-snprintf: Likewise.
16543         * modules/unistdio/u8-sprintf: Likewise.
16544         * modules/unistdio/u8-u8-asnprintf: Likewise.
16545         * modules/unistdio/u8-u8-asprintf: Likewise.
16546         * modules/unistdio/u8-u8-snprintf: Likewise.
16547         * modules/unistdio/u8-u8-sprintf: Likewise.
16548         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16549         * modules/unistdio/u8-u8-vasprintf: Likewise.
16550         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16551         * modules/unistdio/u8-u8-vsprintf: Likewise.
16552         * modules/unistdio/u8-vasnprintf: Likewise.
16553         * modules/unistdio/u8-vasprintf: Likewise.
16554         * modules/unistdio/u8-vsnprintf: Likewise.
16555         * modules/unistdio/u8-vsprintf: Likewise.
16556         * modules/unistdio/u16-asnprintf: Likewise.
16557         * modules/unistdio/u16-asprintf: Likewise.
16558         * modules/unistdio/u16-snprintf: Likewise.
16559         * modules/unistdio/u16-sprintf: Likewise.
16560         * modules/unistdio/u16-u16-asnprintf: Likewise.
16561         * modules/unistdio/u16-u16-asprintf: Likewise.
16562         * modules/unistdio/u16-u16-snprintf: Likewise.
16563         * modules/unistdio/u16-u16-sprintf: Likewise.
16564         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16565         * modules/unistdio/u16-u16-vasprintf: Likewise.
16566         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16567         * modules/unistdio/u16-u16-vsprintf: Likewise.
16568         * modules/unistdio/u16-vasnprintf: Likewise.
16569         * modules/unistdio/u16-vasprintf: Likewise.
16570         * modules/unistdio/u16-vsnprintf: Likewise.
16571         * modules/unistdio/u16-vsprintf: Likewise.
16572         * modules/unistdio/u32-asnprintf: Likewise.
16573         * modules/unistdio/u32-asprintf: Likewise.
16574         * modules/unistdio/u32-snprintf: Likewise.
16575         * modules/unistdio/u32-sprintf: Likewise.
16576         * modules/unistdio/u32-u32-asnprintf: Likewise.
16577         * modules/unistdio/u32-u32-asprintf: Likewise.
16578         * modules/unistdio/u32-u32-snprintf: Likewise.
16579         * modules/unistdio/u32-u32-sprintf: Likewise.
16580         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16581         * modules/unistdio/u32-u32-vasprintf: Likewise.
16582         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16583         * modules/unistdio/u32-u32-vsprintf: Likewise.
16584         * modules/unistdio/u32-vasnprintf: Likewise.
16585         * modules/unistdio/u32-vasprintf: Likewise.
16586         * modules/unistdio/u32-vsnprintf: Likewise.
16587         * modules/unistdio/u32-vsprintf: Likewise.
16588         * modules/unistdio/ulc-asnprintf: Likewise.
16589         * modules/unistdio/ulc-asprintf: Likewise.
16590         * modules/unistdio/ulc-fprintf: Likewise.
16591         * modules/unistdio/ulc-snprintf: Likewise.
16592         * modules/unistdio/ulc-sprintf: Likewise.
16593         * modules/unistdio/ulc-vasnprintf: Likewise.
16594         * modules/unistdio/ulc-vasprintf: Likewise.
16595         * modules/unistdio/ulc-vfprintf: Likewise.
16596         * modules/unistdio/ulc-vsnprintf: Likewise.
16597         * modules/unistdio/ulc-vsprintf: Likewise.
16598         * modules/unistr/u8-check: Likewise.
16599         * modules/unistr/u8-chr: Likewise.
16600         * modules/unistr/u8-cmp: Likewise.
16601         * modules/unistr/u8-cmp2: Likewise.
16602         * modules/unistr/u8-cpy: Likewise.
16603         * modules/unistr/u8-cpy-alloc: Likewise.
16604         * modules/unistr/u8-endswith: Likewise.
16605         * modules/unistr/u8-mblen: Likewise.
16606         * modules/unistr/u8-mbsnlen: Likewise.
16607         * modules/unistr/u8-mbtouc: Likewise.
16608         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16609         * modules/unistr/u8-mbtoucr: Likewise.
16610         * modules/unistr/u8-move: Likewise.
16611         * modules/unistr/u8-next: Likewise.
16612         * modules/unistr/u8-prev: Likewise.
16613         * modules/unistr/u8-set: Likewise.
16614         * modules/unistr/u8-startswith: Likewise.
16615         * modules/unistr/u8-stpcpy: Likewise.
16616         * modules/unistr/u8-stpncpy: Likewise.
16617         * modules/unistr/u8-strcat: Likewise.
16618         * modules/unistr/u8-strchr: Likewise.
16619         * modules/unistr/u8-strcmp: Likewise.
16620         * modules/unistr/u8-strcoll: Likewise.
16621         * modules/unistr/u8-strcpy: Likewise.
16622         * modules/unistr/u8-strcspn: Likewise.
16623         * modules/unistr/u8-strdup: Likewise.
16624         * modules/unistr/u8-strlen: Likewise.
16625         * modules/unistr/u8-strmblen: Likewise.
16626         * modules/unistr/u8-strmbtouc: Likewise.
16627         * modules/unistr/u8-strncat: Likewise.
16628         * modules/unistr/u8-strncmp: Likewise.
16629         * modules/unistr/u8-strncpy: Likewise.
16630         * modules/unistr/u8-strnlen: Likewise.
16631         * modules/unistr/u8-strpbrk: Likewise.
16632         * modules/unistr/u8-strrchr: Likewise.
16633         * modules/unistr/u8-strspn: Likewise.
16634         * modules/unistr/u8-strstr: Likewise.
16635         * modules/unistr/u8-strtok: Likewise.
16636         * modules/unistr/u8-to-u16: Likewise.
16637         * modules/unistr/u8-to-u32: Likewise.
16638         * modules/unistr/u8-uctomb: Likewise.
16639         * modules/unistr/u16-check: Likewise.
16640         * modules/unistr/u16-chr: Likewise.
16641         * modules/unistr/u16-cmp: Likewise.
16642         * modules/unistr/u16-cmp2: Likewise.
16643         * modules/unistr/u16-cpy: Likewise.
16644         * modules/unistr/u16-cpy-alloc: Likewise.
16645         * modules/unistr/u16-endswith: Likewise.
16646         * modules/unistr/u16-mblen: Likewise.
16647         * modules/unistr/u16-mbsnlen: Likewise.
16648         * modules/unistr/u16-mbtouc: Likewise.
16649         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16650         * modules/unistr/u16-mbtoucr: Likewise.
16651         * modules/unistr/u16-move: Likewise.
16652         * modules/unistr/u16-next: Likewise.
16653         * modules/unistr/u16-prev: Likewise.
16654         * modules/unistr/u16-set: Likewise.
16655         * modules/unistr/u16-startswith: Likewise.
16656         * modules/unistr/u16-stpcpy: Likewise.
16657         * modules/unistr/u16-stpncpy: Likewise.
16658         * modules/unistr/u16-strcat: Likewise.
16659         * modules/unistr/u16-strchr: Likewise.
16660         * modules/unistr/u16-strcmp: Likewise.
16661         * modules/unistr/u16-strcoll: Likewise.
16662         * modules/unistr/u16-strcpy: Likewise.
16663         * modules/unistr/u16-strcspn: Likewise.
16664         * modules/unistr/u16-strdup: Likewise.
16665         * modules/unistr/u16-strlen: Likewise.
16666         * modules/unistr/u16-strmblen: Likewise.
16667         * modules/unistr/u16-strmbtouc: Likewise.
16668         * modules/unistr/u16-strncat: Likewise.
16669         * modules/unistr/u16-strncmp: Likewise.
16670         * modules/unistr/u16-strncpy: Likewise.
16671         * modules/unistr/u16-strnlen: Likewise.
16672         * modules/unistr/u16-strpbrk: Likewise.
16673         * modules/unistr/u16-strrchr: Likewise.
16674         * modules/unistr/u16-strspn: Likewise.
16675         * modules/unistr/u16-strstr: Likewise.
16676         * modules/unistr/u16-strtok: Likewise.
16677         * modules/unistr/u16-to-u32: Likewise.
16678         * modules/unistr/u16-to-u8: Likewise.
16679         * modules/unistr/u16-uctomb: Likewise.
16680         * modules/unistr/u32-check: Likewise.
16681         * modules/unistr/u32-chr: Likewise.
16682         * modules/unistr/u32-cmp: Likewise.
16683         * modules/unistr/u32-cmp2: Likewise.
16684         * modules/unistr/u32-cpy: Likewise.
16685         * modules/unistr/u32-cpy-alloc: Likewise.
16686         * modules/unistr/u32-endswith: Likewise.
16687         * modules/unistr/u32-mblen: Likewise.
16688         * modules/unistr/u32-mbsnlen: Likewise.
16689         * modules/unistr/u32-mbtouc: Likewise.
16690         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16691         * modules/unistr/u32-mbtoucr: Likewise.
16692         * modules/unistr/u32-move: Likewise.
16693         * modules/unistr/u32-next: Likewise.
16694         * modules/unistr/u32-prev: Likewise.
16695         * modules/unistr/u32-set: Likewise.
16696         * modules/unistr/u32-startswith: Likewise.
16697         * modules/unistr/u32-stpcpy: Likewise.
16698         * modules/unistr/u32-stpncpy: Likewise.
16699         * modules/unistr/u32-strcat: Likewise.
16700         * modules/unistr/u32-strchr: Likewise.
16701         * modules/unistr/u32-strcmp: Likewise.
16702         * modules/unistr/u32-strcoll: Likewise.
16703         * modules/unistr/u32-strcpy: Likewise.
16704         * modules/unistr/u32-strcspn: Likewise.
16705         * modules/unistr/u32-strdup: Likewise.
16706         * modules/unistr/u32-strlen: Likewise.
16707         * modules/unistr/u32-strmblen: Likewise.
16708         * modules/unistr/u32-strmbtouc: Likewise.
16709         * modules/unistr/u32-strncat: Likewise.
16710         * modules/unistr/u32-strncmp: Likewise.
16711         * modules/unistr/u32-strncpy: Likewise.
16712         * modules/unistr/u32-strnlen: Likewise.
16713         * modules/unistr/u32-strpbrk: Likewise.
16714         * modules/unistr/u32-strrchr: Likewise.
16715         * modules/unistr/u32-strspn: Likewise.
16716         * modules/unistr/u32-strstr: Likewise.
16717         * modules/unistr/u32-strtok: Likewise.
16718         * modules/unistr/u32-to-u16: Likewise.
16719         * modules/unistr/u32-to-u8: Likewise.
16720         * modules/unistr/u32-uctomb: Likewise.
16721         * modules/uniwbrk/u8-wordbreaks: Likewise.
16722         * modules/uniwbrk/u16-wordbreaks: Likewise.
16723         * modules/uniwbrk/u32-wordbreaks: Likewise.
16724         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16725         * modules/uniwbrk/wordbreak-property: Likewise.
16726         * modules/uniwidth/u8-strwidth: Likewise.
16727         * modules/uniwidth/u8-width: Likewise.
16728         * modules/uniwidth/u16-strwidth: Likewise.
16729         * modules/uniwidth/u16-width: Likewise.
16730         * modules/uniwidth/u32-strwidth: Likewise.
16731         * modules/uniwidth/u32-width: Likewise.
16732         * modules/uniwidth/width: Likewise.
16733         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16734         with $(LIBUNISTRING).
16735         * modules/unicase/ignorable-tests: Likewise.
16736         * modules/unicase/locale-language-tests: Likewise.
16737         * modules/unicase/tolower-tests: Likewise.
16738         * modules/unicase/totitle-tests: Likewise.
16739         * modules/unicase/toupper-tests: Likewise.
16740         * modules/unicase/u8-casecmp-tests: Likewise.
16741         * modules/unicase/u8-casecoll-tests: Likewise.
16742         * modules/unicase/u8-casefold-tests: Likewise.
16743         * modules/unicase/u8-is-cased-tests: Likewise.
16744         * modules/unicase/u8-is-casefolded-tests: Likewise.
16745         * modules/unicase/u8-is-lowercase-tests: Likewise.
16746         * modules/unicase/u8-is-titlecase-tests: Likewise.
16747         * modules/unicase/u8-is-uppercase-tests: Likewise.
16748         * modules/unicase/u8-tolower-tests: Likewise.
16749         * modules/unicase/u8-totitle-tests: Likewise.
16750         * modules/unicase/u8-toupper-tests: Likewise.
16751         * modules/unicase/u16-casecmp-tests: Likewise.
16752         * modules/unicase/u16-casecoll-tests: Likewise.
16753         * modules/unicase/u16-casefold-tests: Likewise.
16754         * modules/unicase/u16-is-cased-tests: Likewise.
16755         * modules/unicase/u16-is-casefolded-tests: Likewise.
16756         * modules/unicase/u16-is-lowercase-tests: Likewise.
16757         * modules/unicase/u16-is-titlecase-tests: Likewise.
16758         * modules/unicase/u16-is-uppercase-tests: Likewise.
16759         * modules/unicase/u16-tolower-tests: Likewise.
16760         * modules/unicase/u16-totitle-tests: Likewise.
16761         * modules/unicase/u16-toupper-tests: Likewise.
16762         * modules/unicase/u32-casecmp-tests: Likewise.
16763         * modules/unicase/u32-casecoll-tests: Likewise.
16764         * modules/unicase/u32-casefold-tests: Likewise.
16765         * modules/unicase/u32-is-cased-tests: Likewise.
16766         * modules/unicase/u32-is-casefolded-tests: Likewise.
16767         * modules/unicase/u32-is-lowercase-tests: Likewise.
16768         * modules/unicase/u32-is-titlecase-tests: Likewise.
16769         * modules/unicase/u32-is-uppercase-tests: Likewise.
16770         * modules/unicase/u32-tolower-tests: Likewise.
16771         * modules/unicase/u32-totitle-tests: Likewise.
16772         * modules/unicase/u32-toupper-tests: Likewise.
16773         * modules/unicase/ulc-casecmp-tests: Likewise.
16774         * modules/unicase/ulc-casecoll-tests: Likewise.
16775         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16776         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16777         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16778         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16779         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16780         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16781         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16782         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16783         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16784         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16785         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16786         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16787         * modules/unictype/bidicategory-byname-tests: Likewise.
16788         * modules/unictype/bidicategory-name-tests: Likewise.
16789         * modules/unictype/bidicategory-of-tests: Likewise.
16790         * modules/unictype/bidicategory-test-tests: Likewise.
16791         * modules/unictype/block-list-tests: Likewise.
16792         * modules/unictype/block-of-tests: Likewise.
16793         * modules/unictype/block-test-tests: Likewise.
16794         * modules/unictype/category-C-tests: Likewise.
16795         * modules/unictype/category-Cc-tests: Likewise.
16796         * modules/unictype/category-Cf-tests: Likewise.
16797         * modules/unictype/category-Cn-tests: Likewise.
16798         * modules/unictype/category-Co-tests: Likewise.
16799         * modules/unictype/category-Cs-tests: Likewise.
16800         * modules/unictype/category-L-tests: Likewise.
16801         * modules/unictype/category-Ll-tests: Likewise.
16802         * modules/unictype/category-Lm-tests: Likewise.
16803         * modules/unictype/category-Lo-tests: Likewise.
16804         * modules/unictype/category-Lt-tests: Likewise.
16805         * modules/unictype/category-Lu-tests: Likewise.
16806         * modules/unictype/category-M-tests: Likewise.
16807         * modules/unictype/category-Mc-tests: Likewise.
16808         * modules/unictype/category-Me-tests: Likewise.
16809         * modules/unictype/category-Mn-tests: Likewise.
16810         * modules/unictype/category-N-tests: Likewise.
16811         * modules/unictype/category-Nd-tests: Likewise.
16812         * modules/unictype/category-Nl-tests: Likewise.
16813         * modules/unictype/category-No-tests: Likewise.
16814         * modules/unictype/category-P-tests: Likewise.
16815         * modules/unictype/category-Pc-tests: Likewise.
16816         * modules/unictype/category-Pd-tests: Likewise.
16817         * modules/unictype/category-Pe-tests: Likewise.
16818         * modules/unictype/category-Pf-tests: Likewise.
16819         * modules/unictype/category-Pi-tests: Likewise.
16820         * modules/unictype/category-Po-tests: Likewise.
16821         * modules/unictype/category-Ps-tests: Likewise.
16822         * modules/unictype/category-S-tests: Likewise.
16823         * modules/unictype/category-Sc-tests: Likewise.
16824         * modules/unictype/category-Sk-tests: Likewise.
16825         * modules/unictype/category-Sm-tests: Likewise.
16826         * modules/unictype/category-So-tests: Likewise.
16827         * modules/unictype/category-Z-tests: Likewise.
16828         * modules/unictype/category-Zl-tests: Likewise.
16829         * modules/unictype/category-Zp-tests: Likewise.
16830         * modules/unictype/category-Zs-tests: Likewise.
16831         * modules/unictype/category-and-not-tests: Likewise.
16832         * modules/unictype/category-and-tests: Likewise.
16833         * modules/unictype/category-byname-tests: Likewise.
16834         * modules/unictype/category-name-tests: Likewise.
16835         * modules/unictype/category-none-tests: Likewise.
16836         * modules/unictype/category-of-tests: Likewise.
16837         * modules/unictype/category-or-tests: Likewise.
16838         * modules/unictype/category-test-withtable-tests: Likewise.
16839         * modules/unictype/combining-class-tests: Likewise.
16840         * modules/unictype/ctype-alnum-tests: Likewise.
16841         * modules/unictype/ctype-alpha-tests: Likewise.
16842         * modules/unictype/ctype-blank-tests: Likewise.
16843         * modules/unictype/ctype-cntrl-tests: Likewise.
16844         * modules/unictype/ctype-digit-tests: Likewise.
16845         * modules/unictype/ctype-graph-tests: Likewise.
16846         * modules/unictype/ctype-lower-tests: Likewise.
16847         * modules/unictype/ctype-print-tests: Likewise.
16848         * modules/unictype/ctype-punct-tests: Likewise.
16849         * modules/unictype/ctype-space-tests: Likewise.
16850         * modules/unictype/ctype-upper-tests: Likewise.
16851         * modules/unictype/ctype-xdigit-tests: Likewise.
16852         * modules/unictype/decimal-digit-tests: Likewise.
16853         * modules/unictype/digit-tests: Likewise.
16854         * modules/unictype/mirror-tests: Likewise.
16855         * modules/unictype/numeric-tests: Likewise.
16856         * modules/unictype/property-alphabetic-tests: Likewise.
16857         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16858         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16859         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16860         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16861         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16862         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16863         * modules/unictype/property-bidi-control-tests: Likewise.
16864         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16865         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16866         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16867         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16868         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16869         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16870         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16871         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16872         * modules/unictype/property-bidi-pdf-tests: Likewise.
16873         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16874         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16875         * modules/unictype/property-byname-tests: Likewise.
16876         * modules/unictype/property-combining-tests: Likewise.
16877         * modules/unictype/property-composite-tests: Likewise.
16878         * modules/unictype/property-currency-symbol-tests: Likewise.
16879         * modules/unictype/property-dash-tests: Likewise.
16880         * modules/unictype/property-decimal-digit-tests: Likewise.
16881         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16882         * modules/unictype/property-deprecated-tests: Likewise.
16883         * modules/unictype/property-diacritic-tests: Likewise.
16884         * modules/unictype/property-extender-tests: Likewise.
16885         * modules/unictype/property-format-control-tests: Likewise.
16886         * modules/unictype/property-grapheme-base-tests: Likewise.
16887         * modules/unictype/property-grapheme-extend-tests: Likewise.
16888         * modules/unictype/property-grapheme-link-tests: Likewise.
16889         * modules/unictype/property-hex-digit-tests: Likewise.
16890         * modules/unictype/property-hyphen-tests: Likewise.
16891         * modules/unictype/property-id-continue-tests: Likewise.
16892         * modules/unictype/property-id-start-tests: Likewise.
16893         * modules/unictype/property-ideographic-tests: Likewise.
16894         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16895         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16896         * modules/unictype/property-ignorable-control-tests: Likewise.
16897         * modules/unictype/property-iso-control-tests: Likewise.
16898         * modules/unictype/property-join-control-tests: Likewise.
16899         * modules/unictype/property-left-of-pair-tests: Likewise.
16900         * modules/unictype/property-line-separator-tests: Likewise.
16901         * modules/unictype/property-logical-order-exception-tests: Likewise.
16902         * modules/unictype/property-lowercase-tests: Likewise.
16903         * modules/unictype/property-math-tests: Likewise.
16904         * modules/unictype/property-non-break-tests: Likewise.
16905         * modules/unictype/property-not-a-character-tests: Likewise.
16906         * modules/unictype/property-numeric-tests: Likewise.
16907         * modules/unictype/property-other-alphabetic-tests: Likewise.
16908         * modules/unictype/property-other-default-ignorable-code-point-tests:
16909         Likewise.
16910         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16911         * modules/unictype/property-other-id-continue-tests: Likewise.
16912         * modules/unictype/property-other-id-start-tests: Likewise.
16913         * modules/unictype/property-other-lowercase-tests: Likewise.
16914         * modules/unictype/property-other-math-tests: Likewise.
16915         * modules/unictype/property-other-uppercase-tests: Likewise.
16916         * modules/unictype/property-paired-punctuation-tests: Likewise.
16917         * modules/unictype/property-paragraph-separator-tests: Likewise.
16918         * modules/unictype/property-pattern-syntax-tests: Likewise.
16919         * modules/unictype/property-pattern-white-space-tests: Likewise.
16920         * modules/unictype/property-private-use-tests: Likewise.
16921         * modules/unictype/property-punctuation-tests: Likewise.
16922         * modules/unictype/property-quotation-mark-tests: Likewise.
16923         * modules/unictype/property-radical-tests: Likewise.
16924         * modules/unictype/property-sentence-terminal-tests: Likewise.
16925         * modules/unictype/property-soft-dotted-tests: Likewise.
16926         * modules/unictype/property-space-tests: Likewise.
16927         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16928         * modules/unictype/property-test-tests: Likewise.
16929         * modules/unictype/property-titlecase-tests: Likewise.
16930         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16931         * modules/unictype/property-unified-ideograph-tests: Likewise.
16932         * modules/unictype/property-uppercase-tests: Likewise.
16933         * modules/unictype/property-variation-selector-tests: Likewise.
16934         * modules/unictype/property-white-space-tests: Likewise.
16935         * modules/unictype/property-xid-continue-tests: Likewise.
16936         * modules/unictype/property-xid-start-tests: Likewise.
16937         * modules/unictype/property-zero-width-tests: Likewise.
16938         * modules/unictype/scripts-tests: Likewise.
16939         * modules/unictype/syntax-c-ident-tests: Likewise.
16940         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16941         * modules/unictype/syntax-java-ident-tests: Likewise.
16942         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16943         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16944         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16945         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16946         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16947         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16948         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16949         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16950         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16951         * modules/uniname/uniname-tests: Likewise.
16952         * modules/uninorm/canonical-decomposition-tests: Likewise.
16953         * modules/uninorm/compat-decomposition-tests: Likewise.
16954         * modules/uninorm/composition-tests: Likewise.
16955         * modules/uninorm/decomposing-form-tests: Likewise.
16956         * modules/uninorm/decomposition-tests: Likewise.
16957         * modules/uninorm/filter-tests: Likewise.
16958         * modules/uninorm/nfc-tests: Likewise.
16959         * modules/uninorm/nfd-tests: Likewise.
16960         * modules/uninorm/nfkc-tests: Likewise.
16961         * modules/uninorm/nfkd-tests: Likewise.
16962         * modules/uninorm/u8-normcmp-tests: Likewise.
16963         * modules/uninorm/u8-normcoll-tests: Likewise.
16964         * modules/uninorm/u16-normcmp-tests: Likewise.
16965         * modules/uninorm/u16-normcoll-tests: Likewise.
16966         * modules/uninorm/u32-normcmp-tests: Likewise.
16967         * modules/uninorm/u32-normcoll-tests: Likewise.
16968         * modules/unistdio/u8-asnprintf-tests: Likewise.
16969         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16970         * modules/unistdio/u8-vasprintf-tests: Likewise.
16971         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16972         * modules/unistdio/u8-vsprintf-tests: Likewise.
16973         * modules/unistdio/u16-asnprintf-tests: Likewise.
16974         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16975         * modules/unistdio/u16-vasprintf-tests: Likewise.
16976         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16977         * modules/unistdio/u16-vsprintf-tests: Likewise.
16978         * modules/unistdio/u32-asnprintf-tests: Likewise.
16979         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16980         * modules/unistdio/u32-vasprintf-tests: Likewise.
16981         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16982         * modules/unistdio/u32-vsprintf-tests: Likewise.
16983         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16984         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16985         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16986         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16987         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16988         * modules/unistr/u8-check-tests: Likewise.
16989         * modules/unistr/u8-chr-tests: Likewise.
16990         * modules/unistr/u8-cmp-tests: Likewise.
16991         * modules/unistr/u8-cmp2-tests: Likewise.
16992         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16993         * modules/unistr/u8-cpy-tests: Likewise.
16994         * modules/unistr/u8-mblen-tests: Likewise.
16995         * modules/unistr/u8-mbsnlen-tests: Likewise.
16996         * modules/unistr/u8-mbtouc-tests: Likewise.
16997         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16998         * modules/unistr/u8-mbtoucr-tests: Likewise.
16999         * modules/unistr/u8-move-tests: Likewise.
17000         * modules/unistr/u8-next-tests: Likewise.
17001         * modules/unistr/u8-prev-tests: Likewise.
17002         * modules/unistr/u8-set-tests: Likewise.
17003         * modules/unistr/u8-stpcpy-tests: Likewise.
17004         * modules/unistr/u8-stpncpy-tests: Likewise.
17005         * modules/unistr/u8-strcat-tests: Likewise.
17006         * modules/unistr/u8-strcmp-tests: Likewise.
17007         * modules/unistr/u8-strcoll-tests: Likewise.
17008         * modules/unistr/u8-strcpy-tests: Likewise.
17009         * modules/unistr/u8-strdup-tests: Likewise.
17010         * modules/unistr/u8-strlen-tests: Likewise.
17011         * modules/unistr/u8-strmblen-tests: Likewise.
17012         * modules/unistr/u8-strmbtouc-tests: Likewise.
17013         * modules/unistr/u8-strncat-tests: Likewise.
17014         * modules/unistr/u8-strncmp-tests: Likewise.
17015         * modules/unistr/u8-strncpy-tests: Likewise.
17016         * modules/unistr/u8-strnlen-tests: Likewise.
17017         * modules/unistr/u8-to-u16-tests: Likewise.
17018         * modules/unistr/u8-to-u32-tests: Likewise.
17019         * modules/unistr/u8-uctomb-tests: Likewise.
17020         * modules/unistr/u16-check-tests: Likewise.
17021         * modules/unistr/u16-chr-tests: Likewise.
17022         * modules/unistr/u16-cmp-tests: Likewise.
17023         * modules/unistr/u16-cmp2-tests: Likewise.
17024         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17025         * modules/unistr/u16-cpy-tests: Likewise.
17026         * modules/unistr/u16-mblen-tests: Likewise.
17027         * modules/unistr/u16-mbsnlen-tests: Likewise.
17028         * modules/unistr/u16-mbtouc-tests: Likewise.
17029         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17030         * modules/unistr/u16-mbtoucr-tests: Likewise.
17031         * modules/unistr/u16-move-tests: Likewise.
17032         * modules/unistr/u16-next-tests: Likewise.
17033         * modules/unistr/u16-prev-tests: Likewise.
17034         * modules/unistr/u16-set-tests: Likewise.
17035         * modules/unistr/u16-stpcpy-tests: Likewise.
17036         * modules/unistr/u16-stpncpy-tests: Likewise.
17037         * modules/unistr/u16-strcat-tests: Likewise.
17038         * modules/unistr/u16-strcmp-tests: Likewise.
17039         * modules/unistr/u16-strcoll-tests: Likewise.
17040         * modules/unistr/u16-strcpy-tests: Likewise.
17041         * modules/unistr/u16-strdup-tests: Likewise.
17042         * modules/unistr/u16-strlen-tests: Likewise.
17043         * modules/unistr/u16-strmblen-tests: Likewise.
17044         * modules/unistr/u16-strmbtouc-tests: Likewise.
17045         * modules/unistr/u16-strncat-tests: Likewise.
17046         * modules/unistr/u16-strncmp-tests: Likewise.
17047         * modules/unistr/u16-strncpy-tests: Likewise.
17048         * modules/unistr/u16-strnlen-tests: Likewise.
17049         * modules/unistr/u16-to-u32-tests: Likewise.
17050         * modules/unistr/u16-to-u8-tests: Likewise.
17051         * modules/unistr/u16-uctomb-tests: Likewise.
17052         * modules/unistr/u32-check-tests: Likewise.
17053         * modules/unistr/u32-chr-tests: Likewise.
17054         * modules/unistr/u32-cmp-tests: Likewise.
17055         * modules/unistr/u32-cmp2-tests: Likewise.
17056         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17057         * modules/unistr/u32-cpy-tests: Likewise.
17058         * modules/unistr/u32-mblen-tests: Likewise.
17059         * modules/unistr/u32-mbsnlen-tests: Likewise.
17060         * modules/unistr/u32-mbtouc-tests: Likewise.
17061         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17062         * modules/unistr/u32-mbtoucr-tests: Likewise.
17063         * modules/unistr/u32-move-tests: Likewise.
17064         * modules/unistr/u32-next-tests: Likewise.
17065         * modules/unistr/u32-prev-tests: Likewise.
17066         * modules/unistr/u32-set-tests: Likewise.
17067         * modules/unistr/u32-stpcpy-tests: Likewise.
17068         * modules/unistr/u32-stpncpy-tests: Likewise.
17069         * modules/unistr/u32-strcat-tests: Likewise.
17070         * modules/unistr/u32-strcmp-tests: Likewise.
17071         * modules/unistr/u32-strcoll-tests: Likewise.
17072         * modules/unistr/u32-strcpy-tests: Likewise.
17073         * modules/unistr/u32-strdup-tests: Likewise.
17074         * modules/unistr/u32-strlen-tests: Likewise.
17075         * modules/unistr/u32-strmblen-tests: Likewise.
17076         * modules/unistr/u32-strmbtouc-tests: Likewise.
17077         * modules/unistr/u32-strncat-tests: Likewise.
17078         * modules/unistr/u32-strncmp-tests: Likewise.
17079         * modules/unistr/u32-strncpy-tests: Likewise.
17080         * modules/unistr/u32-strnlen-tests: Likewise.
17081         * modules/unistr/u32-to-u16-tests: Likewise.
17082         * modules/unistr/u32-to-u8-tests: Likewise.
17083         * modules/unistr/u32-uctomb-tests: Likewise.
17084         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17085         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17086         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17087         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17088         * modules/uniwidth/u8-strwidth-tests: Likewise.
17089         * modules/uniwidth/u8-width-tests: Likewise.
17090         * modules/uniwidth/u16-strwidth-tests: Likewise.
17091         * modules/uniwidth/u16-width-tests: Likewise.
17092         * modules/uniwidth/u32-strwidth-tests: Likewise.
17093         * modules/uniwidth/u32-width-tests: Likewise.
17094         * modules/uniwidth/width-tests: Likewise.
17095
17096 2010-05-18  Richard Jones  <rjones@redhat.com>
17097
17098         doc: users.txt: list hivex
17099         * users.txt: Add hivex.
17100
17101 2010-05-18  Richard Jones  <rjones@redhat.com>
17102
17103         doc: users.txt: list febootstrap
17104         * users.txt: Add febootstrap.
17105
17106 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17107
17108         bootstrap: fix an error when gnulib is not used as a git submodule
17109         * build-aux/bootstrap (gnulib_path): If its length is zero then
17110         assign "gnulib" to it.
17111         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17112
17113 2010-05-16  Bruno Haible  <bruno@clisp.org>
17114
17115         Avoid autoconf warnings about AM_ICONV.
17116         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17117         2.64.
17118
17119 2010-05-16  Bruno Haible  <bruno@clisp.org>
17120
17121         absolute-header: Make the macro usable in more situations.
17122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17123         from gl_ABSOLUTE_HEADER.
17124         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17125
17126 2010-05-16  James Youngman  <jay@gnu.org>
17127
17128         doc: update users.txt
17129         * users.txt: Add CSSC.
17130
17131 2010-05-16  Jim Meyering  <meyering@redhat.com>
17132
17133         init.sh: fix an error in the previous change; add more comments
17134         * tests/init.sh: Compare exit code in loop against 9, not 2.
17135         Patch by Bruno Haible.
17136         Make the two tests more similar by adding an empty "then" clause.
17137         Add comments.
17138
17139         init.sh: avoid unnecessary shell re-exec
17140         * tests/init.sh: Improve the re-exec-required check to first test the
17141         current shell.  If it passes the test, do not search for a shell that
17142         does pass, and do not re-exec.  This test is particularly contorted to
17143         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17144         of $(...) evokes a syntax error and causes immediate shell exit with
17145         status 2.  Bruno Haible reported that the re-exec made it impossible
17146         to single-step through any init.sh-using script.
17147
17148 2010-05-16  Bruno Haible  <bruno@clisp.org>
17149
17150         Fix collision between gnulib's and libintl's printf replacements.
17151         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17152         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17153         (printf): When using GNU C, map the __printf__ function to rpl_printf
17154         via __asm__. When not using GNU C, define rpl_printf instead of
17155         __printf__.
17156         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17157         commit.
17158         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17159         commit.
17160         * m4/asm-underscore.m4: New file.
17161         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17162         * modules/stdio (Files): Add m4/asm-underscore.m4.
17163         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17164         Reported by Ben Pfaff.
17165
17166 2010-05-16  Bruno Haible  <bruno@clisp.org>
17167
17168         verify: Avoid skipping the test on openSUSE 11.0.
17169         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17170
17171 2010-05-13  Bruno Haible  <bruno@clisp.org>
17172
17173         Avoid useless warnings from G++.
17174         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17175         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17177
17178 2010-05-11  Jim Meyering  <meyering@redhat.com>
17179
17180         maint.mk: tweak preceding change
17181         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17182         regexps tighter by anchoring at EOL, and make the new group "shy"
17183         for slightly decreased overhead.
17184
17185 2010-05-11  Eric Blake  <eblake@redhat.com>
17186
17187         maint.mk: gnulib doesn't guarantee NSIG
17188         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17189
17190 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17191
17192         test-pwrite.c: Remove unused variable declaration.
17193         * tests/test-pwrite.c (main): Remove read_buf declaration.
17194
17195         Remove useless test-pwrite.sh file.
17196         * tests/test-pwrite.sh: Delete file.
17197         * modules/pwrite-tests: Remove references.
17198         Reported by Bruno Haible.
17199
17200 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17201
17202         init.sh: fix a typo
17203         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17204
17205 2010-05-10  Jim Meyering  <meyering@redhat.com>
17206
17207         maint.mk: avoid using a temporary file in the always-defined-macros check
17208         * top/maint.mk (.re-defmac): Remove rule.
17209         (gl_trap_): Remove definition.
17210         (sc_prohibit_always-defined_macros): Rewrite not to create and
17211         depend on a temporary file.  Instead, depend on GNU grep's ability
17212         to read a list of regular expressions from stdin when given "-f -".
17213
17214 2010-05-09  Bruno Haible  <bruno@clisp.org>
17215
17216         Update to GNU gettext 0.18, part 1.
17217         * m4/gettext.m4: Update to GNU gettext 0.18.
17218         * m4/intl.m4: Likewise.
17219         * m4/po.m4: Likewise.
17220         * modules/gettext (Files): Add m4/fcntl-o.m4.
17221         (configure.ac): Require gettext infrastructure from version 0.18.
17222
17223 2010-05-09  Jim Meyering  <meyering@redhat.com>
17224
17225         init.sh: enable MALLOC_PERTURB_
17226         * tests/init.sh: Enable glibc's malloc-perturbing option.
17227
17228         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17229         With my recent change in init.sh from the two-line form:
17230             -#   : ${srcdir=.}
17231             -#   . "$srcdir/init.sh"; path_prepend_ .
17232             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17233         I noticed that using the one-line form would cause this test
17234         to fail with a false-positive, or to stop working altogether,
17235         depending on whether help-version changed or all the tests did.
17236         * top/maint.mk (_hv_regex): Remove this definition.
17237         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17238         (_hv_regex_strong): Use a stronger regex to check for conformance.
17239         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17240         Give a separate diagnostic for lack of conforming use.
17241
17242         maint.mk: prohibit definition of symbols defined by gnulib
17243         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17244         definition of symbols defined by gnulib.
17245
17246 2010-05-09  Bruno Haible  <bruno@clisp.org>
17247
17248         acl: Avoid test failure on Cygwin-hosted mingw.
17249         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17250
17251 2010-05-09  Bruno Haible  <bruno@clisp.org>
17252
17253         error: Use system's fcntl function.
17254         * lib/error.c (fcntl): Undefine.
17255
17256 2010-05-09  Jim Meyering  <meyering@redhat.com>
17257
17258         verify: adjust formatting to be more consistent
17259         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17260         argument-list '('s, and after one comma.
17261
17262 2010-05-09  Bruno Haible  <bruno@clisp.org>
17263
17264         error: More reliable output on mingw.
17265         * lib/error.c: Include <windows.h>.
17266         (is_open): New function.
17267         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17268         defined.
17269
17270 2010-05-09  Bruno Haible  <bruno@clisp.org>
17271
17272         vasnprintf: Fix syntax errors in libintl build on mingw.
17273         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17274         pad_ourselves and prec_ourselves after use.
17275
17276 2010-05-08  Bruno Haible  <bruno@clisp.org>
17277
17278         * lib/config.charset: Update comments for Cygwin 1.7.
17279         * lib/localcharset.c: Likewise.
17280
17281 2010-05-07  Jim Meyering  <meyering@redhat.com>
17282
17283         init.sh: improve comments
17284         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17285         . "${srcdir=.}/init.sh"; path_prepend_ .
17286         Add a note about path_prepend_ and the alternative of using
17287         TESTS_ENVIRONMENT.
17288
17289 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17290
17291         exclude: Unescape hashed patterns in wildcard mode.
17292         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17293         to the hash list.
17294         * tests/test-exclude8.sh: New test case.
17295         * modules/exclude-tests: Add new test.
17296
17297 2010-05-05  Eric Blake  <eblake@redhat.com>
17298
17299         verify: automate tests
17300         * modules/verify-tests: New module.
17301         * tests/test-verify.sh: New file.
17302         * tests/test-verify.c: Guard each negative test with a unique id.
17303         Also avoid warning about unused left hand of comma expressions.
17304
17305 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17306
17307         Further improvements to verify.h, suggested by Eric Blake.
17308         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17309         the GL_* versions, to avoid collision with OpenGL.
17310         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17311         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17312         than testing merely whether it's defined.
17313
17314         Modify verify.h to pacify gcc -Wredundant_decls.
17315         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17316         These use the prefix "GL_" since they're likely to be useful elsewhere.
17317         We may need to break them out into a different .h file.
17318         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17319         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17320         of verify_function__.
17321
17322 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17323
17324         Tests for module pwrite.
17325         * modules/pwrite-tests: New file.
17326         * tests/test-pwrite.sh: New file.
17327         * tests/test-pwrite.c: New file.
17328
17329         New module pwrite.
17330         * lib/unistd.in.h (pwrite): New declaration.
17331         * lib/pwrite.c: New file, from glibc with modifications.
17332         * m4/pwrite.m4: New file.
17333         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17334         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17335         REPLACE_PWRITE.
17336         * modules/pwrite: New file.
17337         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17338         REPLACE_PWRITE.
17339         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17340         * doc/posix-functions/pwrite.texi: Mention the new module.
17341
17342 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17343
17344         pread: Update documentation.
17345         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17346
17347 2010-05-04  Eric Blake  <eblake@redhat.com>
17348
17349         docs: update cygwin progress
17350         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17351         this bug.
17352         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17353         Added in cygwin 1.7.2.
17354         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17355         Likewise.
17356         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17357         Likewise.
17358         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17359         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17360         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17361         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17362         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17363         Mention nproc module.
17364         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17365         bug in cygwin 1.7.5 addition.
17366         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17367         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17368         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17369         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17370         1.7.5.
17371         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17372         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17373         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17374         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17375         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17376         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17377         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17378         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17379         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17380         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17381         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17382         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17383         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17384         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17385         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17386         Likewise.
17387         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17388         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17389         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17390         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17391         Likewise.
17392         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17393         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17394         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17395         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17396         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17397         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17398         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17399         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17400         Likewise.
17401         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17402         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17403         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17404         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17405         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17406         Likewise.
17407         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17408         Likewise.
17409         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17410         Likewise.
17411         * doc/glibc-functions/xdrrec_endofrecord.texi
17412         (xdrrec_endofrecord): Likewise.
17413         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17414         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17415         Likewise.
17416         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17417         Likewise.
17418
17419 2010-05-04  Jim Meyering  <meyering@redhat.com>
17420
17421         gendocs.sh: make its "-s FILE" option more useful
17422         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17423         $PACKAGE to reflect the probably-different basename of "FILE".
17424
17425 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17426
17427         bootstrap: don't ignore download_po_files failure
17428         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17429         failure.
17430
17431 2010-05-03  Jim Meyering  <meyering@redhat.com>
17432
17433         maint.mk: allow to pass options to gendocs.sh
17434         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17435         (gendocs_options_): New overridable variable.
17436
17437         gnu-web-doc-update: don't ignore configure or build failure
17438         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17439
17440         announce-gen: backslash-escape '@'s in --help output
17441         * build-aux/announce-gen: Fix syntax errors.
17442
17443         maint.mk, announce-gen: allow project-specific announcement mail headers
17444         * top/maint.mk (translation_project_): Define default.
17445         (announcement_Cc_, announcement_mail_headers_): Likewise.
17446         (announcement): Invoke announce-gen with new --mail-headers option.
17447         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17448
17449         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17450         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17451         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17452         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17453         line in the "err2" output file when running "make check" in verbose
17454         mode (i.e., with set -x enabled).
17455
17456 2010-05-03  Bruno Haible  <bruno@clisp.org>
17457
17458         wctob: Fix for weird platforms.
17459         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17460         argument value.
17461
17462 2010-05-03  Jim Meyering  <meyering@redhat.com>
17463
17464         maint.mk: prohibit unwarranted use of <strings.h>
17465         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17466         strings.h in a file that does not also use strcasecmp, strncasecmp,
17467         ffs or ffsll.
17468
17469         maint.mk: remove obsolete comments
17470         * top/maint.mk: Remove stale, commented-out rules.
17471
17472 2010-05-02  Bruno Haible  <bruno@clisp.org>
17473
17474         wcwidth: Declare also when it's aliased.
17475         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17476         macro.
17477
17478 2010-05-02  Bruno Haible  <bruno@clisp.org>
17479
17480         Fix regression from 2010-04-25.
17481         * gnulib-tool (func_modules_transitive_closure): Check the status of
17482         all modules, not only of the tests that are of the form foo-tests where
17483         foo is a module.
17484
17485 2010-05-02  Bruno Haible  <bruno@clisp.org>
17486
17487         wctob: Work around nasty Cygwin 1.7.2 bug.
17488         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17489         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17490
17491 2010-05-01  Bruno Haible  <bruno@clisp.org>
17492
17493         fpurge: Sharper test.
17494         * tests/test-fpurge.c (main): Add one more ftell check.
17495         * modules/fpurge-tests (Depends-on): Add ftell.
17496         Suggested by Eric Blake.
17497
17498 2010-05-01  Bruno Haible  <bruno@clisp.org>
17499
17500         ftello: Another test.
17501         * tests/test-ftello3.c: New file.
17502         * modules/ftello-tests (Files): Add it.
17503         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17504         MOSTLYCLEANFILES.
17505
17506         ftell: Another test.
17507         * tests/test-ftell3.c: New file.
17508         * modules/ftell-tests (Files): Add it.
17509         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17510         MOSTLYCLEANFILES.
17511
17512 2010-05-01  Bruno Haible  <bruno@clisp.org>
17513
17514         ftell, ftello: Work around Solaris bug.
17515         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17516         * lib/ftello.c: Include stdio-impl.h.
17517         (ftello): On Solaris, when _IOWRT is set, compute the result without
17518         looking at _IOREAD.
17519         * modules/ftello (Files): Add lib/stdio-impl.h.
17520         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17521         * doc/posix-functions/ftello.texi: Likewise.
17522         Reported by Eric Blake.
17523
17524 2010-05-01  Bruno Haible  <bruno@clisp.org>
17525
17526         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17527         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17528         the _IOWRT flag is also set.
17529
17530 2010-05-01  Bruno Haible  <bruno@clisp.org>
17531
17532         Fix doc about a HP-UX stdio bug.
17533         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17534         * doc/posix-functions/ftello.texi: Likewise.
17535
17536 2010-05-01  Bruno Haible  <bruno@clisp.org>
17537
17538         lseek test: Fix failure on Solaris.
17539         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17540         output.
17541
17542 2010-04-30  Jim Meyering  <meyering@redhat.com>
17543
17544         bootstrap: don't ignore failure to generate po*/Makevars
17545         * build-aux/bootstrap (with_gettext): Don't ignore failure
17546         to create po/Makevars or runtime-po/Makevars.
17547
17548 2010-04-29  Eric Blake  <eblake@redhat.com>
17549
17550         headers: relax license to LGPLv2+
17551         * modules/fcntl-h (License): Relax license.
17552         * modules/getopt-posix (License): Likewise.
17553         * modules/locale (License): Likewise.
17554         * modules/math (License): Likewise.
17555         * modules/pty (License): Likewise.
17556         * modules/sched (License): Likewise.
17557         * modules/search (License): Likewise.
17558         * modules/spawn (License): Likewise.
17559         * modules/stdarg (License): Likewise.
17560         * modules/sysexits (License): Likewise.
17561
17562 2010-04-29  Jim Meyering  <meyering@redhat.com>
17563
17564         inttypes: relax license to LGPLv2+
17565         * modules/inttypes (License): Relax license.
17566
17567 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17568
17569         * top/maint.mk (indent): Run twice to produce idempotent results.
17570
17571 2010-04-28  Bruno Haible  <bruno@clisp.org>
17572
17573         getdate: Generate getdate.c in the source directory.
17574         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17575         MOSTLYCLEANFILES.
17576         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17577
17578 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17579
17580         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17581         is not declared as a const *; avoid warnings in that case.
17582
17583 2010-04-28  Eric Blake  <eblake@redhat.com>
17584
17585         canonicalize-lgpl: avoid compiler warning
17586         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17587         declaration' / 'extraneous semicolon' warning with some compilers.
17588         Reported by Andreas Gruenbacher.
17589
17590 2010-04-28  Jim Meyering  <meyering@redhat.com>
17591
17592         init.sh: ensure a more reliable exit status when exiting via trap
17593         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17594         Inspired by patches from Dmitry V. Levin.
17595         Also trap on signal 3 (SIGQUIT).
17596
17597 2010-04-27  Bruno Haible  <bruno@clisp.org>
17598
17599         Update doc about utimes().
17600         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17601         'utimens' module.
17602         Reported by Andreas Gruenbacher <agruen@suse.de>.
17603
17604 2010-04-27  Eric Blake  <eblake@redhat.com>
17605
17606         full-read, full-write: relax license
17607         * modules/full-read (License): Drop to LGPLv2+.
17608         * modules/full-write (License): Likewise.
17609         * modules/safe-read (License): Likewise.
17610         * modules/safe-write (License): Likewise.
17611
17612         pthread: mention library for linking
17613         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17614
17615 2010-04-27  Jim Meyering  <meyering@redhat.com>
17616
17617         maint.mk: fix a bug introduced in last change
17618         * top/maint.mk (gl_assured_headers_): Now that all names are on
17619         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17620         is not anchored to end of word, it should be adequate.
17621
17622         maint.mk: avoid side-effect in latest syntax-check
17623         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17624         to run commands via $(shell...), and hence to incur cost only when
17625         the new rule is actually run.
17626
17627         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17628         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17629         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17630         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17631         (gl_assured_headers_, az_, AZ_): Define.
17632         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17633
17634 2010-04-26  Jim Meyering  <jim@meyering.net>
17635             Bruno Haible  <bruno@clisp.org>
17636
17637         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17638         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17639         Prompted by an exchange with Gilles Espinasse.
17640
17641 2010-04-26  Jim Meyering  <meyering@redhat.com>
17642
17643         git-version-gen: aesthetic tweak
17644         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17645         so that the command remains on a single line.
17646
17647 2010-04-26  Eric Blake  <eblake@redhat.com>
17648
17649         git-version-gen: allow use on EBCDIC hosts
17650         * build-aux/git-version-gen (dirty): Use literal rather than tying
17651         ourselves to ascii.
17652         Reported by Steve Goetze.
17653
17654 2010-04-25  Bruno Haible  <bruno@clisp.org>
17655
17656         netdb: Add support for GNULIB_POSIXCHECK.
17657         * lib/netdb.in.h: Include warn-on-use.h.
17658         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17659         functions are used when GNULIB_POSIXCHECK is defined and the
17660         getaddrinfo module is not in use.
17661         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17662         freeaddrinfo, gai_strerror, getnameinfo are declared.
17663         * modules/netdb (Depends-on): Add warn-on-use.
17664         (Makefile.am): Include warn-on-use.h in netdb.h.
17665
17666 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17667
17668         build: avoid "make check" failure without .git/ directory
17669         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17670         there is no .git/ directory.
17671
17672 2010-04-25  Bruno Haible  <bruno@clisp.org>
17673
17674         ptsname: Fix misuse of ttyname_r.
17675         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17676         of errno.
17677
17678 2010-04-25  Bruno Haible  <bruno@clisp.org>
17679
17680         ttyname_r: Make it work on Solaris 10.
17681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17682         if the system function has the POSIX declaration. Test whether the
17683         function fails if the buffer is less than 128 bytes large.
17684         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17685         system's ttyname_r function. Provide a reasonably large buffer.
17686         * modules/ttyname_r (Depends-on): Add extensions.
17687         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17688
17689 2010-04-25  Bruno Haible  <bruno@clisp.org>
17690
17691         Use the 'extensions' module for some more functions on Solaris.
17692         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17693         module.
17694         * doc/posix-functions/ctime_r.texi: Likewise.
17695         * doc/posix-functions/getgrgid_r.texi: Likewise.
17696         * doc/posix-functions/getgrnam_r.texi: Likewise.
17697         * doc/posix-functions/getpwnam_r.texi: Likewise.
17698         * doc/posix-functions/getpwuid_r.texi: Likewise.
17699         * doc/posix-functions/readdir_r.texi: Likewise.
17700         * doc/posix-functions/sigwait.texi: Likewise.
17701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17702         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17703
17704 2010-04-25  Bruno Haible  <bruno@clisp.org>
17705
17706         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17707         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17708         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17709         * lib/ttyname_r.c: Include <limits.h>.
17710         (ttyname_r): Define using the system's ttyname_r function, if it exists
17711         and not on Solaris.
17712         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17713         set.
17714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17715         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17716         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17717         Reported by Simon Josefsson.
17718
17719 2010-04-25  Bruno Haible  <bruno@clisp.org>
17720
17721         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17722         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17723         * doc/posix-functions/ctime_r.texi: Likewise.
17724         * doc/posix-functions/getgrgid_r.texi: Likewise.
17725         * doc/posix-functions/getgrnam_r.texi: Likewise.
17726         * doc/posix-functions/getlogin_r.texi: Likewise.
17727         * doc/posix-functions/getpwnam_r.texi: Likewise.
17728         * doc/posix-functions/getpwuid_r.texi: Likewise.
17729         * doc/posix-functions/readdir_r.texi: Likewise.
17730         * doc/posix-functions/sigwait.texi: Likewise.
17731         * doc/posix-functions/ttyname_r.texi: Likewise.
17732         Reported by Simon Josefsson.
17733
17734 2010-04-25  Bruno Haible  <bruno@clisp.org>
17735
17736         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17737         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17738         also to --create-testdir.
17739         (func_acceptable): Don't consider the status of *-tests modules here.
17740         (func_modules_transitive_closure): Consider it here, before including a
17741         test module.
17742         (func_import, func_create_testdir): Set inc_all_direct_tests,
17743         inc_all_indirect_tests.
17744         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17745         --create-testdir and --create-megatestdir.
17746
17747 2010-04-25  Bruno Haible  <bruno@clisp.org>
17748
17749         gnulib-tool: Add --without-*-tests options.
17750         * gnulib-tool (func_usage): Document the --without-*-tests options.
17751         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17752         excl_unportable_tests): New variables.
17753         Fail if they are specified with --import or --update.
17754         (func_acceptable): Respect the excl_*_tests variables.
17755         (func_import): Set the excl_*_tests variables to empty.
17756
17757 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17758             Bruno Haible  <bruno@clisp.org>
17759
17760         Work around a MacOS X 10.4 bug with openpty.
17761         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17762         * tests/test-openpty.c (main): Close the master side explicitly.
17763
17764 2010-04-25  Bruno Haible  <bruno@clisp.org>
17765
17766         strnlen: Fix a C++ test error on MacOS X and Solaris.
17767         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17768         the function is not declared.
17769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17770         Simon Josefsson.
17771
17772 2010-04-24  Bruno Haible  <bruno@clisp.org>
17773
17774         Avoid a gcc warning.
17775         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17776         of correct type for %08lx directive.
17777         Reported by Eric Blake.
17778
17779 2010-04-24  Bruno Haible  <bruno@clisp.org>
17780
17781         vasnprintf: Correct errno value in case of out-of-memory.
17782         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17783         or sprintf. Use the errno value from SNPRINTF or sprintf.
17784         Reported by Ian Beckwith <ianb@erislabs.net>.
17785
17786 2010-04-24  Bruno Haible  <bruno@clisp.org>
17787
17788         ansi-c++-opt: Find correct compiler when cross-compiling.
17789         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17790         AC_CHECK_PROGS.
17791         Reported by Simon Josefsson.
17792
17793 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17794
17795         vc-list-files: Add support for subversion
17796         * build-aux/vc-list-files: Use "svn list" to generate the list of
17797         files controlled by subversion.
17798
17799 2010-04-23  Jim Meyering  <meyering@redhat.com>
17800
17801         vc-list-files tests: convert to use init.sh
17802         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17803         path_prepend_.
17804         Use Exit, not exit.
17805         Use skip_ rather than open coding it.
17806         Remove trap set-up and compare definitions.
17807         * tests/test-vc-list-files-git.sh: Likewise.
17808         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17809
17810 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17811
17812         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17813         backup files.
17814
17815 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17816
17817         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17818
17819 2010-04-20  Eric Blake  <eblake@redhat.com>
17820
17821         tests: be robust to ignored SIGPIPE
17822         * tests/test-select-in.sh: Consume all output.
17823         * tests/test-lseek.sh: Check correct exit status, while avoiding
17824         EPIPE.
17825
17826 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17827             Bruno Haible  <bruno@clisp.org>
17828
17829         visibility: Don't use -fvisibility if it leads to a warning.
17830         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17831         yes, don't pretend that visibility works if it leads to a warning.
17832         Reported by Mike Gran <spk121@yahoo.com>.
17833
17834 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17835
17836         * build-aux/bootstrap: Use "git -h" for testing for supported options
17837         instead of "git --help".  The short-form option only shows a summary,
17838         and doesn't layout the full man page.  Grep for the full option name
17839         in the summary, too.
17840
17841 2010-04-19  Bruno Haible  <bruno@clisp.org>
17842
17843         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17844         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17845         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17846         mention of RELOCATABLE_STRIP.
17847         Reported by Sylvain Beucler <beuc@beuc.net>.
17848
17849 2010-04-19  Bruno Haible  <bruno@clisp.org>
17850
17851         * lib/diffseq.h: Fix typo in comment.
17852         Reported by Eric Blake.
17853
17854 2010-04-19  Bruno Haible  <bruno@clisp.org>
17855
17856         ioctl: Move autoconf macro to a .m4 file.
17857         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17858         * modules/ioctl (Files): Add it.
17859         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17860         Reported by Ian Beckwith <ianb@erislabs.net>.
17861
17862 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17863             Bruno Haible  <bruno@clisp.org>
17864
17865         diffseq: Accommodate use-case with abstract arrays.
17866         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17867         is not defined.
17868         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17869         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17870
17871 2010-04-18  Bruno Haible  <bruno@clisp.org>
17872
17873         * doc/posix-headers/stdbool.texi: More precise wording.
17874
17875 2010-04-17  Jim Meyering  <meyering@redhat.com>
17876
17877         maint.mk: use gnu-style indentation in an embedded perl script
17878         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17879         Rename variable: s/two/last_two_bytes/
17880
17881 2010-04-16  Eric Blake  <eblake@redhat.com>
17882
17883         test-stdbool: skip test that fails with Solaris CC
17884         * tests/test-stdbool.c (f): Skip test that causes compilation
17885         error under buggy C++ compiler.
17886         * lib/stdbool.in.h: Document the limitation.
17887         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17888
17889         setenv: allow compilation with C++
17890         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17891         register keyword.
17892
17893         stdint: allow test to pass with C++
17894         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17895
17896         getopt: allow compilation with C++
17897         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17898         struct.
17899         * lib/getopt.c (_getopt_internal_r): Use correct type.
17900         Reported by Dagobert Michelson, via Joel E. Denny.
17901
17902 2010-04-16  Bruno Haible  <bruno@clisp.org>
17903
17904         Override netdb.h always.
17905         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17906         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17907         Reported by Ludovic Courtès <ludo@gnu.org>.
17908
17909 2010-04-15  Bruno Haible  <bruno@clisp.org>
17910
17911         openpty: Fix mistake from 2010-03-21.
17912         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17913         Reported by Simon Josefsson.
17914
17915 2010-04-15  Eric Blake  <eblake@redhat.com>
17916
17917         test-forkpty: fix expected signature
17918         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17919         Reported by Simon Josefsson.
17920
17921 2010-04-15  Jim Meyering  <meyering@redhat.com>
17922
17923         maint.mk: texinfo_suffix_re_: correct the default regexp
17924         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17925
17926         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17927         make it configurable via texinfo_suffix_re_.
17928
17929 2010-04-14  Eric Blake  <eblake@redhat.com>
17930
17931         strtok_r: relax license to LGPLv2+
17932         * modules/strtok_r (License): Relax license.
17933         Reported by Matthias Bolte.
17934
17935 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17936
17937         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17938         version 1.4.4 by default instead of requiring the libgcrypt
17939         version used during build.  This makes it possible to use the
17940         application with older but still binary compatible libgcrypt
17941         versions.
17942
17943 2010-04-13  Eric Blake  <eblake@redhat.com>
17944
17945         getopt-gnu: match recent glibc fixes and posix ruling
17946         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17947         '+' handling, when requesting extensions.
17948         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17949         'W;' handling.
17950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17951         * doc/posix-functions/getopt.texi (getopt): Document this.
17952         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17953         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17954         Likewise.
17955
17956         getopt: merge bug fixes from glibc
17957         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17958         diagnostics.  Honor '+:' correctly.  Reject ';'.
17959
17960         getopt-posix: detect MacOS bug
17961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17962         optind when missing a required argument.
17963         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17964         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17965         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17966         Likewise.
17967
17968         getopt-posix: avoid spurious failure on Solaris
17969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17970         an indicator that setting optind=1 is sufficient for reset.
17971
17972         getopt-posix: avoid spurious failure on FreeBSD
17973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17974         in POSIX mode, since the m4 test uses it.
17975
17976         gnulib-tool: silence warning on BSD sh
17977         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17978
17979 2010-04-13  Jim Meyering  <meyering@redhat.com>
17980
17981         doc: users.txt: GNU patch now uses gnulib
17982         * users.txt: Add patch.
17983
17984 2010-04-12  Jim Meyering  <meyering@redhat.com>
17985
17986         maint.mk: generate more concise timing data for syntax-check rules
17987         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17988         " done" from each line that reports a syntax-check test duration.
17989
17990 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17991
17992         git-version-gen: use "git update-index..." rather than "git status"
17993         * build-aux/git-version-gen: Use git update-index --refresh, not
17994         "git status".  With some versions of git, "git status" would fail
17995         to update the index and result in an unwarranted "-dirty" suffix.
17996
17997 2010-04-11  Jim Meyering  <meyering@redhat.com>
17998
17999         openat: correct formatting (no semantic change)
18000         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18001         Suggested by Bruno Haible.
18002
18003 2010-04-11  Bruno Haible  <bruno@clisp.org>
18004
18005         Stricter declaration checking in testdirs.
18006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18007         If for_tests is true, augment AM_CPPFLAGS to define
18008         GNULIB_STRICT_CHECKING.
18009         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18010         GNULIB_STRICT_CHECKING is defined, verify that the function is
18011         declared.
18012
18013 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18014             Bruno Haible  <bruno@clisp.org>
18015
18016         libunistring: Improve configure output.
18017         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18018         Don't say "consider installing GNU libunistring" when checking again
18019         with libiconv.
18020
18021 2010-04-11  Bruno Haible  <bruno@clisp.org>
18022
18023         libunistring: Correct value of $LTLIBUNISTRING.
18024         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18025         correct the value of $LTLIBUNISTRING.
18026
18027 2010-04-11  Bruno Haible  <bruno@clisp.org>
18028
18029         havelib: Add static libraries to LIBS in the right order.
18030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18031         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18032
18033 2010-04-11  Bruno Haible  <bruno@clisp.org>
18034
18035         libunistring: Detect libunistring also when it depends on libiconv.
18036         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18037         the second AC_LIB_HAVE_LINKFLAGS invocation.
18038
18039 2010-04-11  James Youngman  <jay@gnu.org>
18040
18041         close-stream: declare local scalars to be "const"
18042         * lib/close-stream.c (close_stream): Make boolean variables const
18043         to document the fact that we set but do not change them.
18044
18045 2010-04-11  Bruno Haible  <bruno@clisp.org>
18046
18047         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18048
18049 2010-04-11  Jim Meyering  <meyering@redhat.com>
18050
18051         maint.mk: don't include dist-check.mk
18052         * top/maint.mk: Remove bogus include directive.
18053
18054         maint.mk: improve empty-line-at-EOF check
18055         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18056         solution, rather than tail+Perl-based one.  The latter would read
18057         a few kilobytes from the end of each file, and did not handle empty
18058         files properly.
18059
18060         maint.mk: print the elapsed time for each syntax-check rule
18061         * top/maint.mk (sc_m_rules_): Save start time in a file.
18062         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18063         (local-check): Interpose the .z rules
18064
18065 2010-04-11  Jim Meyering  <meyering@redhat.com>
18066
18067         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18068         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18069         empty file with one that ends in an empty line.
18070
18071 2010-04-10  Bruno Haible  <bruno@clisp.org>
18072
18073         mkdir: Make it work on mingw64.
18074         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18075         * lib/mkdir.c: Update comment.
18076         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18077
18078 2010-04-10  Bruno Haible  <bruno@clisp.org>
18079
18080         Don't override improved macro from newer autoconf.
18081         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18082         autoconf >= 2.62.
18083         Reported by Joel E. Denny <jdenny@clemson.edu>.
18084
18085 2010-04-10  Jim Meyering  <meyering@redhat.com>
18086
18087         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18088         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18089
18090         maint.mk: correct a diagnostic
18091         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18092         in diagnostic; now use $prohibit.
18093
18094 2010-04-10  Bruno Haible  <address@hidden>
18095
18096         fchownat: Fix a C++ test error on Solaris 8.
18097         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18098         the function does not exist.
18099
18100 2010-04-10  Bruno Haible  <bruno@clisp.org>
18101
18102         vasnprintf: Add more tests.
18103         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18104         (test_function): Test converting an invalid wide string.
18105
18106         vasnprintf: Correct handling of unconvertible wide string arguments.
18107         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18108         VASNPRINTF.
18109         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18110         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18111         smaller than the expected maximum need for the directive. Set errno to
18112         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18113         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18115         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18116         * modules/vasnprintf (Files): Add m4/printf.m4.
18117         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18118
18119 2010-04-10  Bruno Haible  <bruno@clisp.org>
18120
18121         vasnprintf: Fix crash in %ls directive.
18122         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18123         string is passed as argument to %ls, with no precision and no width.
18124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18125
18126 2010-04-10  Bruno Haible  <bruno@clisp.org>
18127
18128         vasnprintf: Fix multiple test failures on mingw.
18129         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18130         _snprintf, or snwprintf, not _snwprintf.
18131
18132 2010-04-10  Bruno Haible  <bruno@clisp.org>
18133
18134         write: Fix a C++ test error on mingw.
18135         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18136
18137 2010-04-10  Bruno Haible  <bruno@clisp.org>
18138
18139         vasnprintf test: Reduce code duplication.
18140         * tests/test-vasnprintf.c (test_function): New function, extracted from
18141         test_vasnprintf.
18142         (test_vasnprintf, test_asnprintf): Invoke it.
18143
18144 2010-04-10  Bruno Haible  <bruno@clisp.org>
18145
18146         strnlen: Fix warning in C++ mode on MacOS X.
18147         * lib/string.in.h (strnlen): Use the modern idiom.
18148         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18149         defining strnlen as a macro already in <config.h>.
18150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18151         REPLACE_STRNLEN.
18152         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18153         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18154
18155 2010-04-08  James Youngman  <jay@gnu.org>
18156
18157         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18158         the example.
18159
18160 2010-04-09  Jim Meyering  <meyering@redhat.com>
18161
18162         maint.mk: print better diagnostic when there is no $(_hv_file)
18163         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18164         announce that when $(_hv_file) (aka help-version) does not exist.
18165
18166         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18167         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18168         not try to interpret its random input bytes.  Jarno Rajahalme reported
18169         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18170         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18171         (mktempd_): Likewise, just in case.
18172
18173         ftruncate: add two years to projected module removal date: 2012
18174         * m4/ftruncate.m4: Adjust comments.
18175
18176         ftruncate: mark module as obsolete; even MinGW provides it, now
18177         * modules/ftruncate (Status): Obsolete.
18178         (Notice): Say that.
18179         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18181
18182 2010-04-08  Bruno Haible  <bruno@clisp.org>
18183
18184         Fix side effects from tests-related modules.
18185         * modules/dprintf-posix (Comment): New section.
18186         * modules/fprintf-posix (Comment): Likewise.
18187         * modules/obstack-printf-posix (Comment): Likewise.
18188         * modules/printf-posix (Comment): Likewise.
18189         * modules/snprintf-posix (Comment): Likewise.
18190         * modules/sprintf-posix (Comment): Likewise.
18191         * modules/vasnprintf-posix (Comment): Likewise.
18192         * modules/vasprintf-posix (Comment): Likewise.
18193         * modules/vdprintf-posix (Comment): Likewise.
18194         * modules/vfprintf-posix (Comment): Likewise.
18195         * modules/vprintf-posix (Comment): Likewise.
18196         * modules/vsnprintf-posix (Comment): Likewise.
18197         * modules/vsprintf-posix (Comment): Likewise.
18198         * modules/xprintf-posix (Comment): Likewise.
18199         * modules/xvasprintf-posix (Comment): Likewise.
18200         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18201         * modules/floorf-tests (Depends-on): Likewise.
18202         * modules/round-tests (Depends-on): Likewise.
18203         * modules/roundf-tests (Depends-on): Likewise.
18204         * modules/trunc-tests (Depends-on): Likewise.
18205         * modules/truncf-tests (Depends-on): Likewise.
18206         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18207         'fprintf-posix' module is not present.
18208         * tests/test-floorf2.c (check): Likewise.
18209         * tests/test-trunc2.c (check): Likewise.
18210         * tests/test-truncf2.c (check): Likewise.
18211         * tests/test-round2.c (equal): Likewise.
18212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18213
18214 2010-04-07  Karl Berry  <karl@gnu.org>
18215
18216         * config/srclist.txt,
18217         * config/srclistvars.sh,
18218         * config/srclist-update: doc fixes.
18219
18220 2010-04-07  Jim Meyering  <meyering@redhat.com>
18221
18222         maint.mk: add a PATH crosschecking syntax-check rule
18223         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18224         Useful if you use a test like the one in help-version (coreutils,
18225         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18226         printed by prog --version.
18227
18228 2010-04-06  Bruno Haible  <bruno@clisp.org>
18229
18230         Fix link error on mingw.
18231         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18232         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18233
18234 2010-04-06  Bruno Haible  <bruno@clisp.org>
18235
18236         Assume rmdir exists.
18237         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18238
18239 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18240
18241         doc: update users.txt
18242         * users.txt: Add gcal.
18243
18244 2010-04-06  Jim Meyering  <meyering@redhat.com>
18245
18246         init.sh: simply unset TMPDIR rather than risking env -i
18247         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18248         although it probably works fine on all Unix-based systems, some
18249         systems (Cygwin?) cannot tolerate a totally cleared environment.
18250         Suggestion from Eric Blake.
18251
18252 2010-04-06  Jim Meyering  <meyering@redhat.com>
18253
18254         init.sh: portability fix: use env's POSIX-specified -i option not -u
18255         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18256         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18257
18258 2010-04-05  Bruno Haible  <bruno@clisp.org>
18259
18260         btowc: Work around Cygwin 1.7.2 bug.
18261         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18262         does not map NUL to 0.
18263         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18264
18265 2010-04-05  Bruno Haible  <bruno@clisp.org>
18266
18267         Make the multithread modules work on Cygwin 1.7.2.
18268         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18269         imported symbols can be declared weak, so that it returns "no" on
18270         Cygwin 1.7.2.
18271
18272 2010-04-05  Bruno Haible  <bruno@clisp.org>
18273
18274         Use the module 'strncat'.
18275         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18276
18277         Tests for module 'strncat'.
18278         * modules/strncat-tests: New file.
18279         * tests/test-strncat.c: New file.
18280
18281         New module 'strncat'.
18282         * lib/string.in.h (strncat): New declaration.
18283         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18284         * m4/strncat.m4: New file, based on m4/memchr.m4.
18285         * modules/strncat: New file.
18286         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18287         is declared.
18288         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18289         REPLACE_STRNCAT.
18290         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18291         REPLACE_STRNCAT.
18292         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18293         module.
18294         * tests/test-string-c++.cc: Check signature of strncat.
18295
18296 2010-04-05  Jim Meyering  <meyering@redhat.com>
18297
18298         xstrtoumax-tests: convert to use init.sh
18299         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18300         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18301         Use Exit, not exit.
18302         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18303
18304         xstrtoimax-tests: convert to use init.sh
18305         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18306         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18307         Use Exit, not exit.
18308         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18309
18310 2010-04-05  Bruno Haible  <bruno@clisp.org>
18311
18312         sys_socket: Avoid #define replacements in C++ mode.
18313         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18314         warning to the function if possible, rather than #defining the symbol
18315         to a dysfunctional alias.
18316
18317 2010-04-05  Bruno Haible  <bruno@clisp.org>
18318
18319         fseeko: Fix C++ test error on mingw.
18320         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18321         gl_FUNC_FSEEKO.
18322         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18323         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18324         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18325         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18326
18327 2010-04-05  Bruno Haible  <bruno@clisp.org>
18328
18329         duplocale: Improve test output.
18330         * tests/test-duplocale.c (main): Print reason for skipped test.
18331
18332 2010-04-05  Bruno Haible  <bruno@clisp.org>
18333
18334         Assume rmdir exists.
18335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18336         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18337
18338 2010-04-05  Bruno Haible  <bruno@clisp.org>
18339
18340         Fix link error on Solaris 8 with cc.
18341         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18342
18343 2010-04-05  Bruno Haible  <bruno@clisp.org>
18344
18345         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18346         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18347
18348 2010-04-05  Bruno Haible  <bruno@clisp.org>
18349
18350         vasprintf: Update documentation.
18351         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18352
18353 2010-04-05  Bruno Haible  <bruno@clisp.org>
18354
18355         ptsname: Improve test.
18356         * tests/test-ptsname.c (main): Also try the various master names of BSD
18357         systems.
18358
18359 2010-04-05  Bruno Haible  <bruno@clisp.org>
18360
18361         memchr: Avoid a possible C++ test error.
18362         * lib/string.in.h (memchr): Provide declaration if function is missing.
18363         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18364         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18366         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18367
18368 2010-04-05  Bruno Haible  <bruno@clisp.org>
18369
18370         strtok_r: Improve idiom.
18371         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18372         AC_LIBOBJ is used.
18373
18374 2010-04-05  Bruno Haible  <bruno@clisp.org>
18375
18376         strdup: Improve idiom.
18377         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18378         AC_LIBOBJ is used.
18379         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18380         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18381         when AC_LIBOBJ is used.
18382
18383 2010-04-05  Bruno Haible  <bruno@clisp.org>
18384
18385         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18386         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18387         don't set REPLACE_MBSINIT to 1.
18388         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18389         don't set REPLACE_MBRTOWC to 1.
18390         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18391         exist, don't set REPLACE_MBSRTOWCS to 1.
18392         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18393         exist, don't set REPLACE_MBSNRTOWCS to 1.
18394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18395         don't set REPLACE_WCRTOMB to 1.
18396         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18397         exist, don't set REPLACE_WCSRTOMBS to 1.
18398         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18399         exist, don't set REPLACE_WCSNRTOMBS to 1.
18400
18401 2010-04-05  Bruno Haible  <bruno@clisp.org>
18402
18403         ldexpl: Improve idiom.
18404         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18405         make sure to set HAVE_DECL_LDEXPL to 0.
18406
18407 2010-04-05  Jim Meyering  <meyering@redhat.com>
18408
18409         xstrtol-tests: convert to use init.sh
18410         * modules/xstrtol-tests (Files): Add tests/init.sh.
18411         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18412         Use Exit, not exit.
18413         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18414
18415         atexit-tests: convert to use init.sh
18416         * modules/atexit-tests (Files): Add tests/init.sh.
18417         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18418         Use Exit, not exit.
18419         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18420
18421         init.sh: fix typo
18422         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18423
18424         init.sh: make it easier for a test script to write to the tty, ...
18425         when using automake's parallel-tests mode.
18426         * tests/init.sh (stderr_fileno_): Define overridable variable.
18427         (warn_): New function, to use it.
18428         (fail_, skip_, framework_failure_): Use warn_.
18429
18430 2010-04-04  Bruno Haible  <bruno@clisp.org>
18431
18432         btowc: Avoid warning.
18433         * lib/btowc.c: Include <stdlib.h>.
18434         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18435
18436 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18437             Bruno Haible  <bruno@clisp.org>
18438
18439         wchar: Port to NetBSD 1.5.
18440         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18441         * lib/wctype.in.h (WEOF): Likewise.
18442
18443 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18444             Bruno Haible  <bruno@clisp.org>
18445
18446         Port extended stdio to NetBSD 1.5.
18447         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18448         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18449         older.
18450
18451 2010-04-04  Bruno Haible  <bruno@clisp.org>
18452
18453         string: Remove unused substitution.
18454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18455         HAVE_DECL_STRERROR.
18456         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18457
18458 2010-04-04  Bruno Haible  <bruno@clisp.org>
18459
18460         strtod: Avoid a possible C++ test error.
18461         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18462         set REPLACE_STRTOD.
18463
18464 2010-04-04  Bruno Haible  <bruno@clisp.org>
18465
18466         strerror: Update documentation.
18467         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18468
18469 2010-04-04  Bruno Haible  <bruno@clisp.org>
18470
18471         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18472         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18473         _GL_CXXALIAS_SYS_CAST.
18474
18475 2010-04-04  Bruno Haible  <bruno@clisp.org>
18476
18477         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18478         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18479         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18480         REPLACE_FREXPL to 1.
18481         * doc/posix-functions/frexpl.texi: Update documentation.
18482
18483 2010-04-04  Bruno Haible  <bruno@clisp.org>
18484
18485         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18486         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18487
18488 2010-04-04  Bruno Haible  <bruno@clisp.org>
18489
18490         Implement nanosleep for native Windows.
18491         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18492
18493 2010-04-04  Bruno Haible  <bruno@clisp.org>
18494
18495         math: Fix some C++ test errors on Solaris 8.
18496         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18497
18498 2010-04-04  Bruno Haible  <bruno@clisp.org>
18499
18500         math: Fix some C++ test errors on Cygwin.
18501         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18502         truncl): Provide declaration if the system does not have it.
18503         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18504         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18505         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18506         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18507         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18508         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18509         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18510         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18511         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18512         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18513         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18514         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18515         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18516         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18517         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18518         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18520         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18521         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18522         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18523         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18524         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18525
18526 2010-04-04  Bruno Haible  <bruno@clisp.org>
18527
18528         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18529         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18530         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18531         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18532         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18533         * m4/isinf.m4 (gl_ISINF): Likewise.
18534         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18535
18536 2010-04-04  Bruno Haible  <bruno@clisp.org>
18537
18538         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18540
18541 2010-04-04  Bruno Haible  <bruno@clisp.org>
18542
18543         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18544         * modules/tmpfile (configure.ac): Update.
18545
18546         tmpfile: Fix C++ test error on mingw.
18547         * lib/stdio.in.h (tmpfile): New declaration.
18548         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18549         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18550         * modules/tmpfile (Depends-on): Add stdio.
18551         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18552         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18554         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18555         REPLACE_TMPFILE.
18556         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18557
18558 2010-04-04  Bruno Haible  <bruno@clisp.org>
18559
18560         ioctl: Fix C++ test error on mingw.
18561         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18562         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18563         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18564
18565 2010-04-03  Bruno Haible  <bruno@clisp.org>
18566
18567         wcwidth: Fix C++ test error on mingw.
18568         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18570         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18571
18572 2010-04-03  Bruno Haible  <bruno@clisp.org>
18573
18574         nanosleep: Fix C++ test error on mingw.
18575         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18576         * lib/time.in.h (nanosleep): Use modern idiom.
18577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18578         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18579         REPLACE_NANOSLEEP to 1.
18580         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18581         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18582
18583 2010-04-03  Bruno Haible  <bruno@clisp.org>
18584
18585         strptime: Fix C++ test error on mingw.
18586         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18587         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18588         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18589         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18590         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18591         not REPLACE_STRPTIME.
18592         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18593         REPLACE_STRPTIME.
18594
18595 2010-04-03  Bruno Haible  <bruno@clisp.org>
18596
18597         timegm: Fix C++ test error on mingw.
18598         * lib/time.in.h (timegm): Use modern idiom.
18599         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18600         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18602         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18603
18604 2010-04-03  Bruno Haible  <bruno@clisp.org>
18605
18606         timegm: Assume declaration if function exists.
18607         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18608         if it exists. Don't clobber ac_cv_func_timegm.
18609
18610 2010-04-03  Bruno Haible  <bruno@clisp.org>
18611
18612         time_r: Fix C++ test error on mingw.
18613         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18614         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18615         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18617         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18618
18619 2010-04-03  Bruno Haible  <bruno@clisp.org>
18620
18621         time_r: Minor updates.
18622         * modules/time_r (Description): Mention the provided functions.
18623         * lib/time_r.c: Don't include <string.h>.
18624         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18625         * doc/posix-functions/localtime_r.texi: Likewise.
18626
18627 2010-04-03  Bruno Haible  <bruno@clisp.org>
18628
18629         time: Fix regression introduced on 2010-03-08.
18630         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18631         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18632
18633 2010-04-03  Jim Meyering  <meyering@redhat.com>
18634
18635         maint.mk: don't silently disable project-specific syntax-check rules
18636         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18637         that they need to convert their project-specific syntax-check rules
18638         to use the new _sc_search_regexp.
18639
18640 2010-04-03  Bruno Haible  <bruno@clisp.org>
18641
18642         fchdir: Fix regression introduced on 2010-03-08.
18643         * lib/unistd.in.h (fchdir): Fix declaration.
18644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18646         REPLACE_FCHDIR.
18647         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18648         REPLACE_FCHDIR.
18649
18650 2010-04-03  Bruno Haible  <bruno@clisp.org>
18651
18652         getpagesize: Fix C++ test error on mingw.
18653         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18654         system does not declare the function.
18655         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18656         declared.
18657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18658         HAVE_DECL_GETPAGESIZE.
18659         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18660
18661 2010-04-03  Bruno Haible  <bruno@clisp.org>
18662
18663         stdio: Make C++ tests work on mingw.
18664         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18665         does not declare the function.
18666
18667 2010-04-03  Bruno Haible  <bruno@clisp.org>
18668
18669         ftello: Fix C++ test error on mingw.
18670         * lib/stdio.in.h (ftello): Use modern idiom.
18671         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18672         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18673         is missing and that it needs to be replaced.
18674         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18676         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18677
18678 2010-04-03  Bruno Haible  <bruno@clisp.org>
18679
18680         fseeko: Fix C++ test error on mingw.
18681         * lib/stdio.in.h (fseeko): Use modern idiom.
18682         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18684         is missing and that it needs to be replaced.
18685         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18687         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18688
18689 2010-04-03  Bruno Haible  <bruno@clisp.org>
18690
18691         mkstemp: Fix C++ test error on mingw.
18692         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18694         function is missing and that it needs to be replaced.
18695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18696         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18697
18698 2010-04-03  Bruno Haible  <bruno@clisp.org>
18699
18700         stpncpy: Fix C++ test error on mingw.
18701         * lib/string.in.h (stpncpy): Use modern idiom.
18702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18703         function is missing and that it needs to be replaced.
18704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18705         REPLACE_STPNCPY.
18706         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18707
18708 2010-04-03  Bruno Haible  <bruno@clisp.org>
18709
18710         sys_stat: Fix C++ test error on mingw.
18711         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18712         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18713
18714 2010-04-03  Bruno Haible  <bruno@clisp.org>
18715
18716         pty: Update doc.
18717         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18718
18719 2010-04-03  Bruno Haible  <bruno@clisp.org>
18720
18721         unistd: Fix C++ test error on mingw.
18722         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18723
18724 2010-04-03  Bruno Haible  <bruno@clisp.org>
18725
18726         Update doc regarding mingw.
18727         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18728         * doc/glibc-functions/login_tty.texi: Likewise.
18729         * doc/glibc-functions/forkpty.texi: Likewise.
18730
18731 2010-04-03  Bruno Haible  <bruno@clisp.org>
18732
18733         stdlib: Avoid compilation failure of c-strtold on mingw.
18734         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18735
18736 2010-04-03  Bruno Haible  <bruno@clisp.org>
18737
18738         locale: Make C++ tests work on Cygwin and mingw.
18739         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18740         cannot provide the function.
18741         Reported by Simon Josefsson.
18742
18743 2010-04-03  Bruno Haible  <bruno@clisp.org>
18744
18745         localename: Port to MacOS X 10.6.
18746         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18747         memory layout of the locales in MacOS X 10.6 as well.
18748         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18749
18750 2010-04-02  Bruno Haible  <bruno@clisp.org>
18751
18752         gnulib-tool: Ensure that long-running tests are executed last.
18753         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18754         running tests after the one for the other tests.
18755
18756 2010-04-02  Bruno Haible  <bruno@clisp.org>
18757
18758         gnulib-tool: Ensure the tests in the main directory are executed first.
18759         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18760         start with the current directory.
18761
18762 2010-04-02  Bruno Haible  <bruno@clisp.org>
18763
18764         Tests for module 'havelib', moved here from GNU gettext.
18765         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18766         modifications.
18767         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18768         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18769         with modifications.
18770         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18771         modifications.
18772         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18773         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18774         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18775         with modifications.
18776         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18777         with modifications.
18778         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18779         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18780         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18781         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18782         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18783         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18784         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18785         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18786         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18787         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18788         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18789         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18790         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18791         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18792         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18793         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18794         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18795         with modifications.
18796         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18797         with modifications.
18798         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18799         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18800         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18801         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18802         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18803         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18804         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18805         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18806         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18807         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18808         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18809         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18810         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18811         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18812         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18813         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18814         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18815         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18816         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18817         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18818         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18819         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18820         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18821         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18822         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18823         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18824         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18825         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18826         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18827         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18828         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18829         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18830         * tests/havelib/rpathx/rpathx.c: New file, from
18831         gettext/autoconf-lib-link.
18832         * tests/havelib/rpathx/Makefile.am: New file, from
18833         gettext/autoconf-lib-link.
18834         * tests/havelib/rpathx/configure.ac: New file, from
18835         gettext/autoconf-lib-link with modifications.
18836         * tests/havelib/rpathy/rpathy.c: New file, from
18837         gettext/autoconf-lib-link.
18838         * tests/havelib/rpathy/Makefile.am: New file, from
18839         gettext/autoconf-lib-link.
18840         * tests/havelib/rpathy/configure.ac: New file, from
18841         gettext/autoconf-lib-link with modifications.
18842         * tests/havelib/rpathz/rpathz.c: New file, from
18843         gettext/autoconf-lib-link.
18844         * tests/havelib/rpathz/Makefile.am: New file, from
18845         gettext/autoconf-lib-link.
18846         * tests/havelib/rpathz/configure.ac: New file, from
18847         gettext/autoconf-lib-link with modifications.
18848         * tests/havelib/rpathlx/usex.c: New file, from
18849         gettext/autoconf-lib-link.
18850         * tests/havelib/rpathlx/Makefile.am: New file, from
18851         gettext/autoconf-lib-link.
18852         * tests/havelib/rpathlx/configure.ac: New file, from
18853         gettext/autoconf-lib-link with modifications.
18854         * tests/havelib/rpathly/usey.c: New file, from
18855         gettext/autoconf-lib-link.
18856         * tests/havelib/rpathly/Makefile.am: New file, from
18857         gettext/autoconf-lib-link.
18858         * tests/havelib/rpathly/configure.ac: New file, from
18859         gettext/autoconf-lib-link with modifications.
18860         * tests/havelib/rpathlz/usez.c: New file, from
18861         gettext/autoconf-lib-link.
18862         * tests/havelib/rpathlz/Makefile.am: New file, from
18863         gettext/autoconf-lib-link.
18864         * tests/havelib/rpathlz/configure.ac: New file, from
18865         gettext/autoconf-lib-link with modifications.
18866         * tests/havelib/rpathlyx/usey.c: New file, from
18867         gettext/autoconf-lib-link.
18868         * tests/havelib/rpathlyx/Makefile.am: New file, from
18869         gettext/autoconf-lib-link.
18870         * tests/havelib/rpathlyx/configure.ac: New file, from
18871         gettext/autoconf-lib-link with modifications.
18872         * tests/havelib/rpathlzyx/usez.c: New file, from
18873         gettext/autoconf-lib-link.
18874         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18875         gettext/autoconf-lib-link.
18876         * tests/havelib/rpathlzyx/configure.ac: New file, from
18877         gettext/autoconf-lib-link with modifications.
18878         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18879         with modifications.
18880
18881 2010-04-02  Bruno Haible  <bruno@clisp.org>
18882
18883         gnulib-tool: Create distributed built sources also for the tests.
18884         * gnulib-tool (func_create_testdir): Also generate distributed built
18885         sources in the tests directory.
18886
18887 2010-04-02  Bruno Haible  <bruno@clisp.org>
18888
18889         gnulib-tool: Obey user's environment variables.
18890         * gnulib-tool (func_create_testdir): When creating built sources,
18891         respect the environment variables for autoconf, automake, etc. given by
18892         the user.
18893
18894 2010-04-02  Bruno Haible  <bruno@clisp.org>
18895
18896         gnulib-tool: Provide the value of --m4-base to modules.
18897         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18898         of gl_m4_base.
18899
18900 2010-04-02  Eric Blake  <eblake@redhat.com>
18901
18902         maint.mk: fix some fallout
18903         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18904         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18905
18906 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18907
18908         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18909         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18910         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18911         (sc_cast_of_x_alloc_return_value): Likewise.
18912         (sc_cast_of_alloca_return_value): Likewise.
18913         (sc_space_tab): Likewise.
18914         (sc_prohibit_atoi_atof): Likewise.
18915         (sc_prohibit_magic_number_exit): Likewise.
18916         (sc_error_exit_success): Likewise.
18917         (sc_file_system): Likewise.
18918         (sc_prohibit_have_config_h): Likewise.
18919         (sc_require_config_h): Likewise.
18920         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18921         (sc_obsolete_symbols): Likewise.
18922         (sc_changelog): Likewise.
18923         (sc_program_name): Likewise.
18924         (sc_the_the): Likewise.
18925         (sc_trailing_blank): Likewise.
18926         (sc_two_space_separator_in_usage): Likewise.
18927         (sc_useless_cpp_parens): Likewise.
18928         (sc_GPL_version): Likewise.
18929         (sc_GFDL_version): Likewise.
18930         (sc_texinfo_acronym): Likewise.
18931         (sc_prohibit_cvs_keyword): Likewise.
18932         (sc_prohibit_stat_st_blocks): Likewise.
18933         (sc_prohibit_S_IS_definition): Likewise.
18934         (sc_redundant_const): Likewise.
18935         (sc_makefile_TAB_only_indentation): Likewise.
18936         (sc_m4_quote_check): Likewise.
18937         (sc_makefile_path_separator_check): Likewise.
18938         (sc_copyright_check): Likewise.
18939         (sc_Wundef_boolean): Likewise.
18940         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18941
18942         maint.mk: match 0 or more whitespace-before-function-call '('
18943         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18944         that have zero or two-and-more spaces between the function name
18945         and the open parenthesis.
18946         (sc_error_message_warn_fatal): Likewise.
18947         (sc_error_message_uppercase): Likewise.
18948         (sc_error_message_period): Likewise.
18949
18950 2010-03-31  Eric Blake  <eblake@redhat.com>
18951
18952         maint.mk: check for [ as well as test
18953         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18954         Based on a libvirt report by Matthias Bolte.
18955
18956         gnumakefile: don't squelch _version output
18957         * top/GNUmakefile (_version): Create one-shot dependency rather
18958         than using $(shell) when version must be regenerated.
18959         (_autoreconf): Run verbosely, by default.
18960
18961         sys_time: avoid compiler warnings
18962         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18963         unconditional, fixing regression from 2010-03-29.
18964         Reported by Simon Josefsson.
18965
18966 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18967
18968         maint.mk: s/_header_without_use/_sc_header_without_use/
18969         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18970         (sc_prohibit_assert_without_use): Use the new name.
18971         (sc_prohibit_close_stream_without_use): Likewise.
18972         (sc_prohibit_getopt_without_use): Likewise.
18973         (sc_prohibit_quotearg_without_use): Likewise.
18974         (sc_prohibit_quote_without_use): Likewise.
18975         (sc_prohibit_long_options_without_use): Likewise.
18976         (sc_prohibit_inttostr_without_use): Likewise.
18977         (sc_prohibit_ignore_value_without_use): Likewise.
18978         (sc_prohibit_error_without_use): Likewise.
18979         (sc_prohibit_xalloc_without_use): Likewise.
18980         (sc_prohibit_hash_without_use): Likewise.
18981         (sc_prohibit_hash_pjw_without_use): Likewise.
18982         (sc_prohibit_safe_read_without_use): Likewise.
18983         (sc_prohibit_argmatch_without_use): Likewise.
18984         (sc_prohibit_canonicalize_without_use): Likewise.
18985         (sc_prohibit_root_dev_ino_without_use): Likewise.
18986         (sc_prohibit_openat_without_use): Likewise.
18987         (sc_prohibit_c_ctype_without_use): Likewise.
18988         (sc_prohibit_signal_without_use): Likewise.
18989         (sc_prohibit_intprops_without_use): Likewise.
18990
18991 2010-03-30  Eric Blake  <eblake@redhat.com>
18992
18993         maint: improve module indicators
18994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18995         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18996         columns, and avoid extra macro expansion.
18997
18998         fdopendir: work around FreeBSD bug
18999         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19001         * modules/dirent (Makefile.am): Substitute it.
19002         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19003         declaration.
19004         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19005         fix.
19006         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19007
19008 2010-03-29  Bruno Haible  <bruno@clisp.org>
19009
19010         Emit #pragma system_header after the inclusion guard, not before.
19011         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19012         guard that spans the entire file, not before. This enables an
19013         optimization in GCC's preprocessor.
19014         * lib/ctype.in.h: Likewise.
19015         * lib/dirent.in.h: Likewise.
19016         * lib/errno.in.h: Likewise.
19017         * lib/float.in.h: Likewise.
19018         * lib/getopt.in.h: Likewise.
19019         * lib/iconv.in.h: Likewise.
19020         * lib/langinfo.in.h: Likewise.
19021         * lib/locale.in.h: Likewise.
19022         * lib/math.in.h: Likewise.
19023         * lib/netdb.in.h: Likewise.
19024         * lib/netinet_in.in.h: Likewise.
19025         * lib/pty.in.h: Likewise.
19026         * lib/sched.in.h: Likewise.
19027         * lib/se-selinux.in.h: Likewise.
19028         * lib/search.in.h: Likewise.
19029         * lib/spawn.in.h: Likewise.
19030         * lib/stdarg.in.h: Likewise.
19031         * lib/stdint.in.h: Likewise.
19032         * lib/string.in.h: Likewise.
19033         * lib/strings.in.h: Likewise.
19034         * lib/sys_file.in.h: Likewise.
19035         * lib/sys_ioctl.in.h: Likewise.
19036         * lib/sys_time.in.h: Likewise.
19037         * lib/sys_times.in.h: Likewise.
19038         * lib/sys_utsname.in.h: Likewise.
19039         * lib/sys_wait.in.h: Likewise.
19040         * lib/sysexits.in.h: Likewise.
19041         * lib/wctype.in.h: Likewise.
19042
19043 2010-03-28  James Youngman  <jay@gnu.org>
19044
19045         save-cwd: don't leak a file descriptor when the caller execs.
19046         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19047         saved file descriptor.
19048         * modules/save-cwd (Depends-on): Depend on cloexec.
19049
19050 2010-03-29  Bruno Haible  <bruno@clisp.org>
19051
19052         Remove vestiges of fts-lgpl module.
19053         * lib/fts_.h: Assume GNULIB_FTS is 1.
19054         * lib/fts.c: Likewise.
19055         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19056
19057 2010-03-28  Bruno Haible  <bruno@clisp.org>
19058
19059         Fix definition of tests witness macro.
19060         * gnulib-tool (func_import): Fix definition of witness macro.
19061
19062 2010-03-28  Bruno Haible  <bruno@clisp.org>
19063
19064         Fix ioctl's protoype on glibc systems.
19065         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19066         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19067         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19068         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19069         signature. If not, arrange to replace the ioctl function.
19070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19071         REPLACE_IOCTL.
19072         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19073         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19074         Reported by Ludovic Courtès <ludo@gnu.org>.
19075
19076 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19077
19078         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19079         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19080         made it so grep -r --include=GLOB* ... did not work.
19081
19082 2010-03-26  Jim Meyering  <meyering@redhat.com>
19083             Eric Blake  <eblake@redhat.com>
19084
19085         maint.mk: prohibit use of test's -o and -a operators
19086         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19087
19088 2010-03-28  Bruno Haible  <bruno@clisp.org>
19089
19090         Remove unused GNULIB_XYZ macro definitions.
19091         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19092         invocation.
19093
19094 2010-03-28  Bruno Haible  <bruno@clisp.org>
19095
19096         Mark privileged tests modules.
19097         * modules/idpriv-drop-tests (Status): New section.
19098         * modules/idpriv-droptemp-tests (Status): New section.
19099
19100 2010-03-28  Bruno Haible  <bruno@clisp.org>
19101
19102         Split C++ tests into separate tests modules.
19103         * modules/dirent-c++-tests: New file, extracted from
19104         modules/dirent-tests.
19105         * modules/dirent-tests: Depend on it.
19106         * modules/fcntl-h-c++-tests: New file, extracted from
19107         modules/fcntl-h-tests.
19108         * modules/fcntl-h-tests: Depend on it.
19109         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19110         * modules/glob-tests: Depend on it.
19111         * modules/iconv-h-c++-tests: New file, extracted from
19112         modules/iconv-h-tests.
19113         * modules/iconv-h-tests: Depend on it.
19114         * modules/langinfo-c++-tests: New file, extracted from
19115         modules/langinfo-tests.
19116         * modules/langinfo-tests: Depend on it.
19117         * modules/locale-c++-tests: New file, extracted from
19118         modules/locale-tests.
19119         * modules/locale-tests: Depend on it.
19120         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19121         * modules/math-tests: Depend on it.
19122         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19123         * modules/pty-tests: Depend on it.
19124         * modules/search-c++-tests: New file, extracted from
19125         modules/search-tests.
19126         * modules/search-tests: Depend on it.
19127         * modules/signal-c++-tests: New file, extracted from
19128         modules/signal-tests.
19129         * modules/signal-tests: Depend on it.
19130         * modules/spawn-c++-tests: New file, extracted from
19131         modules/spawn-tests.
19132         * modules/spawn-tests: Depend on it.
19133         * modules/stdio-c++-tests: New file, extracted from
19134         modules/stdio-tests.
19135         * modules/stdio-tests: Depend on it.
19136         * modules/stdlib-c++-tests: New file, extracted from
19137         modules/stdlib-tests.
19138         * modules/stdlib-tests: Depend on it.
19139         * modules/string-c++-tests: New file, extracted from
19140         modules/string-tests.
19141         * modules/string-tests: Depend on it.
19142         * modules/sys_ioctl-c++-tests: New file, extracted from
19143         modules/sys_ioctl-tests.
19144         * modules/sys_ioctl-tests: Depend on it.
19145         * modules/sys_select-c++-tests: New file, extracted from
19146         modules/sys_select-tests.
19147         * modules/sys_select-tests: Depend on it.
19148         * modules/sys_socket-c++-tests: New file, extracted from
19149         modules/sys_socket-tests.
19150         * modules/sys_socket-tests: Depend on it.
19151         * modules/sys_stat-c++-tests: New file, extracted from
19152         modules/sys_stat-tests.
19153         * modules/sys_stat-tests: Depend on it.
19154         * modules/sys_time-c++-tests: New file, extracted from
19155         modules/sys_time-tests.
19156         * modules/sys_time-tests: Depend on it.
19157         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19158         * modules/time-tests: Depend on it.
19159         * modules/unistd-c++-tests: New file, extracted from
19160         modules/unistd-tests.
19161         * modules/unistd-tests: Depend on it.
19162         * modules/wchar-c++-tests: New file, extracted from
19163         modules/wchar-tests.
19164         * modules/wchar-tests: Depend on it.
19165         * modules/wctype-c++-tests: New file, extracted from
19166         modules/wctype-tests.
19167         * modules/wctype-tests: Depend on it.
19168         Reported by Simon Josefsson.
19169
19170 2010-03-28  Bruno Haible  <bruno@clisp.org>
19171
19172         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19173         * gnulib-tool (func_exists_module): New function, extracted from
19174         func_verify_module.
19175         (func_verify_module): Use it.
19176         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19177         'foo' only if 'foo' exists.
19178         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19179         module.
19180
19181 2010-03-28  Bruno Haible  <bruno@clisp.org>
19182
19183         gnulib-tool: Add support for special categories of tests.
19184         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19185         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19186         (func_usage): Document them.
19187         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19188         inc_unportable_tests, inc_all_tests): New variables.
19189         (func_acceptable): Consider these variables.
19190         (func_modules_transitive_closure): Make it work when the 'Status' field
19191         consists of multiple words.
19192         (func_import): Store and restore the values of inc_cxx_tests,
19193         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19194         inc_all_tests in gnulib-comp.m4.
19195         (func_create_testdir): Set inc_all_tests to true.
19196         * doc/gnulib.texi (Extra tests modules): New section.
19197         Suggested by Jim Meyering.
19198
19199 2010-03-28  Bruno Haible  <bruno@clisp.org>
19200
19201         ansi-c++-opt: Allow turning off the C++ build by default.
19202         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19203         gl_CXX_CHOICE_DEFAULT_NO is defined.
19204         Requested by Eric Blake.
19205
19206 2010-03-28  Bruno Haible  <bruno@clisp.org>
19207
19208         unistd: Avoid #define replacements in C++ mode.
19209         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19210         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19211         setsockopt, shutdown, select): In C++, attach a warning to the function
19212         if possible, rather than #defining the symbol to a dysfunctional alias.
19213         Reported by John W. Eaton <jwe@gnu.org>.
19214
19215 2010-03-28  Bruno Haible  <bruno@clisp.org>
19216
19217         Fix link errors on mingw.
19218         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19219         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19220         $(LIBSOCKET).
19221         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19222         $(LIBSOCKET).
19223
19224 2010-03-28  Bruno Haible  <bruno@clisp.org>
19225             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19226
19227         lib-ignore: Determine different options for different compilers.
19228         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19229         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19230         Add comments.
19231         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19232         * NEWS: Mention the change.
19233
19234 2010-03-27  Bruno Haible  <bruno@clisp.org>
19235
19236         Remove unused GNULIB_XYZ macro definitions.
19237         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19238         * modules/fseek (configure.ac): Likewise.
19239         * modules/ioctl (configure.ac): Likewise.
19240         * modules/open (configure.ac): Likewise.
19241         * modules/stdlib-safer (configure.ac): Likewise.
19242
19243 2010-03-27  Bruno Haible  <bruno@clisp.org>
19244
19245         Add a remark about certain modules.
19246         * modules/malloc (Comment): New section.
19247         * modules/realloc (Comment): Likewise.
19248         * modules/sigpipe (Comment): Likewise.
19249
19250 2010-03-27  Bruno Haible  <bruno@clisp.org>
19251
19252         Resolve conflict between the two kinds of module indicators.
19253         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19254         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19255         * modules/canonicalize (configure.ac): Invoke
19256         gl_MODULE_INDICATOR_FOR_TESTS.
19257         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19258         GNULIB_XYZ.
19259         * tests/test-dirent-c++.cc: Likewise.
19260         * tests/test-dirent-safer.c: Likewise.
19261         * tests/test-dup2.c: Likewise.
19262         * tests/test-fchdir.c: Likewise.
19263         * tests/test-fcntl-h-c++.cc: Likewise.
19264         * tests/test-getopt.c: Likewise.
19265         * tests/test-getopt.h: Likewise.
19266         * tests/test-langinfo-c++.cc: Likewise.
19267         * tests/test-locale-c++.cc: Likewise.
19268         * tests/test-math-c++.cc: Likewise.
19269         * tests/test-pty-c++.cc: Likewise.
19270         * tests/test-search-c++.cc: Likewise.
19271         * tests/test-signal-c++.cc: Likewise.
19272         * tests/test-spawn-c++.cc: Likewise.
19273         * tests/test-stdio-c++.cc: Likewise.
19274         * tests/test-stdlib-c++.cc: Likewise.
19275         * tests/test-string-c++.cc: Likewise.
19276         * tests/test-sys_ioctl-c++.cc: Likewise.
19277         * tests/test-sys_select-c++.cc: Likewise.
19278         * tests/test-sys_socket-c++.cc: Likewise.
19279         * tests/test-sys_stat-c++.cc: Likewise.
19280         * tests/test-sys_time-c++.cc: Likewise.
19281         * tests/test-time-c++.cc: Likewise.
19282         * tests/test-unistd-c++.cc: Likewise.
19283         * tests/test-wchar-c++.cc: Likewise.
19284         * tests/uninorm/test-u8-nfc.c: Likewise.
19285         * tests/uninorm/test-u8-nfd.c: Likewise.
19286         * tests/uninorm/test-u8-nfkc.c: Likewise.
19287         * tests/uninorm/test-u8-nfkd.c: Likewise.
19288         * tests/uninorm/test-u16-nfc.c: Likewise.
19289         * tests/uninorm/test-u16-nfd.c: Likewise.
19290         * tests/uninorm/test-u16-nfkc.c: Likewise.
19291         * tests/uninorm/test-u16-nfkd.c: Likewise.
19292         * tests/uninorm/test-u32-nfc.c: Likewise.
19293         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19294         * tests/uninorm/test-u32-nfd.c: Likewise.
19295         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19296         * tests/uninorm/test-u32-nfkc.c: Likewise.
19297         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19298         * tests/uninorm/test-u32-nfkd.c: Likewise.
19299         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19300         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19301
19302 2010-03-27  Bruno Haible  <bruno@clisp.org>
19303
19304         Distinguish two kinds of module indicators.
19305         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19306         gl_MODULE_INDICATOR.
19307         (gl_MODULE_INDICATOR): New macro.
19308         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19309         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19310         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19311         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19312         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19313         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19314         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19315         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19316         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19317         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19318         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19319         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19322         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19325         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19326         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19327         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19328         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19329         * modules/cloexec (configure.ac): Likewise.
19330         * modules/getopt-gnu (configure.ac): Likewise.
19331         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19332         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19333         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19334         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19335
19336 2010-03-27  Bruno Haible  <bruno@clisp.org>
19337
19338         New module description field 'Comment'.
19339         * gnulib-tool: New option --extract-comment.
19340         (func_usage): Document it.
19341         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19342         (func_get_comment): New function.
19343         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19344
19345 2010-03-27  Bruno Haible  <bruno@clisp.org>
19346
19347         Addendum to 2010-02-07 commit.
19348         * gnulib-tool (func_usage): Document --extract-applicability option.
19349
19350 2010-03-27  Bruno Haible  <bruno@clisp.org>
19351
19352         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19353         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19354         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19355         rather than link errors.
19356
19357 2010-03-27  Bruno Haible  <bruno@clisp.org>
19358
19359         Avoid side effects from tests-related modules on the compilation of lib.
19360         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19361         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19362         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19363         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19364         macro.
19365         (func_import): Define a witness macro. Assign it a value that depends
19366         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19367         tests-related modules.
19368         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19369         Reported by Jim Meyering.
19370
19371 2010-03-27  Bruno Haible  <bruno@clisp.org>
19372
19373         Factorize common .m4 code.
19374         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19375         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19376         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19377         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19379         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19380         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19381         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19382         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19384         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19385         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19386         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19387         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19388         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19389         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19390         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19391         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19393         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19394         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19396         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19397         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19398         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19399         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19400         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19401         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19404         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19406
19407 2010-03-27  Bruno Haible  <bruno@clisp.org>
19408
19409         Fix a compilation error on Cygwin with g++ >= 4.3.
19410         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19411         if it is undefined or if we alias it to chmod.
19412         (lstat): Don't warn about the use of this function if it is undefined
19413         or if we alias it to stat.
19414         Reported by Simon Josefsson.
19415
19416 2010-03-27  Bruno Haible  <bruno@clisp.org>
19417
19418         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19419         * modules/getlogin (configure.ac): Update.
19420
19421         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19422         * modules/getlogin_r (configure.ac): Update.
19423
19424         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19426         * modules/inet_ntop (configure.ac): Update.
19427
19428         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19429         * modules/inet_pton (configure.ac): Update.
19430
19431         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19432         * modules/mbslen (configure.ac): Update.
19433
19434         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19435         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19436         * modules/forkpty (configure.ac): Update.
19437         * modules/openpty (configure.ac): Update.
19438
19439 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19440
19441         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19442         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19443
19444 2010-03-25  Eric Blake  <eblake@redhat.com>
19445
19446         maint: use pragma consistently across replacement headers
19447         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19448         * lib/dirent.in.h (system_header): Likewise.
19449         * lib/errno.in.h (system_header): Likewise.
19450         * lib/float.in.h (system_header): Likewise.
19451         * lib/getopt.in.h (system_header): Likewise.
19452         * lib/iconv.in.h (system_header): Likewise.
19453         * lib/inttypes.in.h (system_header): Likewise.
19454         * lib/langinfo.in.h (system_header): Likewise.
19455         * lib/locale.in.h (system_header): Likewise.
19456         * lib/math.in.h (system_header): Likewise.
19457         * lib/netdb.in.h (system_header): Likewise.
19458         * lib/netinet_in.in.h (system_header): Likewise.
19459         * lib/pty.in.h (system_header): Likewise.
19460         * lib/sched.in.h (system_header): Likewise.
19461         * lib/se-selinux.in.h (system_header): Likewise.
19462         * lib/search.in.h (system_header): Likewise.
19463         * lib/spawn.in.h (system_header): Likewise.
19464         * lib/stdarg.in.h (system_header): Likewise.
19465         * lib/stdint.in.h (system_header): Likewise.
19466         * lib/string.in.h (system_header): Likewise.
19467         * lib/strings.in.h (system_header): Likewise.
19468         * lib/sys_file.in.h (system_header): Likewise.
19469         * lib/sys_ioctl.in.h (system_header): Likewise.
19470         * lib/sys_socket.in.h (system_header): Likewise.
19471         * lib/sys_times.in.h (system_header): Likewise.
19472         * lib/sys_utsname.in.h (system_header): Likewise.
19473         * lib/sys_wait.in.h (system_header): Likewise.
19474         * lib/sysexits.in.h (system_header): Likewise.
19475         * lib/unistd.in.h (system_header): Likewise.
19476         * lib/wctype.in.h (system_header): Likewise.
19477
19478         arpa/inet: fix mingw compilation warning
19479         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19480         Reported by Matthew Bolte.
19481
19482 2010-03-25  Bruno Haible  <bruno@clisp.org>
19483
19484         Avoid collision between gnulib wrapper and libintl wrapper.
19485         * lib/printf.c (printf): Don't define if a printf wrapper is already
19486         defined in intl/printf.c.
19487         Reported by Michel Boaventura <michel@michelboaventura.com>.
19488
19489 2010-03-25  Bruno Haible  <bruno@clisp.org>
19490
19491         Use ANSI C.
19492         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19493
19494 2010-03-25  Bruno Haible  <bruno@clisp.org>
19495
19496         Minor formatting changes.
19497         * lib/acosl.c: Insert space before function argument list.
19498         * lib/argz.c: Likewise.
19499         * lib/asinl.c: Likewise.
19500         * lib/expl.c: Likewise.
19501         * lib/gen-uni-tables.c: Likewise.
19502         * lib/gettext.h: Likewise.
19503         * lib/glthread/lock.h: Likewise.
19504         * lib/tanl.c: Likewise.
19505         * lib/uniname/uniname.c: Likewise.
19506         * tests/test-idpriv-drop.c: Likewise.
19507         * tests/test-idpriv-droptemp.c: Likewise.
19508         * tests/test-lock.c: Likewise.
19509         * tests/test-tls.c: Likewise.
19510         * lib/argp-help.c: Insert space before function-like macro argument
19511         list.
19512         * lib/memcmp.c: Likewise.
19513         * tests/test-base64.c: Likewise.
19514         * lib/localename.c: Insert space before sizeof's argument list.
19515         * lib/safe-alloc.h: Likewise.
19516         * lib/file-set.h: Insert space before macro argument list.
19517         * tests/test-argp.c: Likewise.
19518         * lib/argp-namefrob.h: Insert space before function parameter list.
19519         * lib/getaddrinfo.c: Likewise.
19520         * lib/netdb.in.h: Likewise.
19521         * lib/parse-duration.h: Likewise.
19522         * lib/parse-duration.c: Likewise.
19523         * lib/poll.c: Likewise.
19524         * lib/select.c: Likewise.
19525         * lib/trim.h: Likewise.
19526         * tests/test-usleep.c: Likewise.
19527         * lib/ldexpl.c: Insert space before function parameter list and before
19528         function argument list.
19529         * lib/logl.c: Likewise.
19530         * lib/sqrtl.c: Likewise.
19531         * lib/trim.c: Likewise.
19532         * lib/cosl.c: Use GNU style indentation. Insert space before function
19533         argument list.
19534         * lib/sinl.c: Likewise.
19535         * lib/tsearch.c: Insert space after 'for'.
19536         Reported by Jim Meyering.
19537
19538 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19539
19540         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19541         config header before grepping, as it's not present before
19542         autoreconf/configure are run.  Reported by Simon Josefsson.
19543
19544 2010-03-23  Bruno Haible  <bruno@clisp.org>
19545
19546         pt_chown: Make it work with automake < 1.11.
19547         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19548         Reported by Simon Josefsson.
19549
19550 2010-03-23  Bruno Haible  <bruno@clisp.org>
19551
19552         pt_chown: Don't depend on GPLed modules.
19553         * lib/pt_chown.c: Don't include idpriv.h.
19554         (main): Don't drop privileges.
19555         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19556         Reported by Simon Josefsson.
19557
19558 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19559
19560         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19561         suggestions from karl@freefriends.org (Karl Berry).
19562
19563 2010-03-22  Eric Blake  <eblake@redhat.com>
19564
19565         gethostname: further tweaks
19566         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19567         are overriding gethostname.
19568         Suggested by Bruno Haible.
19569
19570 2010-03-21  Bruno Haible  <bruno@clisp.org>
19571
19572         Fix comments.
19573         * lib/forkpty.c (rpl_forkpty): Fix comment.
19574         * lib/openpty.c (rpl_openpty): Likewise.
19575         Reported by Eric Blake.
19576
19577 2010-03-22  Eric Blake  <eblake@redhat.com>
19578
19579         gethostname: fix build on mingw
19580         * lib/unistd.in.h (includes): Work around fact that mingw
19581         <winsock2.h> re-includes <unistd.h>, by avoiding any
19582         redeclarations if we are being included by <winsock2.h>.
19583         Reported by Matthias Bolte.
19584
19585 2010-03-21  Bruno Haible  <bruno@clisp.org>
19586
19587         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19588         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19589         modifications.
19590         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19591         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19592         provide the replacement.
19593         * modules/forkpty (Depends-on): Add openpty, login_tty.
19594         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19595         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19596         * doc/glibc-functions/forkpty.texi: More supported platforms.
19597         * config/srclist.txt: Add forkpty.c (commented).
19598
19599 2010-03-21  Bruno Haible  <bruno@clisp.org>
19600
19601         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19602         (Makefile.am): Verify that PTY_LIB is defined.
19603
19604         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19605
19606 2010-03-21  Bruno Haible  <bruno@clisp.org>
19607
19608         Tests for module 'login_tty'.
19609         * modules/login_tty-tests: New file.
19610         * tests/test-login_tty.c: New file.
19611
19612         New module 'login_tty'.
19613         * lib/login_tty.c: New file.
19614         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19615         * modules/login_tty: New file.
19616         * doc/glibc-functions/login_tty.texi: Mention the new module.
19617
19618 2010-03-21  Bruno Haible  <bruno@clisp.org>
19619
19620         login_tty: Documentation.
19621         * doc/glibc-functions/login_tty.texi: New file.
19622         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19623
19624 2010-03-21  Bruno Haible  <bruno@clisp.org>
19625
19626         pty: Consistent macro naming.
19627         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19628         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19629         * modules/pty (configure.ac): Update.
19630
19631 2010-03-21  Bruno Haible  <bruno@clisp.org>
19632
19633         Tests for openpty: Make stricter.
19634         * tests/test-openpty.c (main): Add test of canonical processing and
19635         erase.
19636         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19637
19638         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19639         * lib/openpty.c (openpty): New replacement function.
19640         * lib/pty.in.h: Include <termios.h>.
19641         (openpty): Update declaration. Add comments.
19642         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19643         is not declared, arrange to provide the replacement. Check for _getpty
19644         and posix_openpt.
19645         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19646         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19647         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19648         * modules/pty-tests (test_pty_c___LDADD): New variable.
19649         * doc/glibc-functions/openpty.texi: More supported platforms.
19650
19651 2010-03-21  Bruno Haible  <bruno@clisp.org>
19652
19653         setenv: Tweaks.
19654         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19655         the test program.
19656         * doc/posix-functions/setenv.texi: Update platforms list.
19657
19658 2010-03-21  Bruno Haible  <bruno@clisp.org>
19659
19660         New module 'unlockpt'.
19661         * lib/unlockpt.c: New file, from glibc with modifications.
19662         * m4/unlockpt.m4: New file.
19663         * modules/unlockpt: New file.
19664         * lib/stdlib.in.h (unlockpt): New declaration.
19665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19666         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19667         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19668         HAVE_UNLOCKPT.
19669         * doc/posix-functions/unlockpt.texi: Mention the new module.
19670         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19671         * config/srclist.txt: Add unlockpt.c (commented).
19672
19673 2010-03-21  Jim Meyering  <meyering@redhat.com>
19674
19675         maint.mk: prohibit inclusion of "intprops.h" without use
19676         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19677
19678 2010-03-21  Bruno Haible  <bruno@clisp.org>
19679
19680         New module 'grantpt'.
19681         * lib/grantpt.c: New file, from glibc with modifications.
19682         * m4/grantpt.m4: New file.
19683         * modules/grantpt: New file.
19684         * lib/stdlib.in.h (grantpt): New declaration.
19685         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19686         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19687         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19688         HAVE_GRANTPT.
19689         * doc/posix-functions/grantpt.texi: Mention the new module.
19690         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19691         * config/srclist.txt: Add grantpt.c (commented).
19692
19693 2010-03-21  Bruno Haible  <bruno@clisp.org>
19694
19695         New module 'pt_chown'.
19696         * lib/pt_chown.c: New file, from glibc with modifications.
19697         * lib/pty-private.h: New file, from glibc with modifications.
19698         * modules/pt_chown: New file.
19699         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19700
19701 2010-03-21  Bruno Haible  <bruno@clisp.org>
19702
19703         Tests for module 'ptsname'.
19704         * modules/ptsname-tests: New file.
19705         * tests/test-ptsname.c: New file.
19706
19707         New module 'ptsname'.
19708         * lib/ptsname.c: New file, from glibc with modifications.
19709         * m4/ptsname.m4: New file.
19710         * modules/ptsname: New file.
19711         * lib/stdlib.in.h (ptsname): New declaration.
19712         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19713         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19714         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19715         HAVE_PTSNAME.
19716         * doc/posix-functions/ptsname.texi: Mention the new module.
19717         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19718         * config/srclist.txt: Add ptsname.c (commented).
19719
19720 2010-03-21  Bruno Haible  <bruno@clisp.org>
19721
19722         Tests for module 'ttyname_r'.
19723         * modules/ttyname_r-tests: New file.
19724         * tests/test-ttyname_r.c: New file.
19725
19726         New module 'ttyname_r'.
19727         * lib/ttyname_r.c: New file.
19728         * m4/ttyname_r.m4: New file.
19729         * modules/ttyname_r: New file.
19730         * lib/unistd.in.h (ttyname_r): New declaration.
19731         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19732         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19733         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19734         HAVE_TTYNAME_R.
19735         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19736         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19737
19738 2010-03-20  Bruno Haible  <bruno@clisp.org>
19739
19740         signal: Undefine macro definitions in C++ mode.
19741         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19742         sigfillset): Undefine macro definitions from the system header in C++
19743         mode.
19744         Reported by John W. Eaton <jwe@gnu.org>.
19745
19746 2010-03-20  Bruno Haible  <bruno@clisp.org>
19747
19748         Ensure no #include statements inside extern "C" { ... }.
19749         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19750         contain #include statements.
19751         * lib/time.in.h: Likewise.
19752
19753 2010-03-20  Bruno Haible  <bruno@clisp.org>
19754
19755         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19756         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19757         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19758         Reported by John W. Eaton <jwe@gnu.org>.
19759
19760 2010-03-20  Bruno Haible  <bruno@clisp.org>
19761
19762         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19763         Reported by Jim Meyering.
19764
19765 2010-03-20  Bruno Haible  <bruno@clisp.org>
19766
19767         pipe: Set errno upon failure.
19768         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19769         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19770         errno value in error message.
19771
19772 2010-03-20  Bruno Haible  <bruno@clisp.org>
19773             Jim Meyering  <meyering@redhat.com>
19774
19775         lchown: Avoid "unused variable" warning.
19776         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19777
19778 2010-03-20  Bruno Haible  <bruno@clisp.org>
19779
19780         Work around unlink() bug on MacOS X 10.5.6.
19781         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19782         attempting to unlink a parent directory.
19783         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19784         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19785         activate for the replacement function.
19786         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19787
19788 2010-03-20  Bruno Haible  <bruno@clisp.org>
19789
19790         Fix link errors on Solaris 8.
19791         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19792         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19793
19794 2010-03-19  Jim Meyering  <meyering@redhat.com>
19795
19796         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19797         The _LIBC implementation of build_range_exp correctly honors the
19798         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19799         However, the non-_LIBC implementation would ignore that syntax-bit
19800         flag and return REG_ERANGE unconditionally.
19801         This change makes it honor that flag.
19802         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19803         Make two pointer parameters "const".
19804         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19805         (parse_bracket_exp): Update caller.
19806
19807         regex.m4: correct the reversed range endpoint ([b-a]) test
19808         * m4/regex.m4: When requiring that [b-a] evoke failure,
19809         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19810         test pass once again for x86-based systems.
19811
19812 2010-03-19  Bruno Haible  <bruno@clisp.org>
19813
19814         scandir: Fix link error on Solaris 8.
19815         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19816         macros.
19817
19818 2010-03-19  Bruno Haible  <bruno@clisp.org>
19819
19820         getusershell: Fix documentation.
19821         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19822         module.
19823         * doc/glibc-functions/setusershell.texi: Likewise.
19824
19825         getusershell: Provide declaration, missing on Solaris 9.
19826         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19827         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19828         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19829         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19831         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19833         HAVE_GETUSERSHELL.
19834         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19835
19836 2010-03-19  Bruno Haible  <bruno@clisp.org>
19837
19838         wctype: Provide iswblank function.
19839         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19840         exists and is fine.
19841         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19842         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19843         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19844         * doc/posix-functions/iswblank.texi: Update.
19845
19846 2010-03-19  Bruno Haible  <bruno@clisp.org>
19847
19848         Tests of module 'pty' in C++ mode.
19849         * modules/pty-tests: New file.
19850         * tests/test-pty-c++.cc: New file.
19851         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19852
19853 2010-03-19  Eric Blake  <eblake@redhat.com>
19854
19855         logb: fix documentation
19856         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19857         1.5 declaration bug.
19858
19859         forkpty, openpty: prefer glibc's const-safe prototype
19860         * lib/forkpty.c (rpl_forkpty): New file.
19861         * lib/openpty.c (rpl_openpty): Likewise.
19862         * modules/forkpty (Files): Distribute it.
19863         * modules/openpty (Files): Likewise.
19864         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19865         check...
19866         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19867         replacement for for non-const BSD signature.
19868         * modules/pty (Makefile.am): Substitute witnesses.
19869         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19870         * tests/test-forkpty.c: Update signature check.
19871         * tests/test-openpty.c: Likewise.
19872         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19873         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19874
19875         forkpty, openpty: split functions into new modules
19876         * modules/pty (Makefile.am): Substitute new witnesses.
19877         (Libraries): Move library detection...
19878         * modules/forkpty: ...into new module.
19879         * modules/openpty: Another new module.
19880         * modules/pty-tests: Rename and split...
19881         * modules/forkpty-tests: ...to this...
19882         * modules/openpty-tests: ...and this.
19883         * tests/test-pty.c: Rename and split...
19884         * tests/test-forkpty.c: ...to this...
19885         * tests/test-openpty.c: ...and this.
19886         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19887         (gl_PTY): Split library searching...
19888         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19889         (gl_FORKPTY, gl_OPENPTY): New macros.
19890         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19891         * NEWS: Mention the split.
19892         * MODULES.html.sh (Misc): Document the modules.
19893         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19894         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19895
19896         pty: improve replacement header
19897         * lib/pty.in.h: New file.
19898         * modules/pty (Files): Ship it.
19899         (Makefile.am): Always build replacement.
19900         * m4/pty.m4: Rename...
19901         * m4/pty_h.m4: ...to this.
19902         (gl_PTY): Modernize setting of witness macros; update check of
19903         forkpty to take proper advantage of cache.
19904         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19905
19906         getopt: avoid compiler warning
19907         * lib/getopt.c (attribute_hidden): Remove unused macro.
19908
19909 2010-03-18  Bruno Haible  <bruno@clisp.org>
19910
19911         Fix link errors on Solaris 8.
19912         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19913         * modules/search-tests (test_search_c___LDADD): Likewise.
19914         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19915         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19916         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19917         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19918         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19919         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19920         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19921
19922 2010-03-18  Bruno Haible  <bruno@clisp.org>
19923
19924         Fix bug introduced on 2010-03-14.
19925         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19926         (gl_SPAWN_H): Require it.
19927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19928         Reported by Simon Josefsson.
19929
19930 2010-03-18  Bruno Haible  <bruno@clisp.org>
19931
19932         Fix typo introduced on 2009-12-31.
19933         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19934         posix_spawn_file_actions_adddup2.
19935
19936 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19937         and Eric Blake  <eblake@redhat.com>
19938
19939         test-vc-list-files-git: make more robust
19940         * tests/test-vc-list-files-git.sh: Unset problematic environment
19941         variables.  Chain commands together.
19942
19943 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19944
19945         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19946         `AC_CHECK_DECL' invocation.
19947
19948 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19949
19950         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19951         appears before executable statements. Suggested by Petr Sumbera
19952         <Petr.Sumbera@Sun.COM>.
19953
19954 2010-03-14  Bruno Haible  <bruno@clisp.org>
19955
19956         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19957         portability problems. Instead use a simpler test.
19958         (main): Check that invalid arguments are rejected only on Linux.
19959
19960 2010-03-14  Bruno Haible  <bruno@clisp.org>
19961
19962         Fix bug introduced on 2009-12-31.
19963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19964         gl_PREREQ_SYS_H_WINSOCK2 always.
19965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19966         SYS_SOCKET_H variable.
19967         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19968         Update comments.
19969         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19970         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19971         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19972         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19973         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19974
19975 2010-03-14  Bruno Haible  <bruno@clisp.org>
19976
19977         Fix values returned by sinl, cosl.
19978         * lib/trigl.h: Add specification comments.
19979         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19980         that combines the values from the precomputed table with the values of
19981         the Chebyshev polynomials.
19982
19983 2010-03-14  Bruno Haible  <bruno@clisp.org>
19984
19985         Fix compilation error when modules 'posix_spawn[p]' are not used.
19986         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19988
19989 2010-03-14  Bruno Haible  <bruno@clisp.org>
19990
19991         Fix compilation error on mingw when module 'time_r' is not used.
19992         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19993         is 1.
19994         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19995         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19996         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19998
19999 2010-03-14  Bruno Haible  <bruno@clisp.org>
20000
20001         Fix compilation error with Sun C.
20002         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20003         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20004         instead of GCC specific ULONG_LONG_MAX.
20005         * lib/xstrtoll.c: Likewise.
20006         * lib/xstrtoull.c: Likewise.
20007
20008 2010-03-13  Bruno Haible  <bruno@clisp.org>
20009
20010         Allow the user to disable C++ code and tests.
20011         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20012         (gl_PROG_ANSI_CXX): Require it.
20013
20014 2010-03-13  Bruno Haible  <bruno@clisp.org>
20015
20016         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20017         cases.
20018
20019 2010-03-13  Bruno Haible  <bruno@clisp.org>
20020
20021         Test that gnulib does not break the standard C++ headers.
20022         * tests/test-locale-c++2.cc: New file.
20023         * modules/locale-tests (Files): Add it.
20024         (Makefile.am): Compile it for test-locale-c++.
20025         * tests/test-math-c++2.cc: New file.
20026         * modules/math-tests (Files): Add it.
20027         (Makefile.am): Compile it for test-math-c++.
20028         * tests/test-signal-c++2.cc: New file.
20029         * modules/signal-tests (Files): Add it.
20030         (Makefile.am): Compile it for test-signal-c++.
20031         * tests/test-stdio-c++2.cc: New file.
20032         * modules/stdio-tests (Files): Add it.
20033         (Makefile.am): Compile it for test-stdio-c++.
20034         * tests/test-stdlib-c++2.cc: New file.
20035         * modules/stdlib-tests (Files): Add it.
20036         (Makefile.am): Compile it for test-stdlib-c++.
20037         * tests/test-string-c++2.cc: New file.
20038         * modules/string-tests (Files): Add it.
20039         (Makefile.am): Compile it for test-string-c++.
20040         * tests/test-time-c++2.cc: New file.
20041         * modules/time-tests (Files): Add it.
20042         (Makefile.am): Compile it for test-time-c++.
20043         Reported by John W. Eaton <jwe@gnu.org>.
20044
20045 2010-03-13  Bruno Haible  <bruno@clisp.org>
20046
20047         * gnulib-tool (func_usage): Clarify which options are available for
20048         --create-testdir and --create-megatestdir.
20049
20050 2010-03-13  Bruno Haible  <bruno@clisp.org>
20051
20052         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20053         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20054         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20055         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20056         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20057         when appropriate.
20058         Reported by Jim Meyering.
20059
20060 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20061
20062         * gnulib-tool (func_import): Explain origin of code.
20063
20064 2010-03-12  Bruno Haible  <bruno@clisp.org>
20065
20066         Fix problem with automake's definition of CXXLINK.
20067         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20068         Reported by Simon Josefsson and Ludovic Courtès.
20069
20070 2010-03-12  Bruno Haible  <bruno@clisp.org>
20071
20072         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20073         stable releases.
20074
20075 2010-03-11  Bruno Haible  <bruno@clisp.org>
20076
20077         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20078         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20079         whether the system provides one variant or multiple variants of the
20080         function.
20081         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20082         C++ compilers.
20083         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20084         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20085         Reported by Jim Meyering.
20086
20087 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20088
20089         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20090
20091 2010-03-08  Bruno Haible  <bruno@clisp.org>
20092
20093         gnulib-tool: Add support for --libtool in --create-testdir.
20094         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20095         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20096
20097 2010-03-08  Eric Blake  <eblake@redhat.com>
20098
20099         gnulib-tool.texi: mention possibility of git submodule
20100         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20101         submodules.
20102         * doc/.gitignore: Ignore another generated file.
20103
20104 2010-03-08  Karl Berry  <karl@gnu.org>
20105
20106         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20107         of committing gnulib files while skipping others.
20108
20109 2010-03-07  Bruno Haible  <bruno@clisp.org>
20110
20111         Tests of module 'wctype' in C++ mode.
20112         * tests/test-wctype-c++.cc: New file.
20113         * modules/wctype-tests (Files): Add it and tests/signature.h.
20114         (Depends-on): Add ansi-c++-opt.
20115         (Makefile.am): Arrange to compile and run test-wctype-c++.
20116
20117         Tests of module 'wchar' in C++ mode.
20118         * tests/test-wchar-c++.cc: New file.
20119         * modules/wchar-tests (Files): Add it and tests/signature.h.
20120         (Depends-on): Add ansi-c++-opt.
20121         (Makefile.am): Arrange to compile and run test-wchar-c++.
20122         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20123         gl_MODULE_INDICATOR.
20124
20125         Tests of module 'unistd' in C++ mode.
20126         * tests/test-unistd-c++.cc: New file.
20127         * modules/unistd-tests (Files): Add it and tests/signature.h.
20128         (Depends-on): Add ansi-c++-opt.
20129         (Makefile.am): Arrange to compile and run test-unistd-c++.
20130         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20131         gl_MODULE_INDICATOR.
20132
20133         Tests of module 'time' in C++ mode.
20134         * tests/test-time-c++.cc: New file.
20135         * modules/time-tests (Files): Add it and tests/signature.h.
20136         (Depends-on): Add ansi-c++-opt.
20137         (Makefile.am): Arrange to compile and run test-time-c++.
20138         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20139
20140         Tests of module 'sys_time' in C++ mode.
20141         * tests/test-sys_time-c++.cc: New file.
20142         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20143         (Depends-on): Add ansi-c++-opt.
20144         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20145         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20146         gl_MODULE_INDICATOR.
20147
20148         Tests of module 'sys_stat' in C++ mode.
20149         * tests/test-sys_stat-c++.cc: New file.
20150         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20151         (Depends-on): Add ansi-c++-opt.
20152         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20153         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20154         gl_MODULE_INDICATOR.
20155
20156         Tests of module 'sys_socket' in C++ mode.
20157         * tests/test-sys_socket-c++.cc: New file.
20158         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20159         (Depends-on): Add ansi-c++-opt.
20160         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20162         gl_MODULE_INDICATOR.
20163
20164         Tests of module 'sys_select' in C++ mode.
20165         * tests/test-sys_select-c++.cc: New file.
20166         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20167         (Depends-on): Add ansi-c++-opt.
20168         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20169         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20170         gl_MODULE_INDICATOR.
20171
20172         Tests of module 'sys_ioctl' in C++ mode.
20173         * tests/test-sys_ioctl-c++.cc: New file.
20174         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20175         (Depends-on): Add ansi-c++-opt.
20176         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20177         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20178         gl_MODULE_INDICATOR.
20179
20180         Tests of module 'string' in C++ mode.
20181         * tests/test-string-c++.cc: New file.
20182         * modules/string-tests (Files): Add it and tests/signature.h.
20183         (Depends-on): Add ansi-c++-opt.
20184         (Makefile.am): Arrange to compile and run test-string-c++.
20185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20186         gl_MODULE_INDICATOR.
20187
20188         Tests of module 'stdlib' in C++ mode.
20189         * tests/test-stdlib-c++.cc: New file.
20190         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20191         (Depends-on): Add ansi-c++-opt.
20192         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20193         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20194         gl_MODULE_INDICATOR.
20195
20196         Tests of module 'stdio' in C++ mode.
20197         * tests/test-stdio-c++.cc: New file.
20198         * modules/stdio-tests (Files): Add it and tests/signature.h.
20199         (Depends-on): Add ansi-c++-opt.
20200         (Makefile.am): Arrange to compile and run test-stdio-c++.
20201         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20202         gl_MODULE_INDICATOR.
20203
20204         Tests of module 'spawn' in C++ mode.
20205         * tests/test-spawn-c++.cc: New file.
20206         * modules/spawn-tests (Files): Add it and tests/signature.h.
20207         (Depends-on): Add ansi-c++-opt.
20208         (Makefile.am): Arrange to compile and run test-spawn-c++.
20209         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20210         gl_MODULE_INDICATOR.
20211
20212         Tests of module 'signal' in C++ mode.
20213         * tests/test-signal-c++.cc: New file.
20214         * modules/signal-tests (Files): Add it and tests/signature.h.
20215         (Depends-on): Add ansi-c++-opt.
20216         (Makefile.am): Arrange to compile and run test-signal-c++.
20217         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20218         gl_MODULE_INDICATOR.
20219
20220         Tests of module 'search' in C++ mode.
20221         * tests/test-search-c++.cc: New file.
20222         * modules/search-tests (Files): Add it and tests/signature.h.
20223         (Depends-on): Add ansi-c++-opt.
20224         (Makefile.am): Arrange to compile and run test-search-c++.
20225         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20226         gl_MODULE_INDICATOR.
20227
20228         Tests of module 'math' in C++ mode.
20229         * tests/test-math-c++.cc: New file.
20230         * modules/math-tests (Files): Add it and tests/signature.h.
20231         (Depends-on): Add ansi-c++-opt.
20232         (Makefile.am): Arrange to compile and run test-math-c++.
20233         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20234
20235         Tests of module 'locale' in C++ mode.
20236         * tests/test-locale-c++.cc: New file.
20237         * modules/locale-tests (Files): Add it and tests/signature.h.
20238         (Depends-on): Add ansi-c++-opt.
20239         (Makefile.am): Arrange to compile and run test-locale-c++.
20240         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20241         gl_MODULE_INDICATOR.
20242
20243         Tests of module 'langinfo' in C++ mode.
20244         * tests/test-langinfo-c++.cc: New file.
20245         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20246         (Depends-on): Add ansi-c++-opt.
20247         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20248         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20249         gl_MODULE_INDICATOR.
20250
20251         Tests of module 'iconv-h' in C++ mode.
20252         * tests/test-iconv-h-c++.cc: New file.
20253         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20254         (Depends-on): Add ansi-c++-opt.
20255         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20256
20257         Tests of module 'glob' in C++ mode.
20258         * tests/test-glob-c++.cc: New file.
20259         * modules/glob-tests (Files): Add it.
20260         (Depends-on): Add ansi-c++-opt.
20261         (Makefile.am): Arrange to compile and run test-glob-c++.
20262
20263         Tests of module 'fcntl-h' in C++ mode.
20264         * tests/test-fcntl-h-c++.cc: New file.
20265         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20266         (Depends-on): Add ansi-c++-opt.
20267         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20268         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20269         gl_MODULE_INDICATOR.
20270
20271         Tests of module 'dirent' in C++ mode.
20272         * tests/test-dirent-c++.cc: New file.
20273         * modules/dirent-tests (Files): Add it and tests/signature.h.
20274         (Depends-on): Add ansi-c++-opt.
20275         (Makefile.am): Arrange to compile and run test-dirent-c++.
20276         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20277         gl_MODULE_INDICATOR.
20278
20279         New module 'ansi-c++-opt'.
20280         * modules/ansi-c++-opt: New file.
20281         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20282
20283         Document C++ namespace mode.
20284         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20285
20286         wctype: Avoid #define replacements in C++ mode.
20287         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20288         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20289         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20290         In C++, define a namespaced alias symbol.
20291         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20292         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20293         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20294         rule.
20295
20296         wchar: Avoid #define replacements in C++ mode.
20297         * lib/wchar.in.h: Include c++defs.h.
20298         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20299         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20300         symbol.
20301         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20302         * modules/wchar (Depends-on): Add c++defs.
20303         (Makefile.am): Update wchar.h rule.
20304
20305         unistd: Avoid #define replacements in C++ mode.
20306         * lib/unistd.in.h: Include c++defs.h.
20307         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20308         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20309         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20310         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20311         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20312         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20313         symbol.
20314         (environ): Update.
20315         * modules/unistd (Depends-on): Add c++defs.
20316         (Makefile.am): Update unistd.h rule.
20317
20318         time: Avoid #define replacements in C++ mode.
20319         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20320         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20321         define a namespaced alias symbol.
20322         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20323         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20324         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20325         * modules/time (Depends-on): Add c++defs, warn-on-use.
20326         (Makefile.am): Update time.h rule.
20327         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20328         * modules/nanosleep (configure.ac): Likewise.
20329         * modules/strptime (configure.ac): Likewise.
20330         * modules/timegm (configure.ac): Likewise.
20331
20332         sys_time: Avoid #define replacements in C++ mode.
20333         * lib/sys_time.in.h: Include c++defs.h.
20334         (gettimeofday): In C++, define a namespaced alias symbol.
20335         * modules/sys_time (Depends-on): Add c++defs.
20336         (Makefile.am): Update sys/time.h rule.
20337
20338         sys_stat: Avoid #define replacements in C++ mode.
20339         * lib/sys_stat.in.h: Include c++defs.h.
20340         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20341         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20342         namespaced alias symbol.
20343         In C++, define a namespaced alias symbol.
20344         * modules/sys_stat (Depends-on): Add c++defs.
20345         (Makefile.am): Update sys/stat.h rule.
20346
20347         sys_socket: Avoid #define replacements in C++ mode.
20348         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20349         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20350         definitions also when the system has a <sys/socket.h>.
20351         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20352         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20353         In C++, define a namespaced alias symbol.
20354         * modules/sys_socket (Depends-on): Add c++defs.
20355         (Makefile.am): Update sys/socket.h rule.
20356
20357         sys_select: Avoid #define replacements in C++ mode.
20358         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20359         definitions also when the system has a <sys/select.h>.
20360         (select): In C++, define a namespaced alias symbol.
20361         * modules/sys_select (Depends-on): Add c++defs.
20362         (Makefile.am): Update sys/select.h rule.
20363
20364         sys_ioctl: Avoid #define replacements in C++ mode.
20365         * lib/sys_ioctl.in.h: Include c++defs.h.
20366         (ioctl): In C++, define a namespaced alias symbol.
20367         * modules/sys_ioctl (Depends-on): Add c++defs.
20368         (Makefile.am): Update sys/ioctl.h rule.
20369
20370         string: Avoid #define replacements in C++ mode.
20371         * lib/string.in.h: Include c++defs.h.
20372         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20373         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20374         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20375         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20376         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20377         * modules/string (Depends-on): Add c++defs.
20378         (Makefile.am): Update string.h rule.
20379
20380         stdlib: Avoid #define replacements in C++ mode.
20381         * lib/stdlib.in.h: Include c++defs.h.
20382         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20383         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20384         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20385         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20386         symbol.
20387         * modules/stdlib (Depends-on): Add c++defs.
20388         (Makefile.am): Update stdlib.h rule.
20389
20390         stdio: Avoid #define replacements in C++ mode.
20391         * lib/stdio.in.h: Include c++defs.h.
20392         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20393         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20394         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20395         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20396         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20397         namespaced alias symbol.
20398         * modules/stdio (Depends-on): Add c++defs.
20399         (Makefile.am): Update stdio.h rule.
20400
20401         spawn: Avoid #define replacements in C++ mode.
20402         * lib/spawn.in.h: Include c++defs.h.
20403         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20404         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20405         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20406         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20407         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20408         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20409         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20410         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20411         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20412         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20413         In C++, define a namespaced alias symbol.
20414         * modules/spawn (Depends-on): Add c++defs.
20415         (Makefile.am): Update spawn.h rule.
20416
20417         signal: Avoid #define replacements in C++ mode.
20418         * lib/signal.in.h: Include c++defs.h.
20419         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20420         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20421         namespaced alias symbol.
20422         * modules/signal (Depends-on): Add c++defs.
20423         (Makefile.am): Update signal.h rule.
20424
20425         search: Avoid #define replacements in C++ mode.
20426         * lib/search.in.h: Include c++defs.h.
20427         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20428         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20429         symbol.
20430         * modules/search (Depends-on): Add c++defs.
20431         (Makefile.am): Update search.h rule.
20432
20433         math: Avoid #define replacements in C++ mode.
20434         * lib/math.in.h: Include c++defs.h.
20435         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20436         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20437         trunc, truncl): In C++, define a namespaced alias symbol.
20438         * modules/math (Depends-on): Add c++defs.
20439         (Makefile.am): Update math.h rule.
20440
20441         locale: Avoid #define replacements in C++ mode.
20442         * lib/locale.in.h: Include c++defs.h.
20443         (duplocale): In C++, define a namespaced alias symbol.
20444         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20445         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20446         * modules/locale (Depends-on): Add c++defs.
20447         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20448
20449         langinfo: Avoid #define replacements in C++ mode.
20450         * lib/langinfo.in.h: Include c++defs.h.
20451         (nl_langinfo): In C++, define a namespaced alias symbol.
20452         * modules/langinfo (Depends-on): Add c++defs.
20453         (Makefile.am): Update langinfo.h rule.
20454
20455         iconv-h: Avoid #define replacements in C++ mode.
20456         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20457         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20458         symbol.
20459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20460         whenever iconv is present.
20461         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20462         (Makefile.am): Update iconv.h rule.
20463
20464         glob: Avoid #define replacements in C++ mode.
20465         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20466         (_gl_glob_errfunc_fn): New type.
20467         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20468         symbol.
20469         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20470         (Makefile.am): Update glob.h rule.
20471
20472         fcntl-h: Avoid #define replacements in C++ mode.
20473         * lib/fcntl.in.h: Include c++defs.h.
20474         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20475         * modules/fcntl-h (Depends-on): Add c++defs.
20476         (Makefile.am): Update fcntl.h rule.
20477
20478         dirent: Avoid #define replacements in C++ mode.
20479         * lib/dirent.in.h: Include c++defs.h.
20480         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20481         namespaced alias symbol.
20482         (dirfd): Update declaration.
20483         * modules/dirent (Depends-on): Add c++defs.
20484         (Makefile.am): Update dirent.h rule.
20485
20486         ctype: Make it usable in C++ code.
20487         * lib/ctype.in.h: Include c++defs.h.
20488         (isblank): Declare as extern "C".
20489         * modules/ctype (Depends-on): Add c++defs.
20490         (Makefile.am): Update ctype.h rule.
20491
20492         New module 'c++defs'.
20493         * modules/c++defs: New file.
20494         * build-aux/c++defs.h: New file.
20495         Reported by John W. Eaton <jwe@gnu.org>.
20496
20497 2010-03-07  Bruno Haible  <bruno@clisp.org>
20498
20499         logb: Provide missing declaration for Cygwin.
20500         * lib/math.in.h (logb): New declaration.
20501         * m4/logb.m4: New file.
20502         * modules/logb (Files): Add m4/logb.m4.
20503         (Depends-on): Add math.
20504         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20505         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20507         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20508         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20509
20510 2010-03-07  Bruno Haible  <bruno@clisp.org>
20511
20512         Fix test-cond link error.
20513         * tests/test-cond.c: Include <stdio.h>.
20514
20515 2010-03-07  Bruno Haible  <bruno@clisp.org>
20516
20517         Fix test-dirent-safer link error.
20518         * modules/dirent-safer-tests (Makefile.am): Define
20519         test_dirent_safer_LDADD.
20520
20521 2010-03-07  Bruno Haible  <bruno@clisp.org>
20522
20523         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20524         among default module list.
20525
20526 2010-03-07  Bruno Haible  <bruno@clisp.org>
20527
20528         Fix link error on platforms with GNU libiconv.
20529         * modules/unistr/u8-strcoll-tests (Makefile): Define
20530         test_u8_strcoll_LDADD.
20531         * modules/unistr/u16-strcoll-tests (Makefile): Define
20532         test_u16_strcoll_LDADD.
20533         * modules/unistr/u32-strcoll-tests (Makefile): Define
20534         test_u32_strcoll_LDADD.
20535
20536 2010-03-07  Bruno Haible  <bruno@clisp.org>
20537
20538         Use POSIX declarations for socket functions.
20539         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20540         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20541         rpl_sendto): Change declaration to match POSIX.
20542         * lib/connect.c (rpl_connect): Likewise.
20543         * lib/accept.c (rpl_accept): Likewise.
20544         * lib/bind.c (rpl_bind): Likewise.
20545         * lib/getpeername.c (rpl_getpeername): Likewise.
20546         * lib/getsockname.c (rpl_getsockname): Likewise.
20547         * lib/recv.c (rpl_recv): Likewise.
20548         * lib/send.c (rpl_send): Likewise.
20549         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20550         * lib/sendto.c (rpl_sendto): Likewise.
20551
20552 2010-03-06  Bruno Haible  <bruno@clisp.org>
20553
20554         Clarify access, euidaccess, faccessat.
20555         * doc/posix-functions/faccessat.texi: Mention security problem under
20556         "Other problems", not "Portability problems".
20557         * doc/posix-functions/access.texi: Likewise. Mention a related security
20558         problem.
20559         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20560         * lib/euidaccess.c: Add comments about platforms.
20561         * lib/unistd.in.h (access, euidaccess): Add warnings.
20562
20563 2010-03-07  Bruno Haible  <bruno@clisp.org>
20564
20565         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20566         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20567         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20568         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20569         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20570         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20571         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20572         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20573         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20574         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20575         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20576         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20577         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20578         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20579         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20580         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20581         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20582         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20583         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20584         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20585         Likewise.
20586         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20587         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20588         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20589         Likewise.
20590         * tests/test-spawn.c (main): Make it work when
20591         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20592
20593 2010-03-07  Bruno Haible  <bruno@clisp.org>
20594
20595         Fix incorrect Makefile.am generation in German locale.
20596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20597         Execute sed command with character range in C locale.
20598
20599 2010-03-06  Bruno Haible  <bruno@clisp.org>
20600
20601         Tests for module 'iconv-h'.
20602         * modules/iconv-h-tests: New file.
20603         * tests/test-iconv-h.c: New file.
20604
20605         New module 'iconv-h'.
20606         * modules/iconv-h: New file.
20607         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20608         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20609         (configure.ac): Remove gl_ICONV_H.
20610         (Makefile.am): Remove rule for iconv.h.
20611
20612 2010-03-06  Bruno Haible  <bruno@clisp.org>
20613
20614         More consistent naming of *.m4 files.
20615         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20616         * modules/wctype (Files): Update.
20617
20618         More consistent naming of *.m4 files.
20619         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20620         * modules/wchar (Files): Update.
20621
20622 2010-03-06  Jim Meyering  <meyering@redhat.com>
20623
20624         euidaccess: relax license to LGPLv2+
20625         * modules/euidaccess (License): Relax to LGPLv2+.
20626
20627 2010-03-06  Bruno Haible  <bruno@clisp.org>
20628
20629         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20630         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20631         (Makefile.am): Augment lib_SOURCES instead.
20632
20633 2010-03-04  Jim Meyering  <meyering@redhat.com>
20634
20635         utime: remove obsolete module
20636         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20637         unnecessary for years, and has been marked as obsolete for 10 months.
20638         * modules/utime: Remove file.
20639         * lib/utime.c: Remove file.
20640         * m4/utime.m4: Remove file.
20641         * m4/utimes-null.m4: Remove file.
20642         * doc/posix-functions/utime.texi (utime): Remove reference to
20643         the module.  Move the sole "fixed by gnulib" item into the
20644         "problems not fixed by Gnulib" list.
20645         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20646
20647 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20648
20649         * modules/exit (License): Relax license to LGPLv2+.
20650         (Status): Mark as obsolete.
20651         * NEWS: Mention deprecated 'exit' module.
20652         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20653         of now obsolete 'exit'.
20654
20655 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20656
20657         fts-lgpl: remove unused module
20658         * modules/fts-lgpl: Remove.
20659         * MODULES.html.sh (func_all_modules): Adjust.
20660         * check-module (find_included_lib_files): Adjust.
20661         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20662
20663 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20664
20665         copy-acl: enhance Solaris ACL error handling
20666         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20667         * lib/set-mode-acl.c (qset_acl): Likewise.
20668
20669 2010-03-02  Bruno Haible  <bruno@clisp.org>
20670
20671         spawn: Don't override the system defined values on FreeBSD 8.
20672         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20673         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20674         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20675         if HAVE_POSIX_SPAWN is 1.
20676         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20677
20678 2010-03-01  Bruno Haible  <bruno@clisp.org>
20679
20680         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20681         regarding Automake.
20682
20683 2010-02-25  Bruno Haible  <bruno@clisp.org>
20684
20685         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20686         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20687         setting, not afterwards.
20688         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20689
20690 2010-02-24  Eric Blake  <eblake@redhat.com>
20691
20692         bootstrap, git-version-gen: use timestamp
20693         * build-aux/git-version-gen (scriptversion): Force UTC.
20694         * build-aux/bootstrap (scriptversion): New variable.
20695
20696         bootstrap: allow older git
20697         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20698         older than 1.6.4.  Requested by the libvirt project.
20699
20700 2010-02-23  Eric Blake  <eblake@redhat.com>
20701
20702         warn-on-use: work with old autoconf
20703         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20704         AS_VAR semantics of autoconf 2.60.
20705         Reported by Bruno Haible.
20706
20707         bootstrap: improve some comments
20708         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20709         clarification comments.
20710
20711         gettimeofday: provide correct function
20712         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20713         when replacement is declared, otherwise provide gettimeofday.
20714         Reported by Michael Goffioul.
20715
20716 2010-02-23  Jim Meyering  <meyering@redhat.com>
20717
20718         lib-ignore: relax license to "unlimited", not LGPLv2+
20719         * modules/lib-ignore (License): Relax to "unlimited".
20720
20721 2010-02-23  Jim Meyering  <meyering@redhat.com>
20722
20723         lib-ignore: relax license to LGPLv2+
20724         * modules/lib-ignore (License): Relax to LGPLv2+.
20725
20726 2010-02-22  Eric Blake  <eblake@redhat.com>
20727
20728         lseek: avoid bash 3.2 broken pipe bug
20729         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20730         warning from bash 3.2.
20731         Reported by Ben Pfaff, with analysis from Bruno Haible.
20732
20733         bootstrap: support non-FSF copyright holder
20734         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20735         bootstrap.conf override of COPYRIGHT_HOLDER.
20736         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20737
20738         bootstrap: interoperate with gettext 0.14.1
20739         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20740
20741         bootstrap: allow for alternate submodule location
20742         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20743         hardcoding submodule location.
20744         (gnulib_mk): Allow direct use of Makefile.am.
20745
20746         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20747         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20748         rather than reconfiguring where the submodule points.
20749
20750         gettimeofday: restore support for platforms that lack function
20751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20752         replacement if function is missing.
20753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20754         * modules/sys_time (Makefile.am): Substitute it.
20755         * lib/sys_time.in.h (gettimeofday): Check it.
20756         Reported by Michael Goffioul.
20757
20758 2010-02-21  Bruno Haible  <bruno@clisp.org>
20759
20760         * lib/stdio.in.h (obstack_printf): Fix typo.
20761
20762 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20763
20764         vc-list-files: use bzr ls's -R option
20765         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20766         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20767
20768 2010-02-21  Jim Meyering  <meyering@redhat.com>
20769
20770         init.sh: fix EXEEXT shims to work also for names like test-prog
20771         * tests/init.sh: Re-exec a better shell, when needed.
20772         If the current shell lacks support for posix $(...), an init.sh-using
20773         test will now try to find a shell that supports that.  If EXEEXT is
20774         nonempty, we also require support for hyphen-in-alias-name and shell
20775         substitutions like ${var#glob}.  Failure to find such a shell results
20776         in a skipped test.
20777
20778 2010-02-21  Bruno Haible  <bruno@clisp.org>
20779
20780         Really work around around "broken pipe" error message from bash 3.2.
20781         * gnulib-tool (func_reset_sigpipe): Remove function.
20782         (echo): In bash 3.2, define to a function that uses printf.
20783         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20784
20785 2010-02-20  Bruno Haible  <bruno@clisp.org>
20786
20787         Restore support for automake 1.9.6 with autoconf 2.61.
20788         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20789         Reported by James Youngman <jay@gnu.org>.
20790
20791 2010-02-20  Bruno Haible  <bruno@clisp.org>
20792
20793         Improve *printf warning condition.
20794         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20795         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20796         and the function is overridden due to SIGPIPE emulation.
20797
20798 2010-02-20  Bruno Haible  <bruno@clisp.org>
20799
20800         * lib/stdio.in.h: Tweak comments.
20801
20802 2010-02-19  Bruno Haible  <bruno@clisp.org>
20803
20804         Make it easier to find modules. New gnulib-tool option '--find'.
20805         * gnulib-tool: New option --find.
20806         (func_usage): Document it.
20807         (func_sanitize_modulelist): New function, extracted from
20808         func_all_modules.
20809         (func_all_modules): Invoke it.
20810         * doc/gnulib-tool.texi (Which modules?): New node.
20811
20812 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20813
20814         * lib/sys_select.in.h: Provide select replacement even if
20815         sys/select.h exists on a system, for Interix.
20816
20817 2010-02-18  Jim Meyering  <meyering@redhat.com>
20818
20819         init.sh: don't use $(...) just yet
20820         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20821         to accommodate e.g., Solaris' /bin/sh.
20822
20823 2010-02-17  Bruno Haible  <bruno@clisp.org>
20824
20825         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20826         Reported by Ludovic Courtès <ludo@gnu.org>.
20827
20828 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20829
20830         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20831         linking with -lintl.
20832
20833 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20834
20835         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20836         if not provided by the system's netdb.h.  Reported by
20837         ludo@gnu.org (Ludovic Courtès).
20838
20839 2010-02-15  Jim Meyering  <meyering@redhat.com>
20840
20841         init.sh: improve portability and efficiency
20842         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20843         "dummy" in a for loop.
20844         Use '!', not '^' to select the complement of a character set used
20845         in a "case" statement.
20846         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20847         Suggestions from Eric Blake.
20848
20849         init.sh: automatically accommodate programs with the .exe suffix
20850         Automatically arrange for an invocation of "prog" to execute the
20851         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20852         may use the simpler "prog", yet still work when built on a system
20853         that requires specifying the added suffix.
20854         Do this by constructing a function named "prog" that invokes
20855         "prog.exe" for each .exe file in selected directories.
20856         * tests/init.sh (find_exe_basenames_): New function.
20857         (create_exe_shim_functions_): New function.
20858         (path_prepend_): Use it.
20859
20860         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20861         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20862         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20863
20864 2010-02-14  Jim Meyering  <meyering@redhat.com>
20865
20866         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20867         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20868         (sc_prohibit_hash_pjw_without_use): New rule.
20869
20870         maint.mk: allow the default upload destination dir to be overridden
20871         * top/maint.mk (upload_dest_dir_): Define with a default that
20872         preserves the status quo.
20873         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20874         Reported by Peter Simons.
20875
20876         maint.mk: prohibit inclusion of "hash.h" without_use
20877         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20878
20879 2010-02-10  Jim Meyering  <meyering@redhat.com>
20880
20881         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20882         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20883
20884 2010-02-09  Eric Blake  <ebb9@byu.net>
20885         and Bruno Haible  <bruno@clisp.org>
20886
20887         obstack-printf-posix: ensure declaration
20888         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20889         extracted from gl_FUNC_OBSTACK_PRINTF.
20890         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20891         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20892         Likewise.
20893         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20894         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20895         0.
20896
20897 2010-02-08  Bruno Haible  <bruno@clisp.org>
20898
20899         gnulib-tool: Fix typo in 2010-02-07 commit.
20900         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20901         Reported by Eric Blake.
20902
20903 2010-02-07  Bruno Haible  <bruno@clisp.org>
20904
20905         gnulib-tool: Fix up caching patches.
20906         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20907         option --no-cache. Use associative arrays when supported by the shell.
20908         (sed_comments): New variable.
20909         (modcache): Renamed from do_cache.
20910         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20911         abbreviate unnecessarily.
20912         (have_associative): New variable.
20913         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20914         way also for ksh and zsh.
20915         (func_init_sed_convert_to_cache_statements): New function, extracted
20916         from func_cache_lookup_module. Add support for associative arrays.
20917         Don't set the c_MODULE_cached variable here. Ignore all lines before
20918         the first field header. Remove only the final newline, not all trailing
20919         newlines. Support empty fields correctly. Limit the use of 'eval' to
20920         assignments.
20921         (func_get_description, func_get_status, func_get_notice,
20922         func_get_applicability, func_get_filelist, func_get_dependencies,
20923         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20924         func_get_automake_snippet, func_get_include_directive,
20925         func_get_link_directive, func_get_license, func_get_maintainer):
20926         Update documentation. List the unoptimized code first. Add support for
20927         associative arrays. Limit the use of 'eval' to assignments.
20928         (func_get_applicability): Undo stylistic pessimisations.
20929         (func_get_automake_snippet, func_get_include_directive): Reduce code
20930         duplication.
20931         (func_modules_transitive_closure, func_modules_add_dummy,
20932         func_modules_notice, func_modules_to_filelist, func_add_file,
20933         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20934         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20935         func_create_testdir, func_create_megatestdir): Update documentation.
20936
20937 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20938
20939         * gnulib-tool (func_cache_lookup_module): Store the module name
20940         belonging to the cache variable; error out if two different
20941         module names map to the same cache variable name.
20942
20943 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20944
20945         gnulib-tool: Make caching optional.
20946         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20947         Update matching short versions of --no-changelog.
20948         (func_usage): Update.
20949         (sed_extract_cache_prog): Renamed from ...
20950         (sed_extract_prog): ... this; revert to old extraction script.
20951         (func_get_description, func_get_status)
20952         (func_get_notice, func_get_applicability, func_get_filelist)
20953         (func_get_dependencies, func_get_autoconf_early_snippet)
20954         (func_get_autoconf_snippet, func_get_automake_snippet)
20955         (func_get_include_directive, func_get_link_directive)
20956         (func_get_license, func_get_maintainer): If $do_cache is false,
20957         use old, non-caching extraction scripts.
20958         Suggestion by Bruno Haible.
20959
20960 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20961
20962         gnulib-tool: cache module metainformation.
20963         * gnulib-tool (sed_extract_prog): Match newline before each
20964         header, and rewrite header to a shell variable suffix.
20965         (func_cache_var, func_cache_lookup_module): New functions,
20966         to turn a module name into a cache variable prefix, and to
20967         look up and cache module metainformation.
20968         (func_get_description, func_get_status)
20969         (func_get_notice, func_get_applicability, func_get_filelist)
20970         (func_get_dependencies, func_get_autoconf_early_snippet)
20971         (func_get_autoconf_snippet, func_get_automake_snippet)
20972         (func_get_include_directive, func_get_link_directive)
20973         (func_get_license, func_get_maintainer): Use
20974         func_cache_lookup_module.
20975
20976 2010-02-07  Bruno Haible  <bruno@clisp.org>
20977
20978         fnctl: Fix missing dependency.
20979         * modules/fcntl (Depends-on): Add getdtablesize.
20980         Reported by John W. Eaton <jwe@gnu.org>.
20981
20982 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20983
20984         Argp: fix recognition of short alias options.
20985
20986         * lib/argp-parse.c (convert_options): Fix improper use of
20987         `|' between character values.
20988         * tests/test-argp.c (group1_option): New alias option
20989         --read (-r).
20990         (group1_parser): Special handling for 'r'.
20991         (test15): New test case.
20992         (test_fun): Add test15.
20993         * tests/test-argp-2.sh: Update expected --help and --usage
20994         outputs.
20995
20996 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20997
20998         * tests/test-argp.c: Fix indentation.
20999
21000 2010-02-04  Eric Blake  <ebb9@byu.net>
21001
21002         gettimeofday: expose type of second argument
21003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21004         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21005         * tests/test-gettimeofday.c: Use it to silence warning.
21006         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21007         the issue.
21008
21009 2010-02-03  Jim Meyering  <meyering@redhat.com>
21010
21011         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21012         * lib/regcomp.c (TYPE_SIGNED): Define.
21013         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21014
21015         regcomp.c: avoid a new -Wshadow warning
21016         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21017
21018 2010-02-01  Jim Meyering  <meyering@redhat.com>
21019
21020         removing useless parentheses in cpp #define directives
21021         For motivation, see commit c0221df4, "define STREQ(a,b)
21022         consistently, removing useless parentheses"
21023         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21024         * lib/mountlist.c (MNT_IGNORE): Likewise.
21025         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21026
21027 2010-02-01  Eric Blake  <ebb9@byu.net>
21028
21029         sys_time: use link-warning
21030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21031         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21032         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21033         * modules/sys_time (Depends-on): Add warn-on-use.
21034         (Makefile.am): Always build replacement.
21035         (configure.ac): Update substitutions.
21036         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21037         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21038         bother with SYS_TIME_H.
21039         * modules/gettimeofday (configure.ac): Declare indicator.
21040         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21041         in use.
21042
21043         closein-tests: silence compiler warning
21044         * tests/test-closein.c (main): Ignore fread result.
21045         * modules/closein-tests (Depends-on): Add ignore-value.
21046
21047         tests: silence warning about system return
21048         * tests/test-areadlink-with-size.c (main): Ignore system result.
21049         * tests/test-areadlink.c (main): Likewise.
21050         * tests/test-areadlinkat-with-size.c (main): Likewise.
21051         * tests/test-areadlinkat.c (main): Likewise.
21052         * tests/test-canonicalize-lgpl.c (main): Likewise.
21053         * tests/test-canonicalize.c (main): Likewise.
21054         * tests/test-chown.c (main): Likewise.
21055         * tests/test-fchownat.c (main): Likewise.
21056         * tests/test-fdutimensat.c (main): Likewise.
21057         * tests/test-fstatat.c (main): Likewise.
21058         * tests/test-futimens.c (main): Likewise.
21059         * tests/test-lchown.c (main): Likewise.
21060         * tests/test-link.c (main): Likewise.
21061         * tests/test-linkat.c (main): Likewise.
21062         * tests/test-lstat.c (main): Likewise.
21063         * tests/test-mkdir.c (main): Likewise.
21064         * tests/test-mkdirat.c (main): Likewise.
21065         * tests/test-mkfifo.c (main): Likewise.
21066         * tests/test-mkfifoat.c (main): Likewise.
21067         * tests/test-mknod.c (main): Likewise.
21068         * tests/test-readlink.c (main): Likewise.
21069         * tests/test-remove.c (main): Likewise.
21070         * tests/test-rename.c (main): Likewise.
21071         * tests/test-renameat.c (main): Likewise.
21072         * tests/test-rmdir.c (main): Likewise.
21073         * tests/test-symlink.c (main): Likewise.
21074         * tests/test-symlinkat.c (main): Likewise.
21075         * tests/test-unlink.c (main): Likewise.
21076         * tests/test-unlinkat.c (main): Likewise.
21077         * tests/test-utimens.c (main): Likewise.
21078         * tests/test-utimensat.c (main): Likewise.
21079         * modules/areadlink-tests (Depends-on): Add ignore-value.
21080         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21081         * modules/areadlinkat-tests (Depends-on): Likewise.
21082         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21083         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21084         * modules/canonicalize-tests (Depends-on): Likewise.
21085         * modules/chown-tests (Depends-on): Likewise.
21086         * modules/fdutimensat-tests (Depends-on): Likewise.
21087         * modules/futimens-tests (Depends-on): Likewise.
21088         * modules/lchown-tests (Depends-on): Likewise.
21089         * modules/link-tests (Depends-on): Likewise.
21090         * modules/linkat-tests (Depends-on): Likewise.
21091         * modules/lstat-tests (Depends-on): Likewise.
21092         * modules/mkdir-tests (Depends-on): Likewise.
21093         * modules/mkfifo-tests (Depends-on): Likewise.
21094         * modules/mkfifoat-tests (Depends-on): Likewise.
21095         * modules/mknod-tests (Depends-on): Likewise.
21096         * modules/openat-tests (Depends-on): Likewise.
21097         * modules/readlink-tests (Depends-on): Likewise.
21098         * modules/remove-tests (Depends-on): Likewise.
21099         * modules/rename-tests (Depends-on): Likewise.
21100         * modules/renameat-tests (Depends-on): Likewise.
21101         * modules/rmdir-tests (Depends-on): Likewise.
21102         * modules/symlink-tests (Depends-on): Likewise.
21103         * modules/symlinkat-tests (Depends-on): Likewise.
21104         * modules/unlink-tests (Depends-on): Likewise.
21105         * modules/utimens-tests (Depends-on): Likewise.
21106         * modules/utimensat-tests (Depends-on): Likewise.
21107
21108 2010-01-31  Bruno Haible  <bruno@clisp.org>
21109
21110         Perform the same test for many <math.h> functions.
21111         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21112         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21113         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21114         of gl_MATHFUNC.
21115         * modules/acos (configure.ac): Likewise.
21116         * modules/asin (configure.ac): Likewise.
21117         * modules/atan (configure.ac): Likewise.
21118         * modules/atan2 (configure.ac): Likewise.
21119         * modules/cbrt (configure.ac): Likewise.
21120         * modules/copysign (configure.ac): Likewise.
21121         * modules/cos (configure.ac): Likewise.
21122         * modules/cosh (configure.ac): Likewise.
21123         * modules/erf (configure.ac): Likewise.
21124         * modules/erfc (configure.ac): Likewise.
21125         * modules/exp (configure.ac): Likewise.
21126         * modules/fmod (configure.ac): Likewise.
21127         * modules/hypot (configure.ac): Likewise.
21128         * modules/j0 (configure.ac): Likewise.
21129         * modules/j1 (configure.ac): Likewise.
21130         * modules/jn (configure.ac): Likewise.
21131         * modules/lgamma (configure.ac): Likewise.
21132         * modules/log (configure.ac): Likewise.
21133         * modules/log10 (configure.ac): Likewise.
21134         * modules/log1p (configure.ac): Likewise.
21135         * modules/pow (configure.ac): Likewise.
21136         * modules/remainder (configure.ac): Likewise.
21137         * modules/sin (configure.ac): Likewise.
21138         * modules/sinh (configure.ac): Likewise.
21139         * modules/tan (configure.ac): Likewise.
21140         * modules/tanh (configure.ac): Likewise.
21141         * modules/y0 (configure.ac): Likewise.
21142         * modules/y1 (configure.ac): Likewise.
21143         * modules/yn (configure.ac): Likewise.
21144         Suggested by Paolo Bonzini.
21145
21146 2010-01-31  Bruno Haible  <bruno@clisp.org>
21147
21148         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21149
21150 2010-01-31  Bruno Haible  <bruno@clisp.org>
21151
21152         Work around getdelim() bug on FreeBSD 8.0.
21153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21154         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21155         not work.
21156         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21157         is 1.
21158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21159         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21160         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21161         a non-zero size.
21162         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21163
21164 2010-01-31  Bruno Haible  <bruno@clisp.org>
21165
21166         Work around getline() bug on FreeBSD 8.0.
21167         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21168         and a non-zero size.
21169         * tests/test-getline.c (main): Likewise.
21170         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21171         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21172
21173 2010-01-28  Eric Blake  <ebb9@byu.net>
21174
21175         regex: fix build failure
21176         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21177         platforms.
21178
21179 2010-01-28  Jim Meyering  <meyering@redhat.com>
21180
21181         regex: do not ignore memory allocation failure
21182         * lib/regex_internal.c (create_cd_newstate): Detect
21183         re_node_set_init_copy failure.   Extracted from glibc commit
21184         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21185
21186         regex: sync more white-space changes from libc
21187         * lib/regex_internal.c: White-space only changes.
21188         * lib/regexec.c: Likewise.
21189
21190         regex: add many uses of __attribute_warn_unused_result__
21191         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21192         * lib/regexec.c: Likewise.
21193         Extracted from a messy glibc commit.
21194
21195         regcomp.c: spelling and merge-artifact from glibc
21196         * lib/regcomp.c: Merge remainder of glibc's
21197         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21198
21199         regcomp.c: sync white-space changes from glibc
21200         * lib/regcomp.c: Merge to accommodate white space
21201         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21202
21203         regcomp.c: do not ignore internal return values
21204         * lib/regcomp.c: Do not ignore internal return values.
21205         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21206         but without its white-space changes and spelling fixes.
21207
21208         regex_internal.h: define __attribute_warn_unused_result__
21209         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21210
21211         maint: add a syntax-check rule to check for vulnerable Makefile.in
21212         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21213
21214 2010-01-27  Jim Meyering  <meyering@redhat.com>
21215
21216         ncftpput-ftp: clean up spaces
21217         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21218         Remove trailing blanks.
21219
21220 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21221
21222         * build-aux/git-version-gen: Fix copyright statement.
21223         * build-aux/gnupload: Likewise.
21224         * tests/test-arcfour.c: Likewise.
21225         * tests/test-arctwo.c: Likewise.
21226         * tests/test-count-one-bits.c: Likewise.
21227         * tests/test-crc.c: Likewise.
21228         * tests/test-des.c: Likewise.
21229         * tests/test-gc-arcfour.c: Likewise.
21230         * tests/test-gc-arctwo.c: Likewise.
21231         * tests/test-gc-des.c: Likewise.
21232         * tests/test-gc-hmac-md5.c: Likewise.
21233         * tests/test-gc-hmac-sha1.c: Likewise.
21234         * tests/test-gc-md2.c: Likewise.
21235         * tests/test-gc-md4.c: Likewise.
21236         * tests/test-gc-md5.c: Likewise.
21237         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21238         * tests/test-gc-rijndael.c: Likewise.
21239         * tests/test-gc-sha1.c: Likewise.
21240         * tests/test-gc.c: Likewise.
21241         * tests/test-gethostname.c: Likewise.
21242         * tests/test-gettimeofday.c: Likewise.
21243         * tests/test-hash.c: Likewise.
21244         * tests/test-hmac-md5.c: Likewise.
21245         * tests/test-hmac-sha1.c: Likewise.
21246         * tests/test-md2.c: Likewise.
21247         * tests/test-md4.c: Likewise.
21248         * tests/test-md5.c: Likewise.
21249         * tests/test-memchr.c: Likewise.
21250         * tests/test-memchr2.c: Likewise.
21251         * tests/test-memcmp.c: Likewise.
21252         * tests/test-memmem.c: Likewise.
21253         * tests/test-memrchr.c: Likewise.
21254         * tests/test-rawmemchr.c: Likewise.
21255         * tests/test-read-file.c: Likewise.
21256         * tests/test-rijndael.c: Likewise.
21257         * tests/test-sockets.c: Likewise.
21258         * tests/test-strchrnul.c: Likewise.
21259         * tests/test-strstr.c: Likewise.
21260         * tests/test-strtod.c: Likewise.
21261         * build-aux/ncftpput-ftp: Likewise.
21262
21263 2010-01-26  Eric Blake  <ebb9@byu.net>
21264
21265         ignore-value: update recommended header name
21266         * modules/ignore-value (Include): Only use <> for headers that
21267         exist in glibc.
21268
21269 2010-01-26  Jim Meyering  <meyering@redhat.com>
21270
21271         test-userspec.c: avoid compiler warnings
21272         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21273         and "initialization discards qualifiers..." warnings.
21274         Put the first "uid" in its own scope, and make char* members "const".
21275
21276 2010-01-25  Bruno Haible  <bruno@clisp.org>
21277
21278         gnulib-tool: Make warning diagnostics consistent.
21279         * gnulib-tool (func_warning): New function.
21280         Use it everywhere where gnulib-tool produces output to stderr and it is
21281         not a fatal error.
21282
21283 2010-01-25  Bruno Haible  <bruno@clisp.org>
21284
21285         Fix test dependencies.
21286         * modules/xstrtol-tests (Depends-on): Add inttypes.
21287         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21288
21289 2010-01-25 Pádraig Brady <P@draigBrady.com>
21290
21291         syntax-check: detect incorrect boolean macro values in config.h
21292         * modules/maintainer-makefile (configure.ac): Parameterize the location
21293         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21294         The logic is from Eric Blake and the location indicated by Jim Meyering.
21295         Note the more natural CONFIG_HEADER name is prohibited by automake
21296         for backwards compatibility reasons.
21297         * top/maint.mk (sc_Wundef_boolean): New rule.
21298
21299 2010-01-25  Jim Meyering  <meyering@redhat.com>
21300
21301         bootstrap: detect MacOS 10.6's shasum, too
21302         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21303         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21304
21305 2010-01-23  Jim Meyering  <meyering@redhat.com>
21306
21307         xstrtoll: new module
21308         * modules/xstrtoll: New file.
21309         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21310         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21311         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21312         ./configure fails if you use this module and lack "long long".
21313         * modules/xstrtoll-tests: New module.
21314         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21315         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21316         new init.sh-based test framework.
21317
21318 2010-01-24  Bruno Haible  <bruno@clisp.org>
21319
21320         Tests for module 'yn'.
21321         * modules/yn-tests: New file.
21322         * tests/test-yn.c: New file.
21323
21324         Tests for module 'y1'.
21325         * modules/y1-tests: New file.
21326         * tests/test-y1.c: New file.
21327
21328         Tests for module 'y0'.
21329         * modules/y0-tests: New file.
21330         * tests/test-y0.c: New file.
21331
21332         Tests for module 'tanh'.
21333         * modules/tanh-tests: New file.
21334         * tests/test-tanh.c: New file.
21335
21336         Tests for module 'tan'.
21337         * modules/tan-tests: New file.
21338         * tests/test-tan.c: New file.
21339
21340         Tests for module 'sqrt'.
21341         * modules/sqrt-tests: New file.
21342         * tests/test-sqrt.c: New file.
21343
21344         Tests for module 'sinh'.
21345         * modules/sinh-tests: New file.
21346         * tests/test-sinh.c: New file.
21347
21348         Tests for module 'sin'.
21349         * modules/sin-tests: New file.
21350         * tests/test-sin.c: New file.
21351
21352         Tests for module 'rint'.
21353         * modules/rint-tests: New file.
21354         * tests/test-rint.c: New file.
21355
21356         Tests for module 'remainder'.
21357         * modules/remainder-tests: New file.
21358         * tests/test-remainder.c: New file.
21359
21360         Tests for module 'pow'.
21361         * modules/pow-tests: New file.
21362         * tests/test-pow.c: New file.
21363
21364         Tests for module 'nextafter'.
21365         * modules/nextafter-tests: New file.
21366         * tests/test-nextafter.c: New file.
21367
21368         Tests for module 'modf'.
21369         * modules/modf-tests: New file.
21370         * tests/test-modf.c: New file.
21371
21372         Tests for module 'logb'.
21373         * modules/logb-tests: New file.
21374         * tests/test-logb.c: New file.
21375
21376         Tests for module 'log1p'.
21377         * modules/log1p-tests: New file.
21378         * tests/test-log1p.c: New file.
21379
21380         Tests for module 'log10'.
21381         * modules/log10-tests: New file.
21382         * tests/test-log10.c: New file.
21383
21384         Tests for module 'log'.
21385         * modules/log-tests: New file.
21386         * tests/test-log.c: New file.
21387
21388         Tests for module 'lgamma'.
21389         * modules/lgamma-tests: New file.
21390         * tests/test-lgamma.c: New file.
21391
21392         Tests for module 'ldexp'.
21393         * modules/ldexp-tests: New file.
21394         * tests/test-ldexp.c: New file.
21395
21396         Tests for module 'jn'.
21397         * modules/jn-tests: New file.
21398         * tests/test-jn.c: New file.
21399
21400         Tests for module 'j1'.
21401         * modules/j1-tests: New file.
21402         * tests/test-j1.c: New file.
21403
21404         Tests for module 'j0'.
21405         * modules/j0-tests: New file.
21406         * tests/test-j0.c: New file.
21407
21408         Tests for module 'hypot'.
21409         * modules/hypot-tests: New file.
21410         * tests/test-hypot.c: New file.
21411
21412         Tests for module 'fmod'.
21413         * modules/fmod-tests: New file.
21414         * tests/test-fmod.c: New file.
21415
21416         Tests for module 'fabs'.
21417         * modules/fabs-tests: New file.
21418         * tests/test-fabs.c: New file.
21419
21420         Tests for module 'exp'.
21421         * modules/exp-tests: New file.
21422         * tests/test-exp.c: New file.
21423
21424         Tests for module 'erfc'.
21425         * modules/erfc-tests: New file.
21426         * tests/test-erfc.c: New file.
21427
21428         Tests for module 'erf'.
21429         * modules/erf-tests: New file.
21430         * tests/test-erf.c: New file.
21431
21432         Tests for module 'cosh'.
21433         * modules/cosh-tests: New file.
21434         * tests/test-cosh.c: New file.
21435
21436         Tests for module 'cos'.
21437         * modules/cos-tests: New file.
21438         * tests/test-cos.c: New file.
21439
21440         Tests for module 'copysign'.
21441         * modules/copysign-tests: New file.
21442         * tests/test-copysign.c: New file.
21443
21444         Tests for module 'cbrt'.
21445         * modules/cbrt-tests: New file.
21446         * tests/test-cbrt.c: New file.
21447
21448         Tests for module 'atan2'.
21449         * modules/atan2-tests: New file.
21450         * tests/test-atan2.c: New file.
21451
21452         Tests for module 'atan'.
21453         * modules/atan-tests: New file.
21454         * tests/test-atan.c: New file.
21455
21456         Tests for module 'asin'.
21457         * modules/asin-tests: New file.
21458         * tests/test-asin.c: New file.
21459
21460         Tests for module 'acos'.
21461         * modules/acos-tests: New file.
21462         * tests/test-acos.c: New file.
21463
21464 2010-01-24  Bruno Haible  <bruno@clisp.org>
21465
21466         Fix tests for common <math.h> functions.
21467         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21468         code snippet that references the function pointer, rather than merely
21469         calling the function. Substitute the FUNC_LIBM variable.
21470         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21471         * modules/acos (configure.ac): Likewise.
21472         * modules/asin (configure.ac): Likewise.
21473         * modules/atan (configure.ac): Likewise.
21474         * modules/atan2 (configure.ac): Likewise.
21475         * modules/cbrt (configure.ac): Likewise.
21476         * modules/copysign (configure.ac): Likewise.
21477         * modules/cos (configure.ac): Likewise.
21478         * modules/cosh (configure.ac): Likewise.
21479         * modules/erf (configure.ac): Likewise.
21480         * modules/erfc (configure.ac): Likewise.
21481         * modules/exp (configure.ac): Likewise.
21482         * modules/fabs (configure.ac): Likewise.
21483         * modules/fmod (configure.ac): Likewise.
21484         * modules/hypot (configure.ac): Likewise.
21485         * modules/j0 (configure.ac): Likewise.
21486         * modules/j1 (configure.ac): Likewise.
21487         * modules/jn (configure.ac): Likewise.
21488         * modules/ldexp (configure.ac): Likewise.
21489         * modules/lgamma (configure.ac): Likewise.
21490         * modules/log (configure.ac): Likewise.
21491         * modules/log10 (configure.ac): Likewise.
21492         * modules/log1p (configure.ac): Likewise.
21493         * modules/logb (configure.ac): Likewise.
21494         * modules/modf (configure.ac): Likewise.
21495         * modules/nextafter (configure.ac): Likewise.
21496         * modules/pow (configure.ac): Likewise.
21497         * modules/remainder (configure.ac): Likewise.
21498         * modules/rint (configure.ac): Likewise.
21499         * modules/sin (configure.ac): Likewise.
21500         * modules/sinh (configure.ac): Likewise.
21501         * modules/tan (configure.ac): Likewise.
21502         * modules/tanh (configure.ac): Likewise.
21503         * modules/y0 (configure.ac): Likewise.
21504         * modules/y1 (configure.ac): Likewise.
21505         * modules/yn (configure.ac): Likewise.
21506
21507 2010-01-24  Bruno Haible  <bruno@clisp.org>
21508
21509         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21510         * tests/test-acosl.c (x): New variable.
21511         (main): Store argument in x and fetch it from x.
21512         * tests/test-asinl.c (x): New variable.
21513         (main): Store argument in x and fetch it from x.
21514         * tests/test-atanl.c (x): New variable.
21515         (main): Store argument in x and fetch it from x.
21516         * tests/test-cosl.c (x): New variable.
21517         (main): Store argument in x and fetch it from x.
21518         * tests/test-expl.c (x): New variable.
21519         (main): Store argument in x and fetch it from x.
21520         * tests/test-logl.c (x): New variable.
21521         (main): Store argument in x and fetch it from x.
21522         * tests/test-sinl.c (x): New variable.
21523         (main): Store argument in x and fetch it from x.
21524         * tests/test-sqrtl.c (x): New variable.
21525         (main): Store argument in x and fetch it from x.
21526         * tests/test-tanl.c (x): New variable.
21527         (main): Store argument in x and fetch it from x.
21528
21529 2010-01-24  Bruno Haible  <bruno@clisp.org>
21530
21531         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21532         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21533         assignments to the initial TESTS_ENVIRONMENT.
21534         * doc/gnulib.texi (Unit test modules): Document it.
21535         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21536         TESTS_ENVIRONMENT.
21537         * modules/btowc-tests (Makefile.am): Likewise.
21538         * modules/c-stack-tests (Makefile.am): Likewise.
21539         * modules/c-strcase-tests (Makefile.am): Likewise.
21540         * modules/copy-file-tests (Makefile.am): Likewise.
21541         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21542         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21543         * modules/mbrtowc-tests (Makefile.am): Likewise.
21544         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21545         * modules/mbscasestr-tests (Makefile.am): Likewise.
21546         * modules/mbschr-tests (Makefile.am): Likewise.
21547         * modules/mbscspn-tests (Makefile.am): Likewise.
21548         * modules/mbsinit-tests (Makefile.am): Likewise.
21549         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21550         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21551         * modules/mbspbrk-tests (Makefile.am): Likewise.
21552         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21553         * modules/mbsrchr-tests (Makefile.am): Likewise.
21554         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21555         * modules/mbsspn-tests (Makefile.am): Likewise.
21556         * modules/mbsstr-tests (Makefile.am): Likewise.
21557         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21558         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21559         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21560         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21561         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21562         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21563         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21564         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21565         * modules/wcrtomb-tests (Makefile.am): Likewise.
21566         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21567         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21568         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21569         assignments from TESTS_ENVIRONMENT.
21570         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21571         augmentation.
21572         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21573         * modules/atexit-tests (Makefile.am): Likewise.
21574         * modules/binary-io-tests (Makefile.am): Likewise.
21575         * modules/closein-tests (Makefile.am): Likewise.
21576         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21577         * modules/exclude-tests (Makefile.am): Likewise.
21578         * modules/fflush-tests (Makefile.am): Likewise.
21579         * modules/fpending-tests (Makefile.am): Likewise.
21580         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21581         * modules/freadahead-tests (Makefile.am): Likewise.
21582         * modules/freadptr-tests (Makefile.am): Likewise.
21583         * modules/freadseek-tests (Makefile.am): Likewise.
21584         * modules/fseek-tests (Makefile.am): Likewise.
21585         * modules/fseeko-tests (Makefile.am): Likewise.
21586         * modules/ftell-tests (Makefile.am): Likewise.
21587         * modules/ftello-tests (Makefile.am): Likewise.
21588         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21589         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21590         * modules/lseek-tests (Makefile.am): Likewise.
21591         * modules/parse-duration-tests (Makefile.am): Likewise.
21592         * modules/perror-tests (Makefile.am): Likewise.
21593         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21594         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21595         * modules/pipe-tests (Makefile.am): Likewise.
21596         * modules/pread-tests (Makefile.am): Likewise.
21597         * modules/printf-posix-tests (Makefile.am): Likewise.
21598         * modules/select-tests (Makefile.am): Likewise.
21599         * modules/sigpipe-tests (Makefile.am): Likewise.
21600         * modules/tsearch-tests (Makefile.am): Likewise.
21601         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21602         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21603         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21604         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21605         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21606         * modules/version-etc-tests (Makefile.am): Likewise.
21607         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21608         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21609         * modules/xalloc-die-tests (Makefile.am): Likewise.
21610         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21611         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21612         * modules/xstrtol-tests (Makefile.am): Likewise.
21613         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21614         * modules/yesno-tests (Makefile.am): Likewise.
21615         Suggested by Jim Meyering.
21616
21617 2010-01-24  Bruno Haible  <bruno@clisp.org>
21618
21619         More documentation.
21620         * doc/gnulib.texi (Writing modules): New chapter.
21621         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21622         the new chapter.
21623
21624 2010-01-24  Jim Meyering  <meyering@redhat.com>
21625
21626         maint.mk: do not prepend "./" after filtering
21627         * top/maint.mk (_prepend_srcdir_prefix): New variable
21628         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21629         "./" when $(srcdir) is ".".
21630
21631         define STREQ(a,b) consistently, removing useless parentheses
21632         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21633         since the only risk is that "a" or "b" contains an unparenthesized
21634         comma, but if either did that, STREQ would have 3 or more arguments.
21635         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21636         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21637         * lib/hash-triple.c (STREQ): Likewise.
21638         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21639         * lib/getugroups.c (STREQ): Likewise.
21640
21641 2010-01-23  Jim Meyering  <meyering@redhat.com>
21642
21643         maint.mk: fix syntax-check in a non-srcdir build directory
21644         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21645         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21646
21647 2010-01-22  Jim Meyering  <meyering@redhat.com>
21648
21649         userspec: add unit tests
21650         * tests/test-userspec.c: New file.
21651         * modules/userspec-tests: Likewise.
21652
21653 2010-01-21  Jim Meyering  <meyering@redhat.com>
21654
21655         maint.mk: handle source file names containing "." robustly
21656         * top/maint.mk (_dot_escaped_srcdir): Define.
21657         (VC_LIST): Use it in LHS of sed substitution.
21658
21659 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21660
21661         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21662         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21663         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21664         from a non-srcdir build.
21665
21666 2010-01-20  Eric Blake  <ebb9@byu.net>
21667
21668         warn-on-use: use instead of link-warning
21669         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21670         * modules/unistd (Depends-on, Makefile.am): Likewise.
21671         * modules/arpa_inet (Depends-on): Replace link-warning with
21672         warn-on-use.
21673         (Makefile.am): Update rules accordingly.
21674         * modules/ctype (Depends-on, Makefile.am): Likewise.
21675         * modules/dirent (Depends-on, Makefile.am): Likewise.
21676         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21677         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21678         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21679         * modules/locale (Depends-on, Makefile.am): Likewise.
21680         * modules/math (Depends-on, Makefile.am): Likewise.
21681         * modules/search (Depends-on, Makefile.am): Likewise.
21682         * modules/signal (Depends-on, Makefile.am): Likewise.
21683         * modules/spawn (Depends-on, Makefile.am): Likewise.
21684         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21685         * modules/string (Depends-on, Makefile.am): Likewise.
21686         * modules/strings (Depends-on, Makefile.am): Likewise.
21687         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21688         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21689         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21690         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21691         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21692         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21693         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21694         * modules/wchar (Depends-on, Makefile.am): Likewise.
21695         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21696         should be poisoned.
21697         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21698         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21699         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21700         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21701         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21702         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21703         * m4/math_h.m4 (gl_MATH_H): Likewise.
21704         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21705         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21706         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21707         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21708         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21710         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21711         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21712         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21716         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21717         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21718         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21719         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21720         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21721         GL_LINK_WARNING.
21722         * lib/ctype.in.h: Likewise.
21723         * lib/dirent.in.h: Likewise.
21724         * lib/fcntl.in.h: Likewise.
21725         * lib/inttypes.in.h: Likewise.
21726         * lib/langinfo.in.h: Likewise.
21727         * lib/locale.in.h: Likewise.
21728         * lib/math.in.h: Likewise.
21729         * lib/search.in.h: Likewise.
21730         * lib/signal.in.h: Likewise.
21731         * lib/spawn.in.h: Likewise.
21732         * lib/stdio.in.h: Likewise.
21733         * lib/stdlib.in.h: Likewise.
21734         * lib/string.in.h: Likewise.
21735         * lib/strings.in.h: Likewise.
21736         * lib/sys_file.in.h: Likewise.
21737         * lib/sys_ioctl.in.h: Likewise.
21738         * lib/sys_select.in.h: Likewise.
21739         * lib/sys_socket.in.h: Likewise.
21740         * lib/sys_stat.in.h: Likewise.
21741         * lib/sys_times.in.h: Likewise.
21742         * lib/sys_utsname.in.h: Likewise.
21743         * lib/unistd.in.h: Likewise.
21744         * lib/wchar.in.h: Likewise.
21745
21746 2010-01-20  Bruno Haible  <bruno@clisp.org>
21747
21748         Avoid duplicate -lm.
21749         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21750         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21753         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21754         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21755         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21756         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21757         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21758         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21759         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21760         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21761         Reported by Paolo Bonzini.
21762
21763 2010-01-19  Bruno Haible  <bruno@clisp.org>
21764
21765         langinfo, nl_langinfo: Relicense under LGPLv2+.
21766         * modules/langinfo (License): Change to LGPLv2+.
21767         * modules/nl_langinfo (License): Likewise.
21768         Patch by David Lutterkort <lutter@redhat.com>.
21769
21770 2010-01-19  Bruno Haible  <bruno@clisp.org>
21771
21772         Avoid compilation error with cc on OSF/1 5.1.
21773         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21774         statement, not before.
21775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21776
21777 2010-01-18  Bruno Haible  <bruno@clisp.org>
21778
21779         Avoid a link error due to the __printf__ symbol.
21780         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21781         and 2.6.x.
21782         (__format__, __printf__): Remove definitions.
21783         * lib/argp-fmtstream.h: Likewise.
21784         * lib/argp.h: Likewise.
21785         * lib/error.h: Likewise.
21786         * lib/vasnprintf.h: Likewise.
21787         * lib/xprintf.h: Likewise.
21788         * lib/xvasprintf.h: Likewise.
21789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21790
21791 2010-01-18  Bruno Haible  <bruno@clisp.org>
21792
21793         Tests for module 'tanl'.
21794         * modules/tanl-tests: New file.
21795         * tests/test-tanl.c: New file.
21796
21797         Tests for module 'sqrtl'.
21798         * modules/sqrtl-tests: New file.
21799         * tests/test-sqrtl.c: New file.
21800
21801         Tests for module 'sinl'.
21802         * modules/sinl-tests: New file.
21803         * tests/test-sinl.c: New file.
21804
21805         Tests for module 'logl'.
21806         * modules/logl-tests: New file.
21807         * tests/test-logl.c: New file.
21808
21809         Tests for module 'expl'.
21810         * modules/expl-tests: New file.
21811         * tests/test-expl.c: New file.
21812
21813         Tests for module 'cosl'.
21814         * modules/cosl-tests: New file.
21815         * tests/test-cosl.c: New file.
21816
21817         Tests for module 'atanl'.
21818         * modules/atanl-tests: New file.
21819         * tests/test-atanl.c: New file.
21820
21821         Tests for module 'asinl'.
21822         * modules/asinl-tests: New file.
21823         * tests/test-asinl.c: New file.
21824
21825         Tests for module 'acosl'.
21826         * modules/acosl-tests: New file.
21827         * tests/test-acosl.c: New file.
21828
21829         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21830         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21831         tanl): Use the standard gnulib idiom.
21832         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21833         * lib/sinl.c: Likewise.
21834         * lib/tanl.c: Don't include trigl.c.
21835         (kernel_tanl): Make static.
21836         * lib/sincosl.c: Include trigl.h first.
21837         * lib/trigl.c: Likewise.
21838         * m4/acosl.m4: New file.
21839         * m4/asinl.m4: New file.
21840         * m4/atanl.m4: New file.
21841         * m4/cosl.m4: New file.
21842         * m4/expl.m4: New file.
21843         * m4/logl.m4: New file.
21844         * m4/sinl.m4: New file.
21845         * m4/sqrtl.m4: New file.
21846         * m4/tanl.m4: New file.
21847         * m4/mathl.m4: Remove file.
21848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21849         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21850         Don't initialize GNULIB_MATHL.
21851         * modules/acosl: New file.
21852         * modules/asinl: New file.
21853         * modules/atanl: New file.
21854         * modules/cosl: New file.
21855         * modules/expl: New file.
21856         * modules/logl: New file.
21857         * modules/sinl: New file.
21858         * modules/sqrtl: New file.
21859         * modules/tanl: New file.
21860         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21861         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21862         substitute GNULIB_MATHL.
21863         * modules/mathl: Rewritten.
21864         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21865         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21866         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21867         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21868         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21869         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21870         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21871         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21872         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21873
21874 2010-01-18  Bruno Haible  <bruno@clisp.org>
21875
21876         sqrt: Make gl_FUNC_SQRT requirable.
21877         * m4/sqrt.m4: New file.
21878         * modules/sqrt (Files): Add it.
21879         (configure.ac): Invoke gl_FUNC_SQRT.
21880
21881 2010-01-18  Bruno Haible  <bruno@clisp.org>
21882
21883         New modules for common <math.h> functions.
21884         * m4/mathfunc.m4: New file.
21885         * modules/acos: New file.
21886         * modules/asin: New file.
21887         * modules/atan: New file.
21888         * modules/atan2: New file.
21889         * modules/cbrt: New file.
21890         * modules/copysign: New file.
21891         * modules/cos: New file.
21892         * modules/cosh: New file.
21893         * modules/erf: New file.
21894         * modules/erfc: New file.
21895         * modules/exp: New file.
21896         * modules/fabs: New file.
21897         * modules/fmod: New file.
21898         * modules/hypot: New file.
21899         * modules/j0: New file.
21900         * modules/j1: New file.
21901         * modules/jn: New file.
21902         * modules/ldexp: New file.
21903         * modules/lgamma: New file.
21904         * modules/log: New file.
21905         * modules/log10: New file.
21906         * modules/log1p: New file.
21907         * modules/logb: New file.
21908         * modules/modf: New file.
21909         * modules/nextafter: New file.
21910         * modules/pow: New file.
21911         * modules/remainder: New file.
21912         * modules/rint: New file.
21913         * modules/sin: New file.
21914         * modules/sinh: New file.
21915         * modules/sqrt: New file.
21916         * modules/tan: New file.
21917         * modules/tanh: New file.
21918         * modules/y0: New file.
21919         * modules/y1: New file.
21920         * modules/yn: New file.
21921         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21922         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21923         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21924         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21925         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21926         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21927         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21928         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21929         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21930         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21931         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21932         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21933         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21934         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21935         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21936         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21937         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21938         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21939         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21940         * doc/posix-functions/log.texi: Mention the 'log' module.
21941         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21942         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21943         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21944         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21945         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21946         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21947         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21948         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21949         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21950         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21951         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21952         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21953         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21954         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21955         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21956         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21957
21958 2010-01-18  Jim Meyering  <meyering@redhat.com>
21959
21960         ignore-value: relax license to LGPLv2+
21961         * modules/ignore-value (License): Relax to LGPLv2+.
21962
21963         getdate: don't leak when TZ contains two or more '"'s
21964         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21965         double quote in TZ after the first one.
21966
21967         readtokens: do not leak internal token_lengths buffer
21968         * lib/readtokens.c (readtokens): Free the local, lengths,
21969         when the supplied "token_lengths" parameter is NULL.
21970
21971 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21972
21973         Fix a couple of missing LIBTHREAD link failures on AIX.
21974         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21975         $(LIBTHREAD).
21976         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21977
21978         Link test-poll against INET_PTON_LIB.
21979         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21980         for inet_pton on Solaris 10.
21981
21982 2010-01-17  Bruno Haible  <bruno@clisp.org>
21983
21984         unistdio/*-sprintf: Fix typo in module description.
21985         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21986         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21987         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21988         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21989         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21990         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21991         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21993
21994 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21995
21996         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21997         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21998         variables in shell case patterns, for AIX and HP-UX ksh.
21999
22000         Split large sed scripts, for HP-UX sed.
22001         * modules/stdio: Split sed scripts around 50 sed commands,
22002         to avoid HP-UX limit of 99 commands, in the near future.
22003         * modules/string: Likewise.
22004         * modules/unistd: Likewise.
22005
22006         gnulib-tool: avoid writing in the current directory.
22007         * gnulib-tool (func_emit_lib_Makefile_am)
22008         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22009         not in the current directory, so concurrent gnulib-tool
22010         instances do not interfere.
22011
22012 2010-01-16  Jim Meyering  <meyering@redhat.com>
22013
22014         doc: update users.txt
22015         * users.txt: Add grep.
22016         (diffutils, gzip): Update URLs.
22017
22018 2010-01-12  Bruno Haible  <bruno@clisp.org>
22019
22020         posix_spawn: Avoid test failure on Cygwin.
22021         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22022         characters.
22023         Reported by Simon Josefsson.
22024
22025 2010-01-12  Bruno Haible  <bruno@clisp.org>
22026
22027         * tests/test-cond.c (main): When skipping the test, show the reason.
22028
22029 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22030
22031         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22032
22033 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22034
22035         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22036         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22037
22038 2010-01-12  Eric Blake  <ebb9@byu.net>
22039
22040         build: guarantee AS_VAR_IF
22041         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22042         (gl_AS_VAR_IF): Move...
22043         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22044         Reported by Simon Josefsson.
22045
22046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22047
22048         * lib/stdio.in.h: Fix typo.
22049
22050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22051
22052         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22053         libgpg-error.
22054
22055 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22056
22057         * tests/test-xalloc-die.sh: Use $EXEEXT.
22058
22059 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22060             Bruno Haible  <bruno@clisp.org>
22061
22062         getlogin, getlogin_r: Avoid test failure.
22063         * tests/test-getlogin.c: Include <stdio.h>.
22064         (main): Skip the test when the function fails because stdin is not a
22065         tty.
22066         * tests/test-getlogin_r.c: Include <stdio.h>.
22067         (main): Skip the test when the function fails because stdin is not a
22068         tty.
22069
22070 2010-01-11  Eric Blake  <ebb9@byu.net>
22071
22072         tests: avoid more large file warnings
22073         * tests/test-fflush.c: Avoid warning about ftell use.
22074         * tests/test-fseek.c: Avoid warning about fseek use.
22075
22076 2010-01-10  Bruno Haible  <bruno@clisp.org>
22077
22078         nproc: Work better on Linux when /proc and /sys are not mounted.
22079         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22080         as lower bound when, on glibc/Linux systems,
22081         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22082         Suggested by Pádraig Brady <P@draigbrady.com>.
22083         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22084
22085         nproc: Refactor.
22086         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22087         extracted from num_processors.
22088         (num_processors): Call it.
22089
22090 2010-01-11  Jim Meyering  <meyering@redhat.com>
22091
22092         utimecmp: avoid new warning from upcoming gcc-4.5.0
22093         * lib/utimecmp.c (BILLION): Define using #define rather than an
22094         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22095
22096 2010-01-11  Eric Blake  <ebb9@byu.net>
22097
22098         math: add portability warnings for classification macros
22099         * modules/math (Depends-on): Add warn-on-use.
22100         (Makefile.am): Provide new substitutions.
22101         * m4/math_h.m4 (gl_MATH_H): Require inline.
22102         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22103         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22104         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22105         implement warnings.
22106
22107         unistd: warn on use of environ without module
22108         * modules/unistd (Depends-on): Add warn-on-use.
22109         (Makefile.am): Provide new substitutions.
22110         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22111         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22112
22113         stdio: warn on suspicious uses
22114         * modules/stdio (Depends-on): Add warn-on-use.
22115         (Makefile.am): Provide new substitutions.
22116         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22117         fseeko.
22118         * lib/stdio.in.h (gets): Always warn on use.
22119         (fseek, ftell): Adjust when warnings are issued, and honor
22120         _GL_NO_LARGE_FILES as a way to silence the warning.
22121         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22122         any warning about large file offsets.
22123         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22124         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22125         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22126         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22127         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22128         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22129         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22130         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22131
22132         warn-on-use: new module
22133         * modules/warn-on-use: New file.
22134         * build-aux/warn-on-use.h: Likewise.
22135         * m4/warn-on-use.m4: Likewise.
22136         * MODULES.html.sh (Support for building): Mention it.
22137
22138 2010-01-10  Bruno Haible  <bruno@clisp.org>
22139
22140         Tests for module 'unistr/u32-strdup'.
22141         * modules/unistr/u32-strdup-tests: New file.
22142         * tests/unistr/test-u32-strdup.c: New file.
22143
22144         Tests for module 'unistr/u16-strdup'.
22145         * modules/unistr/u16-strdup-tests: New file.
22146         * tests/unistr/test-u16-strdup.c: New file.
22147
22148         Tests for module 'unistr/u8-strdup'.
22149         * modules/unistr/u8-strdup-tests: New file.
22150         * tests/unistr/test-u8-strdup.c: New file.
22151         * tests/unistr/test-strdup.h: New file.
22152
22153         Tests for module 'unistr/u32-strncmp'.
22154         * modules/unistr/u32-strncmp-tests: New file.
22155         * tests/unistr/test-u32-strncmp.c: New file.
22156
22157         Tests for module 'unistr/u16-strncmp'.
22158         * modules/unistr/u16-strncmp-tests: New file.
22159         * tests/unistr/test-u16-strncmp.c: New file.
22160
22161         Tests for module 'unistr/u8-strncmp'.
22162         * modules/unistr/u8-strncmp-tests: New file.
22163         * tests/unistr/test-u8-strncmp.c: New file.
22164         * tests/unistr/test-strncmp.h: New file.
22165
22166         Tests for module 'unistr/u32-strcoll'.
22167         * modules/unistr/u32-strcoll-tests: New file.
22168         * tests/unistr/test-u32-strcoll.c: New file.
22169
22170         Tests for module 'unistr/u16-strcoll'.
22171         * modules/unistr/u16-strcoll-tests: New file.
22172         * tests/unistr/test-u16-strcoll.c: New file.
22173
22174         Tests for module 'unistr/u8-strcoll'.
22175         * modules/unistr/u8-strcoll-tests: New file.
22176         * tests/unistr/test-u8-strcoll.c: New file.
22177
22178         Tests for module 'unistr/u32-strcmp'.
22179         * modules/unistr/u32-strcmp-tests: New file.
22180         * tests/unistr/test-u32-strcmp.c: New file.
22181         * tests/unistr/test-u32-strcmp.h: New file.
22182
22183         Tests for module 'unistr/u16-strcmp'.
22184         * modules/unistr/u16-strcmp-tests: New file.
22185         * tests/unistr/test-u16-strcmp.c: New file.
22186         * tests/unistr/test-u16-strcmp.h: New file.
22187
22188         Tests for module 'unistr/u8-strcmp'.
22189         * modules/unistr/u8-strcmp-tests: New file.
22190         * tests/unistr/test-u8-strcmp.c: New file.
22191         * tests/unistr/test-u8-strcmp.h: New file.
22192         * tests/unistr/test-strcmp.h: New file.
22193
22194         Tests for module 'unistr/u32-strncat'.
22195         * modules/unistr/u32-strncat-tests: New file.
22196         * tests/unistr/test-u32-strncat.c: New file.
22197
22198         Tests for module 'unistr/u16-strncat'.
22199         * modules/unistr/u16-strncat-tests: New file.
22200         * tests/unistr/test-u16-strncat.c: New file.
22201
22202         Tests for module 'unistr/u8-strncat'.
22203         * modules/unistr/u8-strncat-tests: New file.
22204         * tests/unistr/test-u8-strncat.c: New file.
22205         * tests/unistr/test-strncat.h: New file.
22206
22207         Tests for module 'unistr/u32-strcat'.
22208         * modules/unistr/u32-strcat-tests: New file.
22209         * tests/unistr/test-u32-strcat.c: New file.
22210
22211         Tests for module 'unistr/u16-strcat'.
22212         * modules/unistr/u16-strcat-tests: New file.
22213         * tests/unistr/test-u16-strcat.c: New file.
22214
22215         Tests for module 'unistr/u8-strcat'.
22216         * modules/unistr/u8-strcat-tests: New file.
22217         * tests/unistr/test-u8-strcat.c: New file.
22218         * tests/unistr/test-strcat.h: New file.
22219
22220         Tests for module 'unistr/u32-stpncpy'.
22221         * modules/unistr/u32-stpncpy-tests: New file.
22222         * tests/unistr/test-u32-stpncpy.c: New file.
22223
22224         Tests for module 'unistr/u16-stpncpy'.
22225         * modules/unistr/u16-stpncpy-tests: New file.
22226         * tests/unistr/test-u16-stpncpy.c: New file.
22227
22228         Tests for module 'unistr/u8-stpncpy'.
22229         * modules/unistr/u8-stpncpy-tests: New file.
22230         * tests/unistr/test-u8-stpncpy.c: New file.
22231         * tests/unistr/test-stpncpy.h: New file.
22232
22233         Tests for module 'unistr/u32-strncpy'.
22234         * modules/unistr/u32-strncpy-tests: New file.
22235         * tests/unistr/test-u32-strncpy.c: New file.
22236
22237         Tests for module 'unistr/u16-strncpy'.
22238         * modules/unistr/u16-strncpy-tests: New file.
22239         * tests/unistr/test-u16-strncpy.c: New file.
22240
22241         Tests for module 'unistr/u8-strncpy'.
22242         * modules/unistr/u8-strncpy-tests: New file.
22243         * tests/unistr/test-u8-strncpy.c: New file.
22244         * tests/unistr/test-strncpy.h: New file.
22245
22246         Tests for module 'unistr/u32-stpcpy'.
22247         * modules/unistr/u32-stpcpy-tests: New file.
22248         * tests/unistr/test-u32-stpcpy.c: New file.
22249
22250         Tests for module 'unistr/u16-stpcpy'.
22251         * modules/unistr/u16-stpcpy-tests: New file.
22252         * tests/unistr/test-u16-stpcpy.c: New file.
22253
22254         Tests for module 'unistr/u8-stpcpy'.
22255         * modules/unistr/u8-stpcpy-tests: New file.
22256         * tests/unistr/test-u8-stpcpy.c: New file.
22257         * tests/unistr/test-stpcpy.h: New file.
22258
22259         Tests for module 'unistr/u32-strcpy'.
22260         * modules/unistr/u32-strcpy-tests: New file.
22261         * tests/unistr/test-u32-strcpy.c: New file.
22262
22263         Tests for module 'unistr/u16-strcpy'.
22264         * modules/unistr/u16-strcpy-tests: New file.
22265         * tests/unistr/test-u16-strcpy.c: New file.
22266
22267         Tests for module 'unistr/u8-strcpy'.
22268         * modules/unistr/u8-strcpy-tests: New file.
22269         * tests/unistr/test-u8-strcpy.c: New file.
22270         * tests/unistr/test-strcpy.h: New file.
22271
22272         Tests for module 'unistr/u32-strnlen'.
22273         * modules/unistr/u32-strnlen-tests: New file.
22274         * tests/unistr/test-u32-strnlen.c: New file.
22275
22276         Tests for module 'unistr/u16-strnlen'.
22277         * modules/unistr/u16-strnlen-tests: New file.
22278         * tests/unistr/test-u16-strnlen.c: New file.
22279
22280         Tests for module 'unistr/u8-strnlen'.
22281         * modules/unistr/u8-strnlen-tests: New file.
22282         * tests/unistr/test-u8-strnlen.c: New file.
22283         * tests/unistr/test-strnlen.h: New file.
22284
22285         Tests for module 'unistr/u32-strlen'.
22286         * modules/unistr/u32-strlen-tests: New file.
22287         * tests/unistr/test-u32-strlen.c: New file.
22288
22289         Tests for module 'unistr/u16-strlen'.
22290         * modules/unistr/u16-strlen-tests: New file.
22291         * tests/unistr/test-u16-strlen.c: New file.
22292
22293         Tests for module 'unistr/u8-strlen'.
22294         * modules/unistr/u8-strlen-tests: New file.
22295         * tests/unistr/test-u8-strlen.c: New file.
22296
22297         Tests for module 'unistr/u32-prev'.
22298         * modules/unistr/u32-prev-tests: New file.
22299         * tests/unistr/test-u32-prev.c: New file.
22300
22301         Tests for module 'unistr/u16-prev'.
22302         * modules/unistr/u16-prev-tests: New file.
22303         * tests/unistr/test-u16-prev.c: New file.
22304
22305         Tests for module 'unistr/u8-prev'.
22306         * modules/unistr/u8-prev-tests: New file.
22307         * tests/unistr/test-u8-prev.c: New file.
22308
22309         Tests for module 'unistr/u32-next'.
22310         * modules/unistr/u32-next-tests: New file.
22311         * tests/unistr/test-u32-next.c: New file.
22312
22313         Tests for module 'unistr/u16-next'.
22314         * modules/unistr/u16-next-tests: New file.
22315         * tests/unistr/test-u16-next.c: New file.
22316
22317         Tests for module 'unistr/u8-next'.
22318         * modules/unistr/u8-next-tests: New file.
22319         * tests/unistr/test-u8-next.c: New file.
22320
22321         Tests for module 'unistr/u32-strmbtouc'.
22322         * modules/unistr/u32-strmbtouc-tests: New file.
22323         * tests/unistr/test-u32-strmbtouc.c: New file.
22324
22325         Tests for module 'unistr/u16-strmbtouc'.
22326         * modules/unistr/u16-strmbtouc-tests: New file.
22327         * tests/unistr/test-u16-strmbtouc.c: New file.
22328
22329         Tests for module 'unistr/u8-strmbtouc'.
22330         * modules/unistr/u8-strmbtouc-tests: New file.
22331         * tests/unistr/test-u8-strmbtouc.c: New file.
22332
22333         Tests for module 'unistr/u32-strmblen'.
22334         * modules/unistr/u32-strmblen-tests: New file.
22335         * tests/unistr/test-u32-strmblen.c: New file.
22336
22337         Tests for module 'unistr/u16-strmblen'.
22338         * modules/unistr/u16-strmblen-tests: New file.
22339         * tests/unistr/test-u16-strmblen.c: New file.
22340
22341         Tests for module 'unistr/u8-strmblen'.
22342         * modules/unistr/u8-strmblen-tests: New file.
22343         * tests/unistr/test-u8-strmblen.c: New file.
22344
22345         Tests for module 'unistr/u32-cpy-alloc'.
22346         * modules/unistr/u32-cpy-alloc-tests: New file.
22347         * tests/unistr/test-u32-cpy-alloc.c: New file.
22348
22349         Tests for module 'unistr/u16-cpy-alloc'.
22350         * modules/unistr/u16-cpy-alloc-tests: New file.
22351         * tests/unistr/test-u16-cpy-alloc.c: New file.
22352
22353         Tests for module 'unistr/u8-cpy-alloc'.
22354         * modules/unistr/u8-cpy-alloc-tests: New file.
22355         * tests/unistr/test-u8-cpy-alloc.c: New file.
22356         * tests/unistr/test-cpy-alloc.h: New file.
22357
22358         Tests for module 'unistr/u32-mbsnlen'.
22359         * modules/unistr/u32-mbsnlen-tests: New file.
22360         * tests/unistr/test-u32-mbsnlen.c: New file.
22361
22362         Tests for module 'unistr/u16-mbsnlen'.
22363         * modules/unistr/u16-mbsnlen-tests: New file.
22364         * tests/unistr/test-u16-mbsnlen.c: New file.
22365
22366         Tests for module 'unistr/u8-mbsnlen'.
22367         * modules/unistr/u8-mbsnlen-tests: New file.
22368         * tests/unistr/test-u8-mbsnlen.c: New file.
22369
22370         Tests for module 'unistr/u32-chr'.
22371         * modules/unistr/u32-chr-tests: New file.
22372         * tests/unistr/test-u32-chr.c: New file.
22373
22374         Tests for module 'unistr/u16-chr'.
22375         * modules/unistr/u16-chr-tests: New file.
22376         * tests/unistr/test-u16-chr.c: New file.
22377
22378         Tests for module 'unistr/u8-chr'.
22379         * modules/unistr/u8-chr-tests: New file.
22380         * tests/unistr/test-u8-chr.c: New file.
22381         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22382
22383         Tests for module 'unistr/u32-cmp2'.
22384         * modules/unistr/u32-cmp2-tests: New file.
22385         * tests/unistr/test-u32-cmp2.c: New file.
22386
22387         Tests for module 'unistr/u16-cmp2'.
22388         * modules/unistr/u16-cmp2-tests: New file.
22389         * tests/unistr/test-u16-cmp2.c: New file.
22390
22391         Tests for module 'unistr/u8-cmp2'.
22392         * modules/unistr/u8-cmp2-tests: New file.
22393         * tests/unistr/test-u8-cmp2.c: New file.
22394         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22395
22396         Tests for module 'unistr/u32-cmp'.
22397         * modules/unistr/u32-cmp-tests: New file.
22398         * tests/unistr/test-u32-cmp.c: New file.
22399
22400         Tests for module 'unistr/u16-cmp'.
22401         * modules/unistr/u16-cmp-tests: New file.
22402         * tests/unistr/test-u16-cmp.c: New file.
22403
22404         Tests for module 'unistr/u8-cmp'.
22405         * modules/unistr/u8-cmp-tests: New file.
22406         * tests/unistr/test-u8-cmp.c: New file.
22407         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22408
22409         Tests for module 'unistr/u32-set'.
22410         * modules/unistr/u32-set-tests: New file.
22411         * tests/unistr/test-u32-set.c: New file.
22412
22413         Tests for module 'unistr/u16-set'.
22414         * modules/unistr/u16-set-tests: New file.
22415         * tests/unistr/test-u16-set.c: New file.
22416
22417         Tests for module 'unistr/u8-set'.
22418         * modules/unistr/u8-set-tests: New file.
22419         * tests/unistr/test-u8-set.c: New file.
22420         * tests/unistr/test-set.h: New file.
22421
22422         Tests for module 'unistr/u32-move'.
22423         * modules/unistr/u32-move-tests: New file.
22424         * tests/unistr/test-u32-move.c: New file.
22425
22426         Tests for module 'unistr/u16-move'.
22427         * modules/unistr/u16-move-tests: New file.
22428         * tests/unistr/test-u16-move.c: New file.
22429
22430         Tests for module 'unistr/u8-move'.
22431         * modules/unistr/u8-move-tests: New file.
22432         * tests/unistr/test-u8-move.c: New file.
22433         * tests/unistr/test-move.h: New file.
22434
22435         Tests for module 'unistr/u32-cpy'.
22436         * modules/unistr/u32-cpy-tests: New file.
22437         * tests/unistr/test-u32-cpy.c: New file.
22438
22439         Tests for module 'unistr/u16-cpy'.
22440         * modules/unistr/u16-cpy-tests: New file.
22441         * tests/unistr/test-u16-cpy.c: New file.
22442
22443         Tests for module 'unistr/u8-cpy'.
22444         * modules/unistr/u8-cpy-tests: New file.
22445         * tests/unistr/test-u8-cpy.c: New file.
22446         * tests/unistr/test-cpy.h: New file.
22447
22448 2010-01-09  Bruno Haible  <bruno@clisp.org>
22449
22450         Tests for module 'unistr/u32-uctomb'.
22451         * modules/unistr/u32-uctomb-tests: New file.
22452         * tests/unistr/test-u32-uctomb.c: New file.
22453
22454         Tests for module 'unistr/u16-uctomb'.
22455         * modules/unistr/u16-uctomb-tests: New file.
22456         * tests/unistr/test-u16-uctomb.c: New file.
22457
22458         Tests for module 'unistr/u8-uctomb'.
22459         * modules/unistr/u8-uctomb-tests: New file.
22460         * tests/unistr/test-u8-uctomb.c: New file.
22461
22462         Tests for module 'unistr/u32-mbtoucr'.
22463         * modules/unistr/u32-mbtoucr-tests: New file.
22464         * tests/unistr/test-u32-mbtoucr.c: New file.
22465
22466         Tests for module 'unistr/u16-mbtoucr'.
22467         * modules/unistr/u16-mbtoucr-tests: New file.
22468         * tests/unistr/test-u16-mbtoucr.c: New file.
22469
22470         Tests for module 'unistr/u8-mbtoucr'.
22471         * modules/unistr/u8-mbtoucr-tests: New file.
22472         * tests/unistr/test-u8-mbtoucr.c: New file.
22473
22474         Tests for module 'unistr/u32-mbtouc'.
22475         * modules/unistr/u32-mbtouc-tests: New file.
22476         * tests/unistr/test-u32-mbtouc.c: New file.
22477
22478         Tests for module 'unistr/u16-mbtouc'.
22479         * modules/unistr/u16-mbtouc-tests: New file.
22480         * tests/unistr/test-u16-mbtouc.c: New file.
22481
22482         Tests for module 'unistr/u8-mbtouc'.
22483         * modules/unistr/u8-mbtouc-tests: New file.
22484         * tests/unistr/test-u8-mbtouc.c: New file.
22485
22486         Tests for module 'unistr/u32-mbtouc-unsafe'.
22487         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22488         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22489         * tests/unistr/test-u32-mbtouc.h: New file.
22490
22491         Tests for module 'unistr/u16-mbtouc-unsafe'.
22492         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22493         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22494         * tests/unistr/test-u16-mbtouc.h: New file.
22495
22496         Tests for module 'unistr/u8-mbtouc-unsafe'.
22497         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22498         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22499         * tests/unistr/test-u8-mbtouc.h: New file.
22500
22501         Tests for module 'unistr/u32-mblen'.
22502         * modules/unistr/u32-mblen-tests: New file.
22503         * tests/unistr/test-u32-mblen.c: New file.
22504
22505         Tests for module 'unistr/u16-mblen'.
22506         * modules/unistr/u16-mblen-tests: New file.
22507         * tests/unistr/test-u16-mblen.c: New file.
22508
22509         Tests for module 'unistr/u8-mblen'.
22510         * modules/unistr/u8-mblen-tests: New file.
22511         * tests/unistr/test-u8-mblen.c: New file.
22512
22513         Tests for module 'unistr/u32-to-u16'.
22514         * modules/unistr/u32-to-u16-tests: New file.
22515         * tests/unistr/test-u32-to-u16.c: New file.
22516
22517         Tests for module 'unistr/u32-to-u8'.
22518         * modules/unistr/u32-to-u8-tests: New file.
22519         * tests/unistr/test-u32-to-u8.c: New file.
22520
22521         Tests for module 'unistr/u16-to-u32'.
22522         * modules/unistr/u16-to-u32-tests: New file.
22523         * tests/unistr/test-u16-to-u32.c: New file.
22524
22525         Tests for module 'unistr/u16-to-u8'.
22526         * modules/unistr/u16-to-u8-tests: New file.
22527         * tests/unistr/test-u16-to-u8.c: New file.
22528
22529         Tests for module 'unistr/u8-to-u32'.
22530         * modules/unistr/u8-to-u32-tests: New file.
22531         * tests/unistr/test-u8-to-u32.c: New file.
22532
22533         Tests for module 'unistr/u8-to-u16'.
22534         * modules/unistr/u8-to-u16-tests: New file.
22535         * tests/unistr/test-u8-to-u16.c: New file.
22536
22537         Tests for module 'unistr/u32-check'.
22538         * modules/unistr/u32-check-tests: New file.
22539         * tests/unistr/test-u32-check.c: New file.
22540
22541         Tests for module 'unistr/u16-check'.
22542         * modules/unistr/u16-check-tests: New file.
22543         * tests/unistr/test-u16-check.c: New file.
22544
22545         Tests for module 'unistr/u8-check'.
22546         * modules/unistr/u8-check-tests: New file.
22547         * tests/unistr/test-u8-check.c: New file.
22548
22549         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22550         (category_equals): New function.
22551         (main): Add more tests.
22552         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22553
22554         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22555
22556 2010-01-10  Bruno Haible  <bruno@clisp.org>
22557
22558         unistr/u*-strcoll: Try harder to distinguish different strings.
22559         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22560         compare s1 and s2 to see if they are different.
22561
22562 2010-01-10  Bruno Haible  <bruno@clisp.org>
22563
22564         unistr/u*-stpncpy: Fix the return value.
22565         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22566         description of the return value consistent with stpncpy in glibc.
22567         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22568         written non-NUL unit.
22569
22570 2010-01-10  Bruno Haible  <bruno@clisp.org>
22571
22572         unistr/u*-next: Add missing dependencies.
22573         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22574         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22575         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22576
22577 2010-01-10  Bruno Haible  <bruno@clisp.org>
22578
22579         unistr/u8-mbsnlen: Fix return value for incomplete character.
22580         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22581         u8_mblen.
22582         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22583         Remove unistr/u8-mblen.
22584         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22585         u16_mblen.
22586         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22587         Remove unistr/u16-mblen.
22588
22589 2010-01-10  Bruno Haible  <bruno@clisp.org>
22590
22591         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22592         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22593         Reported by Brian Gough <bjg@gnu.org> and
22594         Chris Clayton <chris2553@googlemail.com> via
22595         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22596
22597 2010-01-09  Bruno Haible  <bruno@clisp.org>
22598
22599         unistr/u16-to-u32: Reject invalid input.
22600         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22601         u16_mbtouc.
22602         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22603         Remove unistr/u16-mbtouc.
22604
22605         unistr/u16-to-u8: Reject invalid input.
22606         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22607         u16_mbtouc.
22608         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22609         Remove unistr/u16-mbtouc.
22610
22611         unistr/u8-to-u32: Reject invalid input.
22612         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22613         u8_mbtouc.
22614         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22615         Remove unistr/u8-mbtouc.
22616
22617         unistr/u8-to-u16: Reject invalid input.
22618         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22619         u8_mbtouc.
22620         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22621         Remove unistr/u8-mbtouc.
22622
22623 2010-01-09  Bruno Haible  <bruno@clisp.org>
22624
22625         Tests for module 'getlogin'.
22626         * modules/getlogin-tests: New file.
22627         * tests/test-getlogin.c: New file.
22628
22629         New module 'getlogin'.
22630         * lib/unistd.in.h (getlogin): New declaration.
22631         * lib/getlogin.c: New file.
22632         * m4/getlogin.m4: New file.
22633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22634         HAVE_GETLOGIN.
22635         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22636         HAVE_GETLOGIN.
22637         * modules/getlogin: New file.
22638         * doc/posix-functions/getlogin.texi: Mention the new module.
22639         Reported by John W. Eaton <jwe@gnu.org>.
22640
22641 2010-01-09  Bruno Haible  <bruno@clisp.org>
22642
22643         getlogin_r: Support for native Windows.
22644         * lib/getlogin_r.c: Include <windows.h>
22645         (getlogin_r): Implement for native Windows.
22646         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22647         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22648         via John W. Eaton <jwe@gnu.org>.
22649
22650 2010-01-09  Bruno Haible  <bruno@clisp.org>
22651
22652         getlogin_r: Small fixes.
22653         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22654         succeeds.
22655         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22656         before testing whether getlogin_r is declared. No need to set
22657         HAVE_DECL_GETLOGIN_R to 1.
22658         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22659
22660 2010-01-09  Bruno Haible  <bruno@clisp.org>
22661
22662         * lib/unistd.in.h (getlogin_r): Add comment.
22663
22664 2010-01-09  Bruno Haible  <bruno@clisp.org>
22665
22666         Tests for module 'getlogin_r'.
22667         * modules/getlogin_r-tests: New file.
22668         * tests/test-getlogin_r.c: New file.
22669
22670 2010-01-09  Jim Meyering  <meyering@redhat.com>
22671
22672         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22673         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22674         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22675
22676 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22677
22678         * lib/dup2.c (rpl_dup2): Improve comment.
22679
22680 2010-01-08  Eric Blake  <ebb9@byu.net>
22681
22682         maint.mk: allow packages to add makefile @@ exceptions
22683         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22684         (sc_makefile_check): Rename...
22685         (sc_makefile_at_at_check): ...to this, and use hook.
22686
22687         dup2: work around mingw bug
22688         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22689         Reported by Simon Josefsson.
22690
22691 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22692
22693         glob: Fix C++ compilation.
22694         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22695         C++.
22696
22697 2010-01-07  Bruno Haible  <bruno@clisp.org>
22698
22699         Fix indentation of wctype.in.h, broken since 2007-01-06.
22700         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22701
22702 2010-01-07  Bruno Haible  <bruno@clisp.org>
22703
22704         mbslen: Avoid collision with system function.
22705         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22706         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22707         * m4/mbslen.m4: New file.
22708         * modules/mbslen (Files): Add it.
22709         (configure.ac): Invoke gl_MBSLEN.
22710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22711         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22713         via Ian Beckwith <ianb@erislabs.net>.
22714
22715 2010-01-07  Bruno Haible  <bruno@clisp.org>
22716
22717         dirent: Document the last fix.
22718         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22719
22720 2010-01-07  Bruno Haible  <bruno@clisp.org>
22721
22722         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22723         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22724         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22725         va_list are defined.
22726         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22727         Reported by Eric Blake.
22728
22729 2010-01-07  Bruno Haible  <bruno@clisp.org>
22730
22731         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22732         * modules/xlist (Depends-on): Add 'list',
22733         * modules/xoset (Depends-on): Add 'oset'.
22734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22735
22736 2010-01-07  Bruno Haible  <bruno@clisp.org>
22737
22738         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22739         * doc/posix-functions/strncasecmp.texi: Likewise.
22740
22741 2010-01-07  Bruno Haible  <bruno@clisp.org>
22742
22743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22744
22745 2010-01-07  John W. Eaton  <jwe@octave.org>
22746
22747         wctype: allow C++ use
22748         * lib/wctype.in.h: Add extern "C" block for C++.
22749
22750 2010-01-06  Eric Blake  <ebb9@byu.net>
22751
22752         maint.mk: detect incorrect GFDL usage
22753         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22754
22755 2010-01-06  Jim Meyering  <meyering@redhat.com>
22756         and Eric Blake  <ebb9@byu.net>
22757
22758         maint.mk: ignore multi-line copyright in NEWS
22759         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22760
22761 2010-01-06  Eric Blake  <ebb9@byu.net>
22762
22763         select: add missing dependency
22764         * modules/select-tests (Depends-on): Move sockets dependency...
22765         * modules/select (Depends-on): ...here.
22766         Reported by Ian Beckwith.
22767
22768         doc: regenerate INSTALL
22769         * doc/INSTALL: Reflect recent autoconf update.
22770         * doc/INSTALL.ISO: Likewise.
22771         * doc/INSTALL.UTF-8: Likewise.
22772
22773         pread: fix compilation on glibc
22774         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22775         Reported by Ralf Wildenhues.
22776
22777         dirent: fix test failure
22778         * lib/dirent.in.h (includes): Guarantee ino_t.
22779         Reported by Ralf Wildenhues.
22780
22781 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22782
22783         linkat, renameat: avoid bad free
22784         * lib/at-func2.c (at_func2): Fix typo.
22785         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22786
22787 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22788
22789         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22790         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22791         to avoid failure of symlink test later.
22792
22793 2010-01-06  Eric Blake  <ebb9@byu.net>
22794
22795         stdio, unistd: guarantee ssize_t
22796         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22797         2008 are exposed when needed.
22798         * lib/stdio.in.h (includes): Likewise.
22799         Reported by Ralf Wildenhues.
22800
22801 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22802
22803         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22805         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22806
22807 2010-01-06  Jim Meyering  <meyering@redhat.com>
22808
22809         readtokens: this module *does* require xalloc.h
22810         It uses only functions that were omitted by the old syntax-check rule.
22811         * lib/readtokens.c: Include "xalloc.h" once again.
22812         * modules/readtokens (Depends-on): Add xalloc.
22813         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22814
22815 2010-01-05  Eric Blake  <ebb9@byu.net>
22816
22817         maint: support 'make announcement' from a VPATH build
22818         * top/maint.mk (announcement): Look for correct NEWS file.
22819
22820 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22821
22822         utimens (fdutimens): ignore a negative FD, per contract
22823         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22824         when we have a valid file descriptor.  Otherwise, using a brand
22825         new glibc (with just-patched futimens that now fails with EBADF)
22826         would cause this function to fail with ENOSYS.
22827         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22828         See also http://bugzilla.redhat.com/552320.
22829
22830 2010-01-05  Eric Blake  <ebb9@byu.net>
22831
22832         strcase: document what it provides
22833         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22834         gnulib module.
22835         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22836         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22837
22838 2010-01-05  Jim Meyering  <meyering@redhat.com>
22839
22840         maint: remove useless inclusions of "xalloc.h"
22841         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22842         * lib/readtokens.c: Likewise.
22843         * lib/same.c: Likewise.
22844         * modules/getloadavg (Depends-on): Remove xalloc.
22845         * modules/readtokens: Likewise.
22846         * modules/same: Likewise.
22847
22848         maint.mk: include 4 more function names in alloca.h-checking regexp
22849         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22850         regexp.  Before, we would give a false-positive (saying alloca.h
22851         is included unnecessarily) when the only uses involved omitted symbols.
22852
22853         xalloc.h: use consistent formatting
22854         * lib/xalloc.h: Move declarations to start in the first column.
22855
22856 2010-01-05  Eric Blake  <ebb9@byu.net>
22857
22858         mkdir: avoid xalloc
22859         * lib/mkdir.c (includes): Drop unused header.
22860         Reported by John W. Eaton.
22861
22862 2010-01-04  Jim Meyering  <meyering@redhat.com>
22863
22864         nl_langinfo: avoid configure-time syntax error
22865         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22866         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22867         the empty string.  Don't let that provoke a shell syntax error.
22868
22869         regcomp, regexec, fnmatch: avoid array bounds read error
22870         * lib/regcomp.c (build_equiv_class): From glibc:
22871         Use only the low 24 bits of a findidx return value as an index
22872         into the weights array.  Patch by Ulrich Drepper:
22873         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22874         * lib/regexec.c (check_node_accept_bytes): Likewise.
22875         * lib/fnmatch_loop.c (FCT): Likewise.
22876
22877         regcomp: skip collseq lookup when there are no rules
22878         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22879         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22880
22881         regcomp: recognize ill-formed { } expressions
22882         * lib/regcomp.c (parse_dup_op): From glibc:
22883         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22884
22885         regcomp: fix typo in comment
22886         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22887         s/satisfy/satisfies/.
22888
22889         regcomp: sync from glibc: remove dead store
22890         * lib/regcomp.c (duplicate_node_closure): Remove useless
22891         search_duplicated_node call and dead store.
22892
22893         regcomp: sync from glibc; always use nl_langinfo
22894         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22895         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22896         * modules/regex (Depends-on): Add nl_langinfo.
22897
22898 2010-01-04  Eric Blake  <ebb9@byu.net>
22899
22900         fdopendir: fix configure test
22901         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22902
22903 2010-01-01  Bruno Haible  <bruno@clisp.org>
22904
22905         wchar: Remove unused configure check.
22906         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22907
22908 2010-01-01  Eric Blake  <ebb9@byu.net>
22909
22910         headers: make check of system header explicit
22911         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22912         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22913         ourselves.
22914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22916         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22917         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22918         internals.
22919         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22920         missing.
22921         Suggested by Bruno Haible.
22922
22923 2010-01-01  Jim Meyering  <meyering@redhat.com>
22924
22925         ChangeLog: tweak to eliminate unnecessary copyright line
22926         * ChangeLog: Remove a copyright line that was mistakenly updated
22927         by today's update-copyright run.  Reported by Eric Blake.
22928
22929         test-update-copyright: don't let envvar setting cause test failure
22930         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22931
22932 2010-01-01  Bruno Haible  <bruno@clisp.org>
22933
22934         localename: Avoid gcc warning.
22935         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22936         function if it is not used.
22937
22938 2010-01-01  Jim Meyering  <meyering@redhat.com>
22939
22940         update nearly all FSF copyright year lists to include 2010
22941         Use the same procedure as for 2009, outlined in
22942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22943
22944         version-etc: set COPYRIGHT_YEAR to 2010
22945         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22946
22947 2009-12-31  Eric Blake  <ebb9@byu.net>
22948
22949         doc: correct availability of cygwin 1.5.x getopt
22950         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22951         variables.
22952         * doc/posix-functions/opterr.texi (opterr): Likewise.
22953         * doc/posix-functions/optind.texi (optind): Likewise.
22954         * doc/posix-functions/optopt.texi (optopt): Likewise.
22955         * doc/posix-functions/tzname.texi (tzname): Likewise.
22956
22957         openat: update maintainer
22958         * modules/openat (Maintainer): Add myself.
22959
22960         utimens: avoid shadowing warning
22961         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22962         buffers into one, to avoid shadowing, as well as avoiding a
22963         redundant stat.
22964         Reported by Jim Meyering.
22965
22966         test-dup2: avoid compiler warning
22967         * tests/test-dup2.c (is_inheritable): Only define if used.
22968
22969 2010-01-01  Bruno Haible  <bruno@clisp.org>
22970
22971         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22972         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22973         defined, use wctomb instead of wcrtomb.
22974
22975 2010-01-01  Bruno Haible  <bruno@clisp.org>
22976
22977         iconv: Reject native Solaris iconv.
22978         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22979         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22980
22981 2009-12-31  Bruno Haible  <bruno@clisp.org>
22982
22983         * tests/test-signal.c (main): Remove test of 'SIG'.
22984
22985 2009-12-31  Bruno Haible  <bruno@clisp.org>
22986
22987         spawn: Fix incomplete fix.
22988         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22989         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22990         warnings for GNULIB_POSIXCHECK again.
22991         Reported by Eric Blake.
22992
22993 2009-12-31  Bruno Haible  <bruno@clisp.org>
22994
22995         Avoid namespace pollution on glibc systems.
22996         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22997         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22998         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22999         glibc systems.
23000
23001 2009-12-31  Bruno Haible  <bruno@clisp.org>
23002
23003         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23004         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23005         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23006         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23007         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23008         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23009         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23010
23011 2009-12-31  Bruno Haible  <bruno@clisp.org>
23012
23013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23014         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23015         afterwards.
23016
23017 2009-12-31  Bruno Haible  <bruno@clisp.org>
23018
23019         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23020         SYS_UTSNAME_H.
23021
23022 2009-12-31  Bruno Haible  <bruno@clisp.org>
23023
23024         spawn: Fix misapplied patch.
23025         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23026         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23027         warnings for GNULIB_POSIXCHECK.
23028
23029 2009-12-31  Bruno Haible  <bruno@clisp.org>
23030
23031         times: Update after sys_times changed.
23032         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23033         * modules/times (Files): Add it.
23034         (configure.ac): Invoke gl_FUNC_TIMES.
23035
23036 2009-12-31  Bruno Haible  <bruno@clisp.org>
23037
23038         Use AC_C_INLINE where necessary.
23039         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23042         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23043         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23044         * m4/mbiter.m4 (gl_MBITER): Likewise.
23045         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23046         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23047         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23048         * modules/u64 (configure.ac): Likewise.
23049
23050 2009-12-31  Bruno Haible  <bruno@clisp.org>
23051
23052         Use AC_C_INLINE instead of module 'inline' where possible.
23053         * modules/inline (Description): Clarify purpose.
23054         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23055         * modules/count-one-bits (Depends-on): Remove inline.
23056         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23057         * modules/openat (Depends-on): Remove inline.
23058         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23059         instead of depending on module 'inline'.
23060         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23061         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23062         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23063         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23064         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23065         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23066         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23067         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23068         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23069         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23070         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23071         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23072         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23073         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23074         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23075         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23076         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23077         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23078         Likewise.
23079         * modules/unictype/property-ascii-hex-digit (Depends-on,
23080         configure.ac): Likewise.
23081         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23082         configure.ac): Likewise.
23083         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23084         configure.ac): Likewise.
23085         * modules/unictype/property-bidi-block-separator (Depends-on,
23086         configure.ac): Likewise.
23087         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23088         configure.ac): Likewise.
23089         * modules/unictype/property-bidi-common-separator (Depends-on,
23090         configure.ac): Likewise.
23091         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23092         Likewise.
23093         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23094         configure.ac): Likewise.
23095         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23096         configure.ac): Likewise.
23097         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23098         configure.ac): Likewise.
23099         * modules/unictype/property-bidi-european-digit (Depends-on,
23100         configure.ac): Likewise.
23101         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23102         configure.ac): Likewise.
23103         * modules/unictype/property-bidi-left-to-right (Depends-on,
23104         configure.ac): Likewise.
23105         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23106         configure.ac): Likewise.
23107         * modules/unictype/property-bidi-other-neutral (Depends-on,
23108         configure.ac): Likewise.
23109         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23110         Likewise.
23111         * modules/unictype/property-bidi-segment-separator (Depends-on,
23112         configure.ac): Likewise.
23113         * modules/unictype/property-bidi-whitespace (Depends-on,
23114         configure.ac): Likewise.
23115         * modules/unictype/property-combining (Depends-on, configure.ac):
23116         Likewise.
23117         * modules/unictype/property-composite (Depends-on, configure.ac):
23118         Likewise.
23119         * modules/unictype/property-currency-symbol (Depends-on,
23120         configure.ac): Likewise.
23121         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23122         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23123         Likewise.
23124         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23125         configure.ac): Likewise.
23126         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23127         Likewise.
23128         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23129         Likewise.
23130         * modules/unictype/property-extender (Depends-on, configure.ac):
23131         Likewise.
23132         * modules/unictype/property-format-control (Depends-on, configure.ac):
23133         Likewise.
23134         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23135         Likewise.
23136         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23137         Likewise.
23138         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23139         Likewise.
23140         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23141         Likewise.
23142         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23143         Likewise.
23144         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23145         Likewise.
23146         * modules/unictype/property-id-start (Depends-on, configure.ac):
23147         Likewise.
23148         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23149         Likewise.
23150         * modules/unictype/property-ids-binary-operator (Depends-on,
23151         configure.ac): Likewise.
23152         * modules/unictype/property-ids-trinary-operator (Depends-on,
23153         configure.ac): Likewise.
23154         * modules/unictype/property-ignorable-control (Depends-on,
23155         configure.ac): Likewise.
23156         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23157         Likewise.
23158         * modules/unictype/property-join-control (Depends-on, configure.ac):
23159         Likewise.
23160         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23161         Likewise.
23162         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23163         Likewise.
23164         * modules/unictype/property-logical-order-exception (Depends-on,
23165         configure.ac): Likewise.
23166         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23167         Likewise.
23168         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23169         * modules/unictype/property-non-break (Depends-on, configure.ac):
23170         Likewise.
23171         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23172         Likewise.
23173         * modules/unictype/property-numeric (Depends-on, configure.ac):
23174         Likewise.
23175         * modules/unictype/property-other-alphabetic (Depends-on,
23176         configure.ac): Likewise.
23177         * modules/unictype/property-other-default-ignorable-code-point
23178         (Depends-on, configure.ac): Likewise.
23179         * modules/unictype/property-other-grapheme-extend (Depends-on,
23180         configure.ac): Likewise.
23181         * modules/unictype/property-other-id-continue (Depends-on,
23182         configure.ac): Likewise.
23183         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23184         Likewise.
23185         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23186         Likewise.
23187         * modules/unictype/property-other-math (Depends-on, configure.ac):
23188         Likewise.
23189         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23190         Likewise.
23191         * modules/unictype/property-paired-punctuation (Depends-on,
23192         configure.ac): Likewise.
23193         * modules/unictype/property-paragraph-separator (Depends-on,
23194         configure.ac): Likewise.
23195         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23196         Likewise.
23197         * modules/unictype/property-pattern-white-space (Depends-on,
23198         configure.ac): Likewise.
23199         * modules/unictype/property-private-use (Depends-on, configure.ac):
23200         Likewise.
23201         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23202         Likewise.
23203         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23204         Likewise.
23205         * modules/unictype/property-radical (Depends-on, configure.ac):
23206         Likewise.
23207         * modules/unictype/property-sentence-terminal (Depends-on,
23208         configure.ac): Likewise.
23209         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23210         Likewise.
23211         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23212         * modules/unictype/property-terminal-punctuation (Depends-on,
23213         configure.ac): Likewise.
23214         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23215         Likewise.
23216         * modules/unictype/property-unassigned-code-value (Depends-on,
23217         configure.ac): Likewise.
23218         * modules/unictype/property-unified-ideograph (Depends-on,
23219         configure.ac): Likewise.
23220         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23221         Likewise.
23222         * modules/unictype/property-variation-selector (Depends-on,
23223         configure.ac): Likewise.
23224         * modules/unictype/property-white-space (Depends-on, configure.ac):
23225         Likewise.
23226         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23227         Likewise.
23228         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23229         Likewise.
23230         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23231         Likewise.
23232         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23233         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23234         Likewise.
23235
23236 2009-12-31  Bruno Haible  <bruno@clisp.org>
23237
23238         Remove unnecessary AC_C_INLINE invocation.
23239         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23240         since 2009-08-21.
23241
23242 2009-12-31  Jim Meyering  <meyering@redhat.com>
23243
23244         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23245         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23246         With this change, we can all remove the gpg_key_ID = ... definition
23247         from our respective cfg.mk files.
23248
23249         maint.mk: create announcement template in ~/, not in /tmp
23250         * top/maint.mk (emit_upload_commands): Adjust.
23251         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23252         Remove temporary file, .ci-msg.
23253
23254 2009-12-31  Eric Blake  <ebb9@byu.net>
23255
23256         link-warning: always build headers with link warnings
23257         * modules/arpa_inet (Makefile.am): Always build replacement
23258         header.
23259         * modules/ctype (Makefile.am): Likewise.
23260         * modules/dirent (Makefile.am): Likewise.
23261         * modules/inttypes (Makefile.am): Likewise.
23262         * modules/langinfo (Makefile.am): Likewise.
23263         * modules/locale (Makefile.am): Likewise.
23264         * modules/spawn (Makefile.am): Likewise.
23265         * modules/sys_file (Makefile.am): Likewise.
23266         * modules/sys_ioctl (Makefile.am): Likewise.
23267         * modules/sys_select (Makefile.am): Likewise.
23268         * modules/sys_socket (Makefile.am): Likewise.
23269         * modules/sys_times (Makefile.am): Likewise.
23270         * modules/sys_utsname (Makefile.am): Likewise.
23271         * modules/sys_wait (Makefile.am): Likewise.
23272         * modules/wchar (Makefile.am): Likewise.
23273         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23274         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23275         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23276         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23277         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23278         Likewise.
23279         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23280         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23281         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23282         Likewise.
23283         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23284         Likewise.
23285         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23287         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23291         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23292         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23293         (gl_WCHAR_H_DEFAULTS): Likewise.
23294
23295 2009-12-31  Eric Blake  <ebb9@byu.net>
23296
23297         signal, spawn: use link warnings
23298         * lib/signal.in.h (sigset_t): Make unconditional.
23299         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23300         (sigpending, sigprocmask, sigaction): Add link warnings.
23301         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23302         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23303         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23304         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23305         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23306         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23307         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23308         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23309         (posix_spawn_file_actions_destroy)
23310         (posix_spawn_file_actions_addopen)
23311         (posix_spawn_file_actions_addclose)
23312         (posix_spawn_file_actions_adddup2): Likewise.
23313         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23314         * tests/test-signal.c (main): Enhance test.
23315
23316         spawn: improve wrapper support
23317         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23318         (gl_SPAWN_H_DEFAULTS): New defaults.
23319         * modules/spawn (Makefile.am): Substitute them.
23320         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23321         Only declare if missing or broken.
23322
23323         sys_times, sys_utsname: use include_next
23324         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23325         header.
23326         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23328         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23329         * modules/sys_times (Depends-on): Add include_next.
23330         (Makefile.am): Substitute additional values.
23331         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23332         * lib/sys_times.in.h (includes): Include native header, if
23333         available.
23334         * lib/sys_utsname.in.h (includes): Likewise.
23335         * tests/test-sys_times.c (main): Enhance test.
23336
23337         fdutimensat: revert prior patch
23338         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23339         utimens.h.
23340         Reported by Bruno Haible.
23341
23342 2009-12-30  Eric Blake  <ebb9@byu.net>
23343
23344         sys_wait: drop link-warning dependency
23345         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23346         link-warning efforts.
23347         * lib/sys_wait.in.h: Likewise.
23348
23349         fdutimensat: remove bogus dependency
23350         * modules/fdutimensat (Depends-on): Drop inline.
23351
23352         unistd: fix typo
23353         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23354
23355 2009-12-30  Bruno Haible  <bruno@clisp.org>
23356
23357         Fix compilation error with Solaris cc.
23358         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23359         * lib/unicase/u16-is-invariant.c: Likewise.
23360         * lib/unicase/u32-is-invariant.c: Likewise.
23361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23362
23363 2009-12-30  Bruno Haible  <bruno@clisp.org>
23364
23365         Fix test crash.
23366         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23367         locales.
23368         Reported by Simon Josefsson <simon@josefsson.org>.
23369
23370 2009-12-30  Bruno Haible  <bruno@clisp.org>
23371
23372         Fix compilation error on most platforms.
23373         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23374         Reported by Simon Josefsson <simon@josefsson.org>
23375         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23376
23377 2009-12-30  Eric Blake  <ebb9@byu.net>
23378
23379         futimens, utimensat: work around ntfs-3g bug
23380         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23381         a ctime bug is present, and expand workaround to cover ntfs-3g.
23382         * lib/utimens.c (fdutimens, lutimens): Likewise.
23383         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23384         (validate_timespec): Adjust return value.
23385         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23386         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23387         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23388
23389 2009-12-29  Eric Blake  <ebb9@byu.net>
23390
23391         link-warning: make usage consistent
23392         * modules/ctype (Depends-on): Add link-warning.
23393         (Makefile.am): Update rules accordingly.
23394         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23395         * modules/locale (Depends-on, Makefile.am): Likewise.
23396         * modules/sys_file (Makefile.am): Likewise.
23397         * modules/getopt-posix (Makefile.am): Delete unused link warning
23398         efforts.
23399         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23400         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23401         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23402         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23403
23404         stdio: remove unused variables
23405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23407         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23408
23409         tests: test more substitute headers
23410         * modules/ctype-tests: New file.
23411         * modules/dirent-tests: Likewise.
23412         * modules/spawn-tests: Likewise.
23413         * modules/sys_file-tests: Likewise.
23414         * modules/sys_ioctl-tests: Likewise.
23415         * modules/sys_wait-tests: Likewise.
23416         * tests/test-ctype.c: Likewise.
23417         * tests/test-dirent.c: Likewise.
23418         * tests/test-spawn.c: Likewise.
23419         * tests/test-sys_file.c: Likewise.
23420         * tests/test-sys_ioctl.c: Likewise.
23421         * tests/test-sys_wait.c: Likewise.
23422         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23423         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23424         whether or not flock is in use.
23425
23426         tests: remove License section from module
23427         * modules/arpa_inet-tests: Remove unneeded section.
23428         * modules/byteswap-tests: Likewise.
23429         * modules/ceilf-tests: Likewise.
23430         * modules/ceill-tests: Likewise.
23431         * modules/crypto/des-tests: Likewise.
23432         * modules/crypto/gc-arcfour-tests: Likewise.
23433         * modules/crypto/gc-arctwo-tests: Likewise.
23434         * modules/crypto/gc-des-tests: Likewise.
23435         * modules/crypto/gc-hmac-md5-tests: Likewise.
23436         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23437         * modules/crypto/gc-md2-tests: Likewise.
23438         * modules/crypto/gc-md4-tests: Likewise.
23439         * modules/crypto/gc-md5-tests: Likewise.
23440         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23441         * modules/crypto/gc-rijndael-tests: Likewise.
23442         * modules/crypto/gc-sha1-tests: Likewise.
23443         * modules/crypto/gc-tests: Likewise.
23444         * modules/crypto/md2-tests: Likewise.
23445         * modules/crypto/md4-tests: Likewise.
23446         * modules/fcntl-h-tests: Likewise.
23447         * modules/floorf-tests: Likewise.
23448         * modules/floorl-tests: Likewise.
23449         * modules/frexp-nolibm-tests: Likewise.
23450         * modules/frexp-tests: Likewise.
23451         * modules/frexpl-nolibm-tests: Likewise.
23452         * modules/frexpl-tests: Likewise.
23453         * modules/getaddrinfo-tests: Likewise.
23454         * modules/inttypes-tests: Likewise.
23455         * modules/isfinite-tests: Likewise.
23456         * modules/isinf-tests: Likewise.
23457         * modules/ldexpl-tests: Likewise.
23458         * modules/locale-tests: Likewise.
23459         * modules/math-tests: Likewise.
23460         * modules/netdb-tests: Likewise.
23461         * modules/netinet_in-tests: Likewise.
23462         * modules/printf-frexp-tests: Likewise.
23463         * modules/printf-frexpl-tests: Likewise.
23464         * modules/priv-set-tests: Likewise.
23465         * modules/random_r-tests: Likewise.
23466         * modules/round-tests: Likewise.
23467         * modules/roundf-tests: Likewise.
23468         * modules/roundl-tests: Likewise.
23469         * modules/search-tests: Likewise.
23470         * modules/select-tests: Likewise.
23471         * modules/signal-tests: Likewise.
23472         * modules/stdbool-tests: Likewise.
23473         * modules/stddef-tests: Likewise.
23474         * modules/stdint-tests: Likewise.
23475         * modules/stdio-tests: Likewise.
23476         * modules/stdlib-tests: Likewise.
23477         * modules/string-tests: Likewise.
23478         * modules/strings-tests: Likewise.
23479         * modules/sys_select-tests: Likewise.
23480         * modules/sys_socket-tests: Likewise.
23481         * modules/sys_stat-tests: Likewise.
23482         * modules/sys_time-tests: Likewise.
23483         * modules/sys_utsname-tests: Likewise.
23484         * modules/sysexits-tests: Likewise.
23485         * modules/time-tests: Likewise.
23486         * modules/trunc-tests: Likewise.
23487         * modules/truncf-tests: Likewise.
23488         * modules/truncl-tests: Likewise.
23489         * modules/tsearch-tests: Likewise.
23490         * modules/unistd-tests: Likewise.
23491         * modules/wchar-tests: Likewise.
23492         * modules/wctype-tests: Likewise.
23493
23494         tests: fix license on several tests
23495         * tests/test-des.c: Update to GPLv3+.
23496         * tests/test-flock.c: Likewise.
23497         * tests/test-fsync.c: Likewise.
23498         * tests/test-futimens.h: Likewise.
23499         * tests/test-gc-arcfour.c: Likewise.
23500         * tests/test-gc-arctwo.c: Likewise.
23501         * tests/test-gc-des.c: Likewise.
23502         * tests/test-gc-hmac-md5.c: Likewise.
23503         * tests/test-gc-hmac-sha1.c: Likewise.
23504         * tests/test-gc-md2.c: Likewise.
23505         * tests/test-gc-md4.c: Likewise.
23506         * tests/test-gc-md5.c: Likewise.
23507         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23508         * tests/test-gc-rijndael.c: Likewise.
23509         * tests/test-gc-sha1.c: Likewise.
23510         * tests/test-gc.c: Likewise.
23511         * tests/test-getcwd.c: Likewise.
23512         * tests/test-link.c: Likewise.
23513         * tests/test-link.h: Likewise.
23514         * tests/test-lutimens.h: Likewise.
23515         * tests/test-md2.c: Likewise.
23516         * tests/test-md4.c: Likewise.
23517         * tests/test-mkdir.h: Likewise.
23518         * tests/test-rename.c: Likewise.
23519         * tests/test-rename.h: Likewise.
23520         * tests/test-safe-alloc.c: Likewise.
23521         * tests/test-utimens-common.h: Likewise.
23522         * tests/test-utimens.h: Likewise.
23523
23524         maint: sync license texts
23525         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23526         * doc/gpl-3.0.texi: Revert copyright year update.
23527         * doc/lgpl-3.0.texi: Likewise.
23528
23529 2009-12-29  Jim Meyering  <meyering@redhat.com>
23530
23531         update nearly all FSF copyright year lists to include 2009
23532         The files named by the following are exempted:
23533             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23534               test -f "$dst" && { echo "$dst"; continue; }
23535               test -d "$dst" || continue
23536               echo "$dst"/$(basename "$src")
23537             done > exempt
23538             git ls-files tests/unictype >> exempt
23539         In the remaining files, convert to all-interval notation if
23540         - there is already at least one year interval like 2000-2003
23541         - the file is maintained by me
23542         - the file is in lib/uni*/, where that style already prevails
23543         Otherwise, use update-copyright's default.
23544
23545 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23546         and Eric Blake  <ebb9@byu.net>
23547
23548         tests: don't require debug system() to pass
23549         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23550         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23551         * tests/test-unlink.h (test_unlink_func): Likewise.
23552         * tests/test-fstatat.c (main): ...into callers.
23553         * tests/test-lstat.c (main): Likewise.
23554         * tests/test-rmdir.c (main): Likewise.
23555         * tests/test-unlink.c (main): Likewise.
23556         * tests/test-unlinkat.c (main): Likewise.
23557         * tests/test-areadlink-with-size.c (main): Don't require a
23558         debug-only system call to pass, aiding cross-testing to mingw.
23559         * tests/test-areadlink.c (main): Likewise.
23560         * tests/test-areadlinkat-with-size.c (main): Likewise.
23561         * tests/test-areadlinkat.c (main): Likewise.
23562         * tests/test-canonicalize-lgpl.c (main): Likewise.
23563         * tests/test-canonicalize.c (main): Likewise.
23564         * tests/test-chown.c (main): Likewise.
23565         * tests/test-fchownat.c (main): Likewise.
23566         * tests/test-lchown.c (main): Likewise.
23567         * tests/test-fdutimensat.c (main): Likewise.
23568         * tests/test-futimens.c (main): Likewise.
23569         * tests/test-link.c (main): Likewise.
23570         * tests/test-linkat.c (main): Likewise.
23571         * tests/test-mkdir.c (main): Likewise.
23572         * tests/test-mkdirat.c (main): Likewise.
23573         * tests/test-mkfifo.c (main): Likewise.
23574         * tests/test-mkfifoat.c (main): Likewise.
23575         * tests/test-mknod.c (main): Likewise.
23576         * tests/test-readlink.c (main): Likewise.
23577         * tests/test-remove.c (main): Likewise.
23578         * tests/test-rename.c (main): Likewise.
23579         * tests/test-renameat.c (main): Likewise.
23580         * tests/test-symlink.c (main): Likewise.
23581         * tests/test-symlinkat.c (main): Likewise.
23582         * tests/test-utimens.c (main): Likewise.
23583         * tests/test-utimensat.c (main): Likewise.
23584
23585 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23586
23587         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23588         on $(UNUSED_PARAMETER_H) to avoid build failure.
23589
23590 2009-12-28  Jim Meyering  <meyering@redhat.com>
23591
23592         update-copyright: you may specify a max. line length other than 72
23593         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23594
23595         maint: use consistent FSF copyright line syntax
23596         * lib/posixtm.c: Add missing comma in FSF copyright line.
23597         * lib/posixtm.h: Likewise.
23598         * lib/getugroups.c: Add missing ", Inc.".
23599
23600         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23601         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23602         FSF copyright line.  Remove trailing blanks.
23603
23604 2009-12-28  Eric Blake  <ebb9@byu.net>
23605
23606         test-dup2: reduce dependencies
23607         * modules/cloexec (Configure.ac): Set witness.
23608         * modules/dup2-tests (Depends-on): Drop cloexec.
23609         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23610         not present.
23611         Suggested by Bruno Haible.
23612
23613 2009-12-26  Bruno Haible  <bruno@clisp.org>
23614
23615         Remove an unneeded dependency.
23616         * modules/fseterr (Depends-on): Remove dup2.
23617
23618 2009-12-26  Eric Blake  <ebb9@byu.net>
23619
23620         tests: use macros.h in more places
23621         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23622         (ASSERT_STREAM): Provide default of stderr.
23623         * tests/test-dirent-safer.c: Include macros.h, using alternate
23624         stream for assertions.
23625         * tests/test-dup-safer.c: Likewise.
23626         * tests/test-freopen-safer.c: Likewise.
23627         * tests/test-getopt.c: Likewise.
23628         * tests/test-openat-safer.c: Likewise.
23629         * tests/test-pipe.c: Likewise.
23630         * tests/test-popen-safer.c: Likewise.
23631         * modules/dirent-safer-tests (Files): Include macros.h.
23632         * modules/unistd-safer-tests (Files): Likewise.
23633         * modules/freopen-safer-tests (Files): Likewise.
23634         * modules/getopt-posix-tests (Files): Likewise.
23635         * modules/openat-safer-tests (Files): Likewise.
23636         * modules/pipe-tests (Files): Likewise.
23637
23638 2009-12-26  Bruno Haible  <bruno@clisp.org>
23639
23640         javacomp: Portability fix.
23641         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23642         that it also works on Solaris.
23643
23644 2009-12-26  Bruno Haible  <bruno@clisp.org>
23645
23646         localename: Fix storage allocation of gl_locale_name_thread's result.
23647         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23648         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23649         all platforms that have 'uselocale'.
23650         (gl_locale_name_thread_unsafe): New function, extracted from
23651         gl_locale_name_thread.
23652         (gl_locale_name_thread): Call struniq on all platforms that have
23653         'uselocale'.
23654         * tests/test-localename.c (test_locale_name_thread): Check that the
23655         resulting strings are permanently allocated.
23656         * modules/localename-tests (Depends-on): Add strdup.
23657
23658 2009-12-26  Bruno Haible  <bruno@clisp.org>
23659
23660         * tests/test-localename.c (categories): Fill in the strings.
23661
23662 2009-12-26  Jim Meyering  <meyering@redhat.com>
23663
23664         isdir: complete the removal of m4/isdir.m4
23665         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23666
23667         isdir: clean up, since at least grep still uses it
23668         * lib/isdir.c: Include "isdir.h".
23669         (S_ISDIR): Remove now-unneeded definition.
23670         * modules/isdir (Files): Add lib/isdir.h.
23671         * lib/isdir.h: New file, with declaration.
23672         * m4/isdir.m4: Remove file -- unneeded.
23673
23674 2009-12-25  Bruno Haible  <bruno@clisp.org>
23675
23676         selinux-h: Make generated .h files standalone.
23677         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23678         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23679         * lib/se-selinux.in.h: Likewise.
23680         * modules/selinux-h (Depends-on): Add unused-parameter.
23681         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23682         selinux/selinux.h and selinux/context.h.
23683         Suggested by Eric Blake.
23684
23685 2009-12-25  Bruno Haible  <bruno@clisp.org>
23686
23687         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23688         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23689         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23690         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23691         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23692
23693 2009-12-24  Bruno Haible  <bruno@clisp.org>
23694
23695         openat: Fix warning.
23696         * lib/openat-proc.c: Include <unistd.h>.
23697
23698 2009-12-24  Bruno Haible  <bruno@clisp.org>
23699
23700         New module 'unused-parameter'.
23701         * build-aux/unused-parameter.h: New file, extracted from earlier
23702         gnulib-common.m4.
23703         * modules/unused-parameter: New file.
23704         * lib/unistr.h: Include unused-parameter.h.
23705         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23706         _GL_UNUSED.
23707         * modules/unistr/base (Depends-on): Add unused-parameter.
23708
23709 2009-12-24  Bruno Haible  <bruno@clisp.org>
23710
23711         Add missing dependencies to 'extensions' module.
23712         * m4/extensions.m4: Add comment.
23713         * modules/accept4 (Depends-on): Add extensions.
23714         * modules/dup3 (Depends-on): Likewise.
23715         * modules/fcntl (Depends-on): Likewise.
23716         * modules/futimens (Depends-on): Likewise.
23717         * modules/mknod (Depends-on): Likewise.
23718         * modules/pipe2 (Depends-on): Likewise.
23719         * modules/stat-time (Depends-on): Likewise.
23720         * modules/strcasestr-simple (Depends-on): Likewise.
23721         * modules/strsignal (Depends-on): Likewise.
23722         * modules/utimensat (Depends-on): Likewise.
23723         * modules/localcharset (Depends-on): Likewise. Needed because of
23724         gl_FCNTL_O_FLAGS.
23725         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23726         AC_TYPE_MBSTATE_T.
23727         * modules/wcsnrtombs (Depends-on): Likewise.
23728         * modules/wcsrtombs (Depends-on): Likewise.
23729
23730 2009-12-24  Bruno Haible  <bruno@clisp.org>
23731
23732         binary-io: Avoid gcc warning due to SET_BINARY.
23733         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23734         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23735
23736 2009-12-24  Bruno Haible  <bruno@clisp.org>
23737
23738         Avoid future namespace pollution on glibc systems.
23739         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23740         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23741         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23742         glibc systems.
23743
23744 2009-12-24  Bruno Haible  <bruno@clisp.org>
23745
23746         Refactor common macros used in tests.
23747         * tests/macros.h: New file.
23748         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23749         and/or <stdlib.h>, if appropriate.
23750         (ASSERT, SIZEOF): Remove macros.
23751         * tests/test-areadlink-with-size.c: Likewise.
23752         * tests/test-areadlinkat.c: Likewise.
23753         * tests/test-areadlinkat-with-size.c: Likewise.
23754         * tests/test-argmatch.c: Likewise.
23755         * tests/test-argv-iter.c: Likewise.
23756         * tests/test-array-mergesort.c: Likewise.
23757         * tests/test-array_list.c: Likewise.
23758         * tests/test-array_oset.c: Likewise.
23759         * tests/test-avltree_list.c: Likewise.
23760         * tests/test-avltree_oset.c: Likewise.
23761         * tests/test-avltreehash_list.c: Likewise.
23762         * tests/test-base64.c: Likewise.
23763         * tests/test-binary-io.c: Likewise.
23764         * tests/test-bitrotate.c: Likewise.
23765         * tests/test-btowc.c: Likewise.
23766         * tests/test-byteswap.c: Likewise.
23767         * tests/test-c-ctype.c: Likewise.
23768         * tests/test-c-stack.c: Likewise.
23769         * tests/test-c-strcasecmp.c: Likewise.
23770         * tests/test-c-strcasestr.c: Likewise.
23771         * tests/test-c-strncasecmp.c: Likewise.
23772         * tests/test-c-strstr.c: Likewise.
23773         * tests/test-canonicalize-lgpl.c: Likewise.
23774         * tests/test-canonicalize.c: Likewise.
23775         * tests/test-carray_list.c: Likewise.
23776         * tests/test-ceilf1.c: Likewise.
23777         * tests/test-ceilf2.c: Likewise.
23778         * tests/test-ceill.c: Likewise.
23779         * tests/test-chown.c: Likewise.
23780         * tests/test-cloexec.c: Likewise.
23781         * tests/test-copy-acl.c: Likewise.
23782         * tests/test-copy-file.c: Likewise.
23783         * tests/test-count-one-bits.c: Likewise.
23784         * tests/test-dprintf-posix.c: Likewise.
23785         * tests/test-dup2.c: Likewise.
23786         * tests/test-dup3.c: Likewise.
23787         * tests/test-duplocale.c: Likewise.
23788         * tests/test-fbufmode.c: Likewise.
23789         * tests/test-fchdir.c: Likewise.
23790         * tests/test-fchownat.c: Likewise.
23791         * tests/test-fcntl-safer.c: Likewise.
23792         * tests/test-fcntl.c: Likewise.
23793         * tests/test-fdopendir.c: Likewise.
23794         * tests/test-fdutimensat.c: Likewise.
23795         * tests/test-fflush2.c: Likewise.
23796         * tests/test-file-has-acl.c: Likewise.
23797         * tests/test-filevercmp.c: Likewise.
23798         * tests/test-flock.c: Likewise.
23799         * tests/test-floorf1.c: Likewise.
23800         * tests/test-floorf2.c: Likewise.
23801         * tests/test-floorl.c: Likewise.
23802         * tests/test-fnmatch.c: Likewise.
23803         * tests/test-fopen.h: Likewise.
23804         * tests/test-fpending.c: Likewise.
23805         * tests/test-fprintf-posix.c: Likewise.
23806         * tests/test-fpurge.c: Likewise.
23807         * tests/test-freadable.c: Likewise.
23808         * tests/test-freadahead.c: Likewise.
23809         * tests/test-freading.c: Likewise.
23810         * tests/test-freadptr.c: Likewise.
23811         * tests/test-freadptr2.c: Likewise.
23812         * tests/test-freadseek.c: Likewise.
23813         * tests/test-freopen.c: Likewise.
23814         * tests/test-frexp.c: Likewise.
23815         * tests/test-frexpl.c: Likewise.
23816         * tests/test-fseek.c: Likewise.
23817         * tests/test-fseeko.c: Likewise.
23818         * tests/test-fstatat.c: Likewise.
23819         * tests/test-fstrcmp.c: Likewise.
23820         * tests/test-fsync.c: Likewise.
23821         * tests/test-ftell.c: Likewise.
23822         * tests/test-ftello.c: Likewise.
23823         * tests/test-func.c: Likewise.
23824         * tests/test-futimens.c: Likewise.
23825         * tests/test-fwritable.c: Likewise.
23826         * tests/test-fwriting.c: Likewise.
23827         * tests/test-getcwd.c: Likewise.
23828         * tests/test-getdate.c: Likewise.
23829         * tests/test-getdelim.c: Likewise.
23830         * tests/test-getdtablesize.c: Likewise.
23831         * tests/test-getgroups.c: Likewise.
23832         * tests/test-getline.c: Likewise.
23833         * tests/test-getndelim2.c: Likewise.
23834         * tests/test-glob.c: Likewise.
23835         * tests/test-hash.c: Likewise.
23836         * tests/test-i-ring.c: Likewise.
23837         * tests/test-iconv-utf.c: Likewise.
23838         * tests/test-iconv.c: Likewise.
23839         * tests/test-idpriv-drop.c: Likewise.
23840         * tests/test-idpriv-droptemp.c: Likewise.
23841         * tests/test-inet_ntop.c: Likewise.
23842         * tests/test-inet_pton.c: Likewise.
23843         * tests/test-isblank.c: Likewise.
23844         * tests/test-isfinite.c: Likewise.
23845         * tests/test-isinf.c: Likewise.
23846         * tests/test-isnan.c: Likewise.
23847         * tests/test-isnand.h: Likewise.
23848         * tests/test-isnanf.h: Likewise.
23849         * tests/test-isnanl.h: Likewise.
23850         * tests/test-lchown.c: Likewise.
23851         * tests/test-ldexpl.c: Likewise.
23852         * tests/test-link.c: Likewise.
23853         * tests/test-linkat.c: Likewise.
23854         * tests/test-linked_list.c: Likewise.
23855         * tests/test-linkedhash_list.c: Likewise.
23856         * tests/test-localename.c: Likewise.
23857         * tests/test-lseek.c: Likewise.
23858         * tests/test-lstat.c: Likewise.
23859         * tests/test-mbmemcasecmp.c: Likewise.
23860         * tests/test-mbmemcasecoll.c: Likewise.
23861         * tests/test-mbrtowc.c: Likewise.
23862         * tests/test-mbscasecmp.c: Likewise.
23863         * tests/test-mbscasestr1.c: Likewise.
23864         * tests/test-mbscasestr2.c: Likewise.
23865         * tests/test-mbscasestr3.c: Likewise.
23866         * tests/test-mbscasestr4.c: Likewise.
23867         * tests/test-mbschr.c: Likewise.
23868         * tests/test-mbscspn.c: Likewise.
23869         * tests/test-mbsinit.c: Likewise.
23870         * tests/test-mbsncasecmp.c: Likewise.
23871         * tests/test-mbsnrtowcs.c: Likewise.
23872         * tests/test-mbspbrk.c: Likewise.
23873         * tests/test-mbspcasecmp.c: Likewise.
23874         * tests/test-mbsrchr.c: Likewise.
23875         * tests/test-mbsrtowcs.c: Likewise.
23876         * tests/test-mbsspn.c: Likewise.
23877         * tests/test-mbsstr1.c: Likewise.
23878         * tests/test-mbsstr2.c: Likewise.
23879         * tests/test-mbsstr3.c: Likewise.
23880         * tests/test-memchr.c: Likewise.
23881         * tests/test-memchr2.c: Likewise.
23882         * tests/test-memcmp.c: Likewise.
23883         * tests/test-memmem.c: Likewise.
23884         * tests/test-memrchr.c: Likewise.
23885         * tests/test-mkdir.c: Likewise.
23886         * tests/test-mkdirat.c: Likewise.
23887         * tests/test-mkfifo.c: Likewise.
23888         * tests/test-mkfifoat.c: Likewise.
23889         * tests/test-mknod.c: Likewise.
23890         * tests/test-nanosleep.c: Likewise.
23891         * tests/test-nl_langinfo.c: Likewise.
23892         * tests/test-obstack-printf.c: Likewise.
23893         * tests/test-open.c: Likewise.
23894         * tests/test-openat.c: Likewise.
23895         * tests/test-pipe-filter-gi1.c: Likewise.
23896         * tests/test-pipe-filter-gi2-main.c: Likewise.
23897         * tests/test-pipe-filter-ii1.c: Likewise.
23898         * tests/test-pipe-filter-ii2-main.c: Likewise.
23899         * tests/test-pipe2.c: Likewise.
23900         * tests/test-popen.h: Likewise.
23901         * tests/test-posixtm.c: Likewise.
23902         * tests/test-pread.c: Likewise.
23903         * tests/test-printf-frexp.c: Likewise.
23904         * tests/test-printf-frexpl.c: Likewise.
23905         * tests/test-printf-posix.c: Likewise.
23906         * tests/test-priv-set.c: Likewise.
23907         * tests/test-quotearg.c: Likewise.
23908         * tests/test-random_r.c: Likewise.
23909         * tests/test-rawmemchr.c: Likewise.
23910         * tests/test-rbtree_list.c: Likewise.
23911         * tests/test-rbtree_oset.c: Likewise.
23912         * tests/test-rbtreehash_list.c: Likewise.
23913         * tests/test-readlink.c: Likewise.
23914         * tests/test-remove.c: Likewise.
23915         * tests/test-rename.c: Likewise.
23916         * tests/test-renameat.c: Likewise.
23917         * tests/test-rmdir.c: Likewise.
23918         * tests/test-round1.c: Likewise.
23919         * tests/test-roundf1.c: Likewise.
23920         * tests/test-roundl.c: Likewise.
23921         * tests/test-safe-alloc.c: Likewise.
23922         * tests/test-sameacls.c: Likewise.
23923         * tests/test-set-mode-acl.c: Likewise.
23924         * tests/test-setenv.c: Likewise.
23925         * tests/test-sigaction.c: Likewise.
23926         * tests/test-signbit.c: Likewise.
23927         * tests/test-sleep.c: Likewise.
23928         * tests/test-snprintf-posix.c: Likewise.
23929         * tests/test-snprintf.c: Likewise.
23930         * tests/test-sprintf-posix.c: Likewise.
23931         * tests/test-stat-time.c: Likewise.
23932         * tests/test-stat.c: Likewise.
23933         * tests/test-strcasestr.c: Likewise.
23934         * tests/test-strchrnul.c: Likewise.
23935         * tests/test-strerror.c: Likewise.
23936         * tests/test-striconv.c: Likewise.
23937         * tests/test-striconveh.c: Likewise.
23938         * tests/test-striconveha.c: Likewise.
23939         * tests/test-strsignal.c: Likewise.
23940         * tests/test-strstr.c: Likewise.
23941         * tests/test-strtod.c: Likewise.
23942         * tests/test-strverscmp.c: Likewise.
23943         * tests/test-symlink.c: Likewise.
23944         * tests/test-symlinkat.c: Likewise.
23945         * tests/test-trunc1.c: Likewise.
23946         * tests/test-trunc2.c: Likewise.
23947         * tests/test-truncf1.c: Likewise.
23948         * tests/test-truncf2.c: Likewise.
23949         * tests/test-truncl.c: Likewise.
23950         * tests/test-uname.c: Likewise.
23951         * tests/test-unlink.c: Likewise.
23952         * tests/test-unlinkat.c: Likewise.
23953         * tests/test-unsetenv.c: Likewise.
23954         * tests/test-usleep.c: Likewise.
23955         * tests/test-utimens.c: Likewise.
23956         * tests/test-utimensat.c: Likewise.
23957         * tests/test-vasnprintf-posix.c: Likewise.
23958         * tests/test-vasnprintf-posix2.c: Likewise.
23959         * tests/test-vasnprintf.c: Likewise.
23960         * tests/test-vasprintf-posix.c: Likewise.
23961         * tests/test-vasprintf.c: Likewise.
23962         * tests/test-vdprintf-posix.c: Likewise.
23963         * tests/test-vfprintf-posix.c: Likewise.
23964         * tests/test-vprintf-posix.c: Likewise.
23965         * tests/test-vsnprintf-posix.c: Likewise.
23966         * tests/test-vsnprintf.c: Likewise.
23967         * tests/test-vsprintf-posix.c: Likewise.
23968         * tests/test-wcrtomb.c: Likewise.
23969         * tests/test-wcsnrtombs.c: Likewise.
23970         * tests/test-wcsrtombs.c: Likewise.
23971         * tests/test-wctype.c: Likewise.
23972         * tests/test-wcwidth.c: Likewise.
23973         * tests/test-xfprintf-posix.c: Likewise.
23974         * tests/test-xmemdup0.c: Likewise.
23975         * tests/test-xprintf-posix.c: Likewise.
23976         * tests/test-xvasprintf.c: Likewise.
23977         * tests/unicase/test-locale-language.c: Likewise.
23978         * tests/unicase/test-mapping-part1.h: Likewise.
23979         * tests/unicase/test-predicate-part1.h: Likewise.
23980         * tests/unicase/test-u8-casecmp.c: Likewise.
23981         * tests/unicase/test-u8-casecoll.c: Likewise.
23982         * tests/unicase/test-u8-casefold.c: Likewise.
23983         * tests/unicase/test-u8-is-cased.c: Likewise.
23984         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23985         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23986         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23987         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23988         * tests/unicase/test-u8-tolower.c: Likewise.
23989         * tests/unicase/test-u8-totitle.c: Likewise.
23990         * tests/unicase/test-u8-toupper.c: Likewise.
23991         * tests/unicase/test-u16-casecmp.c: Likewise.
23992         * tests/unicase/test-u16-casecoll.c: Likewise.
23993         * tests/unicase/test-u16-casefold.c: Likewise.
23994         * tests/unicase/test-u16-is-cased.c: Likewise.
23995         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23996         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23997         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23998         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23999         * tests/unicase/test-u16-tolower.c: Likewise.
24000         * tests/unicase/test-u16-totitle.c: Likewise.
24001         * tests/unicase/test-u16-toupper.c: Likewise.
24002         * tests/unicase/test-u32-casecmp.c: Likewise.
24003         * tests/unicase/test-u32-casecoll.c: Likewise.
24004         * tests/unicase/test-u32-casefold.c: Likewise.
24005         * tests/unicase/test-u32-is-cased.c: Likewise.
24006         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24007         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24008         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24009         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24010         * tests/unicase/test-u32-tolower.c: Likewise.
24011         * tests/unicase/test-u32-totitle.c: Likewise.
24012         * tests/unicase/test-u32-toupper.c: Likewise.
24013         * tests/unicase/test-ulc-casecmp.c: Likewise.
24014         * tests/unicase/test-ulc-casecoll.c: Likewise.
24015         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24016         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24017         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24018         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24019         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24020         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24021         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24022         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24023         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24024         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24025         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24026         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24027         * tests/unictype/test-bidi_byname.c: Likewise.
24028         * tests/unictype/test-bidi_name.c: Likewise.
24029         * tests/unictype/test-bidi_of.c: Likewise.
24030         * tests/unictype/test-bidi_test.c: Likewise.
24031         * tests/unictype/test-block_list.c: Likewise.
24032         * tests/unictype/test-block_of.c: Likewise.
24033         * tests/unictype/test-block_test.c: Likewise.
24034         * tests/unictype/test-categ_and.c: Likewise.
24035         * tests/unictype/test-categ_and_not.c: Likewise.
24036         * tests/unictype/test-categ_byname.c: Likewise.
24037         * tests/unictype/test-categ_name.c: Likewise.
24038         * tests/unictype/test-categ_none.c: Likewise.
24039         * tests/unictype/test-categ_of.c: Likewise.
24040         * tests/unictype/test-categ_or.c: Likewise.
24041         * tests/unictype/test-categ_test_withtable.c: Likewise.
24042         * tests/unictype/test-combining.c: Likewise.
24043         * tests/unictype/test-decdigit.c: Likewise.
24044         * tests/unictype/test-digit.c: Likewise.
24045         * tests/unictype/test-mirror.c: Likewise.
24046         * tests/unictype/test-numeric.c: Likewise.
24047         * tests/unictype/test-pr_byname.c: Likewise.
24048         * tests/unictype/test-pr_test.c: Likewise.
24049         * tests/unictype/test-predicate-part1.h: Likewise.
24050         * tests/unictype/test-scripts.c: Likewise.
24051         * tests/unictype/test-sy_c_ident.c: Likewise.
24052         * tests/unictype/test-sy_java_ident.c: Likewise.
24053         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24054         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24055         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24056         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24057         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24058         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24059         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24060         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24061         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24062         * tests/uninorm/test-compat-decomposition.c: Likewise.
24063         * tests/uninorm/test-composition.c: Likewise.
24064         * tests/uninorm/test-decomposing-form.c: Likewise.
24065         * tests/uninorm/test-decomposition.c: Likewise.
24066         * tests/uninorm/test-u8-nfc.c: Likewise.
24067         * tests/uninorm/test-u8-nfd.c: Likewise.
24068         * tests/uninorm/test-u8-nfkc.c: Likewise.
24069         * tests/uninorm/test-u8-nfkd.c: Likewise.
24070         * tests/uninorm/test-u8-normcmp.c: Likewise.
24071         * tests/uninorm/test-u8-normcoll.c: Likewise.
24072         * tests/uninorm/test-u16-nfc.c: Likewise.
24073         * tests/uninorm/test-u16-nfd.c: Likewise.
24074         * tests/uninorm/test-u16-nfkc.c: Likewise.
24075         * tests/uninorm/test-u16-nfkd.c: Likewise.
24076         * tests/uninorm/test-u16-normcmp.c: Likewise.
24077         * tests/uninorm/test-u16-normcoll.c: Likewise.
24078         * tests/uninorm/test-u32-nfc.c: Likewise.
24079         * tests/uninorm/test-u32-nfd.c: Likewise.
24080         * tests/uninorm/test-u32-nfkc.c: Likewise.
24081         * tests/uninorm/test-u32-nfkd.c: Likewise.
24082         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24083         * tests/uninorm/test-u32-normcmp.c: Likewise.
24084         * tests/uninorm/test-u32-normcoll.c: Likewise.
24085         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24086         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24087         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24088         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24089         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24090         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24091         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24092         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24093         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24094         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24095         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24096         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24097         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24098         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24099         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24100         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24101         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24102         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24103         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24104         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24105         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24106         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24107         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24108         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24109         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24110         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24111         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24112         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24113         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24114         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24115         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24116         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24117         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24118         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24119         * tests/uniwidth/test-u8-width.c: Likewise.
24120         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24121         * tests/uniwidth/test-u16-width.c: Likewise.
24122         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24123         * tests/uniwidth/test-u32-width.c: Likewise.
24124         * tests/uniwidth/test-uc_width.c: Likewise.
24125         * tests/uniwidth/test-uc_width2.c: Likewise.
24126         * modules/acl-tests (Files): Add tests/macros.h.
24127         * modules/areadlink-tests (Files): Likewise.
24128         * modules/areadlink-with-size-tests (Files): Likewise.
24129         * modules/areadlinkat-tests (Files): Likewise.
24130         * modules/areadlinkat-with-size-tests (Files): Likewise.
24131         * modules/argmatch-tests (Files): Likewise.
24132         * modules/argv-iter-tests (Files): Likewise.
24133         * modules/array-list-tests (Files): Likewise.
24134         * modules/array-mergesort-tests (Files): Likewise.
24135         * modules/array-oset-tests (Files): Likewise.
24136         * modules/avltree-list-tests (Files): Likewise.
24137         * modules/avltree-oset-tests (Files): Likewise.
24138         * modules/avltreehash-list-tests (Files): Likewise.
24139         * modules/base64-tests (Files): Likewise.
24140         * modules/binary-io-tests (Files): Likewise.
24141         * modules/bitrotate-tests (Files): Likewise.
24142         * modules/btowc-tests (Files): Likewise.
24143         * modules/byteswap-tests (Files): Likewise.
24144         * modules/c-ctype-tests (Files): Likewise.
24145         * modules/c-stack-tests (Files): Likewise.
24146         * modules/c-strcase-tests (Files): Likewise.
24147         * modules/c-strcasestr-tests (Files): Likewise.
24148         * modules/c-strstr-tests (Files): Likewise.
24149         * modules/canonicalize-lgpl-tests (Files): Likewise.
24150         * modules/canonicalize-tests (Files): Likewise.
24151         * modules/carray-list-tests (Files): Likewise.
24152         * modules/ceilf-tests (Files): Likewise.
24153         * modules/ceill-tests (Files): Likewise.
24154         * modules/chown-tests (Files): Likewise.
24155         * modules/cloexec-tests (Files): Likewise.
24156         * modules/copy-file-tests (Files): Likewise.
24157         * modules/count-one-bits-tests (Files): Likewise.
24158         * modules/dprintf-posix-tests (Files): Likewise.
24159         * modules/dup2-tests (Files): Likewise.
24160         * modules/dup3-tests (Files): Likewise.
24161         * modules/duplocale-tests (Files): Likewise.
24162         * modules/fbufmode-tests (Files): Likewise.
24163         * modules/fchdir-tests (Files): Likewise.
24164         * modules/fcntl-safer-tests (Files): Likewise.
24165         * modules/fcntl-tests (Files): Likewise.
24166         * modules/fdopendir-tests (Files): Likewise.
24167         * modules/fdutimensat-tests (Files): Likewise.
24168         * modules/fflush-tests (Files): Likewise.
24169         * modules/filevercmp-tests (Files): Likewise.
24170         * modules/flock-tests (Files): Likewise.
24171         * modules/floorf-tests (Files): Likewise.
24172         * modules/floorl-tests (Files): Likewise.
24173         * modules/fnmatch-tests (Files): Likewise.
24174         * modules/fopen-safer-tests (Files): Likewise.
24175         * modules/fopen-tests (Files): Likewise.
24176         * modules/fpending-tests (Files): Likewise.
24177         * modules/fprintf-posix-tests (Files): Likewise.
24178         * modules/fpurge-tests (Files): Likewise.
24179         * modules/freadable-tests (Files): Likewise.
24180         * modules/freadahead-tests (Files): Likewise.
24181         * modules/freading-tests (Files): Likewise.
24182         * modules/freadptr-tests (Files): Likewise.
24183         * modules/freadseek-tests (Files): Likewise.
24184         * modules/freopen-tests (Files): Likewise.
24185         * modules/frexp-nolibm-tests (Files): Likewise.
24186         * modules/frexp-tests (Files): Likewise.
24187         * modules/frexpl-nolibm-tests (Files): Likewise.
24188         * modules/frexpl-tests (Files): Likewise.
24189         * modules/fseek-tests (Files): Likewise.
24190         * modules/fseeko-tests (Files): Likewise.
24191         * modules/fstrcmp-tests (Files): Likewise.
24192         * modules/fsync-tests (Files): Likewise.
24193         * modules/ftell-tests (Files): Likewise.
24194         * modules/ftello-tests (Files): Likewise.
24195         * modules/func-tests (Files): Likewise.
24196         * modules/futimens-tests (Files): Likewise.
24197         * modules/fwritable-tests (Files): Likewise.
24198         * modules/fwriting-tests (Files): Likewise.
24199         * modules/getcwd-tests (Files): Likewise.
24200         * modules/getdate-tests (Files): Likewise.
24201         * modules/getdelim-tests (Files): Likewise.
24202         * modules/getdtablesize-tests (Files): Likewise.
24203         * modules/getgroups-tests (Files): Likewise.
24204         * modules/getline-tests (Files): Likewise.
24205         * modules/getndelim2-tests (Files): Likewise.
24206         * modules/glob-tests (Files): Likewise.
24207         * modules/hash-tests (Files): Likewise.
24208         * modules/i-ring-tests (Files): Likewise.
24209         * modules/iconv-tests (Files): Likewise.
24210         * modules/iconv_open-utf-tests (Files): Likewise.
24211         * modules/idpriv-drop-tests (Files): Likewise.
24212         * modules/idpriv-droptemp-tests (Files): Likewise.
24213         * modules/inet_ntop-tests (Files): Likewise.
24214         * modules/inet_pton-tests (Files): Likewise.
24215         * modules/isblank-tests (Files): Likewise.
24216         * modules/isfinite-tests (Files): Likewise.
24217         * modules/isinf-tests (Files): Likewise.
24218         * modules/isnan-tests (Files): Likewise.
24219         * modules/isnand-nolibm-tests (Files): Likewise.
24220         * modules/isnand-tests (Files): Likewise.
24221         * modules/isnanf-nolibm-tests (Files): Likewise.
24222         * modules/isnanf-tests (Files): Likewise.
24223         * modules/isnanl-nolibm-tests (Files): Likewise.
24224         * modules/isnanl-tests (Files): Likewise.
24225         * modules/lchown-tests (Files): Likewise.
24226         * modules/ldexpl-tests (Files): Likewise.
24227         * modules/link-tests (Files): Likewise.
24228         * modules/linkat-tests (Files): Likewise.
24229         * modules/linked-list-tests (Files): Likewise.
24230         * modules/linkedhash-list-tests (Files): Likewise.
24231         * modules/localename-tests (Files): Likewise.
24232         * modules/lseek-tests (Files): Likewise.
24233         * modules/lstat-tests (Files): Likewise.
24234         * modules/mbmemcasecmp-tests (Files): Likewise.
24235         * modules/mbmemcasecoll-tests (Files): Likewise.
24236         * modules/mbrtowc-tests (Files): Likewise.
24237         * modules/mbscasecmp-tests (Files): Likewise.
24238         * modules/mbscasestr-tests (Files): Likewise.
24239         * modules/mbschr-tests (Files): Likewise.
24240         * modules/mbscspn-tests (Files): Likewise.
24241         * modules/mbsinit-tests (Files): Likewise.
24242         * modules/mbsncasecmp-tests (Files): Likewise.
24243         * modules/mbsnrtowcs-tests (Files): Likewise.
24244         * modules/mbspbrk-tests (Files): Likewise.
24245         * modules/mbspcasecmp-tests (Files): Likewise.
24246         * modules/mbsrchr-tests (Files): Likewise.
24247         * modules/mbsrtowcs-tests (Files): Likewise.
24248         * modules/mbsspn-tests (Files): Likewise.
24249         * modules/mbsstr-tests (Files): Likewise.
24250         * modules/memchr-tests (Files): Likewise.
24251         * modules/memchr2-tests (Files): Likewise.
24252         * modules/memcmp-tests (Files): Likewise.
24253         * modules/memmem-tests (Files): Likewise.
24254         * modules/memrchr-tests (Files): Likewise.
24255         * modules/mkdir-tests (Files): Likewise.
24256         * modules/mkfifo-tests (Files): Likewise.
24257         * modules/mkfifoat-tests (Files): Likewise.
24258         * modules/mknod-tests (Files): Likewise.
24259         * modules/nanosleep-tests (Files): Likewise.
24260         * modules/nl_langinfo-tests (Files): Likewise.
24261         * modules/obstack-printf-tests (Files): Likewise.
24262         * modules/open-tests (Files): Likewise.
24263         * modules/openat-tests (Files): Likewise.
24264         * modules/pipe-filter-gi-tests (Files): Likewise.
24265         * modules/pipe-filter-ii-tests (Files): Likewise.
24266         * modules/pipe2-tests (Files): Likewise.
24267         * modules/popen-safer-tests (Files): Likewise.
24268         * modules/popen-tests (Files): Likewise.
24269         * modules/posixtm-tests (Files): Likewise.
24270         * modules/pread-tests (Files): Likewise.
24271         * modules/printf-frexp-tests (Files): Likewise.
24272         * modules/printf-frexpl-tests (Files): Likewise.
24273         * modules/printf-posix-tests (Files): Likewise.
24274         * modules/priv-set-tests (Files): Likewise.
24275         * modules/quotearg-tests (Files): Likewise.
24276         * modules/random_r-tests (Files): Likewise.
24277         * modules/rawmemchr-tests (Files): Likewise.
24278         * modules/rbtree-list-tests (Files): Likewise.
24279         * modules/rbtree-oset-tests (Files): Likewise.
24280         * modules/rbtreehash-list-tests (Files): Likewise.
24281         * modules/readlink-tests (Files): Likewise.
24282         * modules/remove-tests (Files): Likewise.
24283         * modules/rename-tests (Files): Likewise.
24284         * modules/renameat-tests (Files): Likewise.
24285         * modules/rmdir-tests (Files): Likewise.
24286         * modules/round-tests (Files): Likewise.
24287         * modules/roundf-tests (Files): Likewise.
24288         * modules/roundl-tests (Files): Likewise.
24289         * modules/safe-alloc-tests (Files): Likewise.
24290         * modules/setenv-tests (Files): Likewise.
24291         * modules/sigaction-tests (Files): Likewise.
24292         * modules/signbit-tests (Files): Likewise.
24293         * modules/sleep-tests (Files): Likewise.
24294         * modules/snprintf-posix-tests (Files): Likewise.
24295         * modules/snprintf-tests (Files): Likewise.
24296         * modules/sprintf-posix-tests (Files): Likewise.
24297         * modules/stat-tests (Files): Likewise.
24298         * modules/stat-time-tests (Files): Likewise.
24299         * modules/strcasestr-tests (Files): Likewise.
24300         * modules/strchrnul-tests (Files): Likewise.
24301         * modules/strerror-tests (Files): Likewise.
24302         * modules/striconv-tests (Files): Likewise.
24303         * modules/striconveh-tests (Files): Likewise.
24304         * modules/striconveha-tests (Files): Likewise.
24305         * modules/strsignal-tests (Files): Likewise.
24306         * modules/strstr-tests (Files): Likewise.
24307         * modules/strtod-tests (Files): Likewise.
24308         * modules/strverscmp-tests (Files): Likewise.
24309         * modules/symlink-tests (Files): Likewise.
24310         * modules/symlinkat-tests (Files): Likewise.
24311         * modules/trunc-tests (Files): Likewise.
24312         * modules/truncf-tests (Files): Likewise.
24313         * modules/truncl-tests (Files): Likewise.
24314         * modules/uname-tests (Files): Likewise.
24315         * modules/unicase/cased-tests (Files): Likewise.
24316         * modules/unicase/ignorable-tests (Files): Likewise.
24317         * modules/unicase/locale-language-tests (Files): Likewise.
24318         * modules/unicase/tolower-tests (Files): Likewise.
24319         * modules/unicase/totitle-tests (Files): Likewise.
24320         * modules/unicase/toupper-tests (Files): Likewise.
24321         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24322         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24323         * modules/unicase/u8-casefold-tests (Files): Likewise.
24324         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24325         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24326         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24327         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24328         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24329         * modules/unicase/u8-tolower-tests (Files): Likewise.
24330         * modules/unicase/u8-totitle-tests (Files): Likewise.
24331         * modules/unicase/u8-toupper-tests (Files): Likewise.
24332         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24333         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24334         * modules/unicase/u16-casefold-tests (Files): Likewise.
24335         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24336         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24337         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24338         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24339         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24340         * modules/unicase/u16-tolower-tests (Files): Likewise.
24341         * modules/unicase/u16-totitle-tests (Files): Likewise.
24342         * modules/unicase/u16-toupper-tests (Files): Likewise.
24343         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24344         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24345         * modules/unicase/u32-casefold-tests (Files): Likewise.
24346         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24347         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24348         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24349         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24350         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24351         * modules/unicase/u32-tolower-tests (Files): Likewise.
24352         * modules/unicase/u32-totitle-tests (Files): Likewise.
24353         * modules/unicase/u32-toupper-tests (Files): Likewise.
24354         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24355         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24356         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24357         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24358         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24359         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24360         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24361         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24362         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24363         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24364         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24365         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24366         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24367         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24368         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24369         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24370         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24371         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24372         * modules/unictype/block-list-tests (Files): Likewise.
24373         * modules/unictype/block-of-tests (Files): Likewise.
24374         * modules/unictype/block-test-tests (Files): Likewise.
24375         * modules/unictype/category-C-tests (Files): Likewise.
24376         * modules/unictype/category-Cc-tests (Files): Likewise.
24377         * modules/unictype/category-Cf-tests (Files): Likewise.
24378         * modules/unictype/category-Cn-tests (Files): Likewise.
24379         * modules/unictype/category-Co-tests (Files): Likewise.
24380         * modules/unictype/category-Cs-tests (Files): Likewise.
24381         * modules/unictype/category-L-tests (Files): Likewise.
24382         * modules/unictype/category-Ll-tests (Files): Likewise.
24383         * modules/unictype/category-Lm-tests (Files): Likewise.
24384         * modules/unictype/category-Lo-tests (Files): Likewise.
24385         * modules/unictype/category-Lt-tests (Files): Likewise.
24386         * modules/unictype/category-Lu-tests (Files): Likewise.
24387         * modules/unictype/category-M-tests (Files): Likewise.
24388         * modules/unictype/category-Mc-tests (Files): Likewise.
24389         * modules/unictype/category-Me-tests (Files): Likewise.
24390         * modules/unictype/category-Mn-tests (Files): Likewise.
24391         * modules/unictype/category-N-tests (Files): Likewise.
24392         * modules/unictype/category-Nd-tests (Files): Likewise.
24393         * modules/unictype/category-Nl-tests (Files): Likewise.
24394         * modules/unictype/category-No-tests (Files): Likewise.
24395         * modules/unictype/category-P-tests (Files): Likewise.
24396         * modules/unictype/category-Pc-tests (Files): Likewise.
24397         * modules/unictype/category-Pd-tests (Files): Likewise.
24398         * modules/unictype/category-Pe-tests (Files): Likewise.
24399         * modules/unictype/category-Pf-tests (Files): Likewise.
24400         * modules/unictype/category-Pi-tests (Files): Likewise.
24401         * modules/unictype/category-Po-tests (Files): Likewise.
24402         * modules/unictype/category-Ps-tests (Files): Likewise.
24403         * modules/unictype/category-S-tests (Files): Likewise.
24404         * modules/unictype/category-Sc-tests (Files): Likewise.
24405         * modules/unictype/category-Sk-tests (Files): Likewise.
24406         * modules/unictype/category-Sm-tests (Files): Likewise.
24407         * modules/unictype/category-So-tests (Files): Likewise.
24408         * modules/unictype/category-Z-tests (Files): Likewise.
24409         * modules/unictype/category-Zl-tests (Files): Likewise.
24410         * modules/unictype/category-Zp-tests (Files): Likewise.
24411         * modules/unictype/category-Zs-tests (Files): Likewise.
24412         * modules/unictype/category-and-not-tests (Files): Likewise.
24413         * modules/unictype/category-and-tests (Files): Likewise.
24414         * modules/unictype/category-byname-tests (Files): Likewise.
24415         * modules/unictype/category-name-tests (Files): Likewise.
24416         * modules/unictype/category-none-tests (Files): Likewise.
24417         * modules/unictype/category-of-tests (Files): Likewise.
24418         * modules/unictype/category-or-tests (Files): Likewise.
24419         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24420         * modules/unictype/combining-class-tests (Files): Likewise.
24421         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24422         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24423         * modules/unictype/ctype-blank-tests (Files): Likewise.
24424         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24425         * modules/unictype/ctype-digit-tests (Files): Likewise.
24426         * modules/unictype/ctype-graph-tests (Files): Likewise.
24427         * modules/unictype/ctype-lower-tests (Files): Likewise.
24428         * modules/unictype/ctype-print-tests (Files): Likewise.
24429         * modules/unictype/ctype-punct-tests (Files): Likewise.
24430         * modules/unictype/ctype-space-tests (Files): Likewise.
24431         * modules/unictype/ctype-upper-tests (Files): Likewise.
24432         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24433         * modules/unictype/decimal-digit-tests (Files): Likewise.
24434         * modules/unictype/digit-tests (Files): Likewise.
24435         * modules/unictype/mirror-tests (Files): Likewise.
24436         * modules/unictype/numeric-tests (Files): Likewise.
24437         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24438         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24439         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24440         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24441         Likewise.
24442         * modules/unictype/property-bidi-block-separator-tests (Files):
24443         Likewise.
24444         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24445         Likewise.
24446         * modules/unictype/property-bidi-common-separator-tests (Files):
24447         Likewise.
24448         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24449         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24450         Likewise.
24451         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24452         Likewise.
24453         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24454         Likewise.
24455         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24456         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24457         Likewise.
24458         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24459         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24460         Likewise.
24461         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24462         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24463         * modules/unictype/property-bidi-segment-separator-tests (Files):
24464         Likewise.
24465         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24466         * modules/unictype/property-byname-tests (Files): Likewise.
24467         * modules/unictype/property-combining-tests (Files): Likewise.
24468         * modules/unictype/property-composite-tests (Files): Likewise.
24469         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24470         * modules/unictype/property-dash-tests (Files): Likewise.
24471         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24472         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24473         Likewise.
24474         * modules/unictype/property-deprecated-tests (Files): Likewise.
24475         * modules/unictype/property-diacritic-tests (Files): Likewise.
24476         * modules/unictype/property-extender-tests (Files): Likewise.
24477         * modules/unictype/property-format-control-tests (Files): Likewise.
24478         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24479         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24480         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24481         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24482         * modules/unictype/property-hyphen-tests (Files): Likewise.
24483         * modules/unictype/property-id-continue-tests (Files): Likewise.
24484         * modules/unictype/property-id-start-tests (Files): Likewise.
24485         * modules/unictype/property-ideographic-tests (Files): Likewise.
24486         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24487         * modules/unictype/property-ids-trinary-operator-tests (Files):
24488         Likewise.
24489         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24490         * modules/unictype/property-iso-control-tests (Files): Likewise.
24491         * modules/unictype/property-join-control-tests (Files): Likewise.
24492         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24493         * modules/unictype/property-line-separator-tests (Files): Likewise.
24494         * modules/unictype/property-logical-order-exception-tests (Files):
24495         Likewise.
24496         * modules/unictype/property-lowercase-tests (Files): Likewise.
24497         * modules/unictype/property-math-tests (Files): Likewise.
24498         * modules/unictype/property-non-break-tests (Files): Likewise.
24499         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24500         * modules/unictype/property-numeric-tests (Files): Likewise.
24501         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24502         * modules/unictype/property-other-default-ignorable-code-point-tests
24503         (Files): Likewise.
24504         * modules/unictype/property-other-grapheme-extend-tests (Files):
24505         Likewise.
24506         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24507         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24508         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24509         * modules/unictype/property-other-math-tests (Files): Likewise.
24510         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24511         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24512         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24513         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24514         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24515         * modules/unictype/property-private-use-tests (Files): Likewise.
24516         * modules/unictype/property-punctuation-tests (Files): Likewise.
24517         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24518         * modules/unictype/property-radical-tests (Files): Likewise.
24519         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24520         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24521         * modules/unictype/property-space-tests (Files): Likewise.
24522         * modules/unictype/property-terminal-punctuation-tests (Files):
24523         Likewise.
24524         * modules/unictype/property-test-tests (Files): Likewise.
24525         * modules/unictype/property-titlecase-tests (Files): Likewise.
24526         * modules/unictype/property-unassigned-code-value-tests (Files):
24527         Likewise.
24528         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24529         * modules/unictype/property-uppercase-tests (Files): Likewise.
24530         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24531         * modules/unictype/property-white-space-tests (Files): Likewise.
24532         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24533         * modules/unictype/property-xid-start-tests (Files): Likewise.
24534         * modules/unictype/property-zero-width-tests (Files): Likewise.
24535         * modules/unictype/scripts-tests (Files): Likewise.
24536         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24537         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24538         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24539         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24540         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24541         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24542         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24543         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24544         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24545         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24546         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24547         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24548         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24549         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24550         * modules/uninorm/composition-tests (Files): Likewise.
24551         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24552         * modules/uninorm/decomposition-tests (Files): Likewise.
24553         * modules/uninorm/filter-tests (Files): Likewise.
24554         * modules/uninorm/nfc-tests (Files): Likewise.
24555         * modules/uninorm/nfd-tests (Files): Likewise.
24556         * modules/uninorm/nfkc-tests (Files): Likewise.
24557         * modules/uninorm/nfkd-tests (Files): Likewise.
24558         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24559         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24560         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24561         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24562         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24563         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24564         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24565         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24566         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24567         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24568         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24569         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24570         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24571         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24572         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24573         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24574         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24575         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24576         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24577         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24578         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24579         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24580         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24581         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24582         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24583         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24584         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24585         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24586         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24587         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24588         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24589         * modules/uniwidth/u8-width-tests (Files): Likewise.
24590         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24591         * modules/uniwidth/u16-width-tests (Files): Likewise.
24592         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24593         * modules/uniwidth/u32-width-tests (Files): Likewise.
24594         * modules/uniwidth/width-tests (Files): Likewise.
24595         * modules/unlink-tests (Files): Likewise.
24596         * modules/unsetenv-tests (Files): Likewise.
24597         * modules/usleep-tests (Files): Likewise.
24598         * modules/utimens-tests (Files): Likewise.
24599         * modules/utimensat-tests (Files): Likewise.
24600         * modules/vasnprintf-posix-tests (Files): Likewise.
24601         * modules/vasnprintf-tests (Files): Likewise.
24602         * modules/vasprintf-posix-tests (Files): Likewise.
24603         * modules/vasprintf-tests (Files): Likewise.
24604         * modules/vdprintf-posix-tests (Files): Likewise.
24605         * modules/vfprintf-posix-tests (Files): Likewise.
24606         * modules/vprintf-posix-tests (Files): Likewise.
24607         * modules/vsnprintf-posix-tests (Files): Likewise.
24608         * modules/vsnprintf-tests (Files): Likewise.
24609         * modules/vsprintf-posix-tests (Files): Likewise.
24610         * modules/wcrtomb-tests (Files): Likewise.
24611         * modules/wcsnrtombs-tests (Files): Likewise.
24612         * modules/wcsrtombs-tests (Files): Likewise.
24613         * modules/wctype-tests (Files): Likewise.
24614         * modules/wcwidth-tests (Files): Likewise.
24615         * modules/xmemdup0-tests (Files): Likewise.
24616         * modules/xprintf-posix-tests (Files): Likewise.
24617         * modules/xvasprintf-tests (Files): Likewise.
24618
24619 2009-12-24  Eric Blake  <ebb9@byu.net>
24620
24621         test-nanosleep: fix typo
24622         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24623         patch.
24624         Reported by Bruno Haible.
24625
24626 2009-12-24  Bruno Haible  <bruno@clisp.org>
24627
24628         Reduce namespace pollution on glibc systems.
24629         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24630         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24631         systems.
24632         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24633         <getopt.h> on glibc systems.
24634         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24635         systems.
24636         * lib/fcntl.c: Include <unistd.h> here instead.
24637
24638 2009-12-24  Bruno Haible  <bruno@clisp.org>
24639
24640         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24641
24642 2009-12-24  Eric Blake  <ebb9@byu.net>
24643
24644         tests: add signature checks
24645         * tests/signature.h (SIGNATURE_CHECK): New file.
24646         * modules/atexit-tests (Files): Use it.
24647         * modules/btowc-tests (Files): Likewise.
24648         * modules/canonicalize-lgpl-tests (Files): Likewise.
24649         * modules/ceilf-tests (Files): Likewise.
24650         * modules/ceill-tests (Files): Likewise.
24651         * modules/chown-tests (Files): Likewise.
24652         * modules/dprintf-posix-tests (Files): Likewise.
24653         * modules/dup2-tests (Files): Likewise.
24654         * modules/dup3-tests (Files): Likewise.
24655         * modules/duplocale-tests (Files): Likewise.
24656         * modules/fchdir-tests (Files): Likewise.
24657         * modules/fcntl-tests (Files): Likewise.
24658         * modules/fdopendir-tests (Files): Likewise.
24659         * modules/fflush-tests (Files): Likewise.
24660         * modules/flock-tests (Files): Likewise.
24661         * modules/floorf-tests (Files): Likewise.
24662         * modules/floorl-tests (Files): Likewise.
24663         * modules/fnmatch-tests (Files): Likewise.
24664         * modules/fopen-tests (Files): Likewise.
24665         * modules/fprintf-posix-tests (Files): Likewise.
24666         * modules/freopen-tests (Files): Likewise.
24667         * modules/frexp-nolibm-tests (Files): Likewise.
24668         * modules/frexp-tests (Files): Likewise.
24669         * modules/frexpl-nolibm-tests (Files): Likewise.
24670         * modules/frexpl-tests (Files): Likewise.
24671         * modules/fseek-tests (Files): Likewise.
24672         * modules/fseeko-tests (Files): Likewise.
24673         * modules/fsync-tests (Files): Likewise.
24674         * modules/ftell-tests (Files): Likewise.
24675         * modules/ftello-tests (Files): Likewise.
24676         * modules/futimens-tests (Files): Likewise.
24677         * modules/getaddrinfo-tests (Files): Likewise.
24678         * modules/getcwd-tests (Files): Likewise.
24679         * modules/getdelim-tests (Files): Likewise.
24680         * modules/getdtablesize-tests (Files): Likewise.
24681         * modules/getgroups-tests (Files): Likewise.
24682         * modules/gethostname-tests (Files): Likewise.
24683         * modules/getline-tests (Files): Likewise.
24684         * modules/getopt-posix-tests (Files): Likewise.
24685         * modules/gettimeofday-tests (Files): Likewise.
24686         * modules/glob-tests (Files): Likewise.
24687         * modules/iconv-tests (Files): Likewise.
24688         * modules/inet_ntop-tests (Files): Likewise.
24689         * modules/inet_pton-tests (Files): Likewise.
24690         * modules/isblank-tests (Files): Likewise.
24691         * modules/lchown-tests (Files): Likewise.
24692         * modules/ldexpl-tests (Files): Likewise.
24693         * modules/link-tests (Files): Likewise.
24694         * modules/linkat-tests (Files): Likewise.
24695         * modules/lseek-tests (Files): Likewise.
24696         * modules/lstat-tests (Files): Likewise.
24697         * modules/mbrtowc-tests (Files): Likewise.
24698         * modules/mbsinit-tests (Files): Likewise.
24699         * modules/mbsnrtowcs-tests (Files): Likewise.
24700         * modules/mbsrtowcs-tests (Files): Likewise.
24701         * modules/memchr-tests (Files): Likewise.
24702         * modules/memcmp-tests (Files): Likewise.
24703         * modules/memmem-tests (Files): Likewise.
24704         * modules/memrchr-tests (Files): Likewise.
24705         * modules/mkdir-tests (Files): Likewise.
24706         * modules/mkfifo-tests (Files): Likewise.
24707         * modules/mkfifoat-tests (Files): Likewise.
24708         * modules/mknod-tests (Files): Likewise.
24709         * modules/nanosleep-tests (Files): Likewise.
24710         * modules/nl_langinfo-tests (Files): Likewise.
24711         * modules/obstack-printf-tests (Files): Likewise.
24712         * modules/open-tests (Files): Likewise.
24713         * modules/openat-tests (Files): Likewise.
24714         * modules/perror-tests (Files): Likewise.
24715         * modules/pipe2-tests (Files): Likewise.
24716         * modules/poll-tests (Files): Likewise.
24717         * modules/popen-tests (Files): Likewise.
24718         * modules/posix_spawn-tests (Files): Likewise.
24719         * modules/posix_spawnp-tests (Files): Likewise.
24720         * modules/pread-tests (Files): Likewise.
24721         * modules/printf-posix-tests (Files): Likewise.
24722         * modules/pty-tests (Files): Likewise.
24723         * modules/random_r-tests (Files): Likewise.
24724         * modules/rawmemchr-tests (Files): Likewise.
24725         * modules/readlink-tests (Files): Likewise.
24726         * modules/remove-tests (Files): Likewise.
24727         * modules/rename-tests (Files): Likewise.
24728         * modules/renameat-tests (Files): Likewise.
24729         * modules/rmdir-tests (Files): Likewise.
24730         * modules/round-tests (Files): Likewise.
24731         * modules/roundf-tests (Files): Likewise.
24732         * modules/roundl-tests (Files): Likewise.
24733         * modules/select-tests (Files): Likewise.
24734         * modules/setenv-tests (Files): Likewise.
24735         * modules/sigaction-tests (Files): Likewise.
24736         * modules/sleep-tests (Files): Likewise.
24737         * modules/snprintf-posix-tests (Files): Likewise.
24738         * modules/snprintf-tests (Files): Likewise.
24739         * modules/sprintf-posix-tests (Files): Likewise.
24740         * modules/stat-tests (Files): Likewise.
24741         * modules/strcasestr-tests (Files): Likewise.
24742         * modules/strchrnul-tests (Files): Likewise.
24743         * modules/strerror-tests (Files): Likewise.
24744         * modules/strsignal-tests (Files): Likewise.
24745         * modules/strstr-tests (Files): Likewise.
24746         * modules/strtod-tests (Files): Likewise.
24747         * modules/strverscmp-tests (Files): Likewise.
24748         * modules/symlink-tests (Files): Likewise.
24749         * modules/symlinkat-tests (Files): Likewise.
24750         * modules/times-tests (Files): Likewise.
24751         * modules/trunc-tests (Files): Likewise.
24752         * modules/truncf-tests (Files): Likewise.
24753         * modules/truncl-tests (Files): Likewise.
24754         * modules/tsearch-tests (Files): Likewise.
24755         * modules/uname-tests (Files): Likewise.
24756         * modules/unlink-tests (Files): Likewise.
24757         * modules/unsetenv-tests (Files): Likewise.
24758         * modules/usleep-tests (Files): Likewise.
24759         * modules/utimensat-tests (Files): Likewise.
24760         * modules/vasprintf-tests (Files): Likewise.
24761         * modules/vdprintf-posix-tests (Files): Likewise.
24762         * modules/vfprintf-posix-tests (Files): Likewise.
24763         * modules/vprintf-posix-tests (Files): Likewise.
24764         * modules/vsnprintf-posix-tests (Files): Likewise.
24765         * modules/vsnprintf-tests (Files): Likewise.
24766         * modules/vsprintf-posix-tests (Files): Likewise.
24767         * modules/wcrtomb-tests (Files): Likewise.
24768         * modules/wcsnrtombs-tests (Files): Likewise.
24769         * modules/wcsrtombs-tests (Files): Likewise.
24770         * modules/wcwidth-tests (Files): Likewise.
24771         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24772         * tests/test-isinf.c (isinf): Likewise.
24773         * tests/test-isnan.c (isnan): Likewise.
24774         * tests/test-signbit.c (signbit): Likewise.
24775         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24776         declaration, either as macro or with correct signature.
24777         (select): Ensure function under test is declared with correct
24778         signature in correct header.
24779         * tests/test-atexit.c (atexit): Likewise.
24780         * tests/test-btowc.c (btowc): Likewise.
24781         * tests/test-canonicalize-lgpl.c (realpath)
24782         (canonicalize_file_name): Likewise.
24783         * tests/test-ceilf1.c (ceilf): Likewise.
24784         * tests/test-ceill.c (ceill): Likewise.
24785         * tests/test-chown.c (chown): Likewise.
24786         * tests/test-dprintf-posix.c (dprintf): Likewise.
24787         * tests/test-dup2.c (dup2): Likewise.
24788         * tests/test-dup3.c (dup3): Likewise.
24789         * tests/test-duplocale.c (duplocale): Likewise.
24790         * tests/test-fchdir.c (fchdir): Likewise.
24791         * tests/test-fchownat.c (fchownat): Likewise.
24792         * tests/test-fcntl.c (fcntl): Likewise.
24793         * tests/test-fdopendir.c (fdopendir): Likewise.
24794         * tests/test-fflush.c (fflush): Likewise.
24795         * tests/test-flock.c (flock): Likewise.
24796         * tests/test-floorf1.c (floorf): Likewise.
24797         * tests/test-floorl.c (floorl): Likewise.
24798         * tests/test-fnmatch.c (fnmatch): Likewise.
24799         * tests/test-fopen.c (fopen): Likewise.
24800         * tests/test-fprintf-posix.c (fprintf): Likewise.
24801         * tests/test-freopen.c (freopen): Likewise.
24802         * tests/test-frexp.c (frexp): Likewise.
24803         * tests/test-frexpl.c (frexpl): Likewise.
24804         * tests/test-fseek.c (fseek): Likewise.
24805         * tests/test-fseeko.c (fseeko): Likewise.
24806         * tests/test-fstatat.c (fstatat): Likewise.
24807         * tests/test-fsync.c (fsync): Likewise.
24808         * tests/test-ftell.c (ftell): Likewise.
24809         * tests/test-ftello.c (ftello): Likewise.
24810         * tests/test-futimens.c (futimens): Likewise.
24811         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24812         (gai_strerror): Likewise.
24813         * tests/test-getcwd.c (getcwd): Likewise.
24814         * tests/test-getdelim.c (getdelim): Likewise.
24815         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24816         * tests/test-getgroups.c (getgroups): Likewise.
24817         * tests/test-gethostname.c (gethostname): Likewise.
24818         * tests/test-getline.c (getline): Likewise.
24819         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24820         Likewise.
24821         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24822         * tests/test-glob.c (glob, globfree): Likewise.
24823         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24824         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24825         * tests/test-inet_pton.c (inet_pton): Likewise.
24826         * tests/test-isblank.c (isblank): Likewise.
24827         * tests/test-lchown.c (lchown): Likewise.
24828         * tests/test-ldexpl.c (ldexpl): Likewise.
24829         * tests/test-link.c (link): Likewise.
24830         * tests/test-linkat.c (linkat): Likewise.
24831         * tests/test-lseek.c (lseek): Likewise.
24832         * tests/test-lstat.c (lstat): Likewise.
24833         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24834         * tests/test-mbsinit.c (mbsinit): Likewise.
24835         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24836         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24837         * tests/test-memchr.c (memchr): Likewise.
24838         * tests/test-memcmp.c (memcmp): Likewise.
24839         * tests/test-memmem.c (memmem): Likewise.
24840         * tests/test-memrchr.c (memrchr): Likewise.
24841         * tests/test-mkdir.c (mkdir): Likewise.
24842         * tests/test-mkdirat.c (mkdirat): Likewise.
24843         * tests/test-mkfifo.c (mkfifo): Likewise.
24844         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24845         * tests/test-mknod.c (mknod): Likewise.
24846         * tests/test-nanosleep.c (nanosleep): Likewise.
24847         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24848         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24849         Likewise.
24850         * tests/test-open.c (open): Likewise.
24851         * tests/test-openat.c (openat): Likewise.
24852         * tests/test-perror.c (perror): Likewise.
24853         * tests/test-pipe2.c (pipe2): Likewise.
24854         * tests/test-poll.c (poll): Likewise.
24855         * tests/test-popen.c (popen, pclose): Likewise.
24856         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24857         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24858         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24859         (posix_spawn_file_actions_destroy)
24860         (posix_spawn_file_actions_addclose)
24861         (posix_spawn_file_actions_addopen)
24862         (posix_spawn_file_actions_adddup2): Likewise.
24863         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24864         * tests/test-pread.c (pread): Likewise.
24865         * tests/test-printf-posix.c (printf): Likewise.
24866         * tests/test-pty.c (openpty, forkpty): Likewise.
24867         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24868         (random_r): Likewise.
24869         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24870         * tests/test-readlink.c (readlink): Likewise.
24871         * tests/test-remove.c (remove): Likewise.
24872         * tests/test-rename.c (rename): Likewise.
24873         * tests/test-renameat.c (renameat): Likewise.
24874         * tests/test-rmdir.c (rmdir): Likewise.
24875         * tests/test-round1.c (round): Likewise.
24876         * tests/test-roundf1.c (roundf): Likewise.
24877         * tests/test-roundl.c (roundl): Likewise.
24878         * tests/test-setenv.c (setenv): Likewise.
24879         * tests/test-sigaction.c (sigaction): Likewise.
24880         * tests/test-sleep.c (sleep): Likewise.
24881         * tests/test-snprintf.c (snprintf): Likewise.
24882         * tests/test-sprintf-posix.c (sprintf): Likewise.
24883         * tests/test-stat.c (stat): Likewise.
24884         * tests/test-stpncpy.c (stpncpy): Likewise.
24885         * tests/test-strcasestr.c (strcasestr): Likewise.
24886         * tests/test-strchrnul.c (strchrnul): Likewise.
24887         * tests/test-strerror.c (strerror): Likewise.
24888         * tests/test-strsignal.c (strsignal): Likewise.
24889         * tests/test-strstr.c (strstr): Likewise.
24890         * tests/test-strtod.c (strtod): Likewise.
24891         * tests/test-strverscmp.c (strverscmp): Likewise.
24892         * tests/test-symlink.c (symlink): Likewise.
24893         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24894         * tests/test-times.c (times): Likewise.
24895         * tests/test-trunc1.c (trunc): Likewise.
24896         * tests/test-truncf1.c (truncf): Likewise.
24897         * tests/test-truncl.c (truncl): Likewise.
24898         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24899         Likewise.
24900         * tests/test-uname.c (uname): Likewise.
24901         * tests/test-unlink.c (unlink): Likewise.
24902         * tests/test-unlinkat.c (unlinkat): Likewise.
24903         * tests/test-unsetenv.c (unsetenv): Likewise.
24904         * tests/test-usleep.c (usleep): Likewise.
24905         * tests/test-utimensat.c (utimensat): Likewise.
24906         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24907         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24908         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24909         * tests/test-vprintf-posix.c (vprintf): Likewise.
24910         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24911         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24912         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24913         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24914         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24915         * tests/test-wcwidth.c (wcwidth): Likewise.
24916
24917         build: pull in conditional headers during GNULIB_POSIXCHECK
24918         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24919         definitions from any conditionally-included headers.
24920         * lib/stdlib.in.h (includes): Likewise.
24921         * lib/unistd.in.h (includes): Likewise.
24922
24923 2009-12-24  Bruno Haible  <bruno@clisp.org>
24924
24925         * tests/test-argv-iter.c: Include header file being tested immediately
24926         after config.h.
24927         * tests/test-base64.c: Likewise.
24928         * tests/test-flock.c: Likewise.
24929         * tests/test-fsync.c: Likewise.
24930         * tests/test-getdate.c: Likewise.
24931         * tests/test-getndelim2.c: Likewise.
24932         * tests/test-isfinite.c: Likewise.
24933         * tests/test-isinf.c: Likewise.
24934         * tests/test-strerror.c: Likewise.
24935         * tests/test-strsignal.c: Likewise.
24936
24937 2009-12-23  Eric Blake  <ebb9@byu.net>
24938
24939         unistd: work around cygwin bug
24940         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24941         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24942         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24943
24944 2009-12-23  Bruno Haible  <bruno@clisp.org>
24945
24946         localename: More tests.
24947         * tests/test-localename.c (SIZEOF): New macro.
24948         (categories): New variable.
24949         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24950         test_locale_name_default): Add test w.r.t. thread locale.
24951         (test_locale_name_thread): New function.
24952         (main): Invoke it.
24953
24954         localename: Make aware of thread locale.
24955         * lib/localename.h (gl_locale_name_thread): New declaration.
24956         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24957         behaviour with respect to thread locale.
24958         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24959         <langinfo.h>, glthread/lock.h.
24960         (SIZE_BITS): New macro.
24961         (string_hash): New function.
24962         (struct hash_node): New type.
24963         (HASH_TABLE_SIZE): New macro.
24964         (struniq_hash_table, struniq_lock): New variables.
24965         (struniq): New function.
24966         (gl_locale_name_thread): New function.
24967         (gl_locale_name): Invoke it.
24968         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24969         * modules/localename (Depends-on): Add lock.
24970         Reported by Mike Gran <spk121@yahoo.com>.
24971
24972 2009-12-23  Eric Blake  <ebb9@byu.net>
24973
24974         va-args: new module
24975         * modules/va-args: New file.
24976         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24977         * MODULES.html.sh (Core language properties): Mention it.
24978
24979         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24980         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24981         named alias for __attribute__((__unused__)).
24982         * lib/chown.c: Update client.
24983         * lib/fchmodat.c: Likewise.
24984         * lib/fts.c: Likewise.
24985         * lib/getdate.y: Likewise.
24986         * lib/getgroups.c: Likewise.
24987         * lib/getopt.c: Likewise.
24988         * lib/getugroups.c: Likewise.
24989         * lib/mkdir.c: Likewise.
24990         * lib/mkfifo.c: Likewise.
24991         * lib/mkfifoat.c: Likewise.
24992         * lib/mknod.c: Likewise.
24993         * lib/mknodat.c: Likewise.
24994         * lib/readlink.c: Likewise.
24995         * lib/se-context.in.h: Likewise.
24996         * lib/se-selinux.in.h: Likewise.
24997         * lib/sockets.c: Likewise.
24998         * lib/symlink.c: Likewise.
24999         * lib/symlinkat.c: Likewise.
25000         * lib/unicodeio.c: Likewise.
25001         * lib/unistr.h: Likewise.
25002         * tests/test-areadlink.c: Likewise.
25003         * tests/test-areadlinkat.c: Likewise.
25004         * tests/test-filenamecat.c: Likewise.
25005         * tests/test-fseeko.c: Likewise.
25006         * tests/test-ftello.c: Likewise.
25007         * tests/test-getdate.c: Likewise.
25008         * tests/test-getgroups.c: Likewise.
25009         * tests/test-gethostname.c: Likewise.
25010         * tests/test-quotearg.c: Likewise.
25011         * tests/test-version-etc.c: Likewise.
25012         * tests/test-xalloc-die.c: Likewise.
25013         * tests/test-xfprintf-posix.c: Likewise.
25014         * tests/test-xprintf-posix.c: Likewise.
25015         * tests/test-xvasprintf.c: Likewise.
25016
25017         tests: avoid compiler warnings
25018         * tests/test-fcntl.c (main): Delete unused parameters.
25019         * tests/test-freopen-safer.c (main): Likewise.
25020         * tests/test-xalloc-die.c (main): Mark unused parameters.
25021         * tests/test-fseeko.c (main): Likewise.
25022         * tests/test-ftello.c (main): Likewise.
25023         * tests/test-nanosleep.c (main): Avoid declaration warning.
25024         * tests/test-sleep.c (main): Likewise.
25025         * tests/test-unsetenv.c (main): Silence warning about string
25026         literal.
25027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25028
25029 2009-12-23  Bruno Haible  <bruno@clisp.org>
25030
25031         * tests/test-localename.c (test_locale_name): New function, extracted
25032         from main. Also test mixed situations.
25033         (test_locale_name_posix, test_locale_name_environ,
25034         test_locale_name_default): New functions.
25035         (main): Invoke them all.
25036         * modules/localename-tests (configure.ac): Test for newlocale.
25037
25038 2009-12-23  Bruno Haible  <bruno@clisp.org>
25039
25040         unistd: Ensure getcwd gets declared before being overridden.
25041         * lib/unistd.in.h: Conditionally include <io.h>.
25042
25043 2009-12-22  Bruno Haible  <bruno@clisp.org>
25044
25045         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25046         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25047         (gl_WCHAR_H): Invoke it.
25048         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25049         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25050         Reported by Karl Berry <karl@freefriends.org>.
25051
25052 2009-12-22  Eric Blake  <ebb9@byu.net>
25053
25054         math, unistd: avoid redundant includes
25055         * lib/math.in.h (isnan): No need to re-include <math.h>.
25056         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25057
25058         getsubopt: work around cygwin bug
25059         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25060         avoid conflicting with system getsubopt.
25061         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25062         bug.
25063
25064         getopt: synchronize from glibc
25065         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25066         parameter order.  Adjust all callers.
25067         (_getopt_internal_r, main): Adjust quoting in error messages.
25068         Drop considerations for outdated POSIX 1003.2 error message.
25069         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25070         callers.
25071         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25072
25073         test-getopt: test stderr behavior
25074         * modules/getopt-posix-tests (Depends-on): Add dup2.
25075         * tests/test-getopt.c (ASSERT): Avoid stderr.
25076         (main): Move stderr to a temporary file.
25077         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25078         Instead, add parameter to inform caller if output occurred.
25079         (test_getopt): Adjust all existing tests to expect silence, and
25080         add new tests of leading ":".
25081         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25082         glibc shortcomings with leading "-:" or "+:" in optstring.
25083         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25084         Likewise.
25085         * doc/posix-functions/getopt.texi (getopt): Likewise.
25086
25087         test-getopt: enhance test
25088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25089         supports optind=0.
25090         * tests/test-getopt.c (OPTIND_MIN): Move...
25091         * tests/test-getopt.h (OPTIND_MIN): ...here.
25092         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25093         Require that optind=0 works, since modern BSD supports it in
25094         addition to optreset, and since coreutils expects it.
25095         (test_getopt_long_only): New test.
25096         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25097         glibc shortcomings with 'W;', and enforcement of optind=0.
25098         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25099         Likewise.
25100
25101 2009-12-21  Bruno Haible  <bruno@clisp.org>
25102
25103         localename: Improvements for MacOS X and Cygwin.
25104         * lib/localename.h (gl_locale_name_environ): New declaration.
25105         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25106         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25107         (gl_locale_name_posix): Invoke it.
25108         (gl_locale_name_default): Add comments. Use Windows native API also on
25109         Cygwin.
25110
25111 2009-12-21  Bruno Haible  <bruno@clisp.org>
25112
25113         Update list of Win32 locale ids.
25114         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25115         (LANG_SAMI): Renamed from LANG_SAAMI.
25116         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25117         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25118         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25119         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25120         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25121         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25122         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25123         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25124         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25125         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25126         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25127         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25128         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25129         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25130         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25131         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25132         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25133         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25134         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25135         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25136         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25137         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25138         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25139         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25140         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25141         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25142         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25143         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25144         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25145         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25146         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25147         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25148         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25149         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25150         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25151         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25152         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25153         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25154         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25155         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25156         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25157         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25158         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25159         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25160         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25161         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25162         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25163         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25164         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25165         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25166         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25167         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25168         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25169         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25170         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25171         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25172         Add more languages and countries for Sami, Sorbian. Add more countries
25173         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25174         for Pashto. Change country for Syriac, Tswana.
25175
25176 2009-12-21  Eric Blake  <ebb9@byu.net>
25177
25178         test-utimens: avoid spurious failure
25179         * tests/test-chown.h (nap): Factor...
25180         * tests/nap.h: ...into new file.
25181         * tests/test-lchown.h (nap): Avoid duplication.
25182         * tests/test-utimens-common.h (nap): Use shared implementation,
25183         necessary on file systems with 1-second resolution.
25184         * modules/chown-tests (Files): Include new file.
25185         * modules/fdutimensat-tests (Files): Likewise.
25186         * modules/futimens-tests (Files): Likewise.
25187         * modules/lchown-tests (Files): Likewise.
25188         * modules/openat-tests (Files): Likewise.
25189         * modules/utimens-tests (Files): Likewise.
25190         * modules/utimensat-tests (Files): Likewise.
25191
25192 2009-12-19  Eric Blake  <ebb9@byu.net>
25193
25194         futimens, utimensat: work around Linux bug
25195         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25196         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25197         * lib/utimensat.c (rpl_utimensat): Work around it.
25198         * lib/futimens.c (rpl_futimens): Adjust comment.
25199
25200         utimens: work around Linux ctime bug
25201         * lib/utimens.c (detect_ctime_bug): New helper function.
25202         (update_timespec): Differentiate between workaround needed for
25203         this bug vs. what is needed for systems that lack utimensat.
25204         (fdutimens, lutimens): Work around bug.
25205
25206         utimens: check for ctime update
25207         * tests/test-utimens-common.h (check_ctime): Define.
25208         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25209         * tests/test-futimens.h (test_futimens): Likewise.
25210         * tests/test-lutimens.h (test_lutimens): Likewise.
25211         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25212         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25213
25214 2009-12-19  Bruno Haible  <bruno@clisp.org>
25215
25216         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25217         * tests/test-dprintf-posix2.sh: New file.
25218         * tests/test-dprintf-posix2.c: New file.
25219         * modules/dprintf-posix-tests (Files): Add them.
25220         (configure.ac): Check for getrlimit and setrlimit.
25221         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25222
25223 2009-12-19  Bruno Haible  <bruno@clisp.org>
25224
25225         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25226         * tests/test-fprintf-posix3.sh: New file.
25227         * tests/test-fprintf-posix3.c: New file.
25228         * modules/fprintf-posix-tests (Files): Add them.
25229         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25230
25231 2009-12-19  Eric Blake  <ebb9@byu.net>
25232
25233         dirfd: fix prototype
25234         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25235         * lib/dirfd.c (dirfd): Likewise.
25236
25237         canonicalize: reduce memory usage
25238         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25239         allocation to size.
25240         Reported by Solar Designer <solar@openwall.com>.
25241
25242 2009-12-19  Bruno Haible  <bruno@clisp.org>
25243
25244         New module attribute 'Applicability'.
25245         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25246         * gnulib-tool: New option --extract-applicability.
25247         (func_usage): Document it.
25248         (sed_extract_prog): Recognize it.
25249         (func_get_applicability): New function.
25250         (func_import): Generalize handling of 'link-warning' module.
25251         * modules/link-warning (Applicability): New section.
25252         * modules/arg-nonnull (Applicability): New section.
25253         Repoted by Simon Josefsson <simon@josefsson.org>.
25254
25255 2009-12-19  Bruno Haible  <bruno@clisp.org>
25256
25257         fflush: tweak
25258         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25259         * lib/fseeko.c (rpl_fseeko): Likewise.
25260
25261 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25262
25263         * lib/gl_list.h: Fix typo in comment.
25264
25265 2009-12-16  Eric Blake  <ebb9@byu.net>
25266
25267         fcntl: use to simplify other modules
25268         * modules/cloexec (Depends-on): Add fcntl.
25269         * modules/fchdir (Depends-on): Likewise.
25270         * modules/fd-safer-flag (Depends-on): Likewise.
25271         * modules/unistd-safer (Depends-on): Likewise.
25272         * modules/dup3 (configure.ac): Set module indicator.
25273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25274         missing.
25275         * lib/fchdir.c (_gl_register_dup): Fix comment.
25276         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25277         * lib/dup-safer.c (dup_safer): Likewise.
25278         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25279         * lib/dup3.c (dup3): Likewise.
25280         * tests/test-fchdir.c (main): Enhance test.
25281         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25282
25283         fcntl: port portions of fcntl to mingw
25284         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25285         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25286         replacement for mingw.
25287         * modules/fcntl (Description): Update.
25288         (Depends-on): Add dup2.
25289         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25290         * modules/fcntl-h (Makefile.am): Substitute it.
25291         * lib/fcntl.in.h (fcntl): Update declaration.
25292         (F_DUPFD, F_GETFD): New macros, when needed.
25293         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25294         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25295         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25296         we now guarantee.
25297
25298         fcntl: work around cygwin bug in F_DUPFD
25299         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25300         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25301         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25302         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25303         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25304
25305         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25306         * modules/fcntl (Files): List new files.
25307         (configure.ac): Run a test.
25308         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25309         * lib/fcntl.c (rpl_fcntl): Likewise.
25310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25311         (gl_FCNTL_H): Always replace fcntl.h.
25312         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25313         * lib/fcntl.in.h (fcntl): Declare replacement.
25314         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25315         needed, plus a witness.
25316         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25317         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25318         * tests/test-fcntl.c: New file.
25319         * modules/fcntl-tests: Likewise.
25320
25321         binary-io: avoid potential compilation warning
25322         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25323         directives.
25324
25325         fflush: avoid compilation error on NetBSD
25326         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25327         between off_t and fpos_t, since the latter is sometimes a struct.
25328         * lib/fseeko.c (rpl_fseeko): Likewise.
25329         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25330
25331 2009-12-15  Eric Blake  <ebb9@byu.net>
25332
25333         fcntl-h, stdio, sys_ioctl: fix declarations
25334         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25335         function must not take arguments.
25336         * lib/sys_ioctl.in.h (ioctl): Likewise.
25337         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25338         (open): Add a link warning.
25339
25340 2009-12-15  Jim Meyering  <meyering@redhat.com>
25341
25342         areadlink, areadlink-with-size: relax license to LGPLv2+
25343         * modules/areadlink (License): Relax to LGPLv2+.
25344         * modules/areadlink-with-size (License): Likewise.
25345
25346 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25347             Bruno Haible  <bruno@clisp.org>
25348
25349         *printf: Fix memory leak.
25350         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25351         * lib/vfprintf.c (vfprintf): Likewise.
25352         * lib/dprintf.c (dprintf): Likewise.
25353         * lib/vdprintf.c (vdprintf): Likewise.
25354
25355 2009-12-14  Eric Blake  <ebb9@byu.net>
25356
25357         accept4: adjust module dependencies
25358         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25359
25360         utimens: one more try at avoiding compiler warning
25361         * lib/utimens.c (lutimens): Lower scope of result.
25362
25363 2009-12-13  Bruno Haible  <bruno@clisp.org>
25364
25365         Move the malloc checking from module 'list' to new module 'xlist'.
25366         * modules/xlist: New file.
25367         * lib/gl_xlist.h: New file.
25368         * lib/gl_xlist.c: New file.
25369         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25370         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25371         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25372         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25373         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25374         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25375         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25376         gl_sortedlist_nx_add): New declarations.
25377         (struct gl_list_implementation): Rename and change methods accordingly.
25378         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25379         (gl_list_nx_create): Renamed from gl_list_create.
25380         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25381         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25382         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25383         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25384         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25385         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25386         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25387         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25388         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25389         gl_list_create_empty.
25390         (gl_list_nx_create): Renamed from gl_list_create.
25391         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25392         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25393         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25394         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25395         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25396         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25397         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25398         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25399         * lib/gl_array_list.c: Don't include xalloc.h.
25400         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25401         NULL upon out-of-memory.
25402         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25403         out-of-memory.
25404         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25405         Change return type to 'int'.
25406         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25407         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25408         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25409         upon out-of-memory.
25410         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25411         upon out-of-memory.
25412         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25413         upon out-of-memory.
25414         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25415         upon out-of-memory.
25416         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25417         out-of-memory.
25418         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25419         Update.
25420         (gl_array_list_implementation): Update.
25421         * lib/gl_carray_list.c: Don't include xalloc.h.
25422         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25423         Return NULL upon out-of-memory.
25424         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25425         out-of-memory.
25426         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25427         Change return type to 'int'.
25428         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25429         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25430         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25431         upon out-of-memory.
25432         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25433         upon out-of-memory.
25434         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25435         out-of-memory.
25436         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25437         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25438         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25439         Update.
25440         (gl_carray_list_implementation): Update.
25441         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25442         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25443         gl_linked_create_empty. Return NULL upon out-of-memory.
25444         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25445         out-of-memory.
25446         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25447         Change return type to 'int'. Return -1 upon out-of-memory.
25448         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25449         out-of-memory.
25450         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25451         upon out-of-memory.
25452         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25453         upon out-of-memory.
25454         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25455         NULL upon out-of-memory.
25456         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25457         upon out-of-memory.
25458         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25459         out-of-memory.
25460         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25461         Update.
25462         * lib/gl_linked_list.c: Don't include xalloc.h.
25463         (gl_linked_list_implementation): Update.
25464         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25465         (add_to_bucket): Change return type to 'int'.
25466         (gl_linkedhash_list_implementation): Update.
25467         * lib/gl_anytree_list1.h (free_subtree): New function.
25468         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25469         gl_tree_create_empty. Return NULL upon out-of-memory.
25470         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25471         Change return type to 'int'. Return -1 upon out-of-memory.
25472         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25473         out-of-memory.
25474         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25475         (gl_tree_remove_node): New function, moved here from
25476         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25477         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25478         Update.
25479         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25480         malloc, not xmalloc. Return NULL upon out-of-memory.
25481         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25482         out-of-memory.
25483         (gl_tree_remove_node_from_tree): New function, extracted from
25484         gl_tree_remove_node.
25485         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25486         upon out-of-memory.
25487         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25488         out-of-memory.
25489         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25490         upon out-of-memory.
25491         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25492         upon out-of-memory.
25493         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25494         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25495         not xmalloc. Return NULL upon out-of-memory.
25496         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25497         out-of-memory.
25498         (gl_tree_remove_node_from_tree): New function, extracted from
25499         gl_tree_remove_node.
25500         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25501         upon out-of-memory.
25502         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25503         out-of-memory.
25504         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25505         upon out-of-memory.
25506         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25507         upon out-of-memory.
25508         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25509         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25510         gl_anytree_list1.h before gl_anyavltree_list2.h.
25511         (gl_avltree_list_implementation): Update.
25512         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25513         gl_anytree_list1.h before gl_anyavltree_list2.h.
25514         (gl_rbtree_list_implementation): Update.
25515         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25516         Change return type to 'int'. Return -1 upon out-of-memory. Use
25517         __builtin_expect.
25518         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25519         (gl_avltreehash_list_implementation): Update.
25520         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25521         (gl_rbtreehash_list_implementation): Update.
25522         * modules/array-list (Depends-on): Remove xalloc.
25523         * modules/carray-list (Depends-on): Likewise.
25524         * modules/linked-list (Depends-on): Likewise.
25525         * modules/linkedhash-list (Depends-on): Likewise.
25526         * modules/avltree-list (Depends-on): Likewise.
25527         * modules/rbtree-list (Depends-on): Likewise.
25528         * modules/avltreehash-list (Depends-on): Likewise.
25529         * modules/rbtreehash-list (Depends-on): Likewise.
25530
25531         * modules/xsublist: New file.
25532         * lib/gl_xsublist.h: New file.
25533         * lib/gl_xsublist.c: New file.
25534         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25535         (gl_sublist_nx_create): New declaration.
25536         * lib/gl_sublist.c: Don't include xalloc.h.
25537         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25538         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25539         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25540         Change return type to 'int'. Return -1 upon out-of-memory.
25541         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25542         upon out-of-memory.
25543         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25544         NULL upon out-of-memory.
25545         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25546         upon out-of-memory.
25547         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25548         NULL upon out-of-memory.
25549         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25550         NULL upon out-of-memory.
25551         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25552         upon out-of-memory.
25553         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25554         (gl_sublist_list_implementation): Update.
25555         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25556         upon out-of-memory.
25557         * modules/sublist (Depends-on): Remove xalloc.
25558
25559         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25560         * tests/test-carray_list.c: Likewise.
25561         * tests/test-linked_list.c: Likewise.
25562         * tests/test-linkedhash_list.c: Likewise.
25563         * tests/test-avltree_list.c: Likewise.
25564         * tests/test-rbtree_list.c: Likewise.
25565         * tests/test-avltreehash_list.c: Likewise.
25566         * tests/test-rbtreehash_list.c: Likewise.
25567         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25568         * modules/carray-list-tests (Makefile.am): Likewise.
25569         * modules/linked-list-tests (Makefile.am): Likewise.
25570         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25571         * modules/avltree-list-tests (Makefile.am): Likewise.
25572         * modules/rbtree-list-tests (Makefile.am): Likewise.
25573         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25574         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25575
25576         * NEWS: Mention the changes.
25577
25578         * lib/clean-temp.c: Include gl_xlist.h.
25579         * modules/clean-temp (Depends-on): Add xlist.
25580
25581         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25582         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25583
25584         * tests/test-array_oset.c: Include gl_xlist.h.
25585         * modules/array-oset-tests (Depends-on): Add xlist.
25586
25587         Reported by José E. Marchesi <jemarch@gnu.org>.
25588
25589 2009-12-13  Bruno Haible  <bruno@clisp.org>
25590
25591         Move the malloc checking from module 'oset' to new module 'xoset'.
25592         * modules/xoset: New file.
25593         * lib/gl_xoset.h: New file.
25594         * lib/gl_xoset.c: New file.
25595         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25596         declarations.
25597         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25598         (struct gl_oset_implementation): Rename and change methods accordingly.
25599         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25600         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25601         'int'. Mark as __warn_unused_result__.
25602         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25603         gl_oset_create_empty.
25604         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25605         'int'.
25606         * lib/gl_array_oset.c: Don't include xalloc.h.
25607         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25608         malloc, not xmalloc.
25609         (grow): Change return type to 'int'. Don't call xalloc_die.
25610         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25611         to 'int'.
25612         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25613         'int'.
25614         (gl_array_oset_implementation): Update.
25615         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25616         gl_tree_create_empty.
25617         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25618         'int'.
25619         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25620         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25621         xmalloc.
25622         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25623         not xmalloc.
25624         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25625         xmalloc.
25626         (gl_avltree_oset_implementation): Update.
25627         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25628         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25629         xmalloc.
25630         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25631         not xmalloc.
25632         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25633         xmalloc.
25634         (gl_rbtree_oset_implementation): Update.
25635         * modules/array-oset (Depends-on): Remove xalloc.
25636         * modules/avltree-oset (Depends-on): Likewise.
25637         * modules/rbtree-oset (Depends-on): Likewise.
25638         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25639         * tests/test-avltree_oset.c: Likewise.
25640         * tests/test-rbtree_oset.c: Likewise.
25641         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25642         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25643         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25644         * NEWS: Mention the change.
25645
25646 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25647
25648         maint.mk: allow a project to override release-prep commands
25649         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25650         commands into a new rule.
25651         (release-prep): New rule.
25652         (release-prep-hook): New overridable variable.
25653
25654 2009-12-13  Bruno Haible  <bruno@clisp.org>
25655
25656         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25657
25658 2009-12-13  Jim Meyering  <meyering@redhat.com>
25659
25660         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25661         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25662
25663 2009-12-12  Bruno Haible  <bruno@clisp.org>
25664
25665         duplocale: Tweak.
25666         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25667
25668 2009-12-12  Karl Berry  <karl@gnu.org>
25669
25670         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25671
25672 2009-12-12  Bruno Haible  <bruno@clisp.org>
25673
25674         * m4/po.m4: Undo incorrect untabification.
25675
25676 2009-12-12  Bruno Haible  <bruno@clisp.org>
25677
25678         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25679         * modules/c-strtod (Depends-on): Add locale.
25680         * modules/c-strtold (Depends-on): Likewise.
25681
25682 2009-12-12  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25685
25686 2009-12-11  Eric Blake  <ebb9@byu.net>
25687
25688         setenv: relax requirement in light of POSIX ruling
25689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25690         not NULL.
25691         * tests/test-setenv.c (main): Relax test.
25692         * tests/test-unsetenv.c (main): Likewise.
25693         * doc/posix-functions/setenv.texi (setenv): Document this.
25694         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25695
25696 2009-12-11  Bruno Haible  <bruno@clisp.org>
25697
25698         New module 'fd-safer-flag'.
25699         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25700         * lib/dup-safer.c (dup_safer_flag): Remove function.
25701         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25702         * lib/fd-safer.c (fd_safer_flag): Remove function.
25703         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25704         * modules/cloexec (configure.ac): Drop indicator macro.
25705         * modules/fd-safer-flag: New file.
25706         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25707         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25708         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25709
25710 2009-12-11  Bruno Haible  <bruno@clisp.org>
25711
25712         Tests for module 'nl_langinfo'.
25713         * modules/nl_langinfo-tests: New file.
25714         * tests/test-nl_langinfo.sh: New file.
25715         * tests/test-nl_langinfo.c: New file.
25716
25717         New module 'nl_langinfo'.
25718         * lib/nl_langinfo.c: New file.
25719         * m4/nl_langinfo.m4: New file.
25720         * modules/nl_langinfo: New file.
25721         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25722
25723 2009-12-11  Bruno Haible  <bruno@clisp.org>
25724
25725         Tests for module 'langinfo'.
25726         * modules/langinfo-tests: New file.
25727         * tests/test-langinfo.c: New file.
25728
25729         New module 'langinfo'.
25730         * lib/langinfo.in.h: New file.
25731         * m4/langinfo_h.m4: New file.
25732         * modules/langinfo: New file.
25733         * doc/posix-headers/langinfo.texi: Mention the new module.
25734
25735 2009-12-11  Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/config.charset: Untabify.
25738
25739 2009-12-11  Bruno Haible  <bruno@clisp.org>
25740
25741         * modules/unistd-safer (configure.ac): Drop indicator macro.
25742
25743 2009-12-11  Bruno Haible  <bruno@clisp.org>
25744
25745         Move pipe2-safer code to its own file.
25746         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25747         * lib/pipe-safer.c (pipe2_safer): Remove function.
25748         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25749         (Makefile.am): Add it to lib_SOURCES.
25750
25751 2009-12-10  Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25754
25755 2009-12-10  Bruno Haible  <bruno@clisp.org>
25756
25757         Declare which arguments expect non-NULL values, for GCC and clang.
25758         * build-aux/arg-nonnull.h: New file.
25759         * modules/arg-nonnull: New file.
25760         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25761         (inet_ntop, inet_pton): Use it.
25762         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25763         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25764         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25765         (open, openat): Use it.
25766         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25767         (fnmatch): Use it.
25768         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25769         (getopt, getopt_long, getopt_long_only): Use it.
25770         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25771         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25772         Use it.
25773         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25774         (iconv_open): Use it.
25775         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25776         (strtoimax, strtoumax): Use it.
25777         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25778         (duplocale): Use it.
25779         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25780         (frexp, frexpl): Use it.
25781         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25782         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25783         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25784         (tsearch, tfind, tdelete, twalk): Use it.
25785         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25786         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25787         sigpending): Use it.
25788         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25789         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25790         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25791         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25792         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25793         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25794         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25795         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25796         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25797         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25798         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25799         Use it.
25800         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25801         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25802         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25803         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25804         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25805         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25806         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25807         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25808         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25809         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25810         strtoull, unsetenv): Use it.
25811         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25812         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25813         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25814         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25815         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25816         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25817         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25818         (strcasecmp, strncasecmp): Use it.
25819         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25820         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25821         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25822         rpl_setsockopt): Use it.
25823         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25824         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25825         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25826         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25827         (gettimeofday): Use it.
25828         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25829         (times): Use it.
25830         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25831         (uname): Use it.
25832         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25833         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25834         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25835         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25836         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25837         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25838         unlinkat, write): Use it.
25839         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25840         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25841         * lib/argv-iter.h: Include arg-nonnull.h.
25842         (_ATTRIBUTE_NONNULL_): Remove macro.
25843         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25844         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25845         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25846         optimization.
25847         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25848         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25849         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25850         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25851         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25852         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25853         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25854         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25855         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25856         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25857         * modules/dirent (Depends-on): Add arg-nonnull.
25858         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25859         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25860         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25861         * modules/fnmatch (Depends-on): Add arg-nonnull.
25862         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25863         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25864         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25865         * modules/glob (Depends-on): Add arg-nonnull.
25866         (Makefile.am): Insert arg-nonnull.h into glob.h.
25867         * modules/iconv_open (Depends-on): Add arg-nonnull.
25868         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25869         * modules/inttypes (Depends-on): Add arg-nonnull.
25870         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25871         * modules/locale (Depends-on): Add arg-nonnull.
25872         (Makefile.am): Insert arg-nonnull.h into locale.h.
25873         * modules/math (Depends-on): Add arg-nonnull.
25874         (Makefile.am): Insert arg-nonnull.h into math.h.
25875         * modules/netdb (Depends-on): Add arg-nonnull.
25876         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25877         * modules/search (Depends-on): Add arg-nonnull.
25878         (Makefile.am): Insert arg-nonnull.h into search.h.
25879         * modules/signal (Depends-on): Add arg-nonnull.
25880         (Makefile.am): Insert arg-nonnull.h into signal.h.
25881         * modules/spawn (Depends-on): Add arg-nonnull.
25882         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25883         * modules/stdio (Depends-on): Add arg-nonnull.
25884         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25885         * modules/stdlib (Depends-on): Add arg-nonnull.
25886         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25887         * modules/string (Depends-on): Add arg-nonnull.
25888         (Makefile.am): Insert arg-nonnull.h into string.h.
25889         * modules/strings (Depends-on): Add arg-nonnull.
25890         (Makefile.am): Insert arg-nonnull.h into strings.h.
25891         * modules/sys_socket (Depends-on): Add arg-nonnull.
25892         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25893         * modules/sys_stat (Depends-on): Add arg-nonnull.
25894         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25895         * modules/sys_time (Depends-on): Add arg-nonnull.
25896         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25897         * modules/sys_times (Depends-on): Add arg-nonnull.
25898         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25899         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25900         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25901         * modules/time (Depends-on): Add arg-nonnull.
25902         (Makefile.am): Insert arg-nonnull.h into time.h.
25903         * modules/unistd (Depends-on): Add arg-nonnull.
25904         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25905         * modules/wchar (Depends-on): Add arg-nonnull.
25906         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25907         * modules/argv-iter (Depends-on): Add arg-nonnull.
25908         * tests/test-canonicalize.c (null_ptr): New function.
25909         (main): Use it.
25910         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25911         (main): Use it.
25912         * tests/test-memmem.c (null_ptr): New function.
25913         (main): Use it.
25914         Reported by Jim Meyering.
25915
25916 2009-12-10  Bruno Haible  <bruno@clisp.org>
25917
25918         Use spaces for indentation, not tabs.
25919         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25920         * m4/*.m4: Untabify.
25921         * build-aux/*.h: Untabify.
25922         * tests/**/*.[hc]: Untabify.
25923         * README: New section "Indent with spaces, not TABs", based on
25924         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25925         * NEWS: Mention the change.
25926
25927 2009-12-10  Bruno Haible  <bruno@clisp.org>
25928
25929         pty test: Fix link error.
25930         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25931         test_pty_LDADD.
25932
25933 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25934
25935         * modules/pty: New file.
25936         * modules/pty-tests: New file.
25937         * m4/pty.m4: New file.
25938         * tests/test-pty.c: New file.
25939         * doc/glibc-headers/pty.texi: Modified.
25940         * doc/glibc-functions/forkpty.texi: Modified.
25941         * doc/glibc-functions/openpty.texi: Modified.
25942
25943 2009-12-10  Bruno Haible  <bruno@clisp.org>
25944
25945         Avoid syntax error in C++ mode.
25946         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25947
25948 2009-12-10  Bruno Haible  <bruno@clisp.org>
25949
25950         Use sed with option -e.
25951         * gnulib-tool (func_version, func_emit_copyright_notice,
25952         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25953         option -e to sed.
25954         * modules/link-warning (Makefile.am): Likewise.
25955
25956 2009-12-10  Jim Meyering  <meyering@redhat.com>
25957
25958         mgetgroups: do not write bytes beyond end of malloc'd buffer
25959         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25960         username, we call getgroups with a one-element-shorter buffer,
25961         but still told it the length was original, max_n_groups.
25962
25963 2009-12-09  Eric Blake  <ebb9@byu.net>
25964
25965         cloexec: relax license
25966         * modules/cloexec (Maintainer): Add myself.
25967         (License): Use LGPL, not GPL.
25968
25969         link-warning: optimize generation
25970         * modules/link-warning (Makefile.am): Reduce process usage.
25971
25972 2009-12-09  Bruno Haible  <bruno@clisp.org>
25973
25974         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25975         workaround was added on 2009-11-17.
25976
25977 2009-12-09  Jim Meyering  <meyering@redhat.com>
25978             Bruno Haible  <bruno@clisp.org>
25979
25980         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25981         * modules/link-warning (Makefile.am): Make the comment-removing sed
25982         command more robust in the face of bootstrap-prepended comment lines.
25983
25984 2009-12-09  Bruno Haible  <bruno@clisp.org>
25985
25986         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25987         most one group.
25988
25989 2009-12-09  Simon Josefsson <simon@josefsson.org>
25990             Bruno Haible  <bruno@clisp.org>
25991
25992         * build-aux/link-warning.h: Add copyright notice.
25993         * modules/link-warning (Makefile.am): Generate link-warning.h from
25994         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25995         * NEWS: Mention change in link-warning module.
25996         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25997         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25998         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25999         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26000         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26001         * modules/math (Makefile.am): Add dependency to math.h.
26002         * modules/search (Makefile.am): Add dependency to search.h.
26003         * modules/signal (Makefile.am): Add dependency to signal.h.
26004         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26005         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26006         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26007         * modules/string (Makefile.am): Add dependency to string.h.
26008         * modules/strings (Makefile.am): Add dependency to strings.h.
26009         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26010         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26011         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26012         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26013         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26014         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26015         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26016         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26017         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26018
26019 2009-12-09  Bruno Haible  <bruno@clisp.org>
26020
26021         fchdir: Optimize away rpl_fstat when possible.
26022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26023         REPLACE_OPEN_DIRECTORY.
26024         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26025
26026 2009-12-09  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/fchdir.c: Update comment.
26029
26030 2009-12-09  Bruno Haible  <bruno@clisp.org>
26031
26032         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26033
26034 2009-12-08  Eric Blake  <ebb9@byu.net>
26035
26036         fchdir: avoid memory leak on re-registration.
26037         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26038
26039 2009-12-08  Jim Meyering  <meyering@redhat.com>
26040
26041         init.sh: avoid Solaris 10 /bin/sh portability problem
26042         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26043         sourced script:
26044           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26045           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26046           bar
26047         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26048         and two tests used that idiom.
26049         * tests/init.sh: Update suggested usage comments.
26050         (path_prepend_): New function, to be used in place
26051         of the --src-path=DIR option.
26052         (setup_): Move PATH-prepending code into path_prepend_.
26053         * tests/test-pread.sh: Adapt to new usage.
26054         * tests/test-xalloc-die.sh: Likewise.
26055
26056 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26057
26058         * doc/gnulib.texi (Glibc pty.h): Add.
26059         * doc/glibc-functions/forkpty.texi: Add.
26060         * doc/glibc-functions/openpty.texi: Add.
26061         Suggested by Bruno Haible.
26062
26063 2009-12-08  Eric Blake  <ebb9@byu.net>
26064
26065         fchdir: fix logic bugs
26066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26067         * tests/test-fchdir.c (main): Enhance test.
26068         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26069         is in use.
26070
26071         dup2: fix logic bugs
26072         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26073         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26074         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26075         exists.
26076         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26077
26078 2009-12-07  Eric Blake  <ebb9@byu.net>
26079
26080         unlink: fix m4 detection
26081         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26082
26083         unistd-safer: add unit test
26084         * modules/unistd-safer-tests: New file.
26085         * tests/test-dup-safer.c: Likewise.
26086         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26087         * tests/test-dup2.c (setmode): Likewise.
26088         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26089
26090         cloexec: preserve text vs. binary across dup_cloexec
26091         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26092         mode.
26093         * modules/dup2-tests (Depends-on): Add binary-io.
26094         * modules/cloexec-tests (Depends-on): Likewise.
26095         * tests/test-dup2.c (setmode, is_mode): New helpers.
26096         (main): Add tests that translation mode is preserved.
26097         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26098         Reported by Bruno Haible.
26099
26100         mgetgroups: reduce duplicate listings
26101         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26102         resulting array.
26103         * tests/test-chown.h (test_chown): Simplify client.
26104         * tests/test-lchown.h (test_lchown): Likewise.
26105
26106 2009-12-06  Bruno Haible  <bruno@clisp.org>
26107
26108         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26109         value.
26110
26111 2009-12-06  Bruno Haible  <bruno@clisp.org>
26112
26113         * lib/progname.c: Include stdio.h, stdlib.h.
26114         (set_program_name): Reject a NULL argument.
26115
26116 2009-12-05  Eric Blake  <ebb9@byu.net>
26117
26118         pipe2-safer: new module
26119         * modules/pipe2-safer: New file.
26120         * lib/unistd-safer.h (pipe2_safer): New prototype.
26121         * lib/unistd--.h (pipe2): New wrapper.
26122         * lib/pipe-safer.c (pipe2_safer): New function.
26123         * modules/pipe (Depends-on): Add pipe2-safer.
26124         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26125
26126         stdlib-safer: preserve cloexec flag for mkostemp[s]
26127         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26128         fd_safer_flag.
26129
26130         unistd-safer: allow preservation of cloexec status via flag
26131         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26132         prototypes.
26133         * lib/dup-safer.c (dup_safer_flag): New function.
26134         * lib/fd-safer.c (fd_safer_flag): Likewise.
26135         * modules/cloexec (configure.ac): Set witness.
26136
26137         test-dup2: enhance test
26138         * modules/dup2-tests (Depends-on): Add cloexec.
26139         * tests/test-dup2.c (main): Enhance test.
26140
26141         cloexec: add dup_cloexec
26142         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26143         header and comments.
26144         * lib/cloexec.c (set_cloexec_flag): Add comments.
26145         (dup_cloexec): New function, with mingw implementation borrowed
26146         from...
26147         * lib/w32spawn.h (dup_noinherit): ...here.
26148         * modules/execute (Depends-on): Add cloexec.
26149         * modules/pipe (Depends-on): Likewise.
26150         * modules/cloexec (Depends-on): Add dup2.
26151         * modules/cloexec-tests (Files): New file.
26152         * tests/test-cloexec.c: Likewise.
26153
26154         test-xalloc-die: fix test for mingw
26155         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26156         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26157         directory and .exe suffix off argv[0] output.
26158
26159         test-fseeko: fix test for mingw
26160         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26161         than undefining fseek, so test will pass on mingw.
26162
26163 2009-12-05  Bruno Haible  <bruno@clisp.org>
26164
26165         * lib/progname.h (set_program_name): Clarify specification.
26166         * lib/progname.c (set_program_name): Likewise.
26167         Reported by Jim Meyering.
26168
26169 2009-12-05  Jim Meyering  <meyering@redhat.com>
26170
26171         maint.mk: backslash-escape parens in default regexp
26172         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26173         backslash-escape the literal parentheses.
26174
26175         maint.mk: news-date-check: use grep -E
26176         * top/maint.mk (today): Define a Make variable, not a...
26177         (news-date-check): ...shell variable.
26178         (news-date-regexp): Use the Make variable.
26179         Use grep's -E option.  Change the failing diagnostic to mention
26180         the variable, $(news-date-regexp).
26181
26182 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26183
26184         maintainer-makefile: allow customization of NEWS entry format
26185         * top/maint.mk (news-date-regexp): New overridable variable.
26186         (news-date-check): Use it.
26187
26188 2009-12-04  Eric Blake  <ebb9@byu.net>
26189
26190         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26191         * lib/mgetgroups.h (xgetgroups): New prototype.
26192         * lib/mgetgroups.c (xgetgroups): New wrapper.
26193         (mgetgroups): Handle ENOSYS.
26194         * modules/mgetgroups (Depends-on): Add realloc.
26195         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26196
26197         mgetgroups: avoid argument promotion issues with -1
26198         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26199         for invalid gid_t.
26200         * tests/test-chown.h (getegid, test_chown): Likewise.
26201         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26202
26203 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26204
26205         exclude: Fix header file problems.
26206         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26207
26208 2009-12-01  Jim Meyering  <meyering@redhat.com>
26209
26210         fts: fts_open: do not let an empty string cause immediate failure
26211         This is required in support of GNU rm, for which the command
26212         "rm A '' B" must process and remove both A and B, in spite of
26213         the empty string argument.
26214         * lib/fts.c (fts_open): Do not let the presence of an empty string
26215         cause fts_open to fail immediately.  Most fts-using tools must be
26216         able to process all arguments, in order, and can be expected to
26217         diagnose such arguments themselves.
26218
26219 2009-11-30  Eric Blake  <ebb9@byu.net>
26220
26221         utimens: fix compilation error
26222         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26223         Declare variable at right scope.
26224
26225 2009-11-29  Jim Meyering  <meyering@redhat.com>
26226
26227         bootstrap: handle perl-5.11's changed --version output
26228         * build-aux/bootstrap (get_version): Handle perl separately,
26229         since perl-5.11's --version output is different.
26230
26231 2009-11-28  Jim Meyering  <meyering@redhat.com>
26232
26233         userspec: depend on the inttostr module, too
26234         * modules/userspec (Depends-on): Add inttostr.
26235
26236         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26237         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26238         number of MAXUID when it evaluates to (uid_t) -1.
26239         Likewise for group ID.  Reported by Matt McCutchen in
26240         <http://savannah.gnu.org/bugs/?28113>
26241
26242         userspec: reformat to use spaces, not TABs
26243         * lib/userspec.c: Expand TABs to spaces.
26244         Add Emacs' "indent-tabs-mode: nil" hint.
26245
26246 2009-11-27  Eric Blake  <ebb9@byu.net>
26247
26248         getopt-gnu: flush out another BSD bug
26249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26250         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26251         flush out BSD bug.
26252         * tests/test-getopt.h (test_getopt): End lists with NULL.
26253         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26254         (test_getopt_long_posix): Enhance test.
26255         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26256         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26257         getopt-gnu.
26258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26259         Likewise.
26260
26261 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26262
26263         * modules/idpriv-droptemp-tests (Notice): Fix text.
26264
26265 2009-11-27  Jim Meyering  <meyering@redhat.com>
26266
26267         test-xalloc-die: avoid spurious failure due to libtool argv difference
26268         In a libtool-enabled project, this test would fail due to a difference
26269         in the emitted program name, e.g.,
26270         -test-xalloc-die: memory exhausted
26271         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26272         Use program to avoid that.
26273         * modules/xalloc-die-tests (Depends-on): Add progname.
26274         * tests/test-xalloc-die.c: Include progname.h".
26275         (program_name): Remove decl.
26276         (main): Call set_program_name.
26277         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26278
26279 2009-11-26  Richard Jones  <rjones@redhat.com>
26280
26281         w32sock: leave win32 error in place.
26282         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26283
26284 2009-11-26  Eric Blake  <ebb9@byu.net>
26285
26286         init.sh: suggest to use skip_ and fail_ functions in comments
26287         * tests/init.sh: Add a sentence.
26288
26289 2009-11-25  Bruno Haible  <bruno@clisp.org>
26290
26291         init.sh: add documentation in comments
26292         * tests/init.sh: Add some developer and user documentation.
26293
26294 2009-11-26  Jim Meyering  <meyering@redhat.com>
26295
26296         init.sh: accommodate even those who specify bogus srcdir manually
26297         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26298         configure-time tests to be sanitized, so that there is no need to
26299         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26300         (with no double quotes) suffices.  However, since tests may be
26301         invoked manually, and since you may explicitly set srcdir to the
26302         name of a directory containing spaces, do quote its uses here.
26303         * tests/test-pread.sh: Likewise.
26304         Suggested by Bruno Haible.
26305
26306         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26307         * tests/test-pread.sh: Write no data into the pipe, because
26308         test-pread actually reads none.  This avoids a diagnostic,
26309         "bash: echo: write error: Broken pipe", that arises in the unusual
26310         event something is ignoring SIGPIPE, and might be interpreted
26311         as some sort of failure.  Reported by Bruno Haible.
26312
26313 2009-11-25  Jim Meyering  <meyering@redhat.com>
26314
26315         test-pread: cover failure with ESPIPE and EINVAL
26316         * tests/test-pread.c (main): Test for failure, too.
26317         * tests/test-pread.sh: Invoke with stdin on a pipe.
26318         Suggested by Eric Blake.
26319
26320         pread: improvement and fix
26321         * modules/pread (Depends-on): Depend on lseek, for portability to
26322         e.g., mingw.  Suggested by Eric Blake.
26323         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26324
26325         unistd.in.h: correct declaration of pread
26326         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26327         Reported by Richard W.M. Jones.
26328
26329         test-pread.sh: distribute the test script
26330         * modules/pread-tests (Files): Include test-pread.sh.
26331
26332         test-pread.sh: clean up
26333         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26334         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26335         That is unnecessary, since it's always ".".
26336         Suggestion from Eric Blake.
26337
26338         test-pread.sh: make executable
26339         * tests/test-pread.sh: Set executable bit.
26340         Reported by Eric Blake.
26341
26342         correct typo in test-pread.sh
26343         * tests/test-pread.sh: Add #! line.
26344
26345         test pread
26346         * tests/test-pread.c: New file.
26347         * tests/test-pread.sh: Likewise.
26348         * modules/pread-tests: Likewise.
26349
26350         pread: new module
26351         * modules/pread: New file.
26352         * lib/unistd.in.h (pread): Define/declare.
26353         * lib/pread.c (pread): New file.
26354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26355         * modules/unistd (Makefile.am): Substitute witnesses.
26356         * doc/posix-functions/pread.texi (pread): Update.
26357         * MODULES.html.sh: Add pread.
26358
26359 2009-11-25  Jim Meyering  <meyering@redhat.com>
26360
26361         tests/init.sh: new file to be used via most *.sh tests
26362         * tests/init.sh: New file.
26363
26364 2009-11-25  Eric Blake  <ebb9@byu.net>
26365
26366         utimens: work around older Linux failure with symlinks
26367         * lib/utimens.c (lutimensat_works_really): New variable.
26368         (fdutimens, lutimens): Use it to manage kernels that support
26369         nanosecond times on files, but not on symlinks.
26370         Reported by OndÅ™ej Vašík.
26371
26372         utimes: fix configure grammar
26373         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26374
26375 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26376
26377         regex: Fix fastmap for multibyte character ranges.
26378         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26379         characters when a multibyte character range is included.
26380
26381 2009-11-22  Andy Wingo  <wingo@pobox.com>
26382
26383         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26384         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26385
26386 2009-11-24  Bruno Haible  <bruno@clisp.org>
26387
26388         doc: Most *_l functions exist in MacOS X 10.5.
26389         * doc/posix-functions/duplocale.texi: Update platforms list.
26390         * doc/posix-functions/freelocale.texi: Likewise.
26391         * doc/posix-functions/newlocale.texi: Likewise.
26392         * doc/posix-functions/uselocale.texi: Likewise.
26393         * doc/posix-functions/isalnum_l.texi: Likewise.
26394         * doc/posix-functions/isalpha_l.texi: Likewise.
26395         * doc/posix-functions/isblank_l.texi: Likewise.
26396         * doc/posix-functions/iscntrl_l.texi: Likewise.
26397         * doc/posix-functions/isdigit_l.texi: Likewise.
26398         * doc/posix-functions/isgraph_l.texi: Likewise.
26399         * doc/posix-functions/islower_l.texi: Likewise.
26400         * doc/posix-functions/isprint_l.texi: Likewise.
26401         * doc/posix-functions/ispunct_l.texi: Likewise.
26402         * doc/posix-functions/isspace_l.texi: Likewise.
26403         * doc/posix-functions/isupper_l.texi: Likewise.
26404         * doc/posix-functions/iswalnum_l.texi: Likewise.
26405         * doc/posix-functions/iswalpha_l.texi: Likewise.
26406         * doc/posix-functions/iswblank_l.texi: Likewise.
26407         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26408         * doc/posix-functions/iswctype_l.texi: Likewise.
26409         * doc/posix-functions/iswdigit_l.texi: Likewise.
26410         * doc/posix-functions/iswgraph_l.texi: Likewise.
26411         * doc/posix-functions/iswlower_l.texi: Likewise.
26412         * doc/posix-functions/iswprint_l.texi: Likewise.
26413         * doc/posix-functions/iswpunct_l.texi: Likewise.
26414         * doc/posix-functions/iswspace_l.texi: Likewise.
26415         * doc/posix-functions/iswupper_l.texi: Likewise.
26416         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26417         * doc/posix-functions/isxdigit_l.texi: Likewise.
26418         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26419         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26420         * doc/posix-functions/strcoll_l.texi: Likewise.
26421         * doc/posix-functions/strfmon_l.texi: Likewise.
26422         * doc/posix-functions/strftime_l.texi: Likewise.
26423         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26424         * doc/posix-functions/strxfrm_l.texi: Likewise.
26425         * doc/posix-functions/tolower_l.texi: Likewise.
26426         * doc/posix-functions/toupper_l.texi: Likewise.
26427         * doc/posix-functions/towctrans_l.texi: Likewise.
26428         * doc/posix-functions/towlower_l.texi: Likewise.
26429         * doc/posix-functions/towupper_l.texi: Likewise.
26430         * doc/posix-functions/wcscoll_l.texi: Likewise.
26431         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26432         * doc/posix-functions/wctrans_l.texi: Likewise.
26433         * doc/posix-functions/wctype_l.texi: Likewise.
26434         * doc/glibc-functions/strptime_l.texi: Likewise.
26435         * doc/glibc-functions/strtod_l.texi: Likewise.
26436         * doc/glibc-functions/strtof_l.texi: Likewise.
26437         * doc/glibc-functions/strtol_l.texi: Likewise.
26438         * doc/glibc-functions/strtold_l.texi: Likewise.
26439         * doc/glibc-functions/strtoll_l.texi: Likewise.
26440         * doc/glibc-functions/strtoul_l.texi: Likewise.
26441         * doc/glibc-functions/strtoull_l.texi: Likewise.
26442         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26443         * doc/glibc-functions/wcstod_l.texi: Likewise.
26444         * doc/glibc-functions/wcstof_l.texi: Likewise.
26445         * doc/glibc-functions/wcstol_l.texi: Likewise.
26446         * doc/glibc-functions/wcstold_l.texi: Likewise.
26447         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26448         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26449         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26450
26451 2009-11-24  Bruno Haible  <bruno@clisp.org>
26452
26453         duplocale: Fix logic bug.
26454         * lib/duplocale.c: Don't include <langinfo.h>.
26455         (_NL_LOCALE_NAME): Remove macro.
26456         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26457         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26458
26459 2009-11-23  Jim Meyering  <meyering@redhat.com>
26460
26461         test-update-copyright: don't hard-code /usr/bin/perl
26462         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26463         perl to print the current year.  Gilles Espinasse reported that
26464         the replaced use of perl was hard-coded as /usr/bin/perl.
26465
26466 2009-11-23  Bruno Haible  <bruno@clisp.org>
26467
26468         duplocale: Add support for glibc 2.3.x.
26469         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26470
26471 2009-11-22  Bruno Haible  <bruno@clisp.org>
26472
26473         vasnprintf: Tiny optimization.
26474         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26475         MacOS X.
26476
26477 2009-11-22  Bruno Haible  <bruno@clisp.org>
26478
26479         Tests for module 'duplocale'.
26480         * modules/duplocale-tests: New file.
26481         * tests/test-duplocale.c: New file.
26482
26483         New module 'duplocale'.
26484         * m4/duplocale.m4: New file.
26485         * lib/locale.in.h (duplocale): New declaration.
26486         * lib/duplocale.c: New file.
26487         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26488         gl_LOCALE_H_DEFAULTS): New macros.
26489         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26490         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26491         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26492         REPLACE_DUPLOCALE.
26493         * modules/duplocale: New file.
26494         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26495
26496 2009-11-22  Bruno Haible  <bruno@clisp.org>
26497
26498         * modules/locale-tests (configure.ac): Test for newlocale function.
26499         * tests/test-locale.c: When the system has extended locale functions,
26500         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26501
26502         locale: Make locale_t available when possible.
26503         * lib/locale.in.h: Include <xlocale.h> when it exists.
26504         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26505         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26506         * modules/locale (Depends-on): Add extensions.
26507         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26508         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26509
26510 2009-11-22  Bruno Haible  <bruno@clisp.org>
26511
26512         Add comments.
26513         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26514         invocation.
26515         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26516         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26517         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26518
26519 2009-11-22  Bruno Haible  <bruno@clisp.org>
26520
26521         error: account for the possibility of freopen (stdout).
26522         * lib/error.c: Include <unistd.h>.
26523         (flush_stdout): New function, extracted from error and error_at_line.
26524         Determine stdout's fd dynamically.
26525         (error, error_at_line): Invoke flush_stdout.
26526         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26527         * modules/error (Depends-on): Add unistd.
26528
26529 2009-11-22  Bruno Haible  <bruno@clisp.org>
26530
26531         diffseq: Add comment.
26532         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26533
26534 2009-11-22  Jim Meyering  <meyering@redhat.com>
26535
26536         c-stack: avoid defining an unused static function
26537         * lib/c-stack.c (find_stack_direction): Do not define this function
26538         when it will not be used.
26539
26540         diffseq: avoid spurious gcc warnings
26541         * lib/diffseq.h (IF_LINT2): Define.
26542         (compareseq): Use it to initialize two members of "part".
26543         This avoids two used-uninitialized warnings.
26544
26545 2009-11-21  Jim Meyering  <meyering@redhat.com>
26546
26547         c-stack: avoid "ignoring return value of `write'" warning
26548         * lib/c-stack.c: Include "ignore-value.h".
26549         (die): Explicitly ignore each write return value.
26550         * modules/c-stack (Depends-on): Add ignore-value.
26551
26552 2009-11-21  Bruno Haible  <bruno@clisp.org>
26553
26554         diffseq: reduce scope of variable 'best'.
26555         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26556         variable, earlier used for two different purposes.
26557
26558 2009-11-21  Jim Meyering  <meyering@redhat.com>
26559
26560         diffseq: remove useless assignment to "best"
26561         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26562         assignment.  At that point "best" is already guaranteed to be zero.
26563
26564 2009-11-20  Eric Blake  <ebb9@byu.net>
26565
26566         build: mention ftp redirector in release announcements
26567         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26568         values that used to come from cfg.mk; mention FTP redirect URL.
26569         * build-aux/announce-gen: Mention the mirror list.
26570         Suggested by Karl Berry.
26571
26572         nanosleep: improve port to mingw
26573         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26575         LIB_NANOSLEEP, but only when needed.
26576         * modules/select (Link): Document LIBSOCKET.
26577         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26578         enough.
26579
26580         nanosleep: work around cygwin bug
26581         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26582         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26583         bug.
26584         (getnow): Delete, not needed.
26585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26586         LIB_CLOCK_GETTIME.
26587         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26588         clock-time, gettime.
26589         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26590         bug.
26591         * modules/nanosleep-tests: New test.
26592         * tests/test-nanosleep.c: New file.
26593
26594         sleep: work around cygwin bug
26595         * lib/sleep.c (rpl_sleep): Work around the bug.
26596         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26597         (gl_PREREQ_SLEEP): Delete unused macro.
26598         * modules/sleep (Depends-on): Add verify.
26599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26600         * modules/unistd (Makefile.am): Substitute witness.
26601         * lib/unistd.in.h (sleep): Update prototype.
26602         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26603         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26604         * modules/sleep-tests (Depends-on): Check for alarm.
26605
26606 2009-11-20  Jim Meyering  <meyering@redhat.com>
26607
26608         maint.mk: improve sc_prohibit_magic_number_exit
26609         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26610         so it does not match uses like System.exit(1).
26611         Add comments showing how to correct all offenders.
26612
26613 2009-11-19  Eric Blake  <ebb9@byu.net>
26614
26615         xalloc-die-tests: add missing library
26616         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26617
26618         test-xvasprintf: silence compiler warnings
26619         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26620         empty string from gcc.
26621
26622 2009-11-19  Jim Meyering  <meyering@redhat.com>
26623
26624         xfreopen: new module, from coreutils
26625         * modules/xfreopen: New module.
26626         * lib/xfreopen.c: New file.
26627         * lib/xfreopen.h: New file.
26628         * MODULES.html.sh (File stream based Input/Output"): Add it.
26629
26630 2009-11-19  Eric Blake  <ebb9@byu.net>
26631
26632         manywarnings: depend on warnings
26633         * modules/manywarnings (Depends-on): Add warnings.
26634
26635         build: avoid compiler warnings
26636         * lib/select.c (rpl_select): Delete unused variable.
26637         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26638
26639 2009-11-18  Eric Blake  <ebb9@byu.net>
26640
26641         tests: avoid false negative with --with-packager
26642         * tests/test-version-etc.sh: Discard packager information.
26643         * tests/test-argp-version-etc-1.sh: Likewise.
26644         Reported by Mike Frysinger.
26645
26646         utimens: fix regression on Solaris
26647         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26648         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26649         can only change fd timestamps via futimesat.  Instead, use an
26650         additional witness macro to avoid BSD bug.
26651         Reported by Jim Meyering.
26652
26653 2009-11-17  Eric Blake  <ebb9@byu.net>
26654
26655         usleep: use it to simplify tests
26656         * modules/stat-time-tests (Depends-on): Add usleep.
26657         (configure.ac): Drop usleep check.
26658         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26659         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26660         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26661         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26662         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26663         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26664         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26665         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26666         Likewise.
26667         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26668         * tests/test-lchown.h (nap): Likewise.
26669         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26670         * tests/test-stat-time.c (nap): Likewise.
26671         * tests/test-utimens-common.h (nap): Update comments.
26672
26673         usleep: new module
26674         * modules/usleep: New file.
26675         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26676         * lib/usleep.c (usleep): Likewise.
26677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26678         * modules/unistd (Makefile.am): Substitute witnesses.
26679         * lib/unistd.in.h (usleep): Add declaration.
26680         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26681         * MODULES.html.sh (Date and time): Likewise.
26682         * modules/usleep-tests (Depends-on): New test.
26683         * tests/test-usleep.c: New file.
26684
26685         chown: work around OpenBSD bug
26686         * lib/chown.c (rpl_chown): Work around the bug.
26687         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26688         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26690         * modules/chown (Depends-on): Add stdbool.
26691         * modules/lchown (Depends-on): Likewise.
26692         * doc/posix-functions/chown.texi (chown): Document the bug.
26693         * doc/posix-functions/lchown.texi (lchown): Likewise.
26694         * tests/test-lchown.h (test_chown): Relax test.
26695
26696         mkstemp: avoid conflict with C++ keyword template
26697         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26698         * lib/mkostemp.c (mkostemp): Likewise.
26699         * lib/mkostemps.c (mkostemps): Likewise.
26700         * lib/mkstemp.c (mkstemp): Likewise.
26701         * lib/mkstemps.c (mkstemps): Likewise.
26702
26703         xalloc-die-tests: optimize
26704         * tests/test-xalloc-die.sh: Reduce number of processes.
26705
26706 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26707
26708         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26709         patch from ludo@gnu.org (Ludovic Courtès).
26710
26711 2009-11-17  Jim Meyering  <meyering@redhat.com>
26712
26713         version-etc: use proper license string
26714         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26715         * modules/version-etc-fsf: Likewise.
26716
26717 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26718
26719         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26720         printed to stdout.  Deal with EOL differences.
26721
26722 2009-11-17  Eric Blake  <ebb9@byu.net>
26723
26724         unsetenv: work around Solaris bug
26725         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26726         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26727         Reported by Jim Meyering.
26728
26729         vasnprintf: avoid compiler warnings
26730         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26731         variables.
26732         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26733
26734 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26735
26736         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26737         settings since xalloc-die is no longer the self test,
26738         xalloc-die.sh is.
26739
26740 2009-11-17  Jim Meyering  <meyering@redhat.com>
26741
26742         test-xalloc-die.sh: make the code agree with the commit log
26743         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26744         at the end, just in case you happen to have a test-xalloc-die
26745         program in some other PATH directory.
26746
26747         test-xalloc-die.sh: fix a portability bug
26748         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26749         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26750         Otherwise, argv[0] (as often seen in diagnostics) would be too
26751         system-dependent, sometimes with, and sometimes without the leading "./".
26752
26753         version-etc-fsf: relax license to LGPLv3+
26754         * modules/version-etc-fsf (License): Relax license.
26755
26756 2009-11-16  Eric Blake  <ebb9@byu.net>
26757
26758         xalloc-die-tests: avoid printing null pointer
26759         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26760         shell script.
26761         * tests/test-xalloc-die.c (program_name): Declare.
26762         * tests/test-xalloc-die.sh (tmpfiles): New file.
26763
26764         setenv, unsetenv: work around various bugs
26765         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26766         (setenv) [HAVE_SETENV]: Work around bugs.
26767         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26768         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26769         for bugs.
26770         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26771         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26773         * modules/stdlib (Makefile.am): Update substitutions.
26774         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26775         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26776         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26777         * modules/setenv-tests: New test.
26778         * modules/unsetenv-tests: Likewise.
26779         * tests/test-setenv.c: New file.
26780         * tests/test-unsetenv.c: Likewise.
26781
26782 2009-11-16  Jim Meyering  <meyering@redhat.com>
26783
26784         version-etc: relax license to LGPLv3+
26785         * modules/version-etc (License): Relax license.
26786
26787         better AC_REQUIRE expanded-before-required-warning avoidance
26788         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26789         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26790         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26791         which is no longer needed.
26792
26793 2009-11-16  Eric Blake  <ebb9@byu.net>
26794
26795         test-freading: clean up temporary file
26796         * tests/test-freading.c (main): Remove file on success, and use
26797         ASSERT more liberally.
26798         Reported by Jim Meyering.
26799
26800 2009-11-16  Jim Meyering  <meyering@redhat.com>
26801
26802         avoid new AC_REQUIRE expanded-before-required warnings
26803         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26804         merely using it.
26805         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26806         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26807
26808 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26809
26810         * tests/test-xalloc-die.c: New file.
26811         * modules/xalloc-die-tests: New file.
26812         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26813         XFAIL_TESTS so it can be appended by modules.
26814
26815 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26816
26817         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26818         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26819
26820 2009-11-14  Eric Blake  <ebb9@byu.net>
26821
26822         fnmatch: avoid compiler warning
26823         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26824         to silence compiler warning about mismatch signedness in ?:.
26825         Reported by Robert Millan.
26826
26827         intprops: add double-inclusion guard
26828         * lib/intprops.h: Allow idempotent includes.
26829         Suggested by Bruce Korb.
26830
26831         openat: detect Solaris fchownat bug
26832         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26833         penalizing glibc chownat when only lchownat is broken.
26834         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26835         trailing slash bugs.
26836         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26837         * modules/openat-tests (Files): Include more files.
26838         (Depends-on): Add mgetgroups, sleep, stat-time.
26839         (configure.ac): Add additional checks.
26840         (Makefile.am): Build new test.
26841         * tests/test-fchownat.c: New file.
26842
26843         lchown: detect Solaris and FreeBSD bug
26844         * lib/lchown.c (rpl_lchown): Work around bug.
26845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26847         * modules/unistd (Makefile.am): Populate it.
26848         * lib/unistd.in.h (lchown): Update declaration.
26849         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26850         * modules/lchown-tests: New file.
26851         * tests/test-lchown.h (test_lchown): Likewise.
26852         * tests/test-lchown.c (main): Likewise.
26853
26854         chown: detect Solaris and FreeBSD bug
26855         * lib/chown.c (rpl_chown): Work around bug.
26856         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26857         (gl_PREREQ_CHOWN): Delete.
26858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26859         * modules/unistd (Makefile.am): Populate it.
26860         * lib/unistd.in.h (chown): Update declaration.
26861         * lib/lchown.c (chown): Update client.
26862         * modules/lchown (Depends-on): Add lstat.
26863         * doc/posix-functions/chown.texi (chown): Document the bug.
26864         * doc/posix-functions/getgroups.texi (getgroups): Document
26865         getgroups pitfall.
26866         * modules/chown-tests: New file.
26867         * tests/test-chown.h (test_chown): Likewise.
26868         * tests/test-chown.c (main): Likewise.
26869
26870 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26871
26872         gnulib-tool: correctly detect absence of m4 directories
26873         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26874
26875 2009-11-14  Jim Meyering  <meyering@redhat.com>
26876
26877         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26878         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26879
26880 2009-11-14  John W. Eaton  <jwe@gnu.org>
26881
26882         strftime.h: wrap funtion declaration in extern "C" block
26883         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26884
26885 2009-11-13  Eric Blake  <ebb9@byu.net>
26886
26887         getgroups: avoid compiler warning
26888         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26889
26890         getgroups: work around FreeBSD bug
26891         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26892         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26893         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26894         * tests/test-getgroups.c (main): Fix buffer overrun.
26895
26896         getgroups: avoid compilation failure
26897         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26898         * modules/getgroups (Depends-on): Add stdint.
26899
26900 2009-11-13  Jim Meyering  <meyering@redhat.com>
26901
26902         test-getgroups: avoid compilation failure
26903         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26904
26905 2009-11-13  Eric Blake  <ebb9@byu.net>
26906
26907         mgetgroups: new module, taken from coreutils
26908         * modules/mgetgroups: New file.
26909         * lib/mgetgroups.h: Likewise.
26910         * lib/mgetgroups.c (mgetgroups): Likewise.
26911         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26912         * MODULES.html.sh (Users and groups): Mention it.
26913
26914         getgroups: don't expose GETGROUPS_T to user
26915         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26916         an element at a time if GETGROUPS_T is wrong size.
26917         * lib/getugroups.h (getugroups): Change signature.
26918         * lib/unistd.in.h (getgroups): Likewise.
26919         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26920         signature needs fixing.
26921         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26922         AC_TYPE_GETGROUPS.
26923         * modules/group-member (Depends-on): Add getgroups.
26924         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26925         (group_member): Rely on getgroups replacement.
26926         * lib/getugroups.c (getugroups): Use gid_t.
26927         * tests/test-getgroups.c (main): Likewise.
26928         * NEWS: Mention the signature change.
26929         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26930         problem with signature.
26931         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26932         GETGROUPS_T is still useful for setgroups.
26933
26934         getgroups, getugroups: provide stubs for mingw
26935         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26936         * lib/getugroups.c (getugroups): Likewise.
26937         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26938         function.  Modernize replacement scheme.
26939         (gl_PREREQ_GETGROUPS): Delete.
26940         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26941         * modules/getgroups (configure.ac): Declare witness.
26942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26943         * modules/unistd (Depends-on): Substitute witness.
26944         * lib/unistd.in.h (getgroups): Declare replacement.
26945
26946         getgroups: avoid calling exit
26947         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26948         drop xalloc.
26949         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26950         dependencies.
26951         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26952         exiting, in the rare case of malloc failure.
26953
26954         getgroups: fix logic error
26955         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26956         has more than 20 groups.
26957         * modules/getgroups-tests: New test.
26958         * tests/test-getgroups.c: New file.
26959
26960 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26961
26962         * tests/test-base64.c: Improve.
26963
26964 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26965
26966         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26967         Blake <ebb9@byu.net>.
26968
26969 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26970
26971         * tests/test-xvasprintf.c: Add %s%s related checks.
26972
26973 2009-11-12  Eric Blake  <ebb9@byu.net>
26974
26975         version-etc: match standards.texi style
26976         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26977         and use <> only for URLs.
26978
26979 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26980
26981         fts: do not fail on a submount during traversal
26982         * lib/fts.c (fts_build): Read the stat info again after opening
26983         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26984         Original report at http://bugzilla.redhat.com/501848.
26985
26986 2009-11-12  Jim Meyering  <meyering@redhat.com>
26987
26988         bootstrap: sync from coreutils
26989         * build-aux/bootstrap (bootstrap_epilogue): New function.
26990         Use git_modules_config in one more place.  This make bootstrap's
26991         --gnulib-srcdir option more useful for testing.
26992
26993         bootstrap: generalize autoheader check
26994         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26995         AC_CONFIG_HEADERS.
26996
26997 2009-11-11  Eric Blake  <ebb9@byu.net>
26998
26999         mkfifoat: use new modules for Solaris and BSD bugs
27000         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27001         * lib/mkfifoat.c (mknodat): Split...
27002         * lib/mknodat.c (mknodat): ...into new file.
27003         * modules/mkfifoat (Files): Ship new file.
27004         (Depends-on): Add mkfifo, mknod.
27005         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27006         (Depends-on): Add symlink.
27007         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27008         redundant with test_mkfifo.h.
27009         (do_mkfifoat, do_mknodat): New helpers.
27010
27011         mknod: new module
27012         * modules/mknod: New file.
27013         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27014         * lib/mknod.c (mknod): Likewise.
27015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27016         defaults.
27017         * modules/sys_stat (Makefile.am): Substitute them.
27018         * lib/sys_stat.in.h (mknod): Declare replacement.
27019         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27020         Document it.
27021         * doc/posix-functions/mknod.texi (mknod): Likewise.
27022         * modules/mknod-tests: New test.
27023         * tests/test-mknod.c: Likewise.
27024
27025         mkfifo: new module
27026         * modules/mkfifo: New file.
27027         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27028         * lib/mkfifo.c (mkfifo): Likewise.
27029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27030         defaults.
27031         * modules/sys_stat (Makefile.am): Substitute them.
27032         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27033         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27034         Document it.
27035         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27036         * modules/mkfifo-tests: New test.
27037         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27038         from test-mkfifoat.c.
27039         * tests/test-mkfifo.c: New file.
27040
27041         readlink: detect FreeBSD bug
27042         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27043         slash on symlink.
27044         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27045         * tests/test-readlink.h (test_readlink): Enhance test.
27046
27047         symlink: detect FreeBSD bug
27048         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27049         slash on symlink.
27050         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27051         * tests/test-symlink.h (test_symlink): Enhance test.
27052
27053 2009-11-10  Eric Blake  <ebb9@byu.net>
27054
27055         link: detect FreeBSD bug
27056         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27057         symlink.
27058         * doc/posix-functions/link.texi (link): Document the bug.
27059         * tests/test-link.h (test_link): Enhance test.
27060         * tests/test-linkat.c (main): Update caller.
27061
27062         unlink, remove: detect FreeBSD bug
27063         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27064         slash on symlink.
27065         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27066         * doc/posix-functions/remove.texi (remove): Likewise.
27067         * tests/test-unlink.h (test_unlink): Enhance test.
27068         * tests/test-remove.c (main): Likewise.
27069
27070 2009-11-09  Eric Blake  <ebb9@byu.net>
27071
27072         rename: detect FreeBSD bug
27073         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27074         slash on symlink.
27075         * modules/renameat-tests (Depends-on): Add filenamecat.
27076         * tests/test-rename.h (test_rename): Allow one more errno.
27077         * tests/test-renameat.c (main): Likewise.
27078         * doc/posix-functions/rename.texi (rename): Document the bug.
27079
27080         open: detect FreeBSD bug
27081         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27082         symlink.
27083         * doc/posix-functions/open.texi (open): Document the bug.
27084         * doc/posix-functions/utimes.texi (utimes): Likewise.
27085         * tests/test-open.h (test_open): Add parameters, and test symlink
27086         handling.
27087         * tests/test-open.c (main): Adjust caller.
27088         * tests/test-fcntl-safer.c (main): Likewise.
27089         * modules/open-tests (Depends-on): Add stdbool, symlink.
27090         * modules/fcntl-safer-tests (Depends-on): Likewise.
27091         * tests/test-openat.c (main): Add test-open tests.
27092
27093         stat: detect FreeBSD bug
27094         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27095         symlink.
27096         * doc/posix-functions/stat.texi (stat): Document the bug.
27097         * tests/test-stat.h (test_stat_func): Add argument.
27098         * tests/test-stat.c (main): Adjust caller.
27099         * tests/test-fstatat.c (main): Likewise.
27100         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27101         Reported by Jim Meyering.
27102
27103 2009-11-09  James Youngman  <jay@gnu.org>
27104
27105         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27106         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27107
27108 2009-11-08  Jim Meyering  <meyering@redhat.com>
27109
27110         utimens: remove invalid futimesat call
27111         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27112         It used the file descriptor of the target file as the DIR_FD
27113         parameter and NULL as the file name.  That caused failure with
27114         errno == EFAULT on FreeBSD-8.0-rc2
27115
27116 2009-11-07  Eric Blake  <ebb9@byu.net>
27117
27118         fflush, freadseek: use fseeko, not fseek
27119         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27120         (clear_ungetc_buffer): Avoid potential problems on large files.
27121         * lib/freadseek.c (freadseek): Likewise.
27122         * modules/freadseek (Depends-on): Add fseeko.
27123         * modules/fseek (configure.ac): Set a witness.
27124         * tests/test-fflush.c (main): Use fseeko.
27125         * tests/test-fpurge.c (fseek): Disable link warning.
27126         * tests/test-freadable.c (fseek): Likewise.
27127         * tests/test-freading.c (fseek): Likewise.
27128         * tests/test-fseeko.c (fseek): Likewise.
27129         * tests/test-ftell.c (fseek): Likewise.
27130         * tests/test-ftello.c (fseek): Likewise.
27131         * tests/test-fwritable.c (fseek): Likewise.
27132         * tests/test-fwriting.c (fseek): Likewise.
27133
27134 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27135
27136         * modules/memchr (Depends-on): Drop getpagesize dependency.
27137
27138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27139
27140         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27141         Reported by Ludovic Courtès.
27142         * build-aux/pmccabe2html: Improve example usage.
27143         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27144
27145 2009-11-06  Jim Meyering  <meyering@redhat.com>
27146
27147         do-release-commit-and-tag: New module.
27148         Automate the release-commit and tag process.
27149         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27150         * modules/do-release-commit-and-tag: New file.
27151         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27152
27153 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27154
27155         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27156         because test-select.c uses inet_pton.
27157
27158 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27159
27160         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27161         GETADDRINFO_LIB.  Bump serial number.
27162         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27163         Suggested by Eric Blake <ebb9@byu.net>.
27164
27165 2009-11-05  Eric Blake  <ebb9@byu.net>
27166
27167         strtod: detect darwin bug
27168         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27169         Reported by Leo Davis.
27170
27171         freopen-safer: new module
27172         * modules/freopen-safer: New module.
27173         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27174         * lib/freopen-safer.c (freopen_safer): New file.
27175         * lib/stdio-safer.h (freopen_safer): New declaration.
27176         * lib/stdio--.h (freopen): New override.
27177         * MODULES.html.sh (File stream based Input/Output): Mention it.
27178         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27179         freopen-safer module.
27180         * doc/posix-functions/stderr.texi (stderr): Likewise.
27181         * doc/posix-functions/stdin.texi (stdin): Likewise.
27182         * doc/posix-functions/stdout.texi (stdout): Likewise.
27183         * modules/freopen-safer-tests: New test.
27184         * tests/test-reopen-safer.c: New file.
27185
27186 2009-11-05  Jim Meyering  <meyering@redhat.com>
27187
27188         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27189         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27190
27191 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27192
27193         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27194
27195 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27196
27197         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27198
27199 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27200
27201         Fix link error.
27202         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27204
27205 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27206
27207         * tests/test-func.c: Also test value of __func__.
27208
27209 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27210
27211         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27212         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27213
27214 2009-11-05  Bruno Haible  <bruno@clisp.org>
27215
27216         Fix link error.
27217         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27218         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27219         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27220
27221 2009-11-05  Bruno Haible  <bruno@clisp.org>
27222
27223         Tests for module 'inet_pton'.
27224         * modules/inet_pton-tests: New file.
27225         * tests/test-inet_pton.c: New file.
27226
27227 2009-11-05  Bruno Haible  <bruno@clisp.org>
27228
27229         Tests for module 'inet_ntop'.
27230         * modules/inet_ntop-tests: New file.
27231         * tests/test-inet_ntop.c: New file.
27232
27233 2009-11-04  Eric Blake  <ebb9@byu.net>
27234
27235         stdlib-safer: wrap all mkstemp variants
27236         * modules/mkostemp (configure.ac): Set witness.
27237         * modules/mkostemps (configure.ac): Likewise.
27238         * modules/mkstemps (configure.ac): Likewise.
27239         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27240         (mkstemps_safer): Wrap more functions.
27241         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27242         wrapping.
27243         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27244         (mkstemps_safer): Implement the wrappers.
27245
27246         mkstemps, mkostemps: new modules
27247         * modules/mkostemps: New module.
27248         * modules/mkstemps: Likewise.
27249         * lib/mkostemps.c (mkostemps): New file.
27250         * lib/mkstemps.c (mkstemps): Likewise.
27251         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27252         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27254         * modules/stdlib (Makefile.am): Substitute them.
27255         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27256         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27257         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27258         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27259         * MODULES.html.sh (File system functions): Mention them.
27260
27261         tempname: resync from glibc
27262         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27263         same values for __GT_FILE as glibc.  Abort even when assertions
27264         are disabled.
27265         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27266         match its value otherwise.  Allow idempotent inclusion.
27267         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27268         * lib/mkostemp.c (mkostemp): Likewise.
27269         * lib/mkstemp.c (mkstemp): Likewise.
27270         * lib/tmpfile.c (tmpfile): Likewise.
27271         * NEWS: Document this.
27272
27273         utimens: fix use of futimens on older Linux
27274         * lib/utimens.c (fdutimens): Use updated, rather than original,
27275         timespec to avoid bug in older Linux kernel.
27276         Reported by Simon Josefsson.
27277
27278 2009-11-04  Bruno Haible  <bruno@clisp.org>
27279
27280         Make num_processors more flexible and consistent.
27281         * lib/nproc.h (enum nproc_query): New type.
27282         (num_processors): Add a 'query' argument.
27283         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27284         (num_processors): Add a 'query' argument. Test the value of the
27285         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27286         mingw, count the number of CPUs available for the current process.
27287         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27288         Check for sched_getaffinity and sched_getaffinity_np.
27289         * modules/nproc (Depends-on): Add c-ctype, extensions.
27290         * NEWS: Mention the change.
27291
27292 2009-11-03  Bruno Haible  <bruno@clisp.org>
27293
27294         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27295
27296 2009-11-03  Jim Meyering  <meyering@redhat.com>
27297
27298         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27299         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27300         if it is defined.
27301
27302 2009-11-02  Eric Blake  <ebb9@byu.net>
27303
27304         mktime, timegm: share common declaration
27305         * lib/mktime-internal.h: New file.
27306         * lib/mktime.c: Use it rather than open-coding a declaration.
27307         * lib/timegm.c: Likewise.
27308         * modules/mktime (Files): Ship it.
27309         * modules/timegm (Files): Likewise.
27310         Suggested by Bruno Haible.
27311
27312         test-update-copyright: update test to match script changes
27313         * tests/test-update-copyright.sh: Avoid hard-coding perl
27314         location.  Don't update *.bak created by earlier runs.
27315
27316 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27317             Simon Josefsson  <simon@josefsson.org>
27318             Bruno Haible  <bruno@clisp.org>
27319
27320         Fix link error on Solaris 8.
27321         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27322         also in libnsl. Define also INET_PTON_LIB.
27323         * modules/inet_pton (Link): New section.
27324
27325 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27326             Bruno Haible  <bruno@clisp.org>
27327
27328         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27329         * modules/inet_ntop (Link): New section.
27330         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27331
27332 2009-11-02  Eric Blake  <ebb9@byu.net>
27333
27334         maint: avoid compiler warnings in m4 macros
27335         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27336         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27337
27338 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27339
27340         * m4/pmccabe2html.m4: Remove file.
27341         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27342         function.  Change maintainer.
27343         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27344         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27345         Courtès).
27346
27347 2009-10-31  Eric Blake  <ebb9@byu.net>
27348
27349         fseeko: fix m4 regression
27350         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27351         regression from 2009-10-27.
27352         Reported by Ralf Wildenhues.
27353
27354 2009-10-31  Jim Meyering  <meyering@redhat.com>
27355
27356         inttostr: aesthetics and improved (compile-time) safety
27357         Define inttype_is_signed rather than inttype_is_unsigned,
27358         since the sole use is via "#if inttype_is_signed".
27359         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27360         inttype_is_unsigned.
27361         * lib/offtostr.c (inttype_is_signed): Likewise.
27362         * lib/uinttostr.c (inttype_is_signed): Likewise.
27363         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27364         * lib/inttostr.c (inttostr): Use verify to cross-check the
27365         inttype_is_signed value and the signedness of the actual type.
27366         * modules/inttostr (Depends-on): Add verify.
27367
27368 2009-10-30  Eric Blake  <ebb9@byu.net>
27369
27370         build: avoid compiler warnings
27371         * lib/fchmodat.c (lchmod): Mark unused variables.
27372         * lib/getopt.c (_getopt_initialize): Likewise.
27373         * lib/mktime.c (__mktime_internal): Provide prototype.
27374         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27375         older gcc that do not understand #pragma GCC diagnostic.
27376         * lib/uinttostr.c (inttype_is_unsigned): Define.
27377         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27378
27379 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27380
27381         stat: fix compilation on AIX
27382         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27383         only see struct stat64.
27384
27385 2009-10-30  Eric Blake  <ebb9@byu.net>
27386
27387         exclude: make more robust
27388         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27389         rather than masking a coding bug.
27390         Suggested by Bruno Haible.
27391
27392 2009-10-30  Jim Meyering  <meyering@redhat.com>
27393
27394         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27395         Rather than putting #!/usr/bin/perl on the first line,
27396         start with a variant of what's recommended by "man perlrun" that
27397         invokes the first "perl" program from your shell's search path.
27398         * build-aux/gitlog-to-changelog: Replace #!... as above.
27399         Add a "Local Variables" perl mode setting.
27400         Prompted by a patch from Ludovic Courtès.
27401         Improved by Eric Blake.
27402         * build-aux/useless-if-before-free: Likewise.
27403         * build-aux/announce-gen: Likewise.
27404         * build-aux/update-copyright: Likewise.
27405
27406 2009-10-29  Eric Blake  <ebb9@byu.net>
27407
27408         filenamecat-lgpl: adjust clients
27409         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27410         filenamecat.
27411         * modules/renameat (Depends-on): Likewise.
27412
27413         filenamecat: split into filenamecat-lgpl
27414         * modules/filenamecat-lgpl: New module.
27415         * modules/filenamecat (Files): Move library-safe files into
27416         filenamecat-lgpl.
27417         (Depends-on): Add filenamecat-lgpl.
27418         (configure.ac): Declare witness.
27419         * lib/filenamecat.h (file_name_concat): Only declare when using
27420         GPL module.
27421         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27422         Move...
27423         * lib/filenamecat-lgpl.c: ...into new file.
27424         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27425         (gl_FILE_NAME_CONCAT): Use it.
27426         * MODULES.html.sh (File system functions): Mention new module.
27427
27428         argp: avoid memory leak
27429         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27430         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27431         base_name, since the latter malloc()s and can call exit().
27432         Leak introduced 2006-07-03.
27433
27434         dirname-lgpl: adjust clients that don't need full dirname
27435         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27436         * modules/filenamecat (Depends-on): Likewise.
27437         * modules/linkat (Depends-on): Likewise.
27438         * modules/mkancesdirs (Depends-on): Likewise.
27439         * modules/mkdir (Depends-on): Likewise.
27440         * modules/openat (Depends-on): Likewise.
27441         * modules/savewd (Depends-on): Likewise.
27442         * modules/rename (Depends-on): Likewise.
27443         (License): Relax license.
27444         * modules/mkdir-tests (Depends-on): Drop progname.
27445         (Makefile.am): Delete unneeded LDADD.
27446         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27447
27448         dirname: split into dirname-lgpl
27449         * modules/dirname-lgpl: New module.
27450         * modules/dirname (Files): Move library-safe files into
27451         dirname-lgpl.
27452         (Depends-on): Add dirname-lgpl.
27453         (configure.ac): Declare witness.
27454         * modules/double-slash-root (License): Relax license.
27455         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27456         module.
27457         * lib/dirname.c (dir_len, mdir_name): Move...
27458         * lib/dirname-lgpl.c: ...into new file.
27459         * lib/basename.c (last_component, base_len): Move...
27460         * lib/basename-lgpl.c: ...into new file.
27461         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27462         (gl_DIRNAME): Use it.
27463         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27464         Mention new module.
27465         * modules/dirname-tests (Depends-on): Add progname.
27466         * tests/test-dirname.c (program_name): Delete.
27467
27468         mkdir: make safe for libraries
27469         * modules/mkdir (Depends-on): Drop xalloc.
27470         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27471         exit.
27472
27473         tests: avoid some compiler warnings
27474         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27475         literals.
27476         * tests/test-memchr.c (main): Avoid type mismatch.
27477         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27478         * tests/test-base64.c (main): Likewise.
27479         * tests/test-getdelim.c (main): Likewise.
27480         * tests/test-gethostname.c (main): Likewise.
27481         * tests/test-getline.c (main): Likewise.
27482         * tests/test-netinet_in.c (main): Likewise.
27483         * tests/test-select.c (open_server_socket, main): Likewise.
27484         * tests/test-select-stdin.c (main): Likewise.
27485         * tests/test-sockets.c (main): Likewise.
27486         * tests/test-strsignal.c (main): Likewise.
27487         * tests/test-sys_select.c (main): Likewise.
27488         * tests/test-sys_socket.c (main): Likewise.
27489         * tests/test-u64.c (main): Likewise.
27490         * tests/test-xfprintf-posix.c (main): Likewise.
27491         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27492
27493         sockets: avoid compiler warning
27494         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27495
27496         maint: detect usage(1) and other suspicious exits
27497         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27498
27499 2009-10-29  Jim Meyering  <meyering@redhat.com>
27500
27501         timespec: long-to-int truncation could make timespec_cmp malfunction
27502         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27503         a multiple of 2^32 nanoseconds as no difference.
27504
27505 2009-10-28  Jim Meyering  <meyering@redhat.com>
27506
27507         fprintftime: wrap macro code argument in "do {...} while(0)"
27508         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27509         cpy macro must be a statement that can be followed by a semicolon.
27510         Now that the else clause contains a comment and is hence longer
27511         than one line, I require curly braces.  That in turn requires
27512         that we wrap this code block in the standard do...while(0).
27513
27514         fprintftime: remove stray semicolon from previous change
27515         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27516
27517         fprintftime: avoid a warning about ignored fwrite return value
27518         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27519         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27520         that is unsafe.
27521         * modules/fprintftime (Depends-on): Add ignore-value.
27522
27523         exclude: avoid an unwarranted warning
27524         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27525
27526 2009-10-27  Eric Blake  <ebb9@byu.net>
27527
27528         fseek: avoid compilation failure when fflush is replaced
27529         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27530         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27531         module is in use.
27532         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27533         module is not in use; since REPLACE_FSEEK worked otherwise.
27534         (GNULIB_FTELLO): Likewise for ftell.
27535         Reported by Ian Beckwith and others.
27536
27537 2009-10-27  Bruno Haible  <bruno@clisp.org>
27538
27539         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27540         Reported by Jim Meyering.
27541
27542 2009-10-27  Jim Meyering  <jim@meyering.net>
27543             Bruno Haible  <bruno@clisp.org>
27544
27545         Avoid warning despite dropping the return value of fwrite.
27546         * lib/unicodeio.c: Include ignore-value.h.
27547         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27548         * modules/unicodeio (Depends-on): Add ignore-value.
27549
27550 2009-10-26  Eric Blake  <ebb9@byu.net>
27551
27552         areadlinkat: fix fallback path
27553         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27554         pointer and zero.
27555
27556 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27557
27558         Use a better IO block size for modern systems
27559         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27560         * lib/md2.c: Likewise.
27561         * lib/md4.c: Likewise.
27562         * lib/md5.c: Likewise.
27563         * lib/sha1.c: Likewise.
27564         * lib/sha256.c: Likewise.
27565         * lib/sha512.c: Likewise.
27566
27567 2009-10-22  Eric Blake  <ebb9@byu.net>
27568
27569         tests: avoid several compiler warnings
27570         * tests/test-getcwd.c (main): Avoid buffer underflow.
27571         * tests/test-getdate.c (main): String literals are not safe with
27572         putenv, so use setenv.  Declare unused argument.
27573         * modules/getdate-tests (Depends-on): Add setenv.
27574         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27575         problems with string literals in char *.
27576         * tests/test-hash.c (main): Avoid shadowing declaration.
27577         (insert_new): Treat string literals as char const *.
27578         * tests/test-getopt.h (test_getopt): Likewise.
27579         (getopt_loop): Alter types to minimize casting elsewhere.
27580         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27581         (test_getopt_long_posix): Likewise.
27582         (do_getopt_long): Add wrapper to minimize casting.
27583         * tests/test-atexit.c (clear_temp_file): Use void.
27584         * tests/test-areadlink-with-size.c (main): Declare unused
27585         arguments.
27586         * tests/test-areadlink.c (main): Likewise.
27587         * tests/test-areadlinkat-with-size.c (main): Likewise.
27588         * tests/test-areadlinkat.c (main): Likewise.
27589         * tests/test-canonicalize-lgpl.c (main): Likewise.
27590         * tests/test-canonicalize.c (main): Likewise.
27591         * tests/test-dirent-safer.c (main): Likewise.
27592         * tests/test-dirname.c (main): Likewise.
27593         * tests/test-dup2.c (main): Likewise.
27594         * tests/test-fchdir.c (main): Likewise.
27595         * tests/test-fcntl-h.c (main): Likewise.
27596         * tests/test-fcntl-safer.c (main): Likewise.
27597         * tests/test-fdopendir.c (main): Likewise.
27598         * tests/test-fdutimensat.c (main): Likewise.
27599         * tests/test-fflush.c (main): Likewise.
27600         * tests/test-filenamecat.c (main): Likewise.
27601         * tests/test-filevercmp.c (main): Likewise.
27602         * tests/test-fopen-safer.c (main): Likewise.
27603         * tests/test-fopen.c (main): Likewise.
27604         * tests/test-fpending.c (main): Likewise.
27605         * tests/test-fpurge.c (main): Likewise.
27606         * tests/test-freading.c (main): Likewise.
27607         * tests/test-fstatat.c (main): Likewise.
27608         * tests/test-fsync.c (main): Likewise.
27609         * tests/test-futimens.c (main): Likewise.
27610         * tests/test-getndelim2.c (main): Likewise.
27611         * tests/test-gettimeofday.c (main): Likewise.
27612         * tests/test-getopt.c (main): Likewise.
27613         * tests/test-i-ring.c (main): Likewise.
27614         * tests/test-inttypes.c (main): Likewise.
27615         * tests/test-link.c (main): Likewise.
27616         * tests/test-lstat.c (main): Likewise.
27617         * tests/test-math.c (main): Likewise.
27618         * tests/test-md5.c (main): Likewise.
27619         * tests/test-memchr2.c (main): Likewise.
27620         * tests/test-memrchr.c (main): Likewise.
27621         * tests/test-mkdir.c (main): Likewise.
27622         * tests/test-mkdirat.c (main): Likewise.
27623         * tests/test-mkfifoat.c (main): Likewise.
27624         * tests/test-open.c (main): Likewise.
27625         * tests/test-openat-safer.c (main): Likewise.
27626         * tests/test-openat.c (main): Likewise.
27627         * tests/test-quotearg.c (main): Likewise.
27628         * tests/test-rawmemchr.c (main): Likewise.
27629         * tests/test-readlink.c (main): Likewise.
27630         * tests/test-remove.c (main): Likewise.
27631         * tests/test-rename.c (main): Likewise.
27632         * tests/test-renameat.c (main): Likewise.
27633         * tests/test-rmdir.c (main): Likewise.
27634         * tests/test-sha1.c (main): Likewise.
27635         * tests/test-signal.c (main): Likewise.
27636         * tests/test-sigaction.c (main): Likewise.
27637         * tests/test-stat.c (main): Likewise.
27638         * tests/test-stat-time.c (main): Likewise.
27639         * tests/test-stddef.c (main): Likewise.
27640         * tests/test-stdint.c (main): Likewise.
27641         * tests/test-stdio.c (main): Likewise.
27642         * tests/test-stdlib.c (main): Likewise.
27643         * tests/test-strchrnul.c (main): Likewise.
27644         * tests/test-strerror.c (main): Likewise.
27645         * tests/test-string.c (main): Likewise.
27646         * tests/test-strtod.c (main): Likewise.
27647         * tests/test-strverscmp.c (main): Likewise.
27648         * tests/test-symlink.c (main): Likewise.
27649         * tests/test-symlinkat.c (main): Likewise.
27650         * tests/test-sys_stat.c (main): Likewise.
27651         * tests/test-sys_time.c (main): Likewise.
27652         * tests/test-time.c (main): Likewise.
27653         * tests/test-unistd.c (main): Likewise.
27654         * tests/test-unlink.c (main): Likewise.
27655         * tests/test-unlinkat.c (main): Likewise.
27656         * tests/test-utimens.c (main): Likewise.
27657         * tests/test-utimensat.c (main): Likewise.
27658         * tests/test-version-etc.c (main): Likewise.
27659         * tests/test-wchar.c (main): Likewise.
27660         * tests/test-wctype.c (main): Likewise.
27661         * tests/test-xprintf-posix.c (main): Likewise.
27662         * tests/test-posixtm.c (main): Likewise.
27663         (STREQ): Delete unused macro.
27664         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27665         shadowed variables.
27666         * tests/test-memchr.c (main): Likewise.
27667
27668 2009-10-21  Eric Blake  <ebb9@byu.net>
27669
27670         areadlinkat: avoid failure on older glibc
27671         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27672         rather than mis-comparing 0 against FUNC_RESULT of char*.
27673
27674 2009-10-21  Bruno Haible  <bruno@clisp.org>
27675
27676         * modules/stpncpy (License): Relicense under LGPLv2+.
27677         Reported by David Lutterkort <lutter@redhat.com>.
27678
27679 2009-10-20  Eric Blake  <ebb9@byu.net>
27680
27681         utimensat: work around Solaris 9 bug
27682         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27683         has trailing slash bugs.
27684         * tests/test-lutimens.h (test_lutimens): Enhance test.
27685         * tests/test-utimens.h (test_utimens): Likewise.
27686         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27687         * doc/posix-functions/utimes.texi (utimes): Likewise.
27688         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27689         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27690         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27691         * doc/posix-functions/futimens.texi (futimens): Likewise.
27692
27693         fdutimensat: new module
27694         * modules/fdutimensat: New file.
27695         * lib/fdutimensat.c (fdutimensat): Likewise.
27696         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27697         * MODULES.html.sh (File system functions): Mention module.
27698         * modules/fdutimensat-tests: New test.
27699         * tests/test-fdutimensat.c: Likewise.
27700
27701         doc: regenerate INSTALL
27702         * doc/INSTALL: Reflect recent autoconf update.
27703         * doc/INSTALL.ISO: Likewise.
27704         * doc/INSTALL.UTF-8: Likewise.
27705
27706 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27707
27708         acl: warn if ACL support is not detected
27709         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27710
27711 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27712
27713         * lib/nproc.h: Add extern "C" block for C++.
27714
27715 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27716             Bruno Haible  <bruno@clisp.org>
27717
27718         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27719         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27720         * doc/posix-functions/isalpha.texi: Likewise.
27721         * doc/posix-functions/isblank.texi: Likewise.
27722         * doc/posix-functions/iscntrl.texi: Likewise.
27723         * doc/posix-functions/isdigit.texi: Likewise.
27724         * doc/posix-functions/isgraph.texi: Likewise.
27725         * doc/posix-functions/islower.texi: Likewise.
27726         * doc/posix-functions/isprint.texi: Likewise.
27727         * doc/posix-functions/ispunct.texi: Likewise.
27728         * doc/posix-functions/isspace.texi: Likewise.
27729         * doc/posix-functions/isupper.texi: Likewise.
27730         * doc/posix-functions/isxdigit.texi: Likewise.
27731
27732 2009-10-18  Bruno Haible  <bruno@clisp.org>
27733
27734         Tests for module 'isblank'.
27735         * modules/isblank-tests: New file.
27736         * tests/test-isblank.c: New file.
27737
27738         New module 'isblank'.
27739         * lib/isblank.c: New file.
27740         * m4/isblank.m4: New file.
27741         * modules/isblank: New file.
27742         * doc/posix-functions/isblank.texi: Mention the new module.
27743
27744 2009-10-18  Bruno Haible  <bruno@clisp.org>
27745
27746         New module 'ctype'.
27747         * lib/ctype.in.h: New file.
27748         * m4/ctype.m4: New file.
27749         * modules/ctype: New file.
27750         * doc/posix-headers/ctype.texi: Mention the new module.
27751
27752 2009-10-18  Jim Meyering  <meyering@redhat.com>
27753
27754         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27755         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27756         right after its initialization, rather than farther down.
27757         Keeping these in close proximity makes it easier to ensure
27758         that each such variable is initialized.  E.g.,
27759
27760             LIB_CLOCK_GETTIME=
27761             AC_SUBST([LIB_CLOCK_GETTIME])
27762
27763         This change also increments these serial numbers.
27764         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27765         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27767
27768 2009-10-18  Bruno Haible  <bruno@clisp.org>
27769
27770         Don't let environment variables perturb build.
27771         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27772         (gl_PREREQ_GETHRXTIME): ... not here.
27773
27774 2009-10-18  Bruno Haible  <bruno@clisp.org>
27775
27776         Avoid symlink attack in localcharset module.
27777         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27778         (O_NOFOLLOW): Define fallback.
27779         (get_charset_aliases): Don't open the file if it is a symbolic link.
27780         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27781         gl_FCNTL_H.
27782         (gl_FCNTL_H): Require it.
27783         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27784         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27785         Reported by Fergal Glynn <fglynn@veracode.com>.
27786
27787 2009-10-18  Bruno Haible  <bruno@clisp.org>
27788
27789         Implement nproc for mingw.
27790         * lib/nproc.c: Include <windows.h>
27791         (num_processors): On native Windows platforms, try GetSystemInfo.
27792
27793 2009-10-18  Bruno Haible  <bruno@clisp.org>
27794
27795         Implement nproc for IRIX.
27796         * lib/nproc.c: Include <sys/sysmp.h>.
27797         (num_processors): On IRIX systems, try sysmp.
27798         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27799
27800 2009-10-18  Bruno Haible  <bruno@clisp.org>
27801
27802         Implement nproc for HP-UX.
27803         * lib/nproc.c: Include <sys/pstat.h>
27804         (num_processors): On HP-UX systems, try pstat_getdynamic.
27805         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27806         pstat_getdynamic.
27807
27808 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27809             Bruno Haible  <bruno@clisp.org>
27810
27811         Implement nproc for NetBSD, OpenBSD.
27812         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27813         (ARRAY_SIZE): New macro.
27814         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27815         * m4/nproc.m4: New file.
27816         * modules/nproc (Files): Add m4/nproc.m4.
27817         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27818         (Makefile.am): Instead, augment lib_SOURCES.
27819
27820 2009-10-18  Bruno Haible  <bruno@clisp.org>
27821
27822         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27823         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27824         sys/param.h.
27825
27826 2009-10-16  Eric Blake  <ebb9@byu.net>
27827
27828         utimensat: new module
27829         * modules/utimensat: New file.
27830         * lib/utimensat.c (utimensat): Likewise.
27831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27832         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27833         so we can work around Linux bugs.
27834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27835         * modules/sys_stat (Makefile.am): Substitute them.
27836         * lib/sys_stat.in.h (utimensat): Declare it.
27837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27839         * modules/utimensat-tests: New test.
27840         * tests/test-utimensat.c: Likewise.
27841
27842         utimens: let lutimens work on non-symlinks
27843         * lib/utimens.c (lutimens): Fall back to utimens rather than
27844         failing with ENOSYS, when file is not a symlink.
27845         (utimens): Reduce redirection.
27846         * tests/test-lutimens.h (test_lutimens): Update test to cover
27847         non-symlinks.
27848         * tests/test-utimens.h (test_utimens): Update test to cover
27849         symlinks.
27850         * tests/test-utimens.c (main): Update caller.
27851
27852         utimens: cache whether utimensat syscall works
27853         * lib/utimens.c (utimensat_works_really): New cache variable.
27854         (fdutimens, lutimens): Use it to avoid failing syscall.
27855
27856         test-stat-time, test-utimens: improve portability
27857         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27858         ext4 on alpha, and for cygwin.
27859         * tests/test-utimens-common.h: New file.
27860         (nap): Factor delays into single function.
27861         * tests/test-lutimens.h (test_lutimens): Use new header.
27862         * tests/test-futimens.h (test_futimens): Likewise.
27863         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27864         timestamps to occur from same machine, as was done previously for
27865         test_utimens.
27866         * modules/utimens-tests (Files): Ship new file.
27867         * modules/futimens-tests (Files): Likewise.
27868         Reported in part by Jim Meyering.
27869
27870         sys_stat: sort replacement declarations
27871         * lib/sys_stat.in.h: Sort declarations.
27872         * lib/futimens.c (futimens): Fix typo.
27873
27874 2009-10-15  Jim Meyering  <meyering@redhat.com>
27875
27876         don't let environment settings perturb build
27877         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27878         could cause a configure-time and/or build-time malfunction.
27879         Typically, a configure-time function-in-library test is performed
27880         via code like this:
27881
27882           LIB_VAR=
27883           AC_SUBST([LIB_VAR])
27884           prefix_saved_LIBS=$LIBS
27885             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27886                        [test "$ac_cv_search_FUNC" = "none required" ||
27887                         LIB_VAR=$ac_cv_search_FUNC])
27888           LIBS=$prefix_saved_LIBS
27889
27890         However, in each of the files affected by this change, the LIB_VAR=
27891         initialization was omitted.  Thus, when set in the environment, its
27892         value would propagate into generated Makefiles when FUNC is not found
27893         in LIB_NAME.
27894         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27895         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27897
27898 2009-10-14  Eric Blake  <ebb9@byu.net>
27899
27900         fchdir: avoid infinite recursion in mingw
27901         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27902         recursing.
27903
27904         test-stat-time: port to mingw
27905         * tests/test-stat-time.c (force_unlink): Return a value.
27906         (test_ctime) [W32]: Fix compilation error.
27907         (nap): Don't call usleep with too large an argument.  Use
27908         force_unlink.
27909         * doc/pastposix-functions/usleep.texi (usleep): Document the
27910         portability issue.
27911
27912 2009-10-13  Jim Meyering  <meyering@redhat.com>
27913
27914         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27915         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27916         * modules/pipe-filter-ii: Likewise.
27917         * modules/sys_socket-tests: Likewise.
27918         * modules/tsearch-tests: Likewise.
27919         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27920         (check): Depend on it.
27921
27922 2009-10-12  Eric Blake  <ebb9@byu.net>
27923
27924         utimens-tests: port to NFS file systems
27925         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27926         comparisons to avoid spurious failures from timestamp drift
27927         between NFS machines.
27928
27929 2009-10-12  Eric Blake  <ebb9@byu.net>
27930
27931         stat-time-tests: minor cleanups
27932         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27933         * tests/test-stat-time.c (nap): Separate assignment from call.
27934         Suggested by Paolo Bonzini and Bruno Haible.
27935
27936         sys_stat: guarantee struct timespec
27937         * lib/sys_stat.in.h (includes): Always include <time.h>
27938         * modules/sys_stat (Depends-on): Add time.
27939         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27940         mode_t permission values.
27941         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27942         get at subsecond timestamps.
27943
27944 2009-10-10  Eric Blake  <ebb9@byu.net>
27945
27946         futimens: new module
27947         * modules/futimens: New file.
27948         * lib/futimens.c (futimens): Likewise.
27949         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27950         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27951         we can work around Linux bugs.
27952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27953         * modules/sys_stat (Makefile.am): Substitute them.
27954         * lib/sys_stat.in.h (futimens): Declare it.
27955         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27956         * doc/posix-functions/futimens.texi (futimens): Likewise.
27957         * modules/futimens-tests: New test.
27958         * tests/test-futimens.c: Likewise.
27959
27960         utimens: introduce fdutimens
27961         * lib/utimens.h (fdutimens): New prototype.
27962         * lib/utimens.c (gl_futimens): Move guts...
27963         (fdutimens): ...to new interface.
27964         * tests/test-utimens.c (do_fdutimens): Use it.
27965
27966         utimens: add UTIME_NOW and UTIME_OMIT support
27967         * lib/utimens.c (validate_timespec, update_timespec): New helper
27968         functions.
27969         (gl_futimens, lutimens): Use them.
27970         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27971         stdbool, sys_stat.
27972         (Link): Mention resulting library dependency.
27973         * modules/utimecmp (Link): Likewise.
27974         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27975         (Makefile.am): Pick up library dependency.
27976         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27977         definition.
27978         * tests/test-sys_stat.c: Test the definitions.
27979         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27980         * NEWS: Document library dependency.
27981
27982         utimecmp: support symlink timestamps
27983         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27984         hashing when possible.  Use pathconf when available.
27985         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27986         * modules/utimecmp (Depends-on): Add lstat.
27987
27988         utimens: add lutimens interface
27989         * lib/utimens.c (lutimens): New function.
27990         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27991         * lib/utimens.h (lutimens): Declare new interface.
27992         * tests/test-utimens.c (main): Enhance test.
27993         * tests/test-lutimens.h (test_lutimens): New file.
27994         * modules/utimens-tests (Files): Distribute it.
27995         (Depends-on): Add symlink.
27996         (configure.ac): Check for usleep.
27997
27998         utimens: validate futimens usage
27999         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28000         fewer syscalls on failure later on.  Avoid compiler warning on
28001         mingw.
28002         * modules/utimens (Depends-on): Add dup2.
28003
28004         utimens: add test
28005         * modules/utimens-tests: New test.
28006         * tests/test-utimens.h: New file.
28007         * tests/test-futimens.h: Likewise.
28008         * tests/test-utimens.c: Likewise.
28009
28010         doc: mention timestamp portability issues
28011         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28012         instead.
28013         * doc/posix-functions/utime.texi (utime): Likewise.
28014         * doc/posix-functions/utimes.texi (utimes): Likewise.
28015         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28016         instead.
28017         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28018         module.
28019         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28020         Mention weakness with symlink timestamps.
28021         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28022         to utimensat/futimens instead.
28023         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28024
28025         test-dup2: enhance test
28026         * tests/test-dup2.c (main): Also check AT_FDCWD.
28027
28028         test-stat-time: avoid more spurious failures
28029         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28030         xfs; and avoid race if the two timestamps cross quantization edge.
28031
28032         relocatable: prefer 'file system' over 'filesystem'
28033         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28034         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28035         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28036         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28037         * lib/relocatable.c (compute_curr_prefix): Likewise.
28038
28039 2009-10-10  Jim Meyering  <meyering@redhat.com>
28040
28041         stat-time-tests: check for the usleep function
28042         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28043
28044 2009-10-10  Bruno Haible  <bruno@clisp.org>
28045
28046         * modules/xnanosleep: Put the Link section after the Include section.
28047
28048 2009-10-09  Eric Blake  <ebb9@byu.net>
28049
28050         dup2: work around FreeBSD 6.1 bug
28051         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28052         * doc/posix-functions/dup2.texi (dup2): Document it.
28053         Reported by Nelson H. F. Beebe and Jim Meyering.
28054
28055         test-stat-time: port to buggy NFS clients
28056         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28057         (test_ctime): Also skip test if mtime and ctime are skewed.
28058
28059         maint: prefer 'file system' over 'filesystem'
28060         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28061         * doc/posix-functions/lstat.texi (lstat): Likewise.
28062         * lib/file-has-acl.c (file_has_acl): Likewise.
28063         * lib/fwriteerror.c [TEST]: Likewise.
28064         * tests/test-areadlink.h (test_areadlink): Likewise.
28065         * tests/test-areadlinkat-with-size.c (main): Likewise.
28066         * tests/test-areadlinkat.c (main): Likewise.
28067         * tests/test-canonicalize-lgpl.c (main): Likewise.
28068         * tests/test-canonicalize.c (main): Likewise.
28069         * tests/test-fstatat.c (main): Likewise.
28070         * tests/test-linkat.c (main): Likewise.
28071         * tests/test-lstat.h (test_lstat_func): Likewise.
28072         * tests/test-mkdir.h (test_mkdir): Likewise.
28073         * tests/test-readlink.h (test_readlink): Likewise.
28074         * tests/test-remove.c (main): Likewise.
28075         * tests/test-rename.h (test_rename): Likewise.
28076         * tests/test-renameat.c (main): Likewise.
28077         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28078         * tests/test-symlink.h (test_symlink): Likewise.
28079         * tests/test-symlinkat.c (main): Likewise.
28080         * tests/test-unlink.h (test_unlink_func): Likewise.
28081         * tests/test-unlinkat.c (main): Likewise.
28082
28083         maint: make realtime library usage explicit
28084         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28085         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28086         * modules/settime (Link): Likewise.
28087         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28088
28089         test-stat-time: speed up execution
28090         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28091         warning on mingw.
28092         (nap): New helper function.
28093         (prepare_test): Use it to reduce sleep time.
28094         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28095         execution.
28096         * modules/stat-time-tests (configure.ac): Check for usleep.
28097
28098 2009-10-09  Jim Meyering  <meyering@redhat.com>
28099
28100         selinux-h: always use getfilecon wrappers
28101         * lib/getfilecon.c: New file.
28102         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28103         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28104         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28105         (fgetfilecon): Provide a stub.
28106         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28107         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28108         file unconditionally.
28109         When <selinux/selinux.h> is found, arrange to use wrappers.
28110         * modules/selinux-h (Files): Add getfilecon.c.
28111         (Makefile.am): Substitute include-next-related bits
28112         into the now-always-generated selinux/selinux.h file.
28113         * doc/glibc-functions/lgetfilecon.texi: New file.
28114         * doc/glibc-functions/fgetfilecon.texi: New file.
28115         * doc/glibc-functions/getfilecon.texi: New file.
28116         * doc/glibc-functions/getfilecon-desc.texi: New file.
28117         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28118         which to pull in the new files.
28119         * MODULES.html.sh (Misc): Add selinux-h.
28120
28121 2009-10-08  Jim Meyering  <meyering@redhat.com>
28122
28123         unistd: fix comment typo
28124         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28125
28126 2009-10-08  Eric Blake  <ebb9@byu.net>
28127
28128         areadlink: use SIZE_MAX consistently
28129         * modules/areadlink (Depends-on): Add stdint.
28130         * modules/areadlink-with-size (Depends-on): Likewise.
28131         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28132         gives NULL; drop sys/types, since unistd gives size_t; and add
28133         stdint for SIZE_MAX.
28134         (SIZE_MAX): Rely on headers.
28135         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28136         and add stdint.
28137         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28138         (SIZE_MAX): Likewise.
28139         (INITIAL_BUF_SIZE): Turn into enum.
28140         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28141
28142 2009-10-08  Jim Meyering  <meyering@redhat.com>
28143
28144         areadlinkat: avoid compilation failure
28145         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28146         Fix typo in comment.
28147
28148 2009-10-07  Eric Blake  <ebb9@byu.net>
28149
28150         areadlinkat-with-size: new module
28151         * modules/areadlinkat-with-size: New module.
28152         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28153         * lib/areadlink.h (areadlinkat): Declare it.
28154         * MODULES.html.sh (File system functions): Mention it.
28155         * modules/areadlinkat-with-size-tests: New test.
28156         * tests/test-areadlinkat-with-size.c: New file.
28157
28158         xreadlinkat: new module
28159         * modules/xreadlinkat: New module.
28160         * lib/xreadlinkat.c (xreadlinkat): New file.
28161         * lib/xreadlink.h (xreadlinkat): Declare it.
28162         * MODULES.html.sh (File system functions): Mention it.
28163
28164         areadlinkat: new module
28165         * lib/at-func.c (FUNC_FAIL): New define.
28166         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28167         * modules/areadlinkat: New module.
28168         * lib/linkat.c (areadlinkat): Move...
28169         * lib/areadlinkat.c (areadlinkat): ...to new file.
28170         * lib/areadlink.h (areadlinkat): Declare it.
28171         * modules/linkat (Depends-on): Add areadlinkat.
28172         * MODULES.html.sh (File system functions): Mention it.
28173         * modules/areadlinkat-tests: New test.
28174         * tests/test-areadlinkat.c: New file.
28175
28176         areadlink, areadlink-with-size: add tests
28177         * modules/areadlink-tests: New test.
28178         * modules/areadlink-with-size-tests: Likewise.
28179         * tests/test-areadlink.h: New file.
28180         * tests/test-areadlink.c: Likewise.
28181         * tests/test-areadlink-with-size.c: Likewise.
28182
28183         maint: minor cleanups
28184         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28185         _UNUSED_PARAMETER_ instead.
28186         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28187         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28188         * modules/linkat-tests (Files): Distribute test-link.h.
28189
28190         openat, utimens: whitespace cleanup
28191         * lib/openat.c: Prefer space throughout, rather than mix of 8
28192         spaces vs. tabs.
28193         * lib/at-func.c: Likewise.
28194         * lib/utimens.c: Likewise.
28195
28196         openat: avoid using wrong fd
28197         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28198         working directory chooses same fd.
28199         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28200
28201         mkdir, mkdirat: fix cygwin 1.5.x bug
28202         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28203         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28204         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28205         bug.
28206         (gl_PREREQ_MKDIR): Delete unused macro.
28207         * modules/mkdir (Files): Track file rename.
28208         (configure.ac): Update macro name.
28209         * modules/openat (Depends-on): Add mkdir.
28210         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28211
28212         mkdir, mkdirat: add tests
28213         * modules/mkdir-tests: New test.
28214         * tests/test-mkdir.h: New file.
28215         * tests/test-mkdir.c: Likewise.
28216         * tests/test-mkdirat.c: Likewise.
28217         * modules/openat-tests (Files): Add new files.
28218         (Makefile.am): Run new test.
28219
28220 2009-10-06  Eric Blake  <ebb9@byu.net>
28221
28222         doc: tweak *at function documentation
28223         * doc/posix-functions/faccessat.texi (faccessat): Mention
28224         known issue with replacement.
28225         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28226         * doc/posix-functions/linkat.texi (linkat): Likewise.
28227         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28228         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28229         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28230         * doc/posix-functions/renameat.texi (renameat): Likewise.
28231         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28232
28233         openat: fix GNU/Hurd bug in unlinkat
28234         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28235         broken.
28236         * doc/posix-functions/unlink.texi (unlink): Document this.
28237         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28238
28239         fdopendir: fix GNU/Hurd bug
28240         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28241         allowing non-directory fds.
28242         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28244         * modules/dirent (Makefile.am): Substitute it.
28245         * lib/dirent.in.h (fdopendir): Declare replacement.
28246         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28247         * tests/test-fdopendir.c (main): Test something other than
28248         /dev/null, since on Hurd that behaves like a directory.
28249
28250         test-symlink: port to GNU/Hurd
28251         * tests/test-symlink.h (test_symlink): Relax expected errno.
28252
28253         doc: tweak more cygwin information
28254         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28255         now compatible with glibc.
28256         * doc/posix-functions/getopt.texi (getopt): Likewise.
28257
28258         getopt-gnu: add another test
28259         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28260         guarantee behavior relied on by m4.
28261         * tests/test-getopt.c (main): Use it.
28262         * modules/getopt-posix-tests (Depends-on): Add setenv.
28263         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28264
28265         getopt: fix compilation on darwin
28266         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28267         include.
28268         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28269         Reported by Ludovic Courtès.
28270
28271 2009-10-06  Bruno Haible  <bruno@clisp.org>
28272
28273         * modules/size_max (Description): Discourage its use.
28274         Reported by Simon Josefsson.
28275
28276 2009-10-06  Jim Meyering  <meyering@redhat.com>
28277
28278         linkat: avoid compilation failure
28279         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28280
28281 2009-10-05  Eric Blake  <ebb9@byu.net>
28282
28283         linkat: support Linux 2.6.17
28284         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28285         linkat on Linux, but allow cache variable override.
28286         * lib/linkat.c (rpl_linkat): Define override.
28287         * modules/linkat (Depends-on): Add symlinkat.
28288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28289         * modules/unistd (Makefile.am): Substitute it.
28290         * lib/unistd.in.h (linkat): Declare replacement.
28291         Reported by Pádraig Brady.
28292
28293         quotearg: port test to systems with C.UTF-8 locale
28294         * tests/test-quotearg.c (struct result_strings): Add another
28295         member, differentiating between C.ASCII and C.UTF-8 handling.
28296         (compare_strings): Add parameter.
28297         (main): Adjust all callers.
28298
28299         getopt: avoid clash with FreeBSD _getopt_internal
28300         * lib/getopt.in.h (_getopt_internal): Override the name.
28301         * lib/getopt_int.h (includes): Pick up any overrides.
28302         Reported by Reuben Thomas.
28303
28304         hash: allow C89 compilation
28305         * lib/hash.c (check_tuning): Move declaration before statement.
28306         Reported by Reuben Thomas.
28307
28308 2009-10-05  Karl Berry  <karl@gnu.org>
28309
28310         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28311
28312 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28313             Bruno Haible  <bruno@clisp.org>
28314
28315         * lib/uname.c (uname): Use a table-driven algorithm to compute
28316         Windows NT versions.
28317
28318 2009-10-04  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28321         program_invocation_short_name.
28322         * modules/progname (configure.ac): Test for presence of
28323         program_invocation_short_name.
28324         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28325
28326 2009-10-04  Bruno Haible  <bruno@clisp.org>
28327
28328         * lib/progname.c (set_program_name): Fix comment.
28329         Reported by Jim Meyering.
28330
28331 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28332             Bruno Haible  <bruno@clisp.org>
28333
28334         * lib/uname.c: Include <string.h>.
28335         (uname): Do only one call to GetVersionEx in the common case.
28336
28337 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28338             Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28341         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28342         (uname): Add support for Windows CE and various non-x86 CPU types.
28343
28344 2009-10-03  Bruno Haible  <bruno@clisp.org>
28345
28346         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28347         invocation to tests/configure.ac.
28348         Reported by Ian Beckwith <ianb@erislabs.net>.
28349
28350 2009-10-02  Eric Blake  <ebb9@byu.net>
28351
28352         fchdir: avoid compiler warning
28353         * lib/fchdir.c (canonicalize_file_name)
28354         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28355
28356         test-open: support mingw errno values
28357         * tests/test-open.h (test_open): Relax test.
28358         * tests/test-fopen.h (test_fopen): Likewise.
28359         * tests/test-openat-safer.c (main): Likewise.
28360
28361         open: fix opening directory on mingw
28362         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28363
28364         test-open: on GNU/Hurd, /dev/null is a directory
28365         * tests/test-fopen.h (main): Rename...
28366         (test_fopen): ...to this.  Use a guaranteed non-directory when
28367         confirming open behavior on trailing slash.
28368         * tests/test-openat-safer.c (main): Likewise.
28369         * tests/test-open.h (main): Likewise....
28370         (test_open): ...to this.
28371         * tests/test-fopen.c (main): Adjust caller.
28372         * tests/test-fopen-safer.c (main): Likewise.
28373         * tests/test-open.c (main): Likewise.
28374         * tests/test-fcntl-safer.c (main): Likewise.
28375         Reported by Samuel Thibault.
28376
28377         rename, fchdir: don't ignore chdir failure
28378         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28379         * lib/rename.c (rpl_rename) [W32]: Likewise.
28380         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28381         an empty destination directory if source cannot be renamed,
28382         although there is still possibility for failure.
28383         * doc/posix-functions/rename.texi (rename): Document the race.
28384         Reported by Jim Meyering.
28385
28386         maint: cleanup whitespace in recent commits
28387         * lib/rename.c (rpl_rename): Remove tabs.
28388         * tests/test-link.h (test_link): Likewise.
28389         * lib/fchdir.c (get_name): Likewise.
28390         Reported by Jim Meyering.
28391
28392 2009-10-02  Ben Pfaff  <blp@gnu.org>
28393
28394         relocatable-prog-wrapper: Add missing dependency on
28395         double-slash-root.
28396         * modules/relocatable-prog-wrapper: Add dependency.
28397         Reported by Ian Beckwith <ianb@erislabs.net>.
28398
28399 2009-10-02  Eric Blake  <ebb9@byu.net>
28400
28401         renameat: fix Solaris bugs
28402         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28403         needed fixing.
28404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28405         * modules/stdio (Makefile.am): Substitute it.
28406         * lib/stdio.in.h (renameat): Declare replacement.
28407         * lib/renameat.c (rpl_renameat): Implement fix.
28408
28409         renameat: new module
28410         * modules/renameat: New file.
28411         * lib/renameat.c (renameat): Likewise.
28412         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28414         * modules/stdio (Makefile.am): Substitute them.
28415         * lib/stdio.in.h (renameat): Declare it.
28416         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28417         * doc/posix-functions/renameat.texi (renameat): Likewise.
28418         * modules/renameat-tests: New test.
28419         * tests/test-renameat.c: Likewise.
28420
28421         rename: fix mingw bugs
28422         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28423         directory overwrite bugs.
28424
28425         rename: fix another cygwin 1.5 bug
28426         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28427         checks.
28428         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28429         unnecessary cygwin workarounds.  Also work around bug with moving
28430         full directory onto an empty one.
28431         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28432
28433         rename-dest-slash: merge into rename module
28434         * modules/rename-dest-slash (Status): Mark obsolete.
28435         (Depends-on): Add rename.
28436         (Files): Let rename do it all.
28437         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28438         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28439         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28440         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28441         * lib/rename.c (rpl_rename): Update comments.
28442
28443         rename: fix cygwin 1.5.x bugs
28444         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28445         * lib/rename.c (rpl_rename): Work around them.
28446         * modules/rename (Depends-on): Add same-inode.
28447
28448         rename: fix Solaris 10 bug
28449         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28450         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28451         was the only bug.
28452
28453         rename: fix Solaris 9 bug
28454         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28455         on non-directory.  Avoid calling exit.
28456         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28457         strdup.
28458         * modules/rename-tests (Depends-on): Drop lstat.
28459         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28460         (gl_PREREQ_RENAME): Delete unused macro.
28461
28462         rename-dest-slash: fix NetBSD bug
28463         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28464         links.
28465         * modules/rename-dest-slash (Depends-on): Add same-inode.
28466
28467         rename-tests: new test, exposes several platform bugs
28468         * modules/rename-tests: New file.
28469         * tests/test-rename.h: Likewise.
28470         * tests/test-rename.c: Likewise.
28471         * doc/posix-functions/rename.texi (rename): Improve documentation,
28472         including bugs that will eventually be fixed in gnulib.
28473
28474 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28475
28476         * lib/uname.c: Include <stdlib.h>
28477         (uname): Assume version info is available.
28478
28479 2009-10-02  Jim Meyering  <meyering@redhat.com>
28480
28481         gnu-web-doc-update: correct --help output
28482         * build-aux/gnu-web-doc-update: Make --help output relevant.
28483
28484         gnu-web-doc-update: add standard options
28485         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28486
28487         gnu-web-doc-update: New module.
28488         Use this script to automatically update the on-line web documentation
28489         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28490         * modules/gnu-web-doc-update: New file, from coreutils.
28491         * build-aux/gnu-web-doc-update: New script.
28492
28493 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28494
28495         link: LoadLibrary is not needed.
28496         * lib/link.c: Use GetModuleHandle.
28497
28498 2009-10-01  Eric Blake  <ebb9@byu.net>
28499
28500         getopt: bump serial number
28501         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28502         change.
28503
28504         tests: tighten link, rmdir, and remove tests
28505         * tests/test-link.h (includes): No need to use <config.h> here.
28506         Clean up if directory hard link was created, otherwise test for
28507         trailing '.'.
28508         * tests/test-linkat.c (main): Simplify.
28509         * tests/test-remove.c (main): Enhance test for trailing '.'.
28510         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28511
28512 2009-10-01  Jim Meyering  <meyering@redhat.com>
28513
28514         maint.mk: requiring "make major" was annoying, for a "minor" release.
28515         What is intended is "stable", to contrast with alpha and beta,
28516         so require "make stable", not "make major".
28517         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28518         (get_tool_versions): Likewise.
28519         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28520
28521 2009-09-30  Ben Pfaff  <blp@gnu.org>
28522
28523         Fix broken build of replacement for Windows tmpfile().
28524         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28525         flags argument added along with the 'mkostemp' module.
28526
28527 2009-09-28  Bruno Haible  <bruno@clisp.org>
28528
28529         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28530         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28531         to 'remove_elt'.
28532         (gl_list_remove): Update.
28533         * lib/gl_list.c (gl_list_remove): Update.
28534         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28535         to 'remove_elt'.
28536         (gl_oset_remove): Update.
28537         * lib/gl_list.c (gl_oset_remove): Update.
28538         Reported by Eric Blake.
28539
28540 2009-09-28  Eric Blake  <ebb9@byu.net>
28541
28542         doc: mention yet more cygwin 1.7 status
28543         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28544         cygwin.
28545         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28546         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28547
28548         argp: fix test failure
28549         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28550         that are not upper-case.  Pass correct range to tolower.
28551
28552 2009-09-27  Jim Meyering  <meyering@redhat.com>
28553
28554         test-yesno: work around sparc-dash here-document infelicity
28555         Without this change, the literal \177 byte in a here document
28556         would make dash 0.5.5.1-3 access uninitialized memory.
28557         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28558         Instead, use a marker, "@", and filter through tr to create the desired
28559         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28560
28561 2009-09-27  Bruno Haible  <bruno@clisp.org>
28562
28563         Disable untested support for new flavours of ACLs on AIX.
28564         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28565         progress.
28566         * lib/set-mode-acl.c (qset_acl): Likewise.
28567
28568 2008-12-07  Bruno Haible  <bruno@clisp.org>
28569
28570         Add support for new flavours of ACLs on AIX. (Untested.)
28571         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28572         (file_has_acl): Add support for newer AIX.
28573         * lib/set-mode-acl.c (qset_acl): Likewise.
28574         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28575         Rainer Tammer <tammer@tammer.net>.
28576
28577 2009-09-26  Eric Blake  <ebb9@byu.net>
28578
28579         argp: fix compilation of getopt
28580         * lib/getopt.in.h (includes): Use different guard than glibc.
28581         Reported by Sergey Poznyakoff.
28582
28583         doc: mention more cygwin 1.7 status
28584         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28585         bug.
28586         * doc/posix-functions/execl.texi (execl): Likewise.
28587         * doc/posix-functions/execle.texi (execle): Likewise.
28588         * doc/posix-functions/execlp.texi (execlp): Likewise.
28589         * doc/posix-functions/execv.texi (execv): Likewise.
28590         * doc/posix-functions/execve.texi (execve): Likewise.
28591         * doc/posix-functions/execvp.texi (execvp): Likewise.
28592         * doc/glibc-functions/canonicalize_file_name.texi
28593         (canonicalize_file_name): Cygwin 1.7 now provides this.
28594         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28595         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28596         on AT_SYMLINK_NOFOLLOW.
28597
28598 2009-09-24  Eric Blake  <ebb9@byu.net>
28599
28600         test-linkat: make test more robust
28601         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28602
28603         getopt: fix inclusion guards for cygwin
28604         * modules/getopt-posix (Depends-on): Add include-next.
28605         (Makefile.am): Substitute more items in replacement header.
28606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28607         <getopt.h>.
28608         * lib/getopt.in.h (includes): Use split inclusion guard, and
28609         prefer <getopt.h> over include <unistd.h> when one is present.
28610         (option): Also override name of 'struct option'.
28611
28612         same-inode: revert prior change; it is not yet ready
28613         * NEWS: Undo mention of this change.
28614         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28615         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28616         * lib/cycle-check.c (cycle_check): Likewise.
28617         * lib/same.c (same_name): Likewise.
28618         * lib/at-func2.c (at_func2): Likewise.
28619
28620 2009-09-23  Eric Blake  <ebb9@byu.net>
28621
28622         linkat: new module
28623         * modules/linkat: New file.
28624         * lib/at-func2.c (at_func2): Likewise.
28625         * lib/linkat.c (linkat): Likewise.
28626         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28627         * lib/openat-priv.h (at_func2): Add declaration.
28628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28629         * modules/unistd (Makefile.am): Substitute them.
28630         * lib/unistd.in.h (linkat): Declare it.
28631         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28632         * doc/posix-functions/linkat.texi (linkat): Likewise.
28633         * doc/posix-functions/link.texi (link): Tweak wording.
28634         * tests/test-link.c (main): Move guts...
28635         * tests/test-link.h (test_link): ...into new file.
28636         * modules/linkat-tests: New test.
28637         * tests/test-linkat.c: Likewise.
28638         * modules/link-tests (Files): Ship new file.
28639         (Depends-on): Add stdbool.
28640
28641         dirname: add library-safe mdir_name
28642         * lib/dirname.h (mdir_name): New prototype.
28643         * lib/dirname.c (dir_name): Move guts...
28644         (mdir_name): ...to new function that avoids xalloc_die.
28645
28646         fchdir: another mingw fix
28647         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28648         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28649         on mingw (where it has not yet been ported), and make it optional
28650         elsewhere.
28651         (_gl_register_fd): Use it.
28652
28653         same-inode: make SAME_INODE tri-state, to port to mingw
28654         * NEWS: Mention this change.
28655         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28656         st_ino always being 0.
28657         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28658         * lib/cycle-check.c (cycle_check): Likewise.
28659         * lib/same.c (same_name): Likewise.
28660
28661         lstat: avoid mingw compilation error
28662         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28663         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28664         lstat ourselves.
28665         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28666         was adequate.
28667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28668         the checks for lstat.
28669         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28670
28671         link: fix test failure on Solaris 9
28672         * lib/link.c (rpl_link): Don't assume link will catch bogus
28673         trailing slash on source.
28674
28675         test-symlinkat: enhance test
28676         * tests/test-readlink.c (main): Move guts...
28677         * tests/test-readlink.h (test_readlink): ...into new file.
28678         * tests/test-symlink.c (main): Move guts...
28679         * tests/test-symlink.h (test_symlink): ...into new file.
28680         * tests/test-symlinkat.c (main): Use new files for further
28681         coverage.
28682         (do_symlink, do_readlink): New helper functions.
28683         * modules/symlink-tests (Files): Ship new file.
28684         (Depends-on): Add stdbool.
28685         * modules/readlink-tests (Files): Ship new file.
28686         (Depends-on): Add stdbool.
28687         * modules/symlinkat-tests (Files): Use new files.
28688
28689 2009-09-23  Eric Blake  <ebb9@byu.net>
28690
28691         readlink: document portability issue with symlink length
28692         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28693         systems have bogus st_size on symlinks, and mention the
28694         areadlink-with-size module.
28695         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28696         * doc/posix-functions/readlink.texi (readlink): Mention the
28697         areadlink module, and ERANGE failure.
28698         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28699         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28700
28701         readlink: fix Solaris 9 bug with trailing slash
28702         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28703         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28704         * doc/posix-functions/readlink.texi (readlink): Document this.
28705         * modules/readlink-tests: New test.
28706         * tests/test-readlink.c: Likewise.
28707
28708         readlink: fix cygwin 1.5.x bug with return type
28709         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28710         * lib/unistd.in.h (readlink): Use ssize_t.
28711         * lib/readlink.c (readlink): Likewise.
28712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28713         * modules/unistd (Makefile.am): Substitute it.
28714         * lib/unistd.in.h (readlink): Declare replacement.
28715         * doc/posix-functions/readlink.texi (readlink): Document this.
28716
28717         symlink: use throughout gnulib
28718         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28719         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28720         symlink is not used.
28721         * modules/symlinkat (Depends-on): Add symlink.
28722         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28723         * modules/canonicalize-tests (Depends-on): Likewise.
28724         * modules/lstat-tests (Depends-on): Likewise.
28725         * modules/openat-tests (Depends-on): Likewise.
28726         * modules/remove-tests (Depends-on): Likewise.
28727         * modules/rmdir-tests (Depends-on): Likewise.
28728         * modules/unlink-tests (Depends-on): Likewise.
28729         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28730         * tests/test-canonicalize.c (symlink): Likewise.
28731         * tests/test-fstatat.c (symlink): Likewise.
28732         * tests/test-lstat.c (symlink): Likewise.
28733         * tests/test-remove.c (symlink): Likewise.
28734         * tests/test-rmdir.c (symlink): Likewise.
28735         * tests/test-unlink.c (symlink): Likewise.
28736         * tests/test-unlinkat.c (symlink): Likewise.
28737
28738         symlink: new module, for Solaris 9 bug
28739         * modules/symlink: New file.
28740         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28741         * lib/symlink.c: Likewise.
28742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28743         * modules/unistd (Makefile.am): Substitute them.
28744         * lib/unistd.in.h (symlink): Declare replacement.
28745         * MODULES.html.sh (File system functions): Mention it.
28746         * doc/posix-functions/symlink.texi (symlink): Likewise.
28747         * modules/symlink-tests: New test.
28748         * tests/test-symlink.c: Likewise.
28749
28750 2009-09-23  Bruno Haible  <bruno@clisp.org>
28751
28752         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28753         when needed.
28754         Test case: gnulib-tool --import --with-tests atexit inttypes.
28755         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28756
28757 2009-09-23  Bruno Haible  <bruno@clisp.org>
28758
28759         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28760         subcommand, not in a subshell.
28761
28762 2009-09-22  Eric Blake  <ebb9@byu.net>
28763
28764         unistd: sort replacement declarations
28765         * lib/unistd.in.h: Sort declarations.
28766
28767         open, openat: minor optimization
28768         * lib/open.c (open): If open succeeded, len is non-zero.
28769         * lib/openat.c (rpl_openat): Likewise.
28770
28771         link-follow: ensure correct result
28772         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28773         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28774         distinguish between possible failures.
28775
28776 2009-09-21  Eric Blake  <ebb9@byu.net>
28777
28778         fts: avoid compiler warning
28779         * lib/fts.c (dirent_inode_sort_may_be_useful)
28780         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28781
28782 2009-09-19  Bruno Haible  <bruno@clisp.org>
28783
28784         * lib/progreloc.c (canonicalize_file_name): New declaration.
28785
28786 2009-09-19  Eric Blake  <ebb9@byu.net>
28787
28788         link: fix quoting
28789         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28790
28791         openat: fix openat bugs on Solaris 9
28792         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28793         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28794         * modules/openat (Depends-on): Add open.
28795         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28796         * modules/fcntl-h (Makefile.am): Substitute it.
28797         * lib/fcntl.in.h (openat): Declare replacement.
28798         * doc/posix-functions/openat.texi (openat): Document this.
28799
28800         openat: move fstatat and unlinkat into correct files
28801         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28802         compiled.
28803         * lib/openat.c (fstatat, unlinkat): Move...
28804         * lib/fstatat.c (fstatat): ...into correct files.
28805         * lib/unlinkat.c (unlinkat): Likewise.
28806
28807         openat: fix unlinkat bugs on Solaris 9
28808         * lib/unlinkat.c (unlinkat): New file.
28809         * modules/openat (Depends-on): Add unlink.
28810         (Files): Distribute it.
28811         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28812         trailing slash behavior is broken.
28813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28814         * modules/unistd (Makefile.am): Substitute it.
28815         * lib/unistd.in.h (unlinkat): Declare replacement.
28816         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28817
28818         openat: fix fstatat bugs on Solaris 9
28819         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28820         stat.
28821         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28822
28823         test-unlinkat: enhance test, to expose Solaris 9 bug
28824         * tests/test-unlink.c (main): Factor guts...
28825         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28826         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28827         * tests/test-rmdir.c (main): Adjust caller.
28828         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28829         (unlinker): New helper function.
28830         (rmdirat): Enhance check.
28831         * modules/rmdir-tests (Depends-on): Add stdbool.
28832         * modules/unlink-tests (Depends-on): Likewise.
28833         (Files): Add test-unlink.h.
28834         * modules/openat-tests (Files): Likewise.
28835         (Depends-on): Add unlinkdir.
28836
28837         test-fstatat: new test, to expose Solaris 9 bugs
28838         * tests/test-stat.c (main): Factor guts...
28839         * tests/test-stat.h (test_stat_func): ...into new file.
28840         * tests/test-lstat.c (main): Factor guts...
28841         * tests/test-lstat.h (test_lstat_func): ...into new file.
28842         * tests/test-fstatat.c: New file.
28843         * modules/stat-tests (Files): Add test-stat.h.
28844         * modules/lstat-tests (Files): Add test-lstat.h.
28845         (Depends-on): Add stdbool.
28846         * modules/openat-tests (Depends-on): Add pathmax.
28847         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28848         (Makefile.am): Run new test.
28849
28850         remove: new module, for mingw and Solaris 9 bugs
28851         * modules/remove: New file.
28852         * lib/remove.c: Likewise.
28853         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28855         * modules/stdio (Makefile.am): Use them.
28856         * lib/stdio.in.h (remove): Declare replacement.
28857         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28858         * doc/posix-functions/remove.texi (remove): Likewise.
28859         * modules/remove-tests: New test.
28860         * tests/test-remove.c: Likewise.
28861
28862         unlink: new module, for Solaris 9 bug
28863         * modules/unlink: New file.
28864         * lib/unlink.c: Likewise.
28865         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28867         * modules/unistd (Makefile.am): Use them.
28868         * lib/unistd.in.h (stat): Declare replacement.
28869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28870         * doc/posix-functions/unlink.texi (unlink): Likewise.
28871         * modules/unlink-tests: New test.
28872         * tests/test-unlink.c: Likewise.
28873
28874         lstat: fix Solaris 9 bug
28875         * lib/lstat.c (lstat): Also check for trailing slash on
28876         non-symlink, non-directories.  Use stat module to simplify logic.
28877         * doc/posix-functions/lstat.texi (lstat): Document it.
28878         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28879         (configure.ac): Check for symlink.
28880         * tests/test-lstat.c (main): Add more tests.
28881
28882         stat: add as dependency to other modules
28883         * modules/chown (Depends-on): Add stat.
28884         * modules/euidaccess (Depends-on): Likewise.
28885         * modules/fchdir (Depends-on): Likewise.
28886         * modules/isdir (Depends-on): Likewise.
28887         * modules/link (Depends-on): Likewise.
28888         * modules/lstat (Depends-on): Likewise.
28889         * modules/mkdir-p (Depends-on): Likewise.
28890         * modules/modechange (Depends-on): Likewise.
28891         * modules/open (Depends-on): Likewise.
28892         * modules/readlink (Depends-on): Likewise.
28893         * modules/same (Depends-on): Likewise.
28894
28895         stat: fix Solaris 9 bug
28896         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28897         slash.
28898         * lib/stat.c (rpl_stat): Work around it.
28899         * doc/posix-functions/stat.texi (stat): Update documentation.
28900
28901         stat: new module, for mingw bug
28902         * modules/stat: New file.
28903         * lib/stat.c: Likewise.
28904         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28906         * modules/sys_stat (Makefile.am): Use them.
28907         * lib/sys_stat.in.h (stat): Declare replacement.
28908         * lib/openat.c (fstatat): Deal with lstat and stat being function
28909         macros.
28910         * modules/openat (Depends-on): Add inline.
28911         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28912         * doc/posix-functions/stat.texi (stat): Likewise.
28913         * modules/stat-tests: New test.
28914         * tests/test-stat.c: Likewise.
28915
28916 2009-09-19  Jim Meyering  <meyering@redhat.com>
28917
28918         syntax-check: detect unnecessary inclusion of canonicalize.h
28919         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28920
28921 2009-09-19  Eric Blake  <ebb9@byu.net>
28922
28923         canonicalize-lgpl: adjust clients to use correct header
28924         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28925         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28926         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28927         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28928         * lib/progreloc.c (includes): Likewise.
28929
28930 2009-09-19  Jim Meyering  <meyering@redhat.com>
28931
28932         test-posixtm.c: correct a comment
28933         * tests/test-posixtm.c: Correct first-line comment.
28934         Spotted by Eric Blake.
28935
28936 2009-09-16  Jim Meyering  <meyering@redhat.com>
28937
28938         posixtm-tests: make T const-correct; add a test case
28939         * tests/test-posixtm.c (T): Declare const.
28940         Add a test for -(2^31+1).
28941         Remove useless can-succeed-only-in-2002 test.
28942
28943         posixtm-tests: adjust the sole failing test
28944         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28945         expected output matches what mktime now produces.  Cross-checked via
28946         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28947
28948         posixtm: move #ifdef'd tests into a new module
28949         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28950         * tests/test-posixtm.c: ... this new file.
28951         * modules/posixtm-tests: New module.
28952
28953 2009-09-19  Eric Blake  <ebb9@byu.net>
28954
28955         openat: simplify use of at-func.c
28956         * lib/at-func.c (includes): Include prerequisites here, to
28957         simplify requirements on client files.
28958         * lib/openat-priv.h: Add double-inclusion guard.
28959         * lib/faccessat.c (includes): Simplify.
28960         * lib/fchmodat.c (includes): Likewise.
28961         * lib/fchownat.c (includes): Likewise.
28962         * lib/mkdirat.c (includes): Likewise.
28963         * lib/mkfifoat.c (includes): Likewise.
28964         * lib/symlinkat.c (includes): Likewise.
28965
28966         openat: allow return of fd 0
28967         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28968         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28969         unistd-safer.
28970         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28971         <fcntl.h>; this module does not leak fds.
28972         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28973         must be allowed to return 0, leaving openat_safer to add the
28974         safety.
28975         (openat_permissive): Avoid writing to just-opened fd 2 if
28976         restoring the current directory fails.
28977         * lib/openat-die.c (openat_restore_fail): Add comment.
28978         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28979         (save_cwd): Guarantee safe fd, but without use of open_safer.
28980         * tests/test-openat.c: New test.
28981         * modules/openat-tests (Files, Makefile.am): Distribute and build
28982         new file.
28983
28984         relocatable-prog-wrapper: fix build
28985         * modules/relocatable-prog-wrapper (Files): Update name of
28986         canonicalize m4 file, broken on 2009-09-17.
28987         Reported by emad hajjar <aleppos@hotmail.com>.
28988
28989 2009-09-19  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28992         * lib/safe-alloc.c: Likewise.
28993         Reported by Ian Beckwith <ianb@erislabs.net>.
28994
28995 2009-09-18  Bruno Haible  <bruno@clisp.org>
28996
28997         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28998         Reported by <erobles@sensacd.com.mx>.
28999
29000 2009-09-17  Eric Blake  <ebb9@byu.net>
29001
29002         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29003         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29004         slashes when checking if last component is missing.
29005         * tests/test-canonicalize.c (main): Test this.
29006
29007         canonicalize, canonicalize-lgpl: honor // if distinct from /
29008         * modules/canonicalize (Files): Add double-slash-root.m4.
29009         * modules/canonicalize-lgpl (Files): Likewise.
29010         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29011         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29012         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29013         fallback definition.
29014         (canonicalize_filename_mode): Use it to protect //.
29015         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29016         (__realpath): Likewise.
29017         * tests/test-canonicalize.c (main): Test this.
29018         * tests/test-canonicalize-lgpl.c (main): Likewise.
29019         * modules/canonicalize-tests (Depends-on): Add same-inode.
29020         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29021
29022         canonicalize-lgpl: fix glibc bug with trailing slash
29023         * m4/canonicalize-lgpl.m4: Move contents...
29024         * m4/canonicalize.m4: ...here.
29025         (gl_CANONICALIZE_LGPL): Factor realpath check...
29026         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29027         glibc 2.3.5 bug, fixed 2005-04-27.
29028         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29029         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29030         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29031         * modules/canonicalize-lgpl (Files): Manage file rename.
29032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29033         * modules/stdlib (Makefile.am): Substitute witness.
29034         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29035         is needed.
29036         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29037         replacement is required.
29038         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29039         * doc/glibc-functions/canonicalize_file_name.texi
29040         (canonicalize_file_name): Document this.
29041         * doc/posix-functions/realpath.texi (realpath): Likewise.
29042
29043         canonicalize-lgpl: reject non-directory with trailing slash
29044         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29045         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29046         catches failures in glibc 2.3.5.
29047         * tests/test-canonicalize.c (main): Likewise.
29048
29049         canonicalize-lgpl: use native realpath if it works
29050         * lib/canonicalize-lgpl.c (realpath): Guard with
29051         FUNC_REALPATH_WORKS.
29052         * lib/stdlib.in.h (realpath): Make declaration optional based on
29053         HAVE_REALPATH.
29054         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29055         native realpath works.
29056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29057         * modules/stdlib (Makefile.am): Substitute witness.
29058
29059         canonicalize, canonicalize-lgpl: use <stdlib.h>
29060         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29061         (Include): Mention <stdlib.h>.
29062         (configure.ac): Mention functions we provide.
29063         * modules/canonicalize (configure.ac): Likewise.
29064         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29065         realpath if canonicalize_file_name is missing.
29066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29067         * modules/stdlib (Makefile.am): Substitute witnesses.
29068         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29069         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29070         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29071         * NEWS: Document this.
29072         * doc/glibc-functions/canonicalize_file_name.texi
29073         (canonicalize_file_name): Likewise.
29074         * doc/posix-functions/realpath.texi (realpath): Likewise.
29075         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29076
29077         test-canonicalize: consolidate into single C program
29078         * tests/test-canonicalize.sh: Delete; move setup into...
29079         * tests/test-canonicalize.c (main): ...the program, making it
29080         easier to run in debugger.  Add some tests.
29081         * modules/canonicalize-tests (Files): Remove unused file.
29082         (Depends-on): Add progname.
29083         (configure.ac, Makefile.am): Simplify.
29084
29085         test-canonicalize-lgpl: consolidate into single C program
29086         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29087         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29088         easier to run in debugger.  Add some tests.
29089         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29090         (configure.ac, Makefile.am): Simplify.
29091
29092         canonicalize: avoid resolvepath
29093         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29094         unnecessary checks.
29095         * lib/canonicalize.c (includes): Simplify.
29096         (canonicalize_file_name): Drop resolvepath implementation.
29097         * modules/canonicalize (Depends-on): Drop filenamecat.
29098
29099         canonicalize: don't lose errno
29100         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29101         over calls to free.
29102
29103         canonicalize: simplify errno handling
29104         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29105         assignment.
29106
29107         canonicalize, canonicalize-lgpl: update module dependencies
29108         * modules/canonicalize (Depends-on): Add extensions, lstat,
29109         pathmax, stdlib.
29110         (Files): Drop pathmax.h.
29111         (configure.ac): Adjust macro name.
29112         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29113         lstat, stdlib, sys_stat.
29114         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29115         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29116         extensions.
29117         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29118         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29119         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29120         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29121         declaration, if available.
29122         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29123         we can rely on the readlink module.
29124         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29125         (includes): Use <unistd.h> unconditionally.
29126
29127 2009-09-17  Eric Blake  <ebb9@byu.net>
29128
29129         maint: make Include sections of modules consistent
29130         * modules/alloca: Use only header name; no need to list #include.
29131         * modules/alloca-opt: Likewise.
29132         * modules/arpa_inet: Likewise.
29133         * modules/canon-host: Likewise.
29134         * modules/configmake: Likewise.
29135         * modules/dirent: Likewise.
29136         * modules/eealloc: Likewise.
29137         * modules/environ: Likewise.
29138         * modules/fchdir: Likewise.
29139         * modules/fcntl: Likewise.
29140         * modules/fcntl-h: Likewise.
29141         * modules/gethrxtime: Likewise.
29142         * modules/gettime: Likewise.
29143         * modules/ignore-value: Likewise.
29144         * modules/inet_ntop: Likewise.
29145         * modules/inet_pton: Likewise.
29146         * modules/inttypes: Likewise.
29147         * modules/isnand-nolibm: Likewise.
29148         * modules/isnanf-nolibm: Likewise.
29149         * modules/mbchar: Likewise.
29150         * modules/mbfile: Likewise.
29151         * modules/mbiter: Likewise.
29152         * modules/mbuiter: Likewise.
29153         * modules/netdb: Likewise.
29154         * modules/netinet_in: Likewise.
29155         * modules/nproc: Likewise.
29156         * modules/pagealign_alloc: Likewise.
29157         * modules/poll: Likewise.
29158         * modules/printf-frexp: Likewise.
29159         * modules/pthread: Likewise.
29160         * modules/putenv: Likewise.
29161         * modules/random_r: Likewise.
29162         * modules/relocatable-prog: Likewise.
29163         * modules/search: Likewise.
29164         * modules/select: Likewise.
29165         * modules/selinux-h: Likewise.
29166         * modules/settime: Likewise.
29167         * modules/signal: Likewise.
29168         * modules/size_max: Likewise.
29169         * modules/socklen: Likewise.
29170         * modules/ssize_t: Likewise.
29171         * modules/stdarg: Likewise.
29172         * modules/stdbool: Likewise.
29173         * modules/stddef: Likewise.
29174         * modules/stdint: Likewise.
29175         * modules/stdio: Likewise.
29176         * modules/stdlib: Likewise.
29177         * modules/string: Likewise.
29178         * modules/strings: Likewise.
29179         * modules/sys_file: Likewise.
29180         * modules/sys_ioctl: Likewise.
29181         * modules/sys_select: Likewise.
29182         * modules/sys_socket: Likewise.
29183         * modules/sys_stat: Likewise.
29184         * modules/sys_time: Likewise.
29185         * modules/sys_times: Likewise.
29186         * modules/sys_utsname: Likewise.
29187         * modules/sys_wait: Likewise.
29188         * modules/sysexits: Likewise.
29189         * modules/time: Likewise.
29190         * modules/times: Likewise.
29191         * modules/tmpfile: Likewise.
29192         * modules/trim: Likewise.
29193         * modules/unistd: Likewise.
29194         * modules/wchar: Likewise.
29195         * modules/wctype: Likewise.
29196
29197 2009-09-17  Bruno Haible  <bruno@clisp.org>
29198
29199         Make getdate.y compile on QNX and NetBSD 5 / i386.
29200         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29201         TIME_T_FITS_IN_LONG_INT.
29202         * lib/getdate.y (long_time_t): New type.
29203         (relative_time): Change type of 'seconds' field to long_time_t.
29204         (get_date): Update types of local variables. Check against overflow
29205         during conversion from long_time_t to time_t.
29206         Reported by Matt Kraai <kraai@ftbfs.org>
29207         and Hasso Tepper <hasso@netbsd.org>.
29208
29209 2009-09-17  Bruno Haible  <bruno@clisp.org>
29210
29211         * modules/COPYING: Update copyright years.
29212         * modules/README: Likeiwse.
29213         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29214         Reported by Ian Beckwith <ianb@erislabs.net>.
29215
29216 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29217
29218         * users.txt: Update references for gnuit package.
29219
29220 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29221
29222         * m4/getdelim.m4: Fix typo in copyright line.
29223
29224 2009-09-17  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/atoll.c: Use the standard header with GPL copyright.
29227         * lib/argz.in.h: Likewise.
29228         * lib/glob.c: Likewise.
29229         * lib/glob-libc.h: Likewise.
29230         * lib/random_r.c: Likewise.
29231         * lib/siglist.h: Likewise.
29232         * lib/strsignal.c: Likewise.
29233         Reported by Ian Beckwith <ianb@erislabs.net>.
29234
29235 2009-09-17  Eric Blake  <ebb9@byu.net>
29236
29237         rmdir: ensure correct dependency order
29238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29239
29240 2009-09-17  Bruno Haible  <bruno@clisp.org>
29241
29242         Disable assertion that fails on NetBSD 5 / i386.
29243         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29244         Reported by Sam Steingold <sds@gnu.org>
29245         and Hasso Tepper <hasso@netbsd.org>.
29246
29247 2009-09-16  Eric Blake  <ebb9@byu.net>
29248
29249         unlinkdir: port to mingw
29250         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29251         on which no one can unlink a directory.
29252
29253         stdlib: sort witness names
29254         * modules/stdlib (Makefile.am): Sort replacements.
29255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29256         * lib/stdlib.in.h: Likewise.
29257
29258         parse-duration-tests: avoid link failure
29259         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29260         LIBINTL.
29261         Reported by Tom G. Christensen.
29262
29263         openat-tests: ensure unlinkat behaves like rmdir
29264         * tests/test-rmdir.c (main): Factor guts...
29265         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29266         * modules/rmdir-tests (Files): Ship new file.
29267         * modules/openat-tests: New test.
29268         * tests/test-unlinkat.c: Likewise.
29269
29270         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29271         * modules/rmdir-errno (Status, Notice): Now obsolete.
29272
29273         rmdir: work around cygwin 1.5.x and mingw bugs
29274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29275         * lib/rmdir.c (rmdir): Work around it.
29276         * modules/rmdir (Status, Notice): No longer obsolete.
29277         (Files): Add dos.m4.
29278         (Depends-on): Add unistd.
29279         (configure.ac): Set witnesses.
29280         (License): Relax to LGPLv2+.
29281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29282         * modules/unistd (Makefile.am): Substitute witnesses.
29283         * lib/unistd.in.h (rmdir): Declare replacement.
29284         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29285         * modules/rmdir-tests: New tests.
29286         * tests/test-rmdir.c: Likewise.
29287
29288 2009-09-15  Eric Blake  <ebb9@byu.net>
29289
29290         fchdir: improve use of replacement functions
29291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29292         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29294         REPLACE_CLOSEDIR.
29295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29296         * modules/sys_stat (Makefile.am): Substitute correct witness.
29297         * modules/dirent (Makefile.am): Likewise.
29298         * modules/unistd (Makefile.am): Likewise.
29299         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29300         * lib/unistd.in.h (dup): Likewise.
29301         * lib/sys_stat.in.h (fstat): Likewise.
29302
29303         maint: ignore gnulib-tool temp files
29304         * .gitignore: Ignore files created during gnulib-tool --test.
29305
29306 2009-09-13  Jim Meyering  <meyering@redhat.com>
29307
29308         posixtm: don't reject a time that specify "60" as the number of seconds
29309         * lib/posixtm.c (posixtime): The code to reject invalid dates
29310         would also reject a time specified with the .60 suffix.
29311         But POSIX allows that, in order to accommodate leap seconds.
29312         So don't reject it.
29313         (main): Adjust tests accordingly.
29314         * modules/posixtm (Depends-on): Add stpcpy.
29315
29316 2009-09-11  Jim Meyering  <meyering@redhat.com>
29317
29318         announce-gen: include [$release_type] in emitted Subject:
29319         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29320         e.g., [stable] in the emitted Subject: line.
29321
29322 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29323
29324         Remove obsolete macros from several modules.
29325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29326         obsolete Autoconf macros with their modern counterparts.
29327         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29328         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29330         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29331         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29332         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29335         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29336         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29337         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29339         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29340         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29341         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29342         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29343         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29344         * m4/time_r.m4 (gl_TIME_R): Likewise.
29345         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29346         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29347         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29348
29349         Fix copyright header in build-aux scripts.
29350         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29351         recommendation.
29352         * build-aux/ncftpput-ftp: Likewise.
29353         * build-aux/update-copyright: Likewise.
29354
29355 2009-09-09  Eric Blake  <ebb9@byu.net>
29356
29357         test-link: allow Linux choice of errno
29358         * tests/test-link.c (main): Relax test for alternate error.
29359
29360         strndup: fix improper m4 caching
29361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29362         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29363         (gl_PREREQ_STRNDUP): Delete.
29364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29365         * modules/string (Makefile.am): Substitute it.
29366         * lib/string.in.h (strndup): Modernize prototype.
29367
29368         getcwd: port to mingw
29369         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29370         different from the POSIX assumptions made throughout the getcwd
29371         module; fortunately, the mingw getcwd does not need replacement.
29372         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29373         * modules/getcwd-tests: New test.
29374         * tests/test-getcwd.c: Likewise.
29375
29376         link: fix platform bugs
29377         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29378         * lib/link.c (link): Work around them.  Fix related mingw bug.
29379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29380         * modules/unistd (Makefile.am): Substitute it.
29381         * lib/unistd.in.h (link): Declare replacement.
29382         * doc/posix-functions/link.texi (link): Document this.
29383         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29384
29385         test-link: consolidate into single C program, test more cases
29386         * tests/test-link.sh: Delete.
29387         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29388         at least Cygwin and Solaris.
29389         * modules/link-tests (Files): Remove unused file.
29390         (Depends-on): Add errno, sys_stat.
29391         (Makefile.am): Simplify.
29392
29393 2009-09-08  Bruno Haible  <bruno@clisp.org>
29394
29395         Work around towlower, towupper bug on mingw.
29396         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29397         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29398         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29399         * doc/posix-functions/towupper.texi: Likewise.
29400         Reported by Eric Blake.
29401
29402 2009-09-08  Jim Meyering  <meyering@redhat.com>
29403
29404         build: don't try to run autoheader if we don't use it
29405         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29406         is not used in configure.ac.
29407
29408 2009-09-08  Eric Blake  <ebb9@byu.net>
29409
29410         euidaccess: fix compilation error
29411         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29412
29413         rawmemchr: relax license
29414         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29415         okay.
29416         Reported by Jim Meyering.
29417
29418         mkfifoat: new module
29419         * modules/mkfifoat: New file.
29420         * lib/mkfifoat.c: Likewise.
29421         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29423         * modules/sys_stat (Makefile.am): Use them.
29424         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29425         * MODULES.html.sh (File system functions): Mention module.
29426         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29427         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29428         * modules/mkfifoat-tests: New test.
29429         * tests/test-mkfifoat.c: Likewise.
29430
29431         strchrnul: relax license
29432         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29433         okay.
29434         Reported by Jim Meyering.
29435
29436 2009-09-08  Eric Blake  <ebb9@byu.net>
29437
29438         fstatat: fix compilation on Solaris
29439         * lib/fstatat.c (includes): Add fcntl.h.
29440         Reported by Pádraig Brady.
29441
29442 2009-09-07  Eric Blake  <ebb9@byu.net>
29443
29444         rename: modernize replacement
29445         * modules/rename (Depends-on): Add stdio.
29446         (configure.ac): Declare witness.
29447         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29448         stdio take care of replacement.
29449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29450         * modules/stdio (Makefile.am): Substitute them.
29451         * lib/stdio.in.h (rename): Declare replacement.
29452         * lib/rename.c (includes): Allow cross-compilation to non-windows
29453         machines.
29454         * doc/posix-functions/rename.texi (rename): Improve
29455         documentation.
29456
29457         stdio: sort witness names
29458         * modules/stdio (Makefile.am): Sort replacements.
29459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29460         * lib/stdio.in.h: Likewise.
29461
29462         getcwd: minor cleanups
29463         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29464         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29465
29466         openat: provide more convenience names
29467         * modules/faccessat (configure.ac): Add C witness.
29468         * lib/unistd.in.h (readlinkat): Fix typo.
29469         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29470         convenience wrappers.
29471         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29472         wrappers in syntax checks.
29473
29474 2009-09-06  Eric Blake  <ebb9@byu.net>
29475
29476         doc: fix comments in recent patches
29477         * lib/faccessat.c: Mention correct function.
29478         * lib/fchmodat.c: Likewise.
29479         * lib/fchownat.c: Likewise.
29480         * lib/symlinkat.c: Likewise.
29481         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29482         constants.
29483
29484         faccessat, symlinkat: continue cleanup of previous patch
29485         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29486         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29487         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29489         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29490         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29491         set.
29492
29493 2009-09-06  Bruno Haible  <bruno@clisp.org>
29494
29495         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29496         (fstatat): Declare if GNULIB_FSTATAT is set.
29497         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29498         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29499         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29500         * modules/fcntl-h (Files): Remove m4/openat.m4.
29501         * modules/sys_stat (Files): Remove m4/openat.m4.
29502         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29503         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29504         * modules/unistd (Files): Remove m4/openat.m4.
29505         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29506         GNULIB_OPENAT.
29507         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29508         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29510         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29511         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29512         gl_OPENAT_DEFAULTS.
29513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29514         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29515         Don't require gl_OPENAT_DEFAULTS.
29516         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29517         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29518         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29519         (gl_OPENAT_DEFAULTS): Remove macro.
29520
29521 2009-09-06  Bruno Haible  <bruno@clisp.org>
29522
29523         * modules/openat (configure.ac): Remove unneeded witness.
29524
29525 2009-09-06  Bruno Haible  <bruno@clisp.org>
29526
29527         Set errno to ENOSYS when a function is entirely unsupported.
29528         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29529         EOPNOTSUPP.
29530         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29531         * modules/chown (Depends-on): Remove errno.
29532
29533 2009-09-06  Bruno Haible  <bruno@clisp.org>
29534
29535         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29536
29537 2009-09-06  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29540
29541 2009-09-06  Ben Pfaff  <blp@gnu.org>
29542             Bruno Haible  <bruno@clisp.org>
29543
29544         Work around a glibc bug in strtok_r.
29545         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29546         Undefine if UNDEFINE_STRTOK_R is set.
29547         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29549         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29551         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29552         UNDEFINE_STRTOK_R.
29553         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29554
29555 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29556
29557         exclude: minor fix
29558         * lib/exclude.c: Include wctype.h
29559
29560 2009-09-06  Akim Demaille  <demaille@gostai.com>
29561
29562         bootstrap: improve error message
29563         * build-aux/bootstrap (find_tool): Upon failure, report the list
29564         of candidates.
29565         Honor the initial value of the envvar.
29566
29567 2009-09-05  Eric Blake  <ebb9@byu.net>
29568
29569         symlinkat: new module
29570         * modules/symlinkat: New file.
29571         * lib/symlinkat.c: Likewise.
29572         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29574         * modules/unistd (Makefile.am): Use them.
29575         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29576         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29577         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29578         * MODULES.html.sh (File system functions): Mention module.
29579         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29580         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29581         * modules/symlinkat-tests: New test.
29582         * tests/test-symlinkat.c: Likewise.
29583
29584         test-openat-safer: add more checks
29585         * tests/test-openat-safer.c (main): Check more code paths.
29586
29587 2009-09-05  Jim Meyering  <meyering@redhat.com>
29588
29589         syntax-check: detect unnecessary inclusion of openat.h
29590         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29591
29592 2009-09-05  Bruno Haible  <bruno@clisp.org>
29593
29594         Support towlower, towupper.
29595         * doc/posix-functions/towlower.texi: Mention module wctype.
29596         * doc/posix-functions/towupper.texi: Likewise.
29597         * lib/wctype.in.h (towlower, towupper): New functions.
29598         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29599         (ASSERT): New macro.
29600         (e): New variable.
29601         (main): Test also towlower, towupper. Test WEOF argument.
29602         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29603
29604 2009-09-05  Bruno Haible  <bruno@clisp.org>
29605
29606         Fix conversion behaviour when the input is invalid.
29607         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29608         mark occurring in first pass of indirect conversion.
29609         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29610         input.
29611         Found by clang's static analyzer.
29612
29613 2009-09-05  Bruno Haible  <bruno@clisp.org>
29614
29615         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29616         where direct conversion is possible.
29617
29618 2009-09-04  Eric Blake  <ebb9@byu.net>
29619
29620         openat: fail with ENOENT on empty name
29621         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29622         buffer.
29623
29624         link-follow: fix logic bug in prior patch
29625         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29626         reversed sense of yes and no in prior patch.  Avoid confusing
29627         compilation failure with desired semantics.
29628
29629         link-follow: accomodate mingw and cross-compilation
29630         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29631         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29632         cross-compilation results to -1, to make linkat easier to
29633         implement when cross-compiling.  Trivially support mingw.
29634         * modules/link-follow (configure.ac): Call new name.
29635         * NEWS: Mention this.
29636
29637 2009-09-03  Eric Blake  <ebb9@byu.net>
29638
29639         faccessat: compile replacement
29640         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29641         needed.
29642
29643         fts: fix compilation error
29644         * lib/fts.c (includes): Re-add "openat.h", for
29645         openat_needs_fchdir.
29646
29647         faccessat: new module
29648         * modules/faccessat: New file.
29649         * lib/faccessat.c: Likewise.
29650         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29652         * modules/unistd (Makefile.am): Use it.
29653         * lib/unistd.in.h (faccessat): Declare it.
29654         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29655         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29656         * MODULES.html.sh (File system functions): Mention it.
29657         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29658         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29659
29660         euidaccess: prefer POSIX over non-standard implementation
29661         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29662         * lib/euidaccess.c (euidaccess): Use it if available.
29663
29664         openat: make template easier to use
29665         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29666         AT_FUNC_F2 to be undefined.
29667         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29668         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29669         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29670         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29671         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29672         Likewise.
29673         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29674         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29675         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29676         Likewise.
29677
29678         openat: declare in POSIX headers
29679         * NEWS: Mention this.
29680         * modules/openat (configure.ac): Declare witnesses.
29681         (Depends-on): Add fcntl-h, sys_stat, unistd.
29682         (Include): Mention correct headers.
29683         * modules/fcntl-h (Depends-on): Add link-warning.
29684         (Files): Add openat.m4.
29685         (Makefile.am): Substitute witnesses.
29686         * modules/sys_stat (Files, Makefile.am): Likewise.
29687         * modules/unistd (Files, Makefile.am): Likewise.
29688         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29689         (gl_OPENAT_DEFAULTS): New macro.
29690         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29693         (SYS_STAT_H): Remove unused variable.
29694         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29695         * lib/fcntl--.h (includes): Remove unneeded header.
29696         * lib/openat-safer.c (includes): Likewise.
29697         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29698         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29699         appropriate headers.
29700         (__OPENAT_PREFIX): Delete.
29701         * lib/fcntl.in.h (openat): Provide declaration.
29702         (AT_FDCWD): Fix Solaris bug.
29703         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29704         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29705         * lib/fchmodat.c (includes):  Adjust to find declaration.
29706         * lib/fchownat.c (includes): Likewise.
29707         * lib/mkdirat.c (includes): Likewise.
29708         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29709         still visible.
29710
29711 2009-09-02  Eric Blake  <ebb9@byu.net>
29712
29713         errno: use consistently
29714         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29715         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29716         * lib/canonicalize.c (ELOOP): Likewise.
29717         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29718         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29719         * lib/lchown.c (EOPNOTSUPP): Likewise.
29720         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29721         * lib/savewd.c (ESTALE): Likewise.
29722         * lib/settime.c (ENOSYS): Likewise.
29723         * lib/utimens.c (ENOSYS): Likewise.
29724         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29725         * lib/chdir-safer.c (ELOOP): Likewise.
29726         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29727         * modules/c-stack (Depends-on): Add errno.
29728         * modules/canonicalize (Depends-on): Likewise.
29729         * modules/chdir-safer (Depends-on): Likewise.
29730         * modules/fdopendir (Depends-on): Likewise.
29731         * modules/inet_ntop (Depends-on): Likewise.
29732         * modules/inet_pton (Depends-on): Likewise.
29733         * modules/lchown (Depends-on): Likewise.
29734         * modules/openat (Depends-on): Likewise.
29735         * modules/savewd (Depends-on): Likewise.
29736         * modules/settime (Depends-on): Likewise.
29737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29738
29739         fts: avoid leaking fds
29740         * modules/fts (Depends-on): Add cloexec.
29741         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29742         flag.
29743
29744         fts: make directory fds more robust
29745         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29746         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29747
29748         backupfile, chdir-long, fts, savedir: make safer
29749         * lib/backupfile.c (includes): Use "dirent--.h", since
29750         numbered_backup can write to stderr during readdir.
29751         * lib/savedir.c (includes): Likewise.
29752         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29753         emulation can write to stderr on failure.
29754         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29755         * lib/getcwd.c: Document why opendir_safer is unused.
29756         * lib/glob.c: Likewise.
29757         * lib/scandir.c: Likewise.
29758         * lib/openat-proc.c: Likewise, for open_safer.
29759         * modules/backupfile (Depends-on): Add dirent-safer.
29760         * modules/savedir (Depends-on): Likewise.
29761         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29762         * modules/chdir-long (Depends-on): Add openat-safer.
29763
29764         openat-safer: new module
29765         * modules/openat-safer: New file.
29766         * lib/openat-safer.c: Likewise.
29767         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29768         * lib/fcntl-safer.h (openat_safer): Declare.
29769         * lib/fcntl--.h (openat): Override.
29770         * MODULES.html.sh (File descriptor based I/O): Mention it.
29771         * lib/openat.h: Add double-inclusion guards.
29772         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29773         "fcntl--.h", so we can implement openat.
29774         * modules/openat-safer-tests: New test.
29775         * tests/test-openat-safer.c: New file.
29776
29777         dirent-safer: new module
29778         * modules/dirent-safer: New file.
29779         * lib/dirent--.h: Likewise.
29780         * lib/dirent-safer.h: Likewise.
29781         * lib/opendir-safer.c: Likewise.
29782         * m4/dirent-safer.m4: Likewise.
29783         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29784         * modules/dirent-safer-tests: New test.
29785         * tests/test-dirent-safer.c: New file.
29786         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29787
29788         fdopendir: optimize on mingw
29789         * lib/unistd.in.h (_gl_directory_name): New prototype.
29790         * lib/fchdir.c (_gl_directory_name): Implement it.
29791         (fchdir): Use it to simplify implementation.
29792         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29793         fchdir, when available, to avoid calling [f]chdir().
29794
29795         fdopendir: split into its own module
29796         * lib/openat.c (fdopendir): Move...
29797         * lib/fdopendir.c: ...into new file.
29798         * modules/fdopendir: New module.
29799         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29800         * modules/openat (Depends-on): Add fdopendir.
29801         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29802         fdopendir here.
29803         * modules/savedir (Depends-on): Only need fdopendir, not full
29804         openat.
29805         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29806         * lib/openat.h (fdopendir): Drop prototype.
29807         * lib/dirent.in.h (fdopendir): Provide prototype.
29808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29809         * modules/dirent (Makefile.am): Substitute them.
29810         * MODULES.html.sh (File system functions): Mention it.
29811         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29812         * modules/fdopendir-tests: New file.
29813         * tests/test-fdopendir.c: Likewise.
29814
29815         fchdir: use more consistent macro convention
29816         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29817         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29818         REPLACE_FCHDIR, rather than relying on config.h macros.
29819         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29820         inside a single make-time REPLACE_FCHDIR block, rather than using
29821         the config.h FCHDIR_REPLACEMENT.
29822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29823         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29824         Manage fstat replacement.
29825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29826         REPLACE_FCHDIR.
29827         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29828         (Makefile.am): Substitute REPLACE_FCHDIR.
29829         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29830         FCHDIR_REPLACEMENT.
29831         * lib/dup-safer.c (dup_safer): Likewise.
29832         * lib/dup2.c (rpl_dup2): Likewise.
29833         * lib/dup3.c (rpl_dup3): Likewise.
29834         * lib/open.c (rpl_open): Likewise.
29835
29836         fchdir: simplify error handling, and support dup3
29837         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29838         stdbool, malloc-posix, realloc-posix.
29839         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29840         (ensure_dirs_slot): Return false on allocation failure.
29841         (rpl_dup2): Delete.
29842         (_gl_register_dup): New function.
29843         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29844         (_gl_register_fd): Close fd on allocation failure.
29845         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29846         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29847         prototype.
29848         (rpl_dup2_fchdir): Delete prototype.
29849         * lib/open.c (open): Update caller.
29850         * lib/dup2.c (dup2): Track fchdir metadata.
29851         * lib/dup3.c (dup3): Likewise.
29852         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29854
29855 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29856
29857         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29858         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29859         don't pass arguments to AC_OUTPUT.
29860
29861 2009-09-02  Bruno Haible  <bruno@clisp.org>
29862
29863         * modules/mkdtemp (License): Relicense under LGPLv2+.
29864         Reported by Paolo Bonzini.
29865
29866 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29867
29868         Replace uses of obsolete autoconf macros in Jim's modules.
29869         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29870         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29871         can evoke a warning from autoconf when run with -Wobsolete
29872         enabled.  They were declared obsolete for good reasons (see
29873         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29874         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29875         should not continue using the deprecated macros.
29876         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29877         obsolete Autoconf macros with modern counterparts.
29878         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29879         * m4/dos.m4 (gl_AC_DOS): Likewise.
29880         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29882         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29883         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29884         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29885         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29887         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29888         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29889         Likewise.
29890         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29891         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29892         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29893         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29894         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29895         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29896
29897 2009-09-01  Eric Blake  <ebb9@byu.net>
29898
29899         fchdir: fix off-by-one bug in previous patch
29900         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29901         (_gl_unregister_fd): Delete useless if.
29902
29903 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29904
29905         maint.mk: sort the list of syntax-check rules
29906         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29907         easier to get a sense of progress when the rules are run sequentially
29908         and take a long time.
29909
29910 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29911
29912         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29913         * modules/netinet_in: Likewise.
29914         * modules/sys_file: Likewise.
29915         * modules/sys_ioctl: Likewise.
29916         * modules/sys_select: Likewise.
29917         * modules/sys_socket: Likewise.
29918         * modules/sys_stat: Likewise.
29919         * modules/sys_time: Likewise.
29920         * modules/sys_times: Likewise.
29921         * modules/sys_utsname: Likewise.
29922         * modules/sys_wait: Likewise.
29923
29924 2009-09-01  Jim Meyering  <meyering@redhat.com>
29925
29926         fts: help ensure that return values are not ignored
29927         * lib/fts_.h (__GNUC_PREREQ): Define.
29928         (__attribute_warn_unused_result__): Define.
29929         (fts_children, fts_close, fts_open, fts_read): Declare with
29930         __attribute_warn_unused_result__.
29931
29932         fts: fts_close now fails also when closing a dir file descriptor fails
29933         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29934         and propagate to caller, along with errno.
29935
29936         announce-gen: correct formatting in --help output
29937         * build-aux/announce-gen (usage): Move the one-line description in
29938         --help output "up", to where it belongs, just after Usage:.
29939
29940 2009-08-31  Eric Blake  <ebb9@byu.net>
29941
29942         fchdir: port to mingw
29943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29944         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29945         opened, then use a substitute.
29946         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29947         replacement.
29948         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29949         (_gl_register_fd): No need to check stat if open already filters
29950         all directories.
29951         (fchdir): Fix error condition to match POSIX.
29952         * modules/fchdir (Depends-on): Add sys_stat.
29953         * doc/posix-functions/open.texi (open): Document the limitation.
29954         * modules/fchdir-tests: New file.
29955         * tests/test-fchdir.c: Likewise.
29956
29957         canonicalize: allow cross-testing from cygwin to mingw
29958         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29959         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29960         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29961         Likewise.
29962         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29963         target does not support symlinks.
29964         * tests/test-canonicalize-lgpl.sh: Likewise.
29965
29966         chown: avoid compilation warning on mingw
29967         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29968         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29969         mingw.
29970         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29971         * modules/chown (Depends-on): Add errno.
29972
29973 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29974
29975         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29976         command.
29977
29978 2009-08-31  Jim Meyering  <meyering@redhat.com>
29979
29980         canonicalize: remove useless initialization
29981         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29982         initialization of local, "end".
29983
29984 2009-08-30  Bruno Haible  <bruno@clisp.org>
29985
29986         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29987         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29988         ENOSYS.
29989
29990 2009-08-30  Bruno Haible  <bruno@clisp.org>
29991
29992         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29993         /usr/xpg4/bin/tr when it exists.
29994         * tests/test-pipe-filter-gi1.sh: Likewise.
29995
29996 2009-08-30  Bruno Haible  <bruno@clisp.org>
29997
29998         Work around deficient /usr/bin/id program on Solaris.
29999         * tests/test-file-has-acl.sh (ID): New variable.
30000         * tests/test-set-mode-acl.sh (ID): Likewise.
30001         * tests/test-copy-acl.sh (ID): Likewise.
30002         * tests/test-copy-file.sh (ID): Likewise.
30003
30004 2009-08-30  Bruno Haible  <bruno@clisp.org>
30005
30006         New module 'xstriconveh'.
30007         * lib/xstriconveh.h: New file.
30008         * lib/xstriconveh.c: New file.
30009         * modules/xstriconveh: New file.
30010
30011 2009-08-30  Bruno Haible  <bruno@clisp.org>
30012
30013         Make it easier to use mem_cd_iconveh.
30014         * lib/striconveh.h (iconveh_t): New type.
30015         (iconveh_open, iconveh_close): New declarations.
30016         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30017         with a single 'const iconveh_t *' argument.
30018         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30019         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30020         with a single 'const iconveh_t *' argument.
30021         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30022         * tests/test-striconveh.c (main): Update.
30023         * NEWS: Mention the change.
30024
30025 2009-08-30  Bruno Haible  <bruno@clisp.org>
30026
30027         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30028         problem.
30029
30030 2009-08-30  Bruno Haible  <bruno@clisp.org>
30031
30032         Work around iconv_open problem on Solaris.
30033         * lib/iconv_open-solaris.gperf: New file.
30034         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30035         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30036         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30037         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30038         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30039         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30040
30041 2009-08-29  Jim Meyering  <meyering@redhat.com>
30042
30043         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30044         * top/maint.mk (cvs-check): Remove target; it was just an alias
30045         to the better-named vc-diff-check.
30046         (maintainer-distcheck): Remove rule.  It was used only from
30047         the (alpha/beta/major) target, and all of its commands but one
30048         were coreutils-specific.
30049         (vc-dist): Remove rule.
30050         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30051         Run vc-diff-check, not vc-dist.
30052         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30053
30054 2009-08-27  Bruno Haible  <bruno@clisp.org>
30055
30056         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30057         of 0.
30058
30059 2009-08-27  Bruno Haible  <bruno@clisp.org>
30060
30061         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30062         compilers.
30063         * doc/func.texi: Document the SunPRO C bug.
30064
30065 2009-08-27  Bruno Haible  <bruno@clisp.org>
30066
30067         Fix link error on Solaris.
30068         * tests/test-parse-duration.c (xstrdup): Remove function.
30069
30070 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30071
30072         ignore-value: handle pointer types, too
30073         * lib/ignore-value.h (__attribute__): Remove definition.
30074         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30075         of a more concise and more-often effective "(void) i" statement.
30076         (ignore_ptr): New function to suppress warnings from functions that
30077         return pointers, and to make it explicit that one function doesn't
30078         handle all cases.
30079
30080 2009-08-25  Bruno Haible  <bruno@clisp.org>
30081
30082         dup2: work around a Linux bug.
30083         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30084         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30085         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30086         Reported by Simon Josefsson.
30087
30088 2009-08-25  Jim Meyering  <meyering@redhat.com>
30089
30090         libguestfs uses gnulib
30091         * users.txt: Add libguestfs.
30092
30093 2009-08-24  Eric Blake  <ebb9@byu.net>
30094
30095         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30096         * lib/pipe2.c (includes): Add binary-io.h.
30097         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30098
30099 2009-08-24  Bruno Haible  <bruno@clisp.org>
30100
30101         Tolerate declared but missing accept4 syscall.
30102         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30103         available.
30104         * lib/sys_socket.in.h (accept4): If the function is already present,
30105         override it.
30106         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30107         * modules/accept4 (Makefile.am): Compile accept4.c always.
30108         Reported by Paolo Bonzini and Eric Blake.
30109
30110 2009-08-23  Bruno Haible  <bruno@clisp.org>
30111
30112         New module 'accept4'.
30113         * lib/sys_socket.in.h (accept4): New declaration.
30114         * lib/accept4.c: New file.
30115         * m4/accept4.m4: New file.
30116         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30117         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30118         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30119         HAVE_ACCEPT4.
30120         * modules/accept4: New file.
30121         * doc/glibc-functions/accept4.texi: Mention the new module.
30122
30123 2009-08-24  Jim Meyering  <meyering@redhat.com>
30124
30125         progname: also set global program_invocation_name, when possible
30126         Before this change, a libtool-enabled program that calls glibc's
30127         error function would report the program name as
30128         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30129         * modules/progname (configure.ac): Check for a declaration of
30130         program_invocation_name.
30131         * lib/progname.c:  Include <errno.h>.
30132         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30133         Set program_invocation_name.
30134
30135 2009-08-23  Bruno Haible  <bruno@clisp.org>
30136
30137         * lib/dup3.c: Include <string.h>.
30138
30139 2009-08-23  Bruno Haible  <bruno@clisp.org>
30140
30141         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30142         * lib/pipe2.c (pipe2): Likewise.
30143         Suggested by Eric Blake.
30144
30145 2009-08-23  Bruno Haible  <bruno@clisp.org>
30146
30147         Tolerate declared but missing dup3 syscall.
30148         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30149         * lib/unistd.in.h (dup3): If the function is already present,
30150         override it.
30151         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30152         * modules/dup3 (Makefile.am): Compile dup3.c always.
30153         Reported by Paolo Bonzini.
30154
30155 2009-08-23  Bruno Haible  <bruno@clisp.org>
30156
30157         Tolerate declared but missing pipe2 syscall.
30158         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30159         available.
30160         * lib/unistd.in.h (pipe2): If the function is already present,
30161         override it.
30162         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30163         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30164         Reported by Paolo Bonzini.
30165
30166 2009-08-23  Bruno Haible  <bruno@clisp.org>
30167
30168         * lib/pipe2.c (pipe2): Move #ifs inside function.
30169
30170 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30171
30172         quotearg: document limitations of quote_these_too
30173         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30174         those limitations are created.
30175         * lib/quotearg.h (set_char_quoting): Document that digits and
30176         letters that are special after backslash are not permitted.
30177         (quotearg_char): Cross-reference set_char_quoting documentation.
30178
30179 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30180
30181         quotearg: implement custom_quoting_style
30182         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30183         right_quote fields.
30184         (set_custom_quoting): New public function.
30185         (quotearg_buffer_restyled): Add left_quote and right_quote
30186         arguments, handle them very much like locale quoting, and update
30187         all uses.
30188         (quotearg_n_custom): New public function.
30189         (quotearg_n_custom_mem): New public function.
30190         (quotearg_custom): New public function.
30191         (quotearg_custom_mem): New public function.
30192         * lib/quotearg.h: Prototype and document new public functions.
30193         (enum quoting_style): For escape_quoting_style and
30194         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30195         ignored even though they're otherwise like c_quoting_style.
30196         Add custom_quoting_style member and document with comparison to
30197         clocale_quoting_style.
30198         * tests/test-quotearg.c (custom_quotes): New array.
30199         (custom_results): New array.
30200         (main): Extend to test custom quoting.
30201
30202 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30203
30204         quotearg: fix right quote escaping when it's in quote_these_too
30205         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30206         quote, be sure to prepend only one backslash.
30207         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30208         (main): Test it.
30209
30210 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30211
30212         quotearg-tests: test escaping of embedded locale quotes
30213         * tests/test-quotearg.c (struct result_strings): Add member for
30214         new input.
30215         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30216         (inputs): Add new input.
30217         (results_g): Add expected results.
30218         (flag_results): Likewise.
30219         (locale_results): Likewise.
30220         (compare_strings): Check those.
30221
30222 2009-08-23  Bruno Haible  <bruno@clisp.org>
30223
30224         Tests for module 'dup3'.
30225         * modules/dup3-tests: New file.
30226         * tests/test-dup3.c: New file.
30227
30228         New module 'dup3'.
30229         * lib/unistd.in.h (dup3): New declaration.
30230         * lib/dup3.c: New file.
30231         * m4/dup3.m4: New file.
30232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30233         HAVE_DUP3.
30234         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30235         * modules/dup3: New file.
30236         * doc/glibc-functions/dup3.texi: Mention the new module.
30237
30238 2009-08-23  Bruno Haible  <bruno@clisp.org>
30239
30240         Tweak the dup2 test.
30241         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30242         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30243         the test file is still empty. Fix argument order of lseek.
30244
30245 2009-08-23  Bruno Haible  <bruno@clisp.org>
30246
30247         Avoid test link errors when the modules getopt-gnu, gettext are used.
30248         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30250
30251 2009-08-23  Bruno Haible  <bruno@clisp.org>
30252
30253         Fix getdtablesize() on mingw.
30254         * lib/getdtablesize.c (getdtablesize): Implement differently.
30255         * lib/unistd.in.h (getdtablesize): Improve comment.
30256
30257 2009-08-23  Bruno Haible  <bruno@clisp.org>
30258
30259         New module 'mkostemp'.
30260         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30261         * lib/stdlib.in.h (mksotemp): New declaration.
30262         * lib/mkostemp.c: New file, from glibc with modifications.
30263         * lib/tempname.h (GT_FILE): Remove outdated comment.
30264         (gen_tempname): Add flags argument.
30265         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30266         (__GT_FILE): Map to 1.
30267         (small_open, large_open): Remove macros.
30268         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30269         * lib/mkstemp.c (mkstemp): Update.
30270         * lib/mkdtemp.c (mkdtemp): Likewise.
30271         * m4/mkostemp.m4: New file.
30272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30273         HAVE_MKOSTEMP.
30274         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30275         HAVE_MKOSTEMP.
30276         * modules/mkostemp: New file, based on modules/mkstemp.
30277         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30278         * NEWS: Mention the change.
30279
30280 2009-08-23  Bruno Haible  <bruno@clisp.org>
30281
30282         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30283         Reported by Eric Blake.
30284
30285 2009-08-23  Bruno Haible  <bruno@clisp.org>
30286
30287         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30288         Reported by Eric Blake.
30289
30290 2009-08-23  Bruno Haible  <bruno@clisp.org>
30291
30292         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30293         * modules/pipe2 (Depends-on): Likewise.
30294
30295 2009-08-23  Eric Blake  <ebb9@byu.net>
30296
30297         fcntl-h: add O_TTY_INIT support
30298         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30299         * tests/test-fcntl-h.c (o): Test it.
30300         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30301
30302         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30303         * modules/fcntl: Move <fcntl.h> header replacement...
30304         * modules/fcntl-h: ...to new name, so as not to collide with
30305         like-named function.
30306         * tests/test-fcntl.c: Rename...
30307         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30308         * modules/fcntl-tests: Rename...
30309         * modules/fcntl-h-tests: ...to this.  Update test file name.
30310         * modules/chdir-long (Depends-on): Update clients.
30311         * modules/chdir-safer (Depends-on): Likewise.
30312         * modules/fcntl-safer (Depends-on): Likewise.
30313         * modules/fts (Depends-on): Likewise.
30314         * modules/mkancesdirs (Depends-on): Likewise.
30315         * modules/mkdir-p (Depends-on): Likewise.
30316         * modules/open (Depends-on): Likewise.
30317         * modules/savewd (Depends-on): Likewise.
30318         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30319         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30320
30321 2009-08-22  Bruno Haible  <bruno@clisp.org>
30322
30323         * modules/binary-io (License): Relicense under LGPL.
30324         * modules/pipe2 (License): Likewise.
30325
30326 2009-08-22  Bruno Haible  <bruno@clisp.org>
30327
30328         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30329         return value.
30330         * lib/pipe-filter-gi.c (filter_init): Likewise.
30331         Reported by Eric Blake.
30332
30333 2009-08-22  Bruno Haible  <bruno@clisp.org>
30334
30335         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30336         * modules/pipe (Depends-on): Add pipe2.
30337
30338 2009-08-22  Bruno Haible  <bruno@clisp.org>
30339
30340         Tests for module 'pipe2'.
30341         * modules/pipe2-tests: New file.
30342         * tests/test-pipe2.c: New file.
30343
30344         New module 'pipe2'.
30345         * lib/unistd.in.h (pipe2): New declaration.
30346         * lib/pipe2.c: New file.
30347         * m4/pipe2.m4: New file.
30348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30349         HAVE_PIPE2.
30350         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30351         * modules/pipe2: New file.
30352         * doc/glibc-functions/pipe2.texi: Mention the new module.
30353
30354 2009-08-22  Bruno Haible  <bruno@clisp.org>
30355
30356         Reference some new glibc functions.
30357         * doc/glibc-functions/accept4.texi: New file.
30358         * doc/glibc-functions/dup3.texi: New file.
30359         * doc/glibc-functions/mkostemp.texi: New file.
30360         * doc/glibc-functions/pipe2.texi: New file.
30361         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30362         (Glibc sys/socket.h): Refer to accept4.
30363         (Glibc unistd.h): Refer to dup3, pipe2.
30364         Reported by Eric Blake.
30365
30366 2009-08-22  Jim Meyering  <meyering@redhat.com>
30367             Bruno Haible  <bruno@clisp.org>
30368
30369         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30370         This makes it so packages using automake-1.11's silent-rules option
30371         can print e.g., a single "GEN    configmake.h" line, rather than
30372         the 30+ statements that perform the job.  If you want to see the
30373         actual commands, you can still run "make V=1".
30374         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30375         so that make output is abbreviated when those variables are defined
30376         appropriately.
30377         * modules/argz: Likewise.
30378         * modules/arpa_inet: Likewise.
30379         * modules/byteswap: Likewise.
30380         * modules/configmake: Likewise.
30381         * modules/dirent: Likewise.
30382         * modules/errno: Likewise.
30383         * modules/fcntl: Likewise.
30384         * modules/float: Likewise.
30385         * modules/fnmatch: Likewise.
30386         * modules/getopt-posix: Likewise.
30387         * modules/glob: Likewise.
30388         * modules/iconv_open: Likewise.
30389         * modules/inttypes: Likewise.
30390         * modules/localcharset: Likewise.
30391         * modules/locale: Likewise.
30392         * modules/math: Likewise.
30393         * modules/netdb: Likewise.
30394         * modules/netinet_in: Likewise.
30395         * modules/poll: Likewise.
30396         * modules/posix_spawnp-tests: Likewise.
30397         * modules/sched: Likewise.
30398         * modules/search: Likewise.
30399         * modules/selinux-h: Likewise.
30400         * modules/signal: Likewise.
30401         * modules/spawn: Likewise.
30402         * modules/stdarg: Likewise.
30403         * modules/stdbool: Likewise.
30404         * modules/stddef: Likewise.
30405         * modules/stdint: Likewise.
30406         * modules/stdio: Likewise.
30407         * modules/stdlib: Likewise.
30408         * modules/string: Likewise.
30409         * modules/strings: Likewise.
30410         * modules/sys_file: Likewise.
30411         * modules/sys_ioctl: Likewise.
30412         * modules/sys_select: Likewise.
30413         * modules/sys_socket: Likewise.
30414         * modules/sys_stat: Likewise.
30415         * modules/sys_time: Likewise.
30416         * modules/sys_times: Likewise.
30417         * modules/sys_utsname: Likewise.
30418         * modules/sys_wait: Likewise.
30419         * modules/sysexits: Likewise.
30420         * modules/time: Likewise.
30421         * modules/unistd: Likewise.
30422         * modules/wchar: Likewise.
30423         * modules/wctype: Likewise.
30424
30425 2009-08-22  Jim Meyering  <meyering@redhat.com>
30426
30427         announce-gen: detect write failure
30428         * build-aux/announce-gen: Add Coda at end.
30429         Remove equivalent-but-more-verbose block at top.
30430
30431 2009-08-19  Akim Demaille  <demaille@gostai.com>
30432
30433         bootstrap: --help to stdout.
30434         * bootstrap (usage): Don't send --help to stderr.
30435         Use a here doc instead of a long string.
30436
30437 2009-08-21  Eric Blake  <ebb9@byu.net>
30438
30439         test-popen-safer: split from test-popen
30440         * tests/test-popen.c (main): Move...
30441         * tests/test-popen.h: ...into new file.
30442         * tests/test-popen-safer2.c: New file.
30443         * modules/popen-tests (Files): Add test-popen.h.
30444         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30445         Suggested by Bruno Haible.
30446
30447         test-fcntl-safer: split from test-open
30448         * tests/test-open.c (main): Move...
30449         * tests/test-open.h: ...into new file.
30450         * tests/test-fcntl-safer.c: New file.
30451         * modules/open-tests (Files): Add test-open.h.
30452         * modules/fcntl-safer-tests: New file.
30453         Suggested by Bruno Haible.
30454
30455         test-fopen-safer: split from test-fopen
30456         * tests/test-fopen.c (main): Move...
30457         * tests/test-fopen.h: ...into new file.
30458         * tests/test-fopen-safer.c: New file.
30459         * modules/fopen-tests (Files): Add test-fopen.h.
30460         * modules/fopen-safer-tests: New file.
30461         Suggested by Bruno Haible.
30462
30463 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30464
30465         popen-safer: test O_CLOEXEC at run-time.
30466         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30467
30468 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30469
30470         fcntl: move more flags to the header
30471         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30472         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30473         * lib/fcntl.in.h: Do both things here.
30474
30475 2009-08-21  Jim Meyering  <meyering@redhat.com>
30476
30477         consistently remove $@-t before redirecting to it
30478         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30479         * modules/alloca-opt: Likewise.
30480         * modules/byteswap: Likewise.
30481         * modules/fnmatch: Likewise.
30482         * modules/getopt-posix: Likewise.
30483         * modules/glob: Likewise.
30484         * modules/poll: Likewise.
30485         * modules/posix_spawnp-tests: Likewise.
30486         * modules/sys_socket: Likewise.
30487         * modules/sysexits: Likewise.
30488
30489 2009-08-21  Eric Blake  <ebb9@byu.net>
30490
30491         popen: simplify access to original popen
30492         * lib/popen.c (rpl_popen): No need to worry about popen being a
30493         macro.
30494         Reported by Bruno Haible.
30495
30496 2009-08-20  Eric Blake  <ebb9@byu.net>
30497
30498         build: avoid some compiler warnings
30499         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30500         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30501         type.
30502         (new_exclude_segment, excluded_file_pattern_p)
30503         (excluded_file_name_p): Reduce scope.
30504         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30505         old-style declaration.
30506
30507 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30508
30509         * tests/test-exclude1.sh: Handle Windows EOL.
30510         * tests/test-exclude2.sh: Likewise.
30511         * tests/test-exclude3.sh: Likewise.
30512         * tests/test-exclude4.sh: Likewise.
30513         * tests/test-exclude5.sh: Likewise.
30514         * tests/test-exclude6.sh: Likewise.
30515         * tests/test-exclude7.sh: Likewise.
30516
30517 2009-08-19  Akim Demaille  <demaille@gostai.com>
30518
30519         bootstrap: find sha1sum when named gsha1sum.
30520         * bootstrap (find_tool): New.
30521         ($SHA1SUM): New.
30522         Use it.
30523
30524 2009-08-20  Jim Meyering  <meyering@redhat.com>
30525
30526         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30527         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30528         expression that converts "." in a file name to "\." in the resulting
30529         regexp.  Start with a dummy statement, so that prior shell variable
30530         definitions are expanded portably.  Reported by Simon Josefsson.
30531
30532 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30533
30534         Fix polling for writeability of a screen buffer.
30535         * lib/poll.c: Distinguish input and screen buffers for the
30536         Win32 implementation.
30537         * lib/select.c: Likewise.
30538
30539 2009-08-19  Eric Blake  <ebb9@byu.net>
30540
30541         popen-safer: prevent popen from clobbering std descriptors
30542         * modules/popen-safer: New file.
30543         * lib/popen-safer.c: Likewise.
30544         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30545         * lib/stdio--.h (popen): Provide override.
30546         * lib/stdio-safer.h (popen_safer): Provide declaration.
30547         * tests/test-popen.c (includes): Partially test this.
30548         * modules/popen-safer-tests: New file, for more tests.
30549         * tests/test-popen-safer.c: Likewise.
30550         * MODULES.html.sh (file stream based Input/Output): Mention it.
30551
30552         tests: test some of the *-safer modules
30553         * modules/fopen-safer (Depends-on): Add fopen.
30554         * modules/fcntl-safer (Depends-on): Add fcntl.
30555         * modules/stdlib-safer (Depends-on): Add stdlib.
30556         (configure.ac): Set indicator.
30557         * modules/unistd-safer (configure.ac): Likewise.
30558         * modules/tmpfile-safer (configure.ac): Likewise.
30559         (Depends-on): Add tmpfile.
30560         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30561         active.
30562         * tests/test-fopen.c (includes): Test safer versions when they are
30563         in use.
30564         * tests/test-open.c (includes): Likewise.
30565
30566         popen: fix cygwin 1.5 bug when stdin closed
30567         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30568         * modules/popen: New file.
30569         * modules/popen-tests: Likewise.
30570         * tests/test-popen.c: Likewise.
30571         * m4/popen.m4: Likewise.
30572         * lib/popen.c: Likewise.
30573         * lib/stdio.in.h (popen): New declaration.
30574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30575         * modules/stdio (Makefile.am): Likewise.
30576         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30577
30578 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30579
30580         maint.mk: give full control over update-copyright exclusions
30581         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30582         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30583         (update-copyright): Don't force inclusion of top-level
30584         ChangeLog.  Don't force exclusion of all COPYING files, but make
30585         them the default exclusion instead.
30586
30587 2009-08-16  Bruno Haible  <bruno@clisp.org>
30588
30589         Fix test failures on Solaris 10.
30590         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30591         tests when Solaris iconv() is used.
30592         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30593         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30594         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30595         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30596         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30597
30598 2009-08-16  Bruno Haible  <bruno@clisp.org>
30599
30600         Fix test failures on Solaris 10.
30601         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30602         'tr' program and pass it as first argument.
30603         * tests/test-pipe-filter-gi1.sh: Likewise.
30604         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30605         program as first argument.
30606         * tests/test-pipe-filter-gi1.c (main): Likewise.
30607
30608 2009-08-16  Eric Blake  <ebb9@byu.net>
30609
30610         fpurge: fix previous commits
30611         * modules/fpurge (Makefile.am): Make replacement conditional,
30612         partially reverting 2007-04-29 change; missed in previous
30613         attempt.
30614         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30615         is missing.
30616
30617 2009-08-16  Bruno Haible  <bruno@clisp.org>
30618
30619         Clarify fpurge's effect on the file position.
30620         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30621         * tests/test-fpurge.c (main): Make a second pass for checking the file
30622         position.
30623
30624 2009-08-16  Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30627         declaration of fpurge is missing.
30628         * tests/test-fpurge.c (main): Check that the file has not more contents
30629         than expected. Close the file before removing it.
30630
30631 2009-08-15  Eric Blake  <ebb9@byu.net>
30632
30633         fpurge: don't wrap working cygwin implementation
30634         * lib/fpurge.c (fpurge): Fix comment typo.
30635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30636         1.7 to avoid replacement.
30637         * tests/test-fpurge.c (main): Enhance test.
30638
30639 2009-08-15  Eric Blake  <ebb9@byu.net>
30640         and Jim Meyering  <meyering@redhat.com>
30641
30642         test-update-copyright: skip if perl is insufficient
30643         * tests/test-update-copyright.sh: Failure to run maintainer tool
30644         should not cause testsuite failure on cygwin 1.5.
30645
30646 2009-08-14  Eric Blake  <ebb9@byu.net>
30647
30648         doc: mention more functions added in cygwin 1.7.0
30649         * doc/posix-headers/limits.texi (limits.h): Update for recent
30650         cygwin additions.
30651         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30652         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30653         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30654         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30655         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30656
30657 2009-08-14  Eric Blake  <ebb9@byu.net>
30658
30659         maint.mk: simplify update-copyright rule
30660         * top/maint.mk (update-copyright-local): Delete, and document how
30661         to do it in cfg.mk instead.
30662         (update-copyright-exclude-regexp): Delete, and document how to do
30663         it in .x-update-copyright instead.
30664         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30665         exclude ChangeLog.
30666
30667 2009-08-14  Bruno Haible  <bruno@clisp.org>
30668
30669         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30670
30671 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30672
30673         maint.mk: support update-copyright-env
30674         * top/maint.mk (update-copyright-env): Define place-holder.
30675         (update-copyright): Expand $(update-copyright-env) before
30676         invoking update-copyright.
30677
30678 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30679
30680         update-copyright: implement forced reformatting
30681         * build-aux/update-copyright: Implement and document
30682         UPDATE_COPYRIGHT_FORCE.
30683         * tests/test-update-copyright.sh: Test it.
30684
30685 2009-08-14  Eric Blake  <ebb9@byu.net>
30686         and Bruno Haible  <bruno@clisp.org>
30687
30688         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30689         * tests/test-locale.c: Revert previous patch related to NULL.
30690         * tests/test-stdio.c: Likewise.
30691         * tests/test-stdlib.c: Likewise.
30692         * tests/test-string.c: Likewise.
30693         * tests/test-unistd.c: Likewise.
30694         * modules/time-tests (Depends-on): Add verify.
30695         * modules/wchar-tests (Depends-on): Likewise.
30696         * tests/test-time.c: Test for NULL compliance.
30697         * tests/test-wchar.c: Likewise.
30698         * modules/locale (Depends-on): Add stddef.
30699         * modules/stdio (Depends-on): Likewise.
30700         * modules/stdlib (Depends-on): Likewise.
30701         * modules/string (Depends-on): Likewise.
30702         * modules/time (Depends-on): Likewise.
30703         * modules/unistd (Depends-on): Likewise.
30704         * modules/wchar (Depends-on): Likewise.
30705         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30706         * lib/stdlib.in.h (includes): Likewise.
30707         * lib/string.in.h (includes): Likewise.
30708         * lib/time.in.h (includes): Likewise.
30709         * lib/unistd.in.h (includes): Likewise.
30710         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30711         replaced.
30712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30713         * m4/stddef_h.m4: New file.
30714         * modules/stddef: Likewise.
30715         * lib/stddef.in.h: Likewise.
30716         * modules/stddef-tests: Likewise.
30717         * tests/test-stddef.c: Likewise.
30718         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30719         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30720         * doc/posix-headers/locale.texi (locale.h): Likewise.
30721         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30722         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30723         * doc/posix-headers/string.texi (string.h): Likewise.
30724         * doc/posix-headers/time.texi (time.h): Likewise.
30725         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30726         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30727
30728 2009-08-14  Eric Blake  <ebb9@byu.net>
30729
30730         doc: improve git diff of texinfo files
30731         * .gitattributes: Add rule for *.texi files, with hint on how to
30732         use it.
30733         Copied from m4, and based on a report by Bruno Haible.
30734
30735 2009-08-14  Bruno Haible  <bruno@clisp.org>
30736
30737         Disable multithread support by default on Cygwin 1.5.x for real.
30738         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30739
30740 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30741
30742         update-copyright: much ado about intervals
30743         * build-aux/update-copyright: Implement and document
30744         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30745         of copyright year intervals.
30746         Also, document UPDATE_COPYRIGHT_YEAR.
30747         * tests/test-update-copyright.sh: Test it.
30748
30749         update-copyright: convert 2-digit to 4-digit years
30750         * build-aux/update-copyright: Implement and document.
30751         * tests/test-update-copyright.sh: Update.
30752
30753 2009-08-14  Jim Meyering  <meyering@redhat.com>
30754
30755         test-exclude: avoid coreutils "make check" failure
30756         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30757         just as in test-argmatch.c.
30758
30759 2009-08-13  Eric Blake  <ebb9@byu.net>
30760
30761         test-dup2: fix bad assumption
30762         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30763         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30764
30765         test-version-etc: fix CRLF portability issue
30766         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30767         recognize \r.
30768         * tests/test-argp-version-etc-1.sh: Likewise.
30769
30770         getopt: update client modules
30771         * modules/argp (Depends-on): Use getopt-gnu.
30772         * modules/git-merge-changelog (Depends-on): Likewise.
30773         * modules/long-options (Depends-on): Likewise.
30774         * modules/xstrtol (Depends-on): Likewise.
30775
30776 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30777
30778         * tests/test-version-etc.sh: Don't fail on different
30779         project/version.  Don't fail on CRLF differences.  Rewrite to use
30780         multiple -e instead of multiple sed forks, suggested by Eric Blake
30781         <ebb9@byu.net>.
30782         * tests/test-argp-version-etc-1.sh: Likewise.
30783
30784 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30785
30786         * tests/test-version-etc.sh: Don't fail on different
30787         project/version.
30788
30789 2009-08-12  Bruno Haible  <bruno@clisp.org>
30790
30791         Tests for modules 'getopt-posix', 'getopt-gnu'.
30792         * modules/getopt-posix-tests: New file.
30793         * tests/test-getopt.c: New file.
30794         * tests/test-getopt.h: New file.
30795         * tests/test-getopt_long.h: New file.
30796
30797         New modules 'getopt-posix', 'getopt-gnu'.
30798         * modules/getopt-gnu: New file, renamed from modules/getopt.
30799         * modules/getopt-posix: New file.
30800         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30801         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30802         (gl_GETOPT): Remove macro.
30803         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30804         Disable the test against BSD systems that declare optreset. Test
30805         against mingw bug. Test against lack of support of optional arguments
30806         on many platforms.
30807         * doc/glibc-headers/getopt.texi: Update module name and list of
30808         relevant platforms.
30809         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30810         'getopt-gnu' and more portability problems.
30811         * NEWS: Mention the changes.
30812
30813 2009-08-12  Bruno Haible  <bruno@clisp.org>
30814
30815         Ensure that optarg etc. get declared by <unistd.h>.
30816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30817         AC_USE_SYSTEM_EXTENSIONS.
30818         * modules/getopt (Depends-on): Add 'extensions'.
30819
30820 2009-08-12  Bruno Haible  <bruno@clisp.org>
30821
30822         Avoid test link errors.
30823         * modules/pipe-filter-ii-tests (Makefile.am): Define
30824         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30825         * modules/pipe-filter-gi-tests (Makefile.am): Define
30826         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30828
30829 2009-08-12  Bruno Haible  <bruno@clisp.org>
30830
30831         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30832         gl_GETOPT_SUBSTITUTE before.
30833         (gl_GETOPT): Use it.
30834         * m4/argp.m4 (gl_ARGP): Update.
30835         Reported by Sergey Poznyakoff.
30836
30837         * m4/getopt.m4: Reorder macros.
30838         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30839         (gl_GETOPT_SUBSTITUTE): Remove macro.
30840
30841 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30842
30843         Minor improvement in gitlog-to-changelog
30844
30845         * build-aux/gitlog-to-changelog: New option `--format' makes
30846         output format string configurable.
30847
30848 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30849
30850         Optimize exclude: use hash tables for non-wildcard patterns.
30851
30852         * lib/exclude.c: Include hash.h and mbuiter.h
30853         (struct exclude_pattern, exclude_segment): New data types.
30854         (struct exclude): Rewrite.
30855         (fnmatch_pattern_has_wildcards): New function.
30856         (new_exclude_segment, free_exclude_segment): New functions.
30857         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30858         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30859         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30860         * modules/exclude: Depend on hash and mbuiter.
30861
30862         * modules/exclude-tests: New file.
30863         * tests/test-exclude.c: New file.
30864         * tests/test-exclude1.sh: New file.
30865         * tests/test-exclude2.sh: New file.
30866         * tests/test-exclude3.sh: New file.
30867         * tests/test-exclude4.sh: New file.
30868         * tests/test-exclude5.sh: New file.
30869         * tests/test-exclude6.sh: New file.
30870         * tests/test-exclude7.sh: New file.
30871
30872 2009-08-12  Bruno Haible  <bruno@clisp.org>
30873
30874         Ensure that getopt() gets declared by <unistd.h>.
30875         * lib/unistd.in.h: Conditionally include getopt.h.
30876         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30877         Set GNULIB_UNISTD_H_GETOPT.
30878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30879         GNULIB_UNISTD_H_GETOPT.
30880         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30881
30882 2009-08-12  Bruno Haible  <bruno@clisp.org>
30883
30884         Clarify logic.
30885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30886         gl_replace_getopt instead of GETOPT_H.
30887
30888 2009-08-12  Bruno Haible  <bruno@clisp.org>
30889
30890         * m4/getopt.m4: Add comments.
30891
30892 2009-08-12  Bruno Haible  <bruno@clisp.org>
30893
30894         Disable multithread support by default on Cygwin 1.5.x.
30895         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30896         set gl_use_threads=no if not specified otherwise.
30897
30898 2009-08-11  Bruno Haible  <bruno@clisp.org>
30899
30900         Avoid compilation error on NetBSD 5.0.
30901         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30902         * tests/test-stdio.c: Likewise.
30903         * tests/test-stdlib.c: Likewise.
30904         * tests/test-string.c: Likewise.
30905         * tests/test-unistd.c: Likewise.
30906         Reported by Greg Troxel <gdt@ir.bbn.com>
30907         at <https://savannah.gnu.org/support/?106973>.
30908
30909 2009-08-11  Bruno Haible  <bruno@clisp.org>
30910
30911         * modules/dup2-tests (Depends-on): Remove close.
30912
30913         Undo 2009-07-19 commit.
30914         * modules/acl-tests (Depends-on): Remove close.
30915         * modules/binary-io-tests (Depends-on): Likewise.
30916         * modules/closein-tests (Depends-on): Likewise.
30917         * modules/flock-tests (Depends-on): Likewise.
30918         * modules/fsync-tests (Depends-on): Likewise.
30919         * modules/lseek-tests (Depends-on): Likewise.
30920         * modules/pipe-tests (Depends-on): Likewise.
30921         * modules/posix_spawn-tests (Depends-on): Likewise.
30922         * modules/posix_spawnp-tests (Depends-on): Likewise.
30923         * modules/stat-time-tests (Depends-on): Likewise.
30924         * modules/yesno-tests (Depends-on): Likewise.
30925
30926 2009-08-10  Bruno Haible  <bruno@clisp.org>
30927
30928         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30929
30930 2009-08-10  Bruno Haible  <bruno@clisp.org>
30931
30932         Fix a gcc warning.
30933         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30934
30935 2009-08-10  Bruno Haible  <bruno@clisp.org>
30936
30937         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30938         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30939         not only the first time.
30940         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30941         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30942         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30943         is 1, not only the the first time.
30944
30945 2009-08-10  Bruno Haible  <bruno@clisp.org>
30946
30947         Make it possible to use module 'gethostname' without module 'close'.
30948         * lib/unistd.in.h (close): Evoke a link error only if
30949         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30951         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30952         * modules/unistd (Makefile.am): Substitute
30953         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30954         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30956         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30957         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30958         * modules/sys_ioctl (Makefile.am): Substitute
30959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30960         * modules/socket (configure.ac): On native Windows, set
30961         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30963         Reported by Sam Steingold <sds@gnu.org>.
30964
30965 2009-08-10  Bruno Haible  <bruno@clisp.org>
30966
30967         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30968         * modules/ioctl (configure.ac): Likewise.
30969
30970 2009-08-10  Bruno Haible  <bruno@clisp.org>
30971
30972         Avoid collision between gnulib wrapper and libintl wrapper.
30973         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30974         already defined in intl/printf.c.
30975         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30976         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30977
30978 2009-08-09  Bruno Haible  <bruno@clisp.org>
30979
30980         Make <sys/select.h> really self-contained, also on Solaris 10.
30981         * lib/sys_select.in.h: Include <string.h>.
30982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30983         Solaris 10 problem.
30984         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30985         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30986         Reported by Jim Meyering.
30987
30988 2009-08-09  Bruno Haible  <bruno@clisp.org>
30989
30990         Avoid warnings from 'aclocal' that are due to a use of macro name
30991         AM_XGETTEXT_OPTION that is not defined in automake.
30992         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30993         automake.
30994         * modules/error (configure.ac): Likewise.
30995         * modules/propername (configure.ac): Likewise.
30996         * modules/vasprintf (configure.ac): Likewise.
30997         * modules/verror (configure.ac): Likewise.
30998         * modules/xprintf (configure.ac): Likewise.
30999         * modules/xvasprintf (configure.ac): Likewise.
31000
31001 2009-08-08  Bruno Haible  <bruno@clisp.org>
31002
31003         Avoid compilation error in C++ mode.
31004         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31005         Reported by Sam Steingold <sds@gnu.org>.
31006
31007 2009-08-08  Bruno Haible  <bruno@clisp.org>
31008
31009         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31010         for the various Unix platforms.
31011         * doc/posix-headers/limits.texi: Update platforms list regarding
31012         HOST_NAME_MAX.
31013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31014
31015 2009-08-07  Jim Meyering  <meyering@redhat.com>
31016
31017         selinux-at: fix typo in a comment
31018         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31019         Spotted by Paolo Bonzini.
31020
31021         selinux-at: remove redundant m4 code, add documentation
31022         * modules/selinux-at (configure.ac): Remove redundant code.
31023         LIB_SELINUX is already set via the dependent module, selinux-h.
31024         (Include): Add quotes around selinux-at.h.
31025         * lib/selinux-at.h: Add documentation.
31026         Reported by Bruno Haible in
31027         http://marc.info/?l=gnulib-bug&m=124958988300749
31028
31029 2009-08-07  Bruno Haible  <bruno@clisp.org>
31030
31031         Avoid link error on MacOS X 10.3 and 10.4.
31032         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31033         on non-ELF systems.
31034         * lib/argp-pv.c (argp_program_version): Likewise.
31035         Reported by Simon Josefsson.
31036
31037 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31038
31039         * tests/test-version-etc.sh: Use $EXEEXT.
31040
31041 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31042
31043         update-copyright: update documentation to point to maint.mk
31044         * build-aux/update-copyright: Here.
31045
31046 2009-08-06  Jim Meyering  <meyering@redhat.com>
31047
31048         maint.mk: support update-copyright-local
31049         * top/maint.mk (update-copyright-local): Define place-holder.
31050         (update-copyright): Depend on $(update-copyright-local).
31051
31052 2009-08-06  Jim Meyering  <meyering@redhat.com>
31053
31054         selinux-at: new module
31055         Initially written for coreutils, this module will soon be
31056         used by findutils, too.
31057         * MODULES.html.sh [Misc]: Add selinux-at.
31058         * lib/selinux-at.h: New file, from coreutils.
31059         * lib/selinux-at.c: Likewise.
31060         * modules/selinux-at: Likewise.
31061         (License): Change from LGPL to GPL, since it depends
31062         on the GPL'd openat module.
31063
31064         doc: update README
31065         * README: Remove references to cogito.
31066         Remove cvs-repo-updating instructions from 2007.
31067         Don't imply that CVS is better if you have limited disk space.
31068
31069 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31070
31071         update-copyright: support C-style comments
31072         * build-aux/update-copyright: Implement and document.
31073         * tests/test-update-copyright.sh: Test.
31074
31075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31076
31077         update-copyright: support omitted "(C)"
31078         * build-aux/update-copyright: Implement and document.  Also,
31079         allow variable whitespace before "(C)".
31080         * tests/test-update-copyright.sh: Test.
31081
31082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31083
31084         update-copyright: don't trip on non-FSF copyright statements
31085         * build-aux/update-copyright: Fix so that the first correctly
31086         formatted FSF copyright statement is recognized no matter what
31087         appears before it.  Update documentation.
31088         * tests/test-update-copyright.sh: Test that.
31089
31090 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31091
31092         update-copyright: clean up code a little
31093         * build-aux/update-copyright: Append "_re" to the name of any
31094         variable holding a regular expression.
31095         Replace "old" and "new" with "stmt" in variable names.
31096         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31097         handled correctly.
31098         Format code more consistently.
31099
31100 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31101
31102         update-copyright-tests: improve portability
31103         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31104         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31105
31106 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31107
31108         update-copyright: support @copyright{} and &copy;
31109         * build-aux/update-copyright: Implement and document.
31110         * tests/test-update-copyright.sh: Test.
31111
31112 2009-08-04  Jim Meyering  <meyering@redhat.com>
31113
31114         update-copyright-tests: correctly test EOL=\r\n handling
31115         * tests/test-update-copyright.sh: Put \r at the end of some lines
31116         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31117
31118         maint.mk: make update-copyright exclusion list more configurable
31119         * top/maint.mk (update-copyright): Default to excluding COPYING,
31120         but allow an override, in case someone does want to update that file.
31121
31122         maint.mk: don't update copyright date in COPYING
31123         * top/maint.mk (update-copyright): Exclude COPYING.
31124
31125         maint.mk: add a copyright-updating rule
31126         * top/maint.mk (update-copyright): New rule.
31127         Derived from coreutils/Makefile.am.
31128
31129         update-copyright: rename some variables
31130         * build-aux/update-copyright: Rename a few variables for clarity.
31131         Tweak syntax.  List Joel E. Denny as coauthor.
31132
31133 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31134
31135         update-copyright: fix bug for 2-digit last year and add tests
31136         * build-aux/update-copyright: Fix bug.
31137         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31138         specified.
31139         * modules/update-copyright-tests: New
31140         * tests/test-update-copyright.sh: New.
31141
31142 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31143
31144         update-copyright: handle leading tabs in line prefix
31145         * build-aux/update-copyright: Count leading tabs as 8 spaces
31146         when computing margin.  This helps with the formatting of
31147         ChangeLogs, for example.
31148         Fix documentation a little.
31149
31150 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31151
31152         update-copyright: support EOL=\r\n
31153         * build-aux/update-copyright: Implement that.
31154
31155 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31156
31157         update-copyright: automatically format copyright statements
31158         * build-aux/update-copyright: Implement that.
31159         Also, be a little more predictable and safer by always failing
31160         when the full copyright format is not perfectly recognized as an
31161         unbroken whole.  Discussed at
31162         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31163         Rewrite documentation.
31164
31165 2009-08-03  Bruno Haible  <bruno@clisp.org>
31166
31167         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31168
31169 2009-08-02  Bruno Haible  <bruno@clisp.org>
31170
31171         Tests for module 'uname'.
31172         * modules/uname-tests: New file.
31173         * tests/test-uname.c: New file.
31174
31175         New module 'uname'.
31176         * lib/uname.c: New file.
31177         * m4/uname.m4: New file.
31178         * modules/uname: New file.
31179         * doc/posix-functions/uname.texi: Mention the new module.
31180
31181 2009-08-02  Bruno Haible  <bruno@clisp.org>
31182
31183         Tests for module 'sys_utsname'.
31184         * modules/sys_utsname-tests: New file.
31185         * tests/test-sys_utsname.c: New file.
31186
31187         New module 'sys_utsname'.
31188         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31189         * m4/sys_utsname_h.m4: New file.
31190         * modules/sys_utsname: New file.
31191         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31192
31193 2009-08-02  Bruno Haible  <bruno@clisp.org>
31194
31195         Implicitly initialize the sockets library.
31196         * lib/gethostname.c: Include sockets.h.
31197         (rpl_gethostname): Invoke gl_sockets_startup.
31198         * lib/socket.c: Include sockets.h.
31199         (rpl_socket): Invoke gl_sockets_startup.
31200         * modules/gethostname (Depends-on): Add sockets.
31201         * modules/socket (Depends-on): Likewise.
31202         * tests/test-poll.c: Don't include sockets.h.
31203         (main): Don't invoke gl_sockets_startup.
31204         * tests/test-select.c: Don't include sockets.h.
31205         (main): Don't invoke gl_sockets_startup.
31206
31207 2009-08-02  Bruno Haible  <bruno@clisp.org>
31208
31209         Allow multiple calls to gl_sockets_startup.
31210         * lib/sockets.c (initialized_sockets_version): New variable.
31211         (gl_sockets_startup): Do nothing if already called for this or a higher
31212         version.
31213         (gl_sockets_cleanup): Reset initialized_sockets_version.
31214
31215 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31216
31217         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31218         different project/version.
31219
31220 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31221             Bruno Haible  <bruno@clisp.org>
31222
31223         Tests for module 'pipe-filter-gi'.
31224         * modules/pipe-filter-gi-tests: New file.
31225         * tests/test-pipe-filter-gi1.sh: New file.
31226         * tests/test-pipe-filter-gi1.c: New file.
31227         * tests/test-pipe-filter-gi2.sh: New file.
31228         * tests/test-pipe-filter-gi2-main.c: New file.
31229         * tests/test-pipe-filter-gi2-child.c: New file.
31230
31231         New module 'pipe-filter-gi'.
31232         * lib/pipe-filter-gi.c: New file.
31233         * modules/pipe-filter-gi: New file.
31234
31235 2009-08-02  Bruno Haible  <bruno@clisp.org>
31236             Paolo Bonzini  <bonzini@gnu.org>
31237
31238         Tests for module 'pipe-filter-ii'.
31239         * modules/pipe-filter-ii-tests: New file.
31240         * tests/test-pipe-filter-ii1.sh: New file.
31241         * tests/test-pipe-filter-ii1.c: New file.
31242         * tests/test-pipe-filter-ii2.sh: New file.
31243         * tests/test-pipe-filter-ii2-main.c: New file.
31244         * tests/test-pipe-filter-ii2-child.c: New file.
31245
31246         New module 'pipe-filter-ii'.
31247         * lib/pipe-filter.h: New file.
31248         * lib/pipe-filter-ii.c: New file.
31249         * lib/pipe-filter-aux.h: New file.
31250         * modules/pipe-filter-ii: New file.
31251
31252 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31253
31254         * lib/gc-libgcrypt.c: Change copyright to FSF.
31255         * lib/gc-gnulib.c: Likewise.
31256
31257 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31258
31259         * lib/gethostname.c: Include limits.h.
31260
31261 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31262             Bruno Haible  <bruno@clisp.org>
31263
31264         Ensure HOST_NAME_MAX as part of the gethostname module.
31265         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31266         define also HOST_NAME_MAX.
31267         * tests/test-gethostname.c: Include <limits.h>.
31268         (main): Check also HOST_NAME_MAX.
31269         * doc/posix-headers/limits.texi: Document the mingw problem.
31270
31271 2009-08-02  Bruno Haible  <bruno@clisp.org>
31272
31273         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31274         Add comments.
31275
31276 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31277
31278         * lib/gethostname.c: Add Windows wrapper.
31279         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31280         * modules/gethostname: Depend on sys_socket & errno, for also
31281         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31282         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31283
31284 2009-07-31  Jim Meyering  <meyering@redhat.com>
31285
31286         getloadavg: fix symbol name in comment
31287         * lib/getloadavg.c: Correct a typo I introduced when adding
31288         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31289         Matt Kraai spotted the problem.
31290
31291 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31292
31293         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31294         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31295         code also if ! defined N_NAME_POINTER.
31296         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31297         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31298         but the n_name member is a 12-byte array.
31299
31300 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31301
31302         update-copyright: generalize comment handling
31303         * build-aux/update-copyright: Handle copyright statements
31304         within more comment styles.
31305         Document usage.
31306         Report any file with an external copyright holder or parse failure.
31307
31308 2009-07-29  Jim Meyering  <meyering@redhat.com>
31309
31310         mktime: correct setting of REPLACE_MKTIME
31311         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31312
31313         update-copyright: new module
31314         * modules/update-copyright: New file.
31315         * build-aux/update-copyright: New file.
31316         * MODULES.html.sh (maint+release support): Add update-copyright.
31317
31318 2009-07-27  Bruno Haible  <bruno@clisp.org>
31319
31320         Fix compilation error when <ctime> is used and mktime is replaced.
31321         * lib/time.in.h (mktime): New declaration.
31322         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31323         REPLACE_MKTIME instead of defining mktime in config.h.
31324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31325         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31326         Reported by Ross McFarland <rwmcfa1@neces.com>.
31327
31328 2009-07-27  Bruno Haible  <bruno@clisp.org>
31329
31330         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31331         Reported by Matt Kraai <mkraai@beckman.com>.
31332
31333 2009-07-25  Jim Meyering  <meyering@redhat.com>
31334
31335         maint.mk: avoid warnings about missing files
31336         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31337         diagnostic when .prev-version does not exist.
31338         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31339         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31340         nonexistent cfg.mk.
31341         Suggestions from Simon Josefsson.
31342
31343 2009-07-25  Bruno Haible  <bruno@clisp.org>
31344
31345         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31346         defined as macros. Needed on QNX 6.4.1.
31347         Reported by Matt Kraai <mkraai@beckman.com>.
31348
31349 2009-07-23  Jim Meyering  <meyering@redhat.com>
31350
31351         maint.mk: invoke "make dist" with a working value of XZ_OPT
31352         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31353
31354 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31355
31356         Make fseeko.c compile on QNX.
31357         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31358
31359 2009-07-22  Peter Simons  <simons@cryp.to>
31360
31361         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31362         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31363         * lib/md4.h: Likewise.
31364         * lib/md5.h: Likewise.
31365         * lib/sha1.h: Likewise.
31366         * lib/sha256.h: Likewise.
31367         * lib/sha512.h: Likewise.
31368
31369         tests-sha1: don't assign literal string to 'char *' variable
31370         * tests/test-sha1.c (main): Declare locals with "const" to match
31371         attributes of the right hand side.
31372
31373 2009-07-21  Eric Blake  <ebb9@byu.net>
31374
31375         dup2: fix more mingw problems
31376         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31377         fd to itself.
31378         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31379         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31380         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31381         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31382         care of mingw bugs.
31383
31384 2009-07-21  Jim Meyering  <meyering@redhat.com>
31385
31386         vc-list-files: avoid failure when /bin/sh is dash
31387         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31388         On some Debian based systems, /bin/sh is a symlink to dash, and running
31389         this command would omit the "/" following each 'tests' prefix:
31390           dash -x build-aux/vc-list-files -C . tests
31391         That is because bash and dash work differently:
31392           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31393           bash ok
31394           dash odd
31395
31396 2009-07-21  Eric Blake  <ebb9@byu.net>
31397
31398         dup2-tests: test previous patch
31399         * modules/dup2-tests: New file.
31400         * tests/test-dup2.c: Likewise.
31401         * tests/test-open.c (main): Avoid unspecified behavior.
31402         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31403         test.
31404
31405         dup2: work around mingw and cygwin 1.5 bug
31406         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31408         * modules/unistd (Makefile.am): Substitute it.
31409         * lib/unistd.in.h (dup2): Declare the replacement.
31410         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31411         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31412         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31413         * modules/execute (Depends-on): Add dup2.
31414         * modules/fseterr (Depends-on): Likewise.
31415         * modules/pipe (Depends-on): Likewise.
31416         * modules/posix_spawn-internal (Depends-on): Likewise.
31417
31418 2009-07-21  Bruno Haible  <bruno@clisp.org>
31419
31420         * modules/.gitattributes: New file.
31421
31422 2009-07-20  Bruno Haible  <bruno@clisp.org>
31423
31424         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31425         (main): Use it.
31426
31427 2009-07-20  Eric Blake  <ebb9@byu.net>
31428
31429         test-pipe: make a bit more robust.
31430         * tests/test-pipe.c (myerr): Allow error messages regardless of
31431         what we do to stderr.
31432         (test_pipe): Rearrange to avoid deadlock.
31433         (child_main): Try a larger read, to ensure we avoided deadlock.
31434         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31435         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31436         if misused.
31437
31438 2009-07-19  Jim Meyering  <meyering@redhat.com>
31439
31440         fts: avoid false-positive cycle-detection
31441         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31442         for each new command line argument.
31443
31444 2009-07-19  Bruno Haible  <bruno@clisp.org>
31445
31446         Fix build error on mingw with the modules sys_select and unistd.
31447         * modules/acl-tests (Depends-on): Add close.
31448         * modules/binary-io-tests (Depends-on): Likewise.
31449         * modules/closein-tests (Depends-on): Likewise.
31450         * modules/flock-tests (Depends-on): Likewise.
31451         * modules/fsync-tests (Depends-on): Likewise.
31452         * modules/lseek-tests (Depends-on): Likewise.
31453         * modules/pipe-tests (Depends-on): Likewise.
31454         * modules/posix_spawn-tests (Depends-on): Likewise.
31455         * modules/posix_spawnp-tests (Depends-on): Likewise.
31456         * modules/stat-time-tests (Depends-on): Likewise.
31457         * modules/yesno-tests (Depends-on): Likewise.
31458
31459 2009-07-19  Bruno Haible  <bruno@clisp.org>
31460
31461         Unify conditionals.
31462         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31463         macros, not at the compiler macros.
31464         * lib/pipe.c: Likewise.
31465         * lib/execute.c: Likewise.
31466         * lib/spawni.c: Likewise.
31467
31468 2009-07-19  Bruno Haible  <bruno@clisp.org>
31469
31470         Fix handling of closed stdin/stdout/stderr on mingw.
31471         * lib/w32spawn.h: Include unistd.h.
31472         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31473         file descriptor with O_NOINHERIT flag.
31474         (fd_safer_noinherit): New function, based on fd-safer.c.
31475         (dup_safer_noinherit): New function, based on dup-safer.c.
31476         (undup_safer_noinherit): New function.
31477         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31478         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31479         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31480         instead of fd_safer.
31481         * tests/test-pipe.c: Include <windows.h>.
31482         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31483         result.
31484
31485         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31486         from main.
31487         (test_pipe): Pass an extra argument for disambiguation.
31488         (main): Invoke parent_main or child_main.
31489
31490         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31491         consistently.
31492
31493 2009-07-18  Eric Blake  <ebb9@byu.net>
31494
31495         test-pipe: fix mingw build
31496         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31497
31498 2009-07-18  Bruno Haible  <bruno@clisp.org>
31499
31500         * modules/pipe-tests (Makefile.am): Fix typo.
31501
31502 2009-07-18  Eric Blake  <ebb9@byu.net>
31503
31504         error: fix mingw build
31505         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31506         Reported by Bruno Haible.
31507
31508         error: avoid undefined use of stdout
31509         * lib/error.c (error, error_at_line): Check that fd 1 is open
31510         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31511         is handling faults and the close_stdout module wants to report the
31512         detection of closed stdout as an error.
31513
31514 2009-07-17  Eric Blake  <ebb9@byu.net>
31515
31516         pipe: be robust in face of closed fds
31517         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31518         should cause child to misbehave.
31519         * modules/pipe-tests: New module.
31520         * tests/test-pipe.c: New file.
31521         * tests/test-pipe.sh: New file.
31522         Reported by Akim Demaille.
31523
31524 2009-07-14  Bruno Haible  <bruno@clisp.org>
31525
31526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31527         Reported by anonymous kc.
31528
31529 2009-07-07  Jim Meyering  <meyering@redhat.com>
31530
31531         maint.mk: don't look for translatable strings in *.m4 or *.mk
31532         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31533         when searching for translatable strings.
31534
31535 2009-07-05  Jim Meyering  <meyering@redhat.com>
31536
31537         remove superfluous parentheses in STREQ definition
31538         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31539         * lib/getugroups.c (STREQ): Likewise.
31540         * lib/fnmatch.c (STREQ): Likewise.
31541         Spotted by Bruno Haible.
31542
31543 2009-07-04  Jim Meyering  <meyering@redhat.com>
31544
31545         argv-iter: new module
31546         * MODULES.html.sh: Add argv-iter.
31547         * lib/argv-iter.c, lib/argv-iter.h: New files.
31548         * modules/argv-iter: New file.
31549         * modules/argv-iter-tests: New file.
31550         * tests/test-argv-iter.c: Test it.
31551
31552 2009-07-04  Bruno Haible  <bruno@clisp.org>
31553
31554         Fix assertion.
31555         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31556         contains more exact copies of a given entry than file2, leave the extra
31557         copies unpaired rather than aborting.
31558         Reported by Eric Blake.
31559
31560 2009-07-02  Bruno Haible  <bruno@clisp.org>
31561
31562         Speedup git-merge-changelog for git cherry-pick.
31563         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31564         (entries_mapping_get): New function, extracted from compute_mapping.
31565         (entries_mapping_reverse_get): New function.
31566         (compute_mapping): Add a 'full' argument. Return the result in a
31567         'struct entries_mapping'.
31568         (main): Update. Access the mappings through entries_mapping_get.
31569         Reported by Eric Blake.
31570
31571 2009-07-02  Bruno Haible  <bruno@clisp.org>
31572
31573         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31574         best_i.
31575
31576 2009-07-02  Bruno Haible  <bruno@clisp.org>
31577
31578         Speed up approximate search for matching ChangeLog entries.
31579         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31580         argument. Call fstrcmp_bounded instead of fstrcmp.
31581         (compute_mapping, try_split_merged_entry, main): Update callers.
31582
31583 2009-07-02  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31586
31587 2009-06-30  Bruno Haible  <bruno@clisp.org>
31588
31589         Reduce the number of uc_is_cased calls.
31590         * lib/unicase.h (casing_suffix_context_t): Add
31591         'first_char_except_ignorable' field.
31592         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31593         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31594         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31595         Update initializer.
31596         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31597         case-ignorable characters.
31598         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31599         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31600         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31601         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31602         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31603
31604 2009-06-30  Bruno Haible  <bruno@clisp.org>
31605
31606         Tests for module 'unicase/ignorable'.
31607         * modules/unicase/ignorable-tests: New file.
31608         * tests/unicase/test-ignorable.c: New file, generated by
31609         gen-uni-tables.
31610
31611         Tests for module 'unicase/cased'.
31612         * modules/unicase/cased-tests: New file.
31613         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31614         * tests/unicase/test-predicate-part1.h: New file, derived from
31615         tests/unictype/test-predicate-part1.h.
31616         * tests/unicase/test-predicate-part2.h: New file, same as
31617         tests/unictype/test-predicate-part2.h.
31618
31619         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31620         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31621         (output_casing_properties): New function.
31622         (main): Call it.
31623         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31624         * lib/unicase/cased.c: Include unictype/bitmap.h.
31625         (uc_is_cased): Define through a bitmap lookup.
31626         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31627         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31628         (uc_is_case_ignorable): Define through a bitmap lookup.
31629         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31630         lib/unictype/bitmap.h.
31631         (Depends-on): Add inline. Clean up.
31632         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31633         lib/unictype/bitmap.h.
31634         (Depends-on): Add inline. Clean up.
31635         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31636         recognition.
31637         * tests/unicase/test-u16-tolower.c (main): Likewise.
31638         * tests/unicase/test-u32-tolower.c (main): Likewise.
31639
31640 2009-06-30  Bruno Haible  <bruno@clisp.org>
31641
31642         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31643         * lib/unicase/u16-casemap.c: Likewise.
31644         * lib/unicase/u32-casemap.c: Likewise.
31645
31646 2009-06-29  Bruno Haible  <bruno@clisp.org>
31647
31648         Define u32_casefold as a wrapper around u32_ct_casefold.
31649         * lib/unicase/u32-casefold.c: Update.
31650         * modules/unicase/u32-casefold (Depends-on): Add
31651         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31652         unicase/empty-suffix-context. Clean up.
31653
31654         Define u16_casefold as a wrapper around u16_ct_casefold.
31655         * lib/unicase/u16-casefold.c: Update.
31656         * modules/unicase/u16-casefold (Depends-on): Add
31657         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31658         unicase/empty-suffix-context. Clean up.
31659
31660         Define u8_casefold as a wrapper around u8_ct_casefold.
31661         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31662         * lib/unicase/u8-casefold.c: Update.
31663         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31664         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31665
31666         Define u32_totitle as a wrapper around u32_ct_totitle.
31667         * lib/unicase/u32-totitle.c: Update.
31668         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31669         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31670
31671         Define u16_totitle as a wrapper around u16_ct_totitle.
31672         * lib/unicase/u16-totitle.c: Update.
31673         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31675
31676         Define u8_totitle as a wrapper around u8_ct_totitle.
31677         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31678         functions.
31679         (FUNC): Delegate to U_CT_TOTITLE.
31680         * lib/unicase/u8-totitle.c: Update.
31681         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31682         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31683
31684         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31685         invocation.
31686         * modules/unicase/u32-tolower (Depends-on): Add
31687         unicase/empty-prefix-context, unicase/empty-suffix-context.
31688
31689         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31690         invocation.
31691         * modules/unicase/u16-tolower (Depends-on): Add
31692         unicase/empty-prefix-context, unicase/empty-suffix-context.
31693
31694         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31695         * modules/unicase/u8-tolower (Depends-on): Add
31696         unicase/empty-prefix-context, unicase/empty-suffix-context.
31697
31698         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31699         invocation.
31700         * modules/unicase/u32-toupper (Depends-on): Add
31701         unicase/empty-prefix-context, unicase/empty-suffix-context.
31702
31703         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31704         invocation.
31705         * modules/unicase/u16-toupper (Depends-on): Add
31706         unicase/empty-prefix-context, unicase/empty-suffix-context.
31707
31708         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31709         * modules/unicase/u8-toupper (Depends-on): Add
31710         unicase/empty-prefix-context, unicase/empty-suffix-context.
31711
31712         New module 'unicase/u32-ct-casefold'.
31713         * lib/unicase/u32-ct-casefold.c: New file.
31714         * modules/unicase/u32-ct-casefold: New file.
31715
31716         New module 'unicase/u16-ct-casefold'.
31717         * lib/unicase/u16-ct-casefold.c: New file.
31718         * modules/unicase/u16-ct-casefold: New file.
31719
31720         New module 'unicase/u8-ct-casefold'.
31721         * lib/unicase/u8-ct-casefold.c: New file.
31722         * lib/unicase/u-ct-casefold.h: New file, derived from
31723         lib/unicase/u-casefold.h.
31724         * modules/unicase/u8-ct-casefold: New file.
31725
31726         New module 'unicase/u32-ct-totitle'.
31727         * lib/unicase/u32-ct-totitle.c: New file.
31728         * modules/unicase/u32-ct-totitle: New file.
31729
31730         New module 'unicase/u16-ct-totitle'.
31731         * lib/unicase/u16-ct-totitle.c: New file.
31732         * modules/unicase/u16-ct-totitle: New file.
31733
31734         New module 'unicase/u8-ct-totitle'.
31735         * lib/unicase/u8-ct-totitle.c: New file.
31736         * lib/unicase/u-ct-totitle.h: New file, derived from
31737         lib/unicase/u-totitle.h.
31738         * modules/unicase/u8-ct-totitle: New file.
31739
31740         New module 'unicase/u32-ct-tolower'.
31741         * lib/unicase/u32-ct-tolower.c: New file.
31742         * modules/unicase/u32-ct-tolower: New file.
31743
31744         New module 'unicase/u16-ct-tolower'.
31745         * lib/unicase/u16-ct-tolower.c: New file.
31746         * modules/unicase/u16-ct-tolower: New file.
31747
31748         New module 'unicase/u8-ct-tolower'.
31749         * lib/unicase/u8-ct-tolower.c: New file.
31750         * modules/unicase/u8-ct-tolower: New file.
31751
31752         New module 'unicase/u32-ct-toupper'.
31753         * lib/unicase/u32-ct-toupper.c: New file.
31754         * modules/unicase/u32-ct-toupper: New file.
31755
31756         New module 'unicase/u16-ct-toupper'.
31757         * lib/unicase/u16-ct-toupper.c: New file.
31758         * modules/unicase/u16-ct-toupper: New file.
31759
31760         New module 'unicase/u8-ct-toupper'.
31761         * lib/unicase/u8-ct-toupper.c: New file.
31762         * modules/unicase/u8-ct-toupper: New file.
31763
31764         Add context arguments to u*_casemap functions.
31765         * lib/unicase/unicasemap.h: Include unicase.h.
31766         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31767         suffix_context arguments.
31768         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31769         functions.
31770         (FUNC): Add prefix_context and suffix_context arguments. Use
31771         uc_is_cased and uc_is_case_ignorable.
31772         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31773         * lib/unicase/u16-casemap.c: Likewise.
31774         * lib/unicase/u32-casemap.c: Likewise.
31775         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31776         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31777         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31778         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31779         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31781
31782         New module 'unicase/u32-suffix-context'.
31783         * lib/unicase/u32-suffix-context.c: New file.
31784         * modules/unicase/u32-suffix-context: New file.
31785
31786         New module 'unicase/u16-suffix-context'.
31787         * lib/unicase/u16-suffix-context.c: New file.
31788         * modules/unicase/u16-suffix-context: New file.
31789
31790         New module 'unicase/u8-suffix-context'.
31791         * lib/unicase/u8-suffix-context.c: New file.
31792         * lib/unicase/u-suffix-context.h: New file.
31793         * modules/unicase/u8-suffix-context: New file.
31794
31795         New module 'unicase/empty-suffix-context'.
31796         * lib/unicase/empty-suffix-context.c: New file.
31797         * modules/unicase/empty-suffix-context: New file.
31798
31799         New module 'unicase/u32-prefix-context'.
31800         * lib/unicase/u32-prefix-context.c: New file.
31801         * modules/unicase/u32-prefix-context: New file.
31802
31803         New module 'unicase/u16-prefix-context'.
31804         * lib/unicase/u16-prefix-context.c: New file.
31805         * modules/unicase/u16-prefix-context: New file.
31806
31807         New module 'unicase/u8-prefix-context'.
31808         * lib/unicase/u8-prefix-context.c: New file.
31809         * lib/unicase/u-prefix-context.h: New file.
31810         * lib/unicase/context.h: New file.
31811         * modules/unicase/u8-prefix-context: New file.
31812
31813         New module 'unicase/empty-prefix-context'.
31814         * lib/unicase/empty-prefix-context.c: New file.
31815         * modules/unicase/empty-prefix-context: New file.
31816
31817         New module 'unicase/ignorable'.
31818         * lib/unicase/ignorable.c: New file.
31819         * modules/unicase/ignorable: New file.
31820
31821         New module 'unicase/cased'.
31822         * lib/unicase/caseprop.h: New file.
31823         * lib/unicase/cased.c: New file.
31824         * modules/unicase/cased: New file.
31825
31826         New functions for case mapping of substrings.
31827         * lib/unicase.h (casing_prefix_context_t): New type.
31828         (unicase_empty_prefix_context): New variable.
31829         (u8_casing_prefix_context, u16_casing_prefix_context,
31830         u32_casing_prefix_context, u8_casing_prefixes_context,
31831         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31832         declarations.
31833         (casing_suffix_context_t): New type.
31834         (unicase_empty_suffix_context): New variable.
31835         (u8_casing_suffix_context, u16_casing_suffix_context,
31836         u32_casing_suffix_context, u8_casing_suffixes_context,
31837         u16_casing_suffixes_context, u32_casing_suffixes_context,
31838         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31839         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31840         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31841         declarations.
31842
31843 2009-06-28  Jim Meyering  <meyering@redhat.com>
31844
31845         boostrap: indent only with spaces
31846         * build-aux/bootstrap: Indent only with spaces, never TABs.
31847
31848         bootstrap: split long lines
31849         * build-aux/bootstrap: Keep line length < 80.
31850
31851         bootstrap: sync from coreutils
31852         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31853         just as autoreconf does.  Verify a list of prerequisite
31854         package-name,version-number pairs if defined in bootstrap.conf.
31855         Refer to README-prereq, if prerequisites are not satisfied.
31856
31857 2009-06-27  Eric Blake  <ebb9@byu.net>
31858
31859         tests: add test for bogus NULL definition
31860         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31861         * tests/test-stdlib.c: Likewise.
31862         * tests/test-string.c: Likewise.
31863         * tests/test-locale.c: Likewise.
31864         * tests/test-unistd.c: Likewise.
31865         * modules/stdio-tests (Depends-on): Add verify.
31866         * modules/stdlib-tests (Depends-on): Likewise.
31867         * modules/string-tests (Depends-on): Likewise.
31868         * modules/locale-tests (Depends-on): Likewise.
31869         * modules/unistd-tests (Depends-on): Likewise.
31870
31871 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31872
31873         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31874         self-explaining comment.
31875         * m4/selinux-selinux-h: Update serial.
31876         (gl_LIBSELINUX): New macro, adding a warning for missing development
31877         packages to code extracted from...
31878         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31879         Add warning for missing development packages here, too.
31880
31881 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31882
31883         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31884
31885 2009-06-25  Eric Blake  <ebb9@byu.net>
31886
31887         version-etc: fix regression
31888         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31889         gcc.
31890         (version_etc): Use it, to catch bugs with trailing NULL.
31891         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31892         (version_etc_va): Fix logic bug.
31893         * modules/version-etc-tests: Add test.
31894         * tests/test-version-etc.c: New file.
31895         * tests/test-version-etc.sh: Likewise.
31896
31897 2009-06-25  Sam Steingold  <sds@gnu.org>
31898
31899         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31900         mbtowc declaration.
31901
31902 2009-06-25  Eric Blake  <ebb9@byu.net>
31903
31904         fpurge: migrate into <stdio.h>
31905         * lib/fpurge.h: Delete...
31906         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31907         * lib/fpurge.c (fpurge): Change declaring header.
31908         * modules/fpurge (Files): Drop deleted file.
31909         (Depends-on): Add stdio.
31910         (configure.ac): Set witness.
31911         * modules/stdio (Makefile.am): Support fpurge macros.
31912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31914         * lib/fflush.c: Update client.
31915         * tests/test-fpurge.c: Likewise.
31916         * NEWS: Mention the change.
31917
31918 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31919
31920         * lib/argp-version-etc.c (program_authors): Add const
31921         qualifier.
31922         * lib/version-etc.c: Fix typos in the comments.
31923         * modules/argp-version-etc: Depends on version-etc.
31924
31925 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31926
31927         argp-version-etc: new module.
31928
31929         * lib/argp-version-etc.c: New file.
31930         * lib/argp-version-etc.h: New file.
31931         * modules/argp-version-etc: New file.
31932         * modules/argp-version-etc-tests: New file.
31933         * tests/test-argp-version-etc.c: New test.
31934         * tests/test-argp-version-etc-1.sh: New test.
31935
31936 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31937
31938         Provide additional interfaces and documentation for version-etc
31939         module.
31940
31941         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31942         interfaces.
31943         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31944         prototypes.
31945
31946 2009-06-24  Bruno Haible  <bruno@clisp.org>
31947
31948         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31949         HAVE_LIB${NAME} macro.
31950         Reported by Sam Steingold <sds@gnu.org>.
31951
31952 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31953
31954         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31955         needed.
31956
31957 2009-06-21  Bruno Haible  <bruno@clisp.org>
31958
31959         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31960         work.
31961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31962         together with LIB${NAME}, LTLIB${NAME}.
31963         Reported by Sam Steingold <sds@gnu.org>.
31964
31965 2009-06-20  Jim Meyering  <meyering@redhat.com>
31966
31967         tests: make sc_require_test_exit_idiom more generic
31968         * top/maint.mk (Exit_witness_file): New overridable variable.
31969         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31970         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31971
31972 2009-06-19  Jim Meyering  <meyering@redhat.com>
31973
31974         hash: reverse order of src/dst parameters in an internal interface
31975         * lib/hash.c (transfer_entries): Reverse order of parameters to
31976         put DST before SRC.  Adjust callers.
31977
31978         tests: test-hash: avoid wholesale duplication
31979         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31980         Instead, use a loop and add a single conditional.
31981
31982         tests: test-hash: allow seed selection via a command line argument
31983         * tests/test-hash.c (get_seed): New function.
31984         (main): Use it.
31985
31986 2009-06-19  Eric Blake  <ebb9@byu.net>
31987
31988         hash: avoid memory leak on allocation failure
31989         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31990         failure.  Factor repeated algorithm...
31991         (transfer_entries): ...into new helper routine.
31992         (hash_delete): React to hash_rehash return value.
31993
31994         hash: reduce memory pressure in hash_rehash no-op case
31995         * lib/hash.c (next_prime): Avoid overflow.
31996         (hash_initialize): Factor bucket size computation...
31997         (compute_bucket_size): ...into new helper function.
31998         (hash_rehash): Use new function and open coding to reduce memory
31999         pressure, and avoid a memory leak in USE_OBSTACK code.
32000         Reported by Jim Meyering.
32001
32002 2009-06-18  Eric Blake  <ebb9@byu.net>
32003
32004         hash: make rotation more obvious
32005         * modules/hash (Depends-on): Add bitrotate and stdint.
32006         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32007         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32008         (SIZE_MAX): Rely on headers for definition.
32009         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32010         (raw_hasher): Use rotr_sz.
32011         Suggested by Jim Meyering.
32012
32013         hash: fix memory leak in last patch
32014         * lib/hash.c (hash_rehash): Avoid memory leak.
32015
32016         hash: avoid no-op rehashing
32017         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32018
32019         hash: provide default callback functions
32020         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32021         (hash_initialize): Use them as defaults.
32022         * tests/test-hash.c (main): Test this.
32023
32024         hash: minor optimization
32025         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32026         when possible.
32027         (hash_initialize): Document this promise.
32028         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32029         * tests/test-hash.c (hash_compare_strings): Test this.
32030
32031 2009-06-18  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32034         going to be replaced anyway.
32035
32036 2009-06-18  Bruno Haible  <bruno@clisp.org>
32037
32038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32039         in one place.
32040         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32041         be replaced anyway.
32042
32043 2009-06-18  Eric Blake  <ebb9@byu.net>
32044
32045         hash: check for resize before insertion
32046         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32047         threshold before insertion, so that a pathological hash_rehash
32048         that fills every bucket can still trigger another rehash.
32049
32050 2009-06-18  Jim Meyering  <meyering@redhat.com>
32051
32052         hash-tests: add a loop around the small tests
32053         * tests/test-hash.c (main): Repeat small tests with selected
32054         small initial table sizes.
32055
32056 2009-06-17  Eric Blake  <ebb9@byu.net>
32057
32058         hash: minor cleanups
32059         * lib/hash.h (hash_entry): Make opaque, by moving...
32060         * lib/hash.c (hash_entry): ...here.
32061         (hash_insert): Clarify restrictions on what can be inserted.
32062         (hash_get_next): Clarify when it is safe to remove an element
32063         during traversal.
32064         (check_tuning): Skip verification when tuning is known safe.
32065         (hash_initialize): Clarify restrictions on tuning.
32066
32067 2009-06-17  Jim Meyering  <jim@meyering.net>
32068         and Eric Blake  <ebb9@byu.net>
32069
32070         hash-tests: new module
32071         * modules/hash-tests: New file.
32072         * tests/test-hash.c: New file.
32073
32074 2009-06-17  Eric Blake  <ebb9@byu.net>
32075
32076         strstr-simple: document new module
32077         * MODULES.html.sh: Document new module.
32078
32079         strstr, strcasestr: replace on platforms with broken memchr
32080         * modules/strstr: Split into...
32081         * modules/strstr-simple: ...new module that does not care about
32082         performance, but does care about glibc bug.
32083         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32084         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32085         if platform memchr is broken, per Debian bug 521737.
32086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32087         memchr.
32088         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32089         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32090         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32091         * modules/mountlist (Depends-on): Add strstr-simple.
32092         * modules/gen-uni-tables (Depends-on): Likewise.
32093         * modules/argz (Depends-on): Add strstr.
32094
32095 2009-06-17  Bruno Haible  <bruno@clisp.org>
32096
32097         * modules/posix_spawn-internal (Depends-on): Add errno.
32098
32099 2009-06-17  Bruno Haible  <bruno@clisp.org>
32100
32101         Define missing ESTALE on Interix 3.5.
32102         * lib/errno.in.h (ESTALE): Assign a value if missing.
32103         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32104         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32105         missing.
32106         * doc/posix-headers/errno.texi: Mention the Interix bug.
32107         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32108
32109 2009-06-15  Eric Blake  <ebb9@byu.net>
32110
32111         memchr, memchr2: add valgrind exception
32112         * lib/memchr.valgrind: New file.
32113         * lib/memchr2.valgrind: New file.
32114         * modules/memchr (Files): Distribute valgrind file.
32115         * modules/memchr2 (Files): Likewise.
32116
32117         docs: memchr is no longer obsolete
32118         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32119         * lib/string.in.h (memchr): Simplify logic.
32120
32121 2009-06-14  Jim Meyering  <meyering@redhat.com>
32122
32123         link-follow: fix the "checking..." message to not mention trailing slash
32124         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32125         never considered trailing slashes.
32126
32127 2009-06-14  Bruno Haible  <bruno@clisp.org>
32128
32129         * m4/memchr.m4: Mention also the bug on IA-64.
32130         * doc/posix-functions/memchr.texi: Likewise.
32131
32132 2009-06-12  Eric Blake  <ebb9@byu.net>
32133
32134         memchr: detect broken x86_64 and alpha implementations
32135         * modules/memchr-tests (Depends-on): Move mmap detection...
32136         * modules/memchr (Depends-on): ...here.
32137         (configure.ac): Set indicator.
32138         * lib/string.in.h (memchr): Declare replacement.
32139         * modules/string (Makefile.am): Trigger replacement.
32140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32141         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32142         bugs.
32143         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32144         * modules/getpagesize (License): Relax license.
32145
32146 2009-06-11  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/idpriv.h: Add more references.
32149
32150 2009-06-08  Bruno Haible  <bruno@clisp.org>
32151
32152         Tests for module 'idpriv-droptemp'.
32153         * modules/idpriv-droptemp-tests: New file.
32154         * tests/test-idpriv-droptemp.sh: New file.
32155         * tests/test-idpriv-droptemp.su.sh: New file.
32156         * tests/test-idpriv-droptemp.c: New file.
32157
32158         New module 'idpriv-droptemp'.
32159         * lib/idpriv-droptemp.c: New file.
32160         * modules/idpriv-droptemp: New file.
32161
32162 2009-06-08  Bruno Haible  <bruno@clisp.org>
32163
32164         Tests for module 'idpriv-drop'.
32165         * modules/idpriv-drop-tests: New file.
32166         * tests/test-idpriv-drop.sh: New file.
32167         * tests/test-idpriv-drop.su.sh: New file.
32168         * tests/test-idpriv-drop.c: New file.
32169
32170         New module 'idpriv-drop'.
32171         * lib/idpriv.h: New file.
32172         * lib-idpriv-drop.c: New file.
32173         * m4/idpriv.m4: New file.
32174         * modules/idpriv-drop: New file.
32175
32176 2009-06-08  Bruno Haible  <bruno@clisp.org>
32177
32178         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32179         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32180         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32181         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32182         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32183         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32184         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32185
32186 2009-06-08  Eric Blake  <ebb9@byu.net>
32187
32188         test-strstr: use memory fence, when possible
32189         * tests/test-strstr.c (main): Use memory fence, in order to be
32190         more likely to trigger Debian bug 521737.
32191         * modules/strstr-tests (Files): Pull in additional files.
32192
32193         memchr: no longer obsolete, for wider field testing
32194         * modules/memchr (Status, Notice): Delete, this module is no
32195         longer obsolete.
32196         * modules/vasnprintf (Depends-on): Add memchr.
32197
32198 2009-06-07  Jim Meyering  <meyering@redhat.com>
32199
32200         hash: declare some functions with the warn_unused_result attribute
32201         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32202
32203 2009-06-07  Bruno Haible  <bruno@clisp.org>
32204
32205         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32206         Reported by Eric Blake.
32207
32208 2009-06-06  Eric Blake  <ebb9@byu.net>
32209
32210         test-alignof: fix typo with long double
32211         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32212         compiler error.
32213
32214 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32215
32216         Escape non-texinfo { and }s.
32217         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32218         markup error.
32219
32220 2009-06-04  Jim Meyering  <meyering@redhat.com>
32221
32222         gitlog-to-changelog: don't infloop on an empty commit log
32223         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32224         Reported by Boris Petersen <transacid@centerim.org>.
32225
32226 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32227
32228         version-etc: extend for packagers
32229         Add three new configure options, intended for packagers:
32230           --with-packager="packager name"
32231           --with-packager-version="packager-specific version"
32232           --with-packager-bug-reports="packager bug reporting"
32233         An example with coreutils:
32234           $ ./configure \
32235             --with-packager=Gentoo \
32236             --with-packager-bug-report=http://bugs.gentoo.org/ \
32237             --with-packager-version="patchset 1.6"
32238           $ ./src/ls --version | head -n2
32239           ls (GNU coreutils) 7.1-dirty
32240           Packaged by Gentoo (patchset 1.6)
32241         Note that the bug reporting info via --help doesn't show up because
32242         coreutils uses its own custom emit_bug_reporting_address() implementation
32243         in src/system.h.  If it didn't, it'd look like:
32244           $ ./src/ls --help | tail -n4
32245           Report bugs to <bug-coreutils@gnu.org>.
32246           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32247           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32248           General help using GNU software: <http://www.gnu.org/gethelp/>.
32249         * lib/version-etc.c: Print new information, if provided.
32250         * m4/version-etc.m4: New file.
32251         * modules/version-etc (Files): Add m4/version-etc.m4.
32252         (configure.ac): Add gl_VERSION_ETC.
32253
32254 2009-05-31  Bruno Haible  <bruno@clisp.org>
32255
32256         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32257         and 'int64_t'.
32258         * modules/alignof-tests (Dependencies): Add stdint.
32259         Reported by Eric Blake.
32260
32261 2009-05-31  Bruno Haible  <bruno@clisp.org>
32262
32263         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32264         restriction due to compiler bugs.
32265         Reported by Eric Blake.
32266
32267 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32268             Bruno Haible  <bruno@clisp.org>
32269
32270         Fix test-alignof failure.
32271         * lib/alignof.h (alignof_slot): New macro.
32272         (alignof_type): New macro, with the same semantics as the previous
32273         'alignof'.
32274         (alignof): Alias to alignof_slot.
32275         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32276         check that the results are usable as constant expressions.
32277
32278 2009-05-31  Bruno Haible  <bruno@clisp.org>
32279
32280         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32281         * tests/test-memchr.c (main): Check that memchr does not read past the
32282         first occurrence of the byte.
32283         * tests/test-strstr.c (main): Update comment.
32284         Suggested by Eric Blake.
32285
32286 2009-05-30  Bruno Haible  <bruno@clisp.org>
32287
32288         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32289         detail how to use dumpbin.
32290         Reported by David Byron <dbyron@dbyron.com>.
32291
32292 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32293
32294         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32295
32296 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32297
32298         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32299
32300 2009-05-28  Bruno Haible  <bruno@clisp.org>
32301
32302         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32303         build-aux/ files.
32304
32305 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32306
32307         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32308
32309 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32310
32311         * gnulib-tool (sed_transform_main_lib_file)
32312         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32313         regexps.
32314
32315 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32316
32317         * tests/test-strstr.c: Add another self-test.
32318         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32319         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32320
32321 2009-05-23  Bruno Haible  <bruno@clisp.org>
32322
32323         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32324         change.
32325
32326 2009-05-21  Bruno Haible  <bruno@clisp.org>
32327
32328         Simplify use of mode_t varargs.
32329         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32330         uses 'mode_t' or 'int'.
32331         * lib/openat.c (openat): Likewise.
32332         * lib/open-safer.c (open_safer): Likewise.
32333         * m4/mode_t.m4: New file.
32334         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32335         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32336         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32337         * modules/open (Files): Add m4/mode_t.m4.
32338         * modules/openat (Files): Likewise.
32339         * modules/fcntl-safer (Files): Likewise.
32340         Suggested by Eric Blake.
32341
32342 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32343
32344         * doc/glibc-functions/fallocate.texi: New file.
32345         * doc/gnulib.texi: Include it.
32346
32347 2009-05-21  Eric Blake  <ebb9@byu.net>
32348             Bruno Haible  <bruno@clisp.org>
32349
32350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32351         invocations.
32352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32353
32354 2009-05-21  Eric Blake  <ebb9@byu.net>
32355             Bruno Haible  <bruno@clisp.org>
32356
32357         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32358         include_next. Fix of 2008-11-20 commit.
32359         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32360         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32361         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32362         NEXT_MATH_H.
32363         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32364         instead of NEXT_MATH_H.
32365
32366 2009-05-21  Bruno Haible  <bruno@clisp.org>
32367
32368         Avoid redefinition warnings for SIZE_MAX.
32369         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32370         Reported by Simon Josefsson.
32371
32372 2009-05-21  Bruno Haible  <bruno@clisp.org>
32373
32374         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32375         AC_CACHE_VAL.
32376
32377 2009-05-20  Bruno Haible  <bruno@clisp.org>
32378
32379         Make zeroptr.h work on mingw.
32380         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32381         mprotect.
32382         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32383         * modules/memchr2-tests (configure.ac): Likewise.
32384         * modules/memcmp-tests (configure.ac): Likewise.
32385         * modules/memmem-tests (configure.ac): Likewise.
32386         * modules/memrchr-tests (configure.ac): Likewise.
32387         Reported by Simon Josefsson.
32388
32389 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32390
32391         * tests/test-glob.c: Include string.h for strcmp prototype.
32392
32393 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32394
32395         * modules/getdelim (Depends-on): Add explicit stdint, although it
32396         was implicitly already pulled in via realloc-posix.
32397         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32398
32399 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32400
32401         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32402         G. Christensen" <tgc@jupiterrise.com>.
32403         * m4/sys_socket_h.m4: Check for sa_family_t.
32404         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32405         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32406         * tests/test-sys_socket.c: Check that sa_family_t works.
32407
32408 2009-05-18  Eric Blake  <ebb9@byu.net>
32409
32410         maint.mk: allow gnulib_dir in VPATH build
32411         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32412
32413 2009-05-15  Jim Meyering  <meyering@redhat.com>
32414
32415         maint.mk: Give gnulib_dir a default definition.
32416         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32417         Thus, most packages no longer need to specify this variable in cfg.mk
32418
32419 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32420
32421         rename.m4: fix typos that would make non-mingw cross-configure fail
32422         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32423
32424 2009-05-13  Eric Blake  <ebb9@byu.net>
32425
32426         mmap-anon: avoid out-of-order autoconf expansion
32427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32428         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32429         * modules/memchr-tests (Depends-on): Add extensions.
32430         * modules/memchr2-tests (Depends-on): Add extensions.
32431         * modules/memcmp-tests (Depends-on): Add extensions.
32432         * modules/memmem-tests (Depends-on): Add extensions.
32433         * modules/memrchr-tests (Depends-on): Add extensions.
32434
32435 2009-05-13  Bruno Haible  <bruno@clisp.org>
32436
32437         Make some tests ISO C 99 compliant.
32438         * tests/zerosize-ptr.h: New file.
32439         * tests/test-memchr.c: Include zerosize-ptr.h.
32440         (main): Use a zero-size object pointer instead of NULL.
32441         * tests/test-memchr2.c: Include zerosize-ptr.h.
32442         (main): Use a zero-size object pointer instead of NULL.
32443         * tests/test-memcmp.c: Include zerosize-ptr.h.
32444         (main): Use a zero-size object pointer instead of NULL.
32445         * tests/test-memmem.c: Include zerosize-ptr.h.
32446         (main): Use a zero-size object pointer instead of NULL.
32447         * tests/test-memrchr.c: Include zerosize-ptr.h.
32448         (main): Use a zero-size object pointer instead of NULL.
32449         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32450         m4/mmap-anon.m4.
32451         (Depends-on): Add getpagesize.
32452         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32453         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32454         m4/mmap-anon.m4.
32455         (Depends-on): Add getpagesize.
32456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32457         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32458         m4/mmap-anon.m4.
32459         (Depends-on): Add getpagesize.
32460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32461         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32462         m4/mmap-anon.m4.
32463         (Depends-on): Add getpagesize.
32464         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32465         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32466         m4/mmap-anon.m4.
32467         (Depends-on): Add getpagesize.
32468         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32469
32470 2009-05-12  Bruno Haible  <bruno@clisp.org>
32471
32472         Tests for module 'alignof'.
32473         * modules/alignof-tests: New file.
32474         * tests/test-alignof.c: New file.
32475
32476 2009-05-12  Bruno Haible  <bruno@clisp.org>
32477
32478         Fix alignof macro.
32479         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32480         vendor compilers that are always correct.
32481
32482 2009-05-12  Bruno Haible  <bruno@clisp.org>
32483
32484         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32486         not whether its fully works.
32487
32488 2009-05-12  Bruno Haible  <bruno@clisp.org>
32489
32490         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32491
32492 2009-05-12  Jim Meyering  <meyering@redhat.com>
32493
32494         * top/maint.mk: Adjust backslash alignment.
32495
32496 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32497
32498         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32499
32500 2009-05-11  Eric Blake  <ebb9@byu.net>
32501
32502         argp: avoid undefined behavior
32503         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32504         macros.
32505
32506 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32507
32508         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32509         user.name to prevent git commit from complaining.
32510
32511 2009-05-10  Bruno Haible  <bruno@clisp.org>
32512
32513         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32514         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32515         it rewrites every file name only once.
32516         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32517
32518 2009-05-08  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32521         instead of 'max'.
32522
32523 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32524
32525         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32526         sockaddr_storage test.
32527
32528 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32529
32530         * modules/sys_socket (Makefile.am): Substitute
32531         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32532         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32533         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32534         * tests/test-sys_socket.c: Check sockaddr_storage.
32535
32536 2009-05-08  Bruno Haible  <bruno@clisp.org>
32537
32538         New module 'alignof'.
32539         * lib/alignof.h: New file.
32540         * modules/alignof: New file.
32541
32542 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32543             Bruno Haible  <bruno@clisp.org>
32544
32545         Fix test-file-has-acl on FreeBSD.
32546         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32547         mask is implicitly added.
32548         * tests/test-file-has-acl.c: Include <signal.h>.
32549         (main): Terminate the test after 5 seconds.
32550         * modules/acl-tests (configure.ac): Check for alarm function.
32551
32552 2009-05-04  Bruno Haible  <bruno@clisp.org>
32553
32554         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32556         * modules/errno (configure.ac): Drop AC_REQUIRE.
32557         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32558         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32559
32560 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32561
32562         * modules/glob-tests: New module.
32563         * tests/test-glob.c: Add.
32564
32565 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32566
32567         * modules/fnmatch-tests: New module.
32568         * tests/test-fnmatch.c: Add.
32569
32570 2009-05-04  Eric Blake  <ebb9@byu.net>
32571
32572         maint: make the new no-submodule-changes rule VPATH-safe
32573         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32574
32575 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32576             Bruno Haible  <bruno@clisp.org>
32577
32578         acl: Fix infinite loop on FreeBSD.
32579         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32580         of return value from acl_get_entry.
32581         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32582         Likewise.
32583
32584 2009-05-03  Bruno Haible  <bruno@clisp.org>
32585
32586         * lib/acl-internal.h (acl_entries): Clarify return value.
32587         * lib/acl_entries.c (acl_entries): Likewise.
32588
32589 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32590
32591         Bug fix in acl module.
32592         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32593
32594 2009-05-03  Bruno Haible  <bruno@clisp.org>
32595
32596         Create gperf-generated file in the source dir, not in the build dir.
32597         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32598         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32599         * modules/unicase/locale-language (unicase/locale-languages.h):
32600         Likewise.
32601         * modules/unicase/special-casing (unicase/special-casing-table.h):
32602         Likewise.
32603         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32604         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32605         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32606         Reported by Ralf Wildenhues.
32607
32608 2009-05-03  Bruno Haible  <bruno@clisp.org>
32609
32610         * modules/fnmatch (Description, configure.ac): Taken from
32611         fnmatch-posix.
32612         * modules/fnmatch-posix: Turn into a symbolic reference to the
32613         'fnmatch' module, and deprecate.
32614         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32615
32616 2009-05-03  Bruno Haible  <bruno@clisp.org>
32617
32618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32619         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32620         Reported by Ralf Wildenhues.
32621
32622 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32623
32624         * m4/fnmatch.m4: Fix fnmatch re-define.
32625
32626 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32627
32628         priv-set: new module and tests; adapt write-any-file
32629         * lib/priv-set.c: New file.
32630         * lib/priv-set.h: New file.
32631         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32632         * lib/write-any-file.c: Simplify by using priv-set module.
32633         * m4/priv-set.m4: New file.
32634         * modules/priv-set: New file.
32635         * modules/unlinkdir: Add dependency on priv-set module.
32636         * modules/write-any-file: Likewise.
32637
32638         Tests for module 'priv-set'.
32639         * modules/priv-set-tests: New file.
32640         * tests/test-priv-set.c: New file.
32641
32642 2009-05-03  Jim Meyering  <meyering@redhat.com>
32643             Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32646         use the converted UTF-8 variant of the name instead.
32647
32648 2009-05-03  Jim Meyering  <meyering@redhat.com>
32649
32650         tests: tighten some getdate tests
32651         * tests/test-getdate.c (main): Tighten tests: require equality,
32652         not just greater than.  Set TZ envvar to UTC0.
32653
32654 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32655
32656         getdate: correctly interpret "next monday" when run on a Monday
32657         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32658         that e.g., "next tues" (when run on a tuesday) results in a date
32659         that is one week in the future, and not today's date.
32660         I.e., add a week when the wday is the same as the current one.
32661         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32662         and earlier by Martin Bernreuther and Jan Minář.
32663         * tests/test-getdate.c (main): Check that "next DAY" is always in
32664         the future and that "last DAY" is always in the past.
32665
32666 2009-05-02  Jim Meyering  <meyering@redhat.com>
32667
32668         build: ensure that a release build fails when a submodule is unclean
32669         * top/maint.mk (no-submodule-changes): New rule.
32670         (alpha beta major): Depend on it.
32671
32672 2009-05-02  Bruno Haible  <bruno@clisp.org>
32673
32674         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32675         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32676         shell variable gl_fnmatch_required to detect which variant is
32677         requested.
32678         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32679         gl_FUNC_FNMATCH_POSIX.
32680         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32681         exclude fnmatch-posix.
32682
32683 2009-05-02  Bruno Haible  <bruno@clisp.org>
32684
32685         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32686         * modules/mbsrtowcs (License): Change to LGPLv2+.
32687         * modules/strnlen1 (License): Likewise.
32688         Reported by Simon Josefsson.
32689
32690 2009-05-02  Bruno Haible  <bruno@clisp.org>
32691
32692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32693         "cross".
32694         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32695         gnulib-tool was called with option --source-base=lib.
32696
32697 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32698
32699         Use automake *-local hooks without commands, for extensibility.
32700         * modules/localcharset (Makefile.am): Rename install-exec-local
32701         rule to install-exec-localcharset, and make it a prerequisite of
32702         install-exec-local.  Likewise, rename the uninstall-local rule to
32703         uninstall-localcharset, and make it a prerequisite of the former.
32704
32705 2009-05-01  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32708         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32709         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32711         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32712         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32713         m4/locale-zh.m4, m4/codeset.m4.
32714
32715         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32716         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32717         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32718         m4/locale-zh.m4.
32719
32720         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32721         REPLACE_WCRTOMB if mbstate_t must be replaced.
32722         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32723         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32724
32725 2009-05-01  Bruno Haible  <bruno@clisp.org>
32726
32727         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32728         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32729         dngettext, dcngettext, textdomain, bindtextdomain,
32730         bind_textdomain_codeset): Undefine before redefining.
32731
32732 2009-04-30  Bruno Haible  <bruno@clisp.org>
32733
32734         Fix bug introduced on 2009-04-25.
32735         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32736         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32737         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32738         is defined.
32739         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32740         is defined.
32741         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32742         is defined.
32743         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32744
32745 2009-04-28  Bruno Haible  <bruno@clisp.org>
32746
32747         Comment tweaks.
32748         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32749         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32750         * lib/unicase.h (u*_casexfrm): Likewise.
32751         Reported by Paolo Bonzini.
32752
32753 2009-04-28  Bruno Haible  <bruno@clisp.org>
32754
32755         Fix a compilation error.
32756         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32757         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32758         Reported by Jim Meyering.
32759
32760 2009-04-27  Bruno Haible  <bruno@clisp.org>
32761
32762         New module 'libunistring'.
32763         * modules/libunistring: New file.
32764         * m4/libunistring.m4: New file.
32765         * MODULES.html.sh (Unicode string functions): Add it.
32766
32767 2009-04-27  Eric Blake  <ebb9@byu.net>
32768
32769         maint.mk: allow package-specific header to provide <config.h>
32770         * top/maint.mk (sc_require_config_h): New variable.
32771         (sc_require_config_h, sc_require_config_h_first): Use it.
32772
32773 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32774
32775         * top/maint.mk (sc_avoid_if_before_free): Except
32776         useless-if-before-free script.
32777
32778 2009-04-27  Eric Blake  <ebb9@byu.net>
32779
32780         maintainer-makefile: depend on all required helper scripts
32781         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32782         useless-if-before-free.
32783         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32784         version, rather than assuming gnulib checkout is available.
32785         Reported by Simen Josefsson.
32786
32787 2009-04-26  Bruno Haible  <bruno@clisp.org>
32788
32789         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32790         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32791         "../" or "..".
32792
32793 2009-04-26  Bruno Haible  <bruno@clisp.org>
32794
32795         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32796         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32797         AC_LIB_HAVE_LINKFLAGS.
32798
32799 2009-04-26  Bruno Haible  <bruno@clisp.org>
32800
32801         Simplify calling convention of u*_conv_from_encoding.
32802         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32803         u32_conv_from_encoding): Expect a resultbuf argument and return the
32804         result directly as a pointer.
32805         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32806         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32807         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32808         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32809         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32810         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32811         Update.
32812         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32813         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32814         * lib/vasnprintf.c (VASNPRINTF): Update.
32815         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32816         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32817         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32818         * NEWS: Mention the change.
32819
32820 2009-04-26  Bruno Haible  <bruno@clisp.org>
32821
32822         Simplify calling convention of u*_conv_to_encoding.
32823         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32824         u32_conv_to_encoding): Expect a resultbuf argument and return the
32825         result directly as a pointer.
32826         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32827         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32828         freeing scaled_offsets if mem_iconveha failed.
32829         * lib/unicase/u-casexfrm.h (FUNC): Update.
32830         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32831         * lib/vasnprintf.c (VASNPRINTF): Update.
32832         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32833         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32834         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32835         * NEWS: Mention the change.
32836
32837 2009-04-26  Bruno Haible  <bruno@clisp.org>
32838
32839         Avoid test failures on AIX and OSF/1.
32840         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32841         malloc(0).
32842         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32843         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32844         Likewise.
32845         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32846         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32847         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32848         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32849         * doc/posix-functions/malloc.texi: Document the portability problem
32850         related to malloc(0).
32851
32852 2009-04-26  Bruno Haible  <bruno@clisp.org>
32853
32854         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32855         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32856         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32857
32858 2009-04-25  Bruno Haible  <bruno@clisp.org>
32859
32860         Avoid link error when creating a namespace clean library.
32861         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32862         as macro with arguments if already defined as an alias.
32863         * lib/signbitf.c (gl_signbitf): Don't undefine.
32864         * lib/signbitd.c (gl_signbitd): Don't undefine.
32865         * lib/signbitl.c (gl_signbitl): Don't undefine.
32866
32867 2009-04-25  Jim Meyering  <meyering@redhat.com>
32868
32869         vc-list-files: fix another quoting bug
32870         * build-aux/vc-list-files: Avoid sed backslash expansion
32871         of pathological directory names.
32872
32873 2009-04-25  Eric Blake  <ebb9@byu.net>
32874
32875         vc-list-files: fix shell quoting error
32876         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32877         timestamp.
32878
32879 2009-04-25  Jim Meyering  <meyering@redhat.com>
32880
32881         vc-list-files: restore lost functionality with subdir argument
32882         * build-aux/vc-list-files: When given a non-"." sub-directory
32883         argument, substitute the $dir/ prefix back onto each resulting name.
32884         Otherwise, coreutils' root_tests check would fail.
32885
32886 2009-04-24  Eric Blake  <ebb9@byu.net>
32887
32888         vc-list-files: ignore git symlinks
32889         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32890         than ls-files, to ignore git symlinks.
32891
32892         maint.mk: import improvements from m4
32893         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32894         (move_if_change): Delete unused macro.
32895         (news-date-check, vc-diff-check): Support VPATH builds.
32896         (announcement): Likewise.  Split --bootstrap-tools list...
32897         (boostrap-tools): ...into separate list, which can be overridden
32898         in cfg.mk.
32899         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32900         requiring dependency on useless-if-before-free module.
32901         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32902         Support VPATH builds.
32903
32904 2009-04-24  Jim Meyering  <meyering@redhat.com>
32905
32906         maint.mk: remove coreutils-specific rules and variables
32907         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32908         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32909         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32910
32911         maint.mk: remove obsolete rule
32912         * top/maint.mk (rel-check): Remove rule.
32913         (WGET, WGETFLAGS): Remove now-unused variables.
32914
32915 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32916
32917         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32918         consistency.
32919
32920         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32921         '$(PATH_SEPARATOR)' instead of ':'.
32922
32923 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32924
32925         * lib/getopt1.c (main): Use 'const' for static array.
32926
32927 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32928
32929         * top/maint.mk: Sync with coreutils.
32930         * NEWS: Explain incompatibilities.
32931
32932 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32933             Bruno Haible  <bruno@clisp.org>
32934
32935         Fix cross-compilation results.
32936         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32937         statement, as third argument of AC_TRY_RUN.
32938         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32939         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32940         Likewise.
32941         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32942         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32943         Likewise.
32944         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32946         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32947
32948 2009-04-20  Bruno Haible  <bruno@clisp.org>
32949
32950         Avoid test failure on mingw.
32951         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32952
32953 2009-04-20  Bruno Haible  <bruno@clisp.org>
32954
32955         Avoid compilation error on mingw.
32956         * modules/localename-tests (Depends-on): Add locale.
32957
32958 2009-04-19  Bruno Haible  <bruno@clisp.org>
32959
32960         Support for building a shared library on Windows platforms.
32961         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32962         (main): Test the presence of UNINORM_NFC here.
32963         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32964         (main): Test the presence of UNINORM_NFD here.
32965         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32966         (main): Test the presence of UNINORM_NFKC here.
32967         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32968         (main): Test the presence of UNINORM_NFKD here.
32969
32970 2009-04-19  Bruno Haible  <bruno@clisp.org>
32971
32972         Avoid a compiler warning.
32973         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32974         Change type of variable 'sequence'.
32975
32976 2009-04-19  Bruno Haible  <bruno@clisp.org>
32977
32978         * modules/configmake (Makefile.am): When the contents of configmake.h
32979         does not change, arrange to preserve its modification time.
32980
32981 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32982
32983         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32984         gettext domain.
32985
32986 2009-04-16  Jim Meyering  <meyering@redhat.com>
32987
32988         useless-if-before-free: improve conversion code
32989         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32990         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32991
32992 2009-04-14  Bruno Haible  <bruno@clisp.org>
32993
32994         * modules/fcntl (Depends-on): Add extensions.
32995         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32996
32997 2009-04-12  Ben Pfaff  <blp@gnu.org>
32998
32999         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33000         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33001
33002 2009-03-20  Ben Pfaff  <blp@gnu.org>
33003
33004         Make rename replace existing destinations on Windows.
33005         * m4/rename.m4: Add test for Mingw.
33006         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33007         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33008         * doc/posix-functions/rename.texi: Document.
33009
33010 2009-04-10  Bruno Haible  <bruno@clisp.org>
33011
33012         New include file "iconveh.h".
33013         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33014         * lib/striconveh.h: Include it.
33015         (enum iconv_ilseq_handler): Remove definition.
33016         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33017         striconveh.h.
33018         * lib/striconveha.c: Include striconveh.h.
33019         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33020         * modules/striconveh (Files): Add lib/iconveh.h.
33021         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33022         lib/striconveh.h.
33023
33024 2009-04-10  Bruno Haible  <bruno@clisp.org>
33025
33026         * lib/uniconv.h: Update comment.
33027
33028 2009-04-10  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33031         always.
33032         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33033         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33034         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33035         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33036         "unistring-notinline.h", so that the function gets defined always.
33037         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33038         * lib/unistr/u8-uctomb.c: Likewise.
33039         * lib/unistr/u16-mbtouc.c: Likewise.
33040         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33041         * lib/unistr/u16-uctomb.c: Likewise.
33042         * lib/unistr/u32-mbtouc.c: Likewise.
33043         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33044         * lib/unistr/u32-uctomb.c: Likewise.
33045
33046 2009-04-10  Bruno Haible  <bruno@clisp.org>
33047
33048         Mark 'utime' obsolete.
33049         * modules/utime (Status, Notice): New sections.
33050         Suggested by Jim Meyering.
33051
33052         Fix cross-compile guess for utime test.
33053         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33054         autoconf.
33055         * doc/posix-functions/utime.texi: Give more precisions.
33056         Reported by Jan <ipif@ymail.com>.
33057
33058 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33059
33060         filevercmp: correct today's change
33061         * lib/filevercmp.c: Also handle coreutils' test inputs.
33062         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33063
33064         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33065         for reporting it.
33066         * lib/filevercmp.c: Special handle for "", "." and "..".
33067         * tests/test-filevercmp.c: Enlarge the set suite.
33068
33069 2009-04-07  Jim Meyering  <meyering@redhat.com>
33070
33071         useless-if-before-free: show how to remove braced useless free, too
33072         * build-aux/useless-if-before-free: still only in a comment, though.
33073
33074 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33075
33076         maint.mk: import changes to syntax-check macros from coreutils
33077         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33078         Use them in the relevant macros.
33079
33080 2009-04-06  Bruno Haible  <bruno@clisp.org>
33081
33082         Fix unportable use of bit-fields.
33083         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33084         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33085         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33086
33087 2009-04-06  Bruno Haible  <bruno@clisp.org>
33088
33089         Avoid test failures on AIX and OSF/1.
33090         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33091         that malloc(0) = NULL.
33092         * tests/unicase/test-u8-tolower.c (check): Likewise.
33093         * tests/unicase/test-u8-totitle.c (check): Likewise.
33094         * tests/unicase/test-u8-toupper.c (check): Likewise.
33095         * tests/unicase/test-u16-casefold.c (check): Likewise.
33096         * tests/unicase/test-u16-tolower.c (check): Likewise.
33097         * tests/unicase/test-u16-totitle.c (check): Likewise.
33098         * tests/unicase/test-u16-toupper.c (check): Likewise.
33099         * tests/unicase/test-u32-casefold.c (check): Likewise.
33100         * tests/unicase/test-u32-tolower.c (check): Likewise.
33101         * tests/unicase/test-u32-totitle.c (check): Likewise.
33102         * tests/unicase/test-u32-toupper.c (check): Likewise.
33103         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33104         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33105         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33106         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33107         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33108         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33109         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33110         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33111         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33112         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33113         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33114         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33115
33116 2009-04-05  Bruno Haible  <bruno@clisp.org>
33117
33118         Work around an autoconf limitation.
33119         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33120         comment line if it would be longer than 3 KB.
33121
33122 2009-04-05  Bruno Haible  <bruno@clisp.org>
33123
33124         Avoid test failure with libiconv-1.13.
33125         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33126         of the expected test results.
33127
33128 2009-04-05  Bruno Haible  <bruno@clisp.org>
33129
33130         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33131         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33132         that it should be installed.
33133
33134 2009-04-05  Bruno Haible  <bruno@clisp.org>
33135
33136         * gnulib-tool: New option --copy-file.
33137         (func_usage): Document it.
33138         (func_dest_tmpfilename): Moved out of func_import.
33139         (func_add_file, func_update_file): New functions, extracted from
33140         func_import.
33141         (func_import): Update.
33142
33143 2009-04-05  Karl Berry  <karl@gnu.org>
33144
33145         * README: prominently mention gnulib-tool.
33146         Rearrange sections so getting the code is near the top.
33147
33148 2009-04-05  Bruno Haible  <bruno@clisp.org>
33149
33150         * lib/unicase.h: Mention u*_cmp2.
33151         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33152         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33153         * lib/unicase/ulc-casecmp.c: Likewise.
33154         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33155         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33156         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33157         unistr/u8-cmp.
33158         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33159         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33160         unistr/u16-cmp.
33161         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33162         unistr/u32-cmp.
33163
33164         * lib/uninorm.h: Mention u*_cmp2.
33165         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33166         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33167         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33168         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33169         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33170         unistr/u8-cmp.
33171         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33172         unistr/u16-cmp.
33173         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33174         unistr/u32-cmp.
33175
33176         New module 'unistr/u32-cmp2'.
33177         * lib/unistr/u32-cmp2.c: New file.
33178         * modules/unistr/u32-cmp2: New file.
33179
33180         New module 'unistr/u16-cmp2'.
33181         * lib/unistr/u16-cmp2.c: New file.
33182         * modules/unistr/u16-cmp2: New file.
33183
33184         New module 'unistr/u8-cmp2'.
33185         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33186         * lib/unistr/u8-cmp2.c: New file.
33187         * lib/unistr/u-cmp2.h: New file.
33188         * modules/unistr/u8-cmp2: New file.
33189
33190 2009-04-05  Bruno Haible  <bruno@clisp.org>
33191
33192         * lib/unictype.h (uc_property_is_valid): New macro.
33193         * tests/unictype/test-pr_byname.c (main): Use it.
33194
33195         * lib/unistr.h: Doc fixes.
33196         * lib/uniconv.h: Doc fixes.
33197         * lib/unictype.h: Doc fixes.
33198
33199 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33200
33201         Port coreutils 7.2 to Solaris 8.
33202
33203         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33204         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33205         for Solaris 8.  This is a bit of a hack, as it means it's the
33206         caller's responsibility to add -lnsl if needed, but most likely it
33207         won't be needed since only getaddrinfo uses this and getaddrinfo
33208         isn't needed on Solaris 8.
33209
33210         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33211         problem to Solaris 8 encountered with coreutils 7.2, which
33212         resulted in a message "fnmatch.c:292: warning: passing argument 4
33213         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33214         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33215
33216 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33217
33218         * m4/ld-version-script.m4: Add FIXME comment.
33219
33220 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33221
33222         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33223         SOVERSION variable.
33224
33225 2009-04-02  Bruno Haible  <bruno@clisp.org>
33226
33227         * Makefile (info, html, dvi, pdf): Combine the rules.
33228         Suggested by Jim Meyering.
33229
33230 2009-04-01  Bruno Haible  <bruno@clisp.org>
33231
33232         * Makefile (info, html, dvi, pdf): New targets.
33233         Reported by Reuben Thomas <rrt@sc3d.org>.
33234
33235 2009-04-01  Bruno Haible  <bruno@clisp.org>
33236
33237         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33238         can be put into PATH.
33239         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33240
33241 2009-04-01  Bruno Haible  <bruno@clisp.org>
33242
33243         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33244
33245 2009-04-01  Bruno Haible  <bruno@clisp.org>
33246
33247         Rename module 'visibility'.
33248         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33249         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33250         * doc/gnulib.texi: Update.
33251         * MODULES.html.sh (Misc): Update.
33252         * NEWS: Mention the change.
33253
33254 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33255
33256         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33257         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33258         Eric Blake <ebb9@byu.net> for review.
33259         * MODULES.html.sh: Add lib-msvc-compat.
33260         * doc/gnulib.texi: Link to new section.
33261         * m4/ld-output-def.m4: New file.
33262         * doc/ld-output-def.texi: New file.
33263
33264 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33265
33266         Rename ld-version-script to lib-symbol-versions.  Suggested by
33267         Bruno Haible <bruno@clisp.org>.
33268         * modules/ld-version-script: Renamed to lib-symbol-versions.
33269         * doc/ld-version-script.texi: Fix module name.
33270         * MODULES.html.sh: Add lib-symbol-versions.
33271
33272 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33273
33274         * modules/u64-tests: New file.
33275         * tests/test-u64.c: New file.
33276
33277 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33278
33279         * MODULES.html.sh: Mention u64.
33280         * modules/u64: New module.
33281         * modules/crypto/sha512: Depend on u64 module instead of providing
33282         u64.h.
33283
33284 2009-03-27  Eric Blake  <ebb9@byu.net>
33285
33286         test-strerror: make debugging EAI_SYSTEM easier
33287         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33288         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33289         failure was EAI_SYSTEM.
33290
33291 2009-03-25  Bruno Haible  <bruno@clisp.org>
33292
33293         Fix a problem with --enable-relocatable on Solaris 7.
33294         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33295         since 2008-02-24.
33296
33297 2009-03-25  Eric Blake  <ebb9@byu.net>
33298
33299         test-sockets: avoid gcc warning
33300         * tests/test-sockets.c (main): Silence compiler warning.
33301
33302 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33303
33304         New modules nproc, pthread, contributed by Glen Lenker.
33305
33306         * MODULES.html.sh: Add pthread, nproc.
33307         * lib/nproc.c: New file.
33308         * lib/nproc.h: New file.
33309         * lib/pthread.in.h: New file.
33310         * m4/pthread.m4: New file.
33311         * modules/nproc: New file.
33312         * modules/pthread: New file.
33313
33314 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33315
33316         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33317         New variable.
33318
33319 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33320
33321         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33322         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33323         * tests/test-filevercmp.c: Add tests for backup suffixes.
33324
33325 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33326
33327         * modules/stdlib (Depends-on): Add stdint, needed when defining
33328         struct random_data on, for example, HP-UX 10.20.  Reported by
33329         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33330
33331 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33332
33333         * lib/readline.c (readline): Call fflush on stdout after printing
33334         prompt.
33335
33336 2009-03-20  Bruno Haible  <bruno@clisp.org>
33337
33338         Remove dependency from 'close' module to -lws2_32 on native Windows.
33339         * lib/close-hook.h: New file.
33340         * lib/close-hook.c: New file.
33341         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33342         w32sock.h.
33343         (_gl_close_fd_maybe_socket): Remove function.
33344         (rpl_close): Invoke execute_all_close_hooks instead of
33345         _gl_close_fd_maybe_socket.
33346         * lib/sockets.c: Include close-hook.h, w32sock.h.
33347         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33348         (close_sockets_hook): New variable.
33349         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33350         (gl_sockets_cleanup): Unregister it.
33351         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33352         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33353         * modules/close-hook: New file.
33354         * modules/close (Files): Remove lib/w32sock.h.
33355         (Depends-on): Add close-hook.
33356         (Link): Remove section.
33357         * modules/sockets (Files): Add lib/w32sock.h.
33358         (Depends-on): Add close-hook.
33359         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33360         invocation.
33361         * NEWS: Mention that LIB_CLOSE is gone.
33362
33363 2009-03-23  Eric Blake  <ebb9@byu.net>
33364
33365         signal-tests: test previous patch
33366         * tests/test-signal.c: New file.
33367         * modules/signal-tests: Likewise.
33368
33369         signal.h: always support 'volatile sig_atomic_t'
33370         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33371         (gl_SIGNAL_H_DEFAULTS): Add a default.
33372         * modules/signal (Makefile.am): Substitute if needed.
33373         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33374         users can blindly add volatile.
33375         * doc/posix-headers/signal.texi (signal.h): Document it.
33376         Reported by Matthew Woehlke.
33377
33378 2009-03-23  Jim Meyering  <meyering@redhat.com>
33379
33380         pathmax: PATH_MAX: use pathconf only when available
33381         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33382         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33383         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33384         This avoids a link failure in a PSP cross-compilation environment
33385         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33386
33387         * lib/vasnprintf.c (divide): Fix typo in comment.
33388
33389 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33390
33391         * gnulib-tool (func_filter_filelist): Fix comment.
33392
33393 2009-03-20  Bruno Haible  <bruno@clisp.org>
33394
33395         Make sockets.h self-contained.
33396         * lib/sockets.c: Include sockets.h first.
33397         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33398
33399 2009-03-19  Eric Blake  <ebb9@byu.net>
33400
33401         doc: mention more functions added in cygwin 1.7.0
33402         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33403         addition.
33404         * doc/posix-functions/log2f.texi: Likewise.
33405
33406 2009-03-19  Jim Meyering  <meyering@redhat.com>
33407
33408         fsusage: avoid syntax error due to statement-before-declaration
33409         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33410         after all declarations.  Reported by Matthew Woehlke in
33411         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33412
33413 2009-03-18  Eric Blake  <ebb9@byu.net>
33414
33415         build-aux/compile: sync from automake
33416         * build-aux/compile: New file, from automake.
33417         * config/srclist.txt: Mention build-aux/compile.
33418
33419 2009-03-17  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/git-merge-changelog.c: Fix typo in comment.
33422         Reported by Reuben Thomas <rrt@sc3d.org>.
33423
33424 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33425
33426         * m4/regex.m4: update and improve help for
33427         --without-included-regex.
33428
33429 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33430
33431         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33432         failure on missing include files.
33433
33434 2009-03-17  Eric Blake  <ebb9@byu.net>
33435
33436         doc: mention more functions added in cygwin 1.7.0
33437         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33438         addition.
33439         * doc/posix-functions/fwscanf.texi: Likewise.
33440         * doc/posix-functions/swprintf.texi: Likewise.
33441         * doc/posix-functions/swscanf.texi: Likewise.
33442         * doc/posix-functions/vfwprintf.texi: Likewise.
33443         * doc/posix-functions/vfwscanf.texi: Likewise.
33444         * doc/posix-functions/vswprintf.texi: Likewise.
33445         * doc/posix-functions/vswscanf.texi: Likewise.
33446         * doc/posix-functions/vwprintf.texi: Likewise.
33447         * doc/posix-functions/vwscanf.texi: Likewise.
33448         * doc/posix-functions/wcscasecmp.texi: Likewise.
33449         * doc/posix-functions/wcsdup.texi: Likewise.
33450         * doc/posix-functions/wcsftime.texi: Likewise.
33451         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33452         * doc/posix-functions/wprintf.texi: Likewise.
33453         * doc/posix-functions/wscanf.texi: Likewise.
33454         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33455
33456 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33457
33458         maint.mk: really add $(AM_MAKEFLAGS)
33459         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33460         was inadvertently omitted in the last commit.
33461         Spotted by Bruno Haible.
33462
33463         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33464         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33465         $(AM_MAKEFLAGS)' rather than plain `make'.
33466
33467         gnulib-tool: execute $MAKE not make
33468         * gnulib-tool: Default $MAKE to 'make'.
33469         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33470         than make.  Initialize $MAKE in the do-autobuild script.
33471
33472         gnulib-tool: use $MAKE not make in generated files
33473         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33474         make, in generated files.  Initialize $MAKE in the do-autobuild
33475         script.
33476
33477         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33478
33479         GNUmakefile: disable parallelism only for multiple, recursive targets
33480         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33481         additions in the Makefile.
33482         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33483         by Automake.
33484         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33485         are listed on the command line and at least one of them is
33486         listed in $(ALL_RECURSIVE_TARGETS).
33487
33488 2009-03-14  Bruno Haible  <bruno@clisp.org>
33489
33490         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33491         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33492         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33493         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33494         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33495         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33496         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33497         unistr/u8-uctomb.
33498         * modules/unistr/u8-strchr (Depends-on): Likewise.
33499         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33500         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33501         unistr/u16-uctomb.
33502         * modules/unistr/u16-strchr (Depends-on): Likewise.
33503         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33504
33505 2009-03-12  Bruno Haible  <bruno@clisp.org>
33506
33507         Work around select() bug on Interix 3.5.
33508         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33509         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33510         * m4/select.m4: New file.
33511         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33512         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33513         * modules/select (Files): Add m4/select.m4.
33514         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33515         * modules/nanosleep (Depends-on): Add select.
33516         * modules/poll (Depends-on): Likewise.
33517         * doc/posix-functions/select.texi: Mention the Interix bug.
33518         Reported by Markus Duft <mduft@gentoo.org>.
33519
33520         * lib/select.c: Renamed from lib/winsock-select.c.
33521         * modules/select (Files): Add lib/select.c, remove
33522         lib/winsock-select.c.
33523         (configure.ac): Update.
33524
33525 2009-03-12  Jim Meyering  <meyering@redhat.com>
33526
33527         avoid gcc warnings about unused macro definitions
33528         * lib/readtokens.c (STREQ): Remove unused definition.
33529         * lib/xmalloc.c (SIZE_MAX): Likewise.
33530         * lib/openat-die.c (N_): Likewise.
33531         * lib/mountlist.c (SIZE_MAX): Remove definition.
33532         Instead, include <stdint.h>.
33533         * lib/readutmp.c: Likewise.
33534         * modules/readutmp (Depends-on): Add stdint.
33535         * modules/mountlist (Depends-on): Add stdint.
33536         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33537
33538 2009-03-10  Bruno Haible  <bruno@clisp.org>
33539
33540         Tests for module 'mbmemcasecoll'.
33541         * modules/mbmemcasecoll-tests: New file.
33542         * tests/test-mbmemcasecoll1.sh: New file.
33543         * tests/test-mbmemcasecoll2.sh: New file.
33544         * tests/test-mbmemcasecoll3.sh: New file.
33545         * tests/test-mbmemcasecoll.c: New file.
33546
33547         New module 'mbmemcasecoll'.
33548         * lib/mbmemcasecoll.h: New file.
33549         * lib/mbmemcasecoll.c: New file.
33550         * modules/mbmemcasecoll: New file.
33551
33552         * tests/test-mbmemcasecmp.h: New file, extracted from
33553         tests/test-mbmemcasecmp.c.
33554         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33555         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33556         (main): Update.
33557         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33558
33559 2009-03-09  Bruno Haible  <bruno@clisp.org>
33560
33561         Tests for module 'mbmemcasecmp'.
33562         * modules/mbmemcasecmp-tests: New file.
33563         * tests/test-mbmemcasecmp1.sh: New file.
33564         * tests/test-mbmemcasecmp2.sh: New file.
33565         * tests/test-mbmemcasecmp3.sh: New file.
33566         * tests/test-mbmemcasecmp.c: New file.
33567
33568         New module 'mbmemcasecmp'.
33569         * lib/mbmemcasecmp.h: New file.
33570         * lib/mbmemcasecmp.c: New file.
33571         * modules/mbmemcasecmp: New file.
33572
33573 2009-03-09  Bruno Haible  <bruno@clisp.org>
33574
33575         Tests for module 'unicase/ulc-casecoll'.
33576         * modules/unicase/ulc-casecoll-tests: New file.
33577         * tests/unicase/test-ulc-casecoll1.sh: New file.
33578         * tests/unicase/test-ulc-casecoll2.sh: New file.
33579         * tests/unicase/test-ulc-casecoll.c: New file.
33580
33581         New module 'unicase/ulc-casecoll'.
33582         * lib/unicase.h (ulc_casecoll): New declaration.
33583         * lib/unicase/ulc-casecoll.c: New file.
33584         * modules/unicase/ulc-casecoll: New file.
33585
33586         New module 'unicase/ulc-casexfrm'.
33587         * lib/unicase.h (ulc_casexfrm): New declaration.
33588         * lib/unicase/ulc-casexfrm.c: New file.
33589         * modules/unicase/ulc-casexfrm: New file.
33590
33591 2009-03-09  Bruno Haible  <bruno@clisp.org>
33592
33593         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33594         invocations.
33595
33596         * m4/mbscasecmp.m4: Remove file.
33597         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33598         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33599
33600         * m4/mbscasestr.m4: Remove file.
33601         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33602         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33603
33604         * m4/mbschr.m4: Remove file.
33605         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33606         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33607
33608         * m4/mbscspn.m4: Remove file.
33609         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33610         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33611
33612         * m4/mbslen.m4: Remove file.
33613         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33614         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33615
33616         * m4/mbsncasecmp.m4: Remove file.
33617         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33618         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33619
33620         * m4/mbsnlen.m4: Remove file.
33621         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33622         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33623
33624         * m4/mbspbrk.m4: Remove file.
33625         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33626         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33627
33628         * m4/mbspcasecmp.m4: Remove file.
33629         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33630         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33631
33632         * m4/mbsrchr.m4: Remove file.
33633         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33634         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33635
33636         * m4/mbssep.m4: Remove file.
33637         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33638         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33639
33640         * m4/mbsspn.m4: Remove file.
33641         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33642         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33643
33644         * m4/mbsstr.m4: Remove file.
33645         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33646         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33647
33648         * m4/mbstok_r.m4: Remove file.
33649         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33650         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33651
33652         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33653
33654         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33655         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33656
33657         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33658
33659 2009-03-08  Bruno Haible  <bruno@clisp.org>
33660
33661         Tests for module 'unicase/ulc-casecmp'.
33662         * modules/unicase/ulc-casecmp-tests: New file.
33663         * tests/unicase/test-ulc-casecmp1.sh: New file.
33664         * tests/unicase/test-ulc-casecmp2.sh: New file.
33665         * tests/unicase/test-ulc-casecmp.c: New file.
33666
33667         New module 'unicase/ulc-casecmp'.
33668         * lib/unicase.h (ulc_casecmp): New declaration.
33669         * lib/unicase/ulc-casecmp.c: New file.
33670         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33671         'const SRC_UNIT *'.
33672         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33673         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33674         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33675         * modules/unicase/ulc-casecmp: New file.
33676
33677         Tests for module 'unicase/u32-is-cased'.
33678         * modules/unicase/u32-is-cased-tests: New file.
33679         * tests/unicase/test-u32-is-cased.c: New file.
33680
33681         Tests for module 'unicase/u16-is-cased'.
33682         * modules/unicase/u16-is-cased-tests: New file.
33683         * tests/unicase/test-u16-is-cased.c: New file.
33684
33685         Tests for module 'unicase/u8-is-cased'.
33686         * modules/unicase/u8-is-cased-tests: New file.
33687         * tests/unicase/test-u8-is-cased.c: New file.
33688         * tests/unicase/test-is-cased.h: New file.
33689
33690         New module 'unicase/u32-is-cased'.
33691         * lib/unicase/u32-is-cased.c: New file.
33692         * modules/unicase/u32-is-cased: New file.
33693
33694         New module 'unicase/u16-is-cased'.
33695         * lib/unicase/u16-is-cased.c: New file.
33696         * modules/unicase/u16-is-cased: New file.
33697
33698         New module 'unicase/u8-is-cased'.
33699         * lib/unicase/u8-is-cased.c: New file.
33700         * lib/unicase/u-is-cased.h: New file.
33701         * modules/unicase/u8-is-cased: New file.
33702
33703         Tests for module 'unicase/u32-is-casefolded'.
33704         * modules/unicase/u32-is-casefolded-tests: New file.
33705         * tests/unicase/test-u32-is-casefolded.c: New file.
33706
33707         Tests for module 'unicase/u16-is-casefolded'.
33708         * modules/unicase/u16-is-casefolded-tests: New file.
33709         * tests/unicase/test-u16-is-casefolded.c: New file.
33710
33711         Tests for module 'unicase/u8-is-casefolded'.
33712         * modules/unicase/u8-is-casefolded-tests: New file.
33713         * tests/unicase/test-u8-is-casefolded.c: New file.
33714         * tests/unicase/test-is-casefolded.h: New file.
33715
33716         New module 'unicase/u32-is-casefolded'.
33717         * lib/unicase/u32-is-casefolded.c: New file.
33718         * modules/unicase/u32-is-casefolded: New file.
33719
33720         New module 'unicase/u16-is-casefolded'.
33721         * lib/unicase/u16-is-casefolded.c: New file.
33722         * modules/unicase/u16-is-casefolded: New file.
33723
33724         New module 'unicase/u8-is-casefolded'.
33725         * lib/unicase/u8-is-casefolded.c: New file.
33726         * modules/unicase/u8-is-casefolded: New file.
33727
33728         Tests for module 'unicase/u32-is-titlecase'.
33729         * modules/unicase/u32-is-titlecase-tests: New file.
33730         * tests/unicase/test-u32-is-titlecase.c: New file.
33731
33732         Tests for module 'unicase/u16-is-titlecase'.
33733         * modules/unicase/u16-is-titlecase-tests: New file.
33734         * tests/unicase/test-u16-is-titlecase.c: New file.
33735
33736         Tests for module 'unicase/u8-is-titlecase'.
33737         * modules/unicase/u8-is-titlecase-tests: New file.
33738         * tests/unicase/test-u8-is-titlecase.c: New file.
33739         * tests/unicase/test-is-titlecase.h: New file.
33740
33741         New module 'unicase/u32-is-titlecase'.
33742         * lib/unicase/u32-is-titlecase.c: New file.
33743         * modules/unicase/u32-is-titlecase: New file.
33744
33745         New module 'unicase/u16-is-titlecase'.
33746         * lib/unicase/u16-is-titlecase.c: New file.
33747         * modules/unicase/u16-is-titlecase: New file.
33748
33749         New module 'unicase/u8-is-titlecase'.
33750         * lib/unicase/u8-is-titlecase.c: New file.
33751         * modules/unicase/u8-is-titlecase: New file.
33752
33753         Tests for module 'unicase/u32-is-lowercase'.
33754         * modules/unicase/u32-is-lowercase-tests: New file.
33755         * tests/unicase/test-u32-is-lowercase.c: New file.
33756
33757         Tests for module 'unicase/u16-is-lowercase'.
33758         * modules/unicase/u16-is-lowercase-tests: New file.
33759         * tests/unicase/test-u16-is-lowercase.c: New file.
33760
33761         Tests for module 'unicase/u8-is-lowercase'.
33762         * modules/unicase/u8-is-lowercase-tests: New file.
33763         * tests/unicase/test-u8-is-lowercase.c: New file.
33764         * tests/unicase/test-is-lowercase.h: New file.
33765
33766         New module 'unicase/u32-is-lowercase'.
33767         * lib/unicase/u32-is-lowercase.c: New file.
33768         * modules/unicase/u32-is-lowercase: New file.
33769
33770         New module 'unicase/u16-is-lowercase'.
33771         * lib/unicase/u16-is-lowercase.c: New file.
33772         * modules/unicase/u16-is-lowercase: New file.
33773
33774         New module 'unicase/u8-is-lowercase'.
33775         * lib/unicase/u8-is-lowercase.c: New file.
33776         * modules/unicase/u8-is-lowercase: New file.
33777
33778         Tests for module 'unicase/u32-is-uppercase'.
33779         * modules/unicase/u32-is-uppercase-tests: New file.
33780         * tests/unicase/test-u32-is-uppercase.c: New file.
33781
33782         Tests for module 'unicase/u16-is-uppercase'.
33783         * modules/unicase/u16-is-uppercase-tests: New file.
33784         * tests/unicase/test-u16-is-uppercase.c: New file.
33785
33786         Tests for module 'unicase/u8-is-uppercase'.
33787         * modules/unicase/u8-is-uppercase-tests: New file.
33788         * tests/unicase/test-u8-is-uppercase.c: New file.
33789         * tests/unicase/test-is-uppercase.h: New file.
33790
33791         New module 'unicase/u32-is-uppercase'.
33792         * lib/unicase/u32-is-uppercase.c: New file.
33793         * modules/unicase/u32-is-uppercase: New file.
33794
33795         New module 'unicase/u16-is-uppercase'.
33796         * lib/unicase/u16-is-uppercase.c: New file.
33797         * modules/unicase/u16-is-uppercase: New file.
33798
33799         New module 'unicase/u8-is-uppercase'.
33800         * lib/unicase/u8-is-uppercase.c: New file.
33801         * modules/unicase/u8-is-uppercase: New file.
33802
33803         New module 'unicase/u32-is-invariant'.
33804         * lib/unicase/u32-is-invariant.c: New file.
33805         * modules/unicase/u32-is-invariant: New file.
33806
33807         New module 'unicase/u16-is-invariant'.
33808         * lib/unicase/u16-is-invariant.c: New file.
33809         * modules/unicase/u16-is-invariant: New file.
33810
33811         New module 'unicase/u8-is-invariant'.
33812         * lib/unicase/u8-is-invariant.c: New file.
33813         * lib/unicase/invariant.h: New file.
33814         * lib/unicase/u-is-invariant.h: New file.
33815         * modules/unicase/u8-is-invariant: New file.
33816
33817         Tests for module 'unicase/u32-casecoll'.
33818         * modules/unicase/u32-casecoll-tests: New file.
33819         * tests/unicase/test-u32-casecoll.c: New file.
33820
33821         Tests for module 'unicase/u16-casecoll'.
33822         * modules/unicase/u16-casecoll-tests: New file.
33823         * tests/unicase/test-u16-casecoll.c: New file.
33824
33825         Tests for module 'unicase/u8-casecoll'.
33826         * modules/unicase/u8-casecoll-tests: New file.
33827         * tests/unicase/test-u8-casecoll.c: New file.
33828
33829         New module 'unicase/u32-casecoll'.
33830         * lib/unicase/u32-casecoll.c: New file.
33831         * modules/unicase/u32-casecoll: New file.
33832
33833         New module 'unicase/u16-casecoll'.
33834         * lib/unicase/u16-casecoll.c: New file.
33835         * modules/unicase/u16-casecoll: New file.
33836
33837         New module 'unicase/u8-casecoll'.
33838         * lib/unicase/u8-casecoll.c: New file.
33839         * lib/unicase/u-casecoll.h: New file.
33840         * modules/unicase/u8-casecoll: New file.
33841
33842         New module 'unicase/u32-casexfrm'.
33843         * lib/unicase/u32-casexfrm.c: New file.
33844         * modules/unicase/u32-casexfrm: New file.
33845
33846         New module 'unicase/u16-casexfrm'.
33847         * lib/unicase/u16-casexfrm.c: New file.
33848         * modules/unicase/u16-casexfrm: New file.
33849
33850         New module 'unicase/u8-casexfrm'.
33851         * lib/unicase/u8-casexfrm.c: New file.
33852         * lib/unicase/u-casexfrm.h: New file.
33853         * modules/unicase/u8-casexfrm: New file.
33854
33855         Tests for module 'unicase/u32-casecmp'.
33856         * modules/unicase/u32-casecmp-tests: New file.
33857         * tests/unicase/test-u32-casecmp.c: New file.
33858
33859         Tests for module 'unicase/u16-casecmp'.
33860         * modules/unicase/u16-casecmp-tests: New file.
33861         * tests/unicase/test-u16-casecmp.c: New file.
33862
33863         Tests for module 'unicase/u8-casecmp'.
33864         * modules/unicase/u8-casecmp-tests: New file.
33865         * tests/unicase/test-u8-casecmp.c: New file.
33866         * tests/unicase/test-casecmp.h: New file.
33867
33868         New module 'unicase/u32-casecmp'.
33869         * lib/unicase/u32-casecmp.c: New file.
33870         * modules/unicase/u32-casecmp: New file.
33871
33872         New module 'unicase/u16-casecmp'.
33873         * lib/unicase/u16-casecmp.c: New file.
33874         * modules/unicase/u16-casecmp: New file.
33875
33876         New module 'unicase/u8-casecmp'.
33877         * lib/unicase/u8-casecmp.c: New file.
33878         * lib/unicase/u-casecmp.h: New file.
33879         * modules/unicase/u8-casecmp: New file.
33880
33881         Tests for module 'unicase/u32-casefold'.
33882         * modules/unicase/u32-casefold-tests: New file.
33883         * tests/unicase/test-u32-casefold.c: New file.
33884
33885         Tests for module 'unicase/u16-casefold'.
33886         * modules/unicase/u16-casefold-tests: New file.
33887         * tests/unicase/test-u16-casefold.c: New file.
33888
33889         Tests for module 'unicase/u8-casefold'.
33890         * modules/unicase/u8-casefold-tests: New file.
33891         * tests/unicase/test-u8-casefold.c: New file.
33892
33893         New module 'unicase/u32-casefold'.
33894         * lib/unicase/u32-casefold.c: New file.
33895         * modules/unicase/u32-casefold: New file.
33896
33897         New module 'unicase/u16-casefold'.
33898         * lib/unicase/u16-casefold.c: New file.
33899         * modules/unicase/u16-casefold: New file.
33900
33901         New module 'unicase/u8-casefold'.
33902         * lib/unicase/u8-casefold.c: New file.
33903         * lib/unicase/u-casefold.h: New file.
33904         * modules/unicase/u8-casefold: New file.
33905
33906         New module 'unicase/tocasefold'.
33907         * lib/unicase/casefold.h: New file.
33908         * lib/unicase/tocasefold.c: New file.
33909         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33910         * modules/unicase/tocasefold: New file.
33911
33912         Tests for module 'unicase/u32-totitle'.
33913         * modules/unicase/u32-totitle-tests: New file.
33914         * tests/unicase/test-u32-totitle.c: New file.
33915
33916         Tests for module 'unicase/u16-totitle'.
33917         * modules/unicase/u16-totitle-tests: New file.
33918         * tests/unicase/test-u16-totitle.c: New file.
33919
33920         Tests for module 'unicase/u8-totitle'.
33921         * modules/unicase/u8-totitle-tests: New file.
33922         * tests/unicase/test-u8-totitle.c: New file.
33923
33924         New module 'unicase/u32-totitle'.
33925         * lib/unicase/u32-totitle.c: New file.
33926         * modules/unicase/u32-totitle: New file.
33927
33928         New module 'unicase/u16-totitle'.
33929         * lib/unicase/u16-totitle.c: New file.
33930         * modules/unicase/u16-totitle: New file.
33931
33932         New module 'unicase/u8-totitle'.
33933         * lib/unicase/u8-totitle.c: New file.
33934         * lib/unicase/u-totitle.h: New file.
33935         * modules/unicase/u8-totitle: New file.
33936
33937         Tests for module 'unicase/u32-tolower'.
33938         * modules/unicase/u32-tolower-tests: New file.
33939         * tests/unicase/test-u32-tolower.c: New file.
33940
33941         Tests for module 'unicase/u16-tolower'.
33942         * modules/unicase/u16-tolower-tests: New file.
33943         * tests/unicase/test-u16-tolower.c: New file.
33944
33945         Tests for module 'unicase/u8-tolower'.
33946         * modules/unicase/u8-tolower-tests: New file.
33947         * tests/unicase/test-u8-tolower.c: New file.
33948
33949         New module 'unicase/u32-tolower'.
33950         * lib/unicase/u32-tolower.c: New file.
33951         * modules/unicase/u32-tolower: New file.
33952
33953         New module 'unicase/u16-tolower'.
33954         * lib/unicase/u16-tolower.c: New file.
33955         * modules/unicase/u16-tolower: New file.
33956
33957         New module 'unicase/u8-tolower'.
33958         * lib/unicase/u8-tolower.c: New file.
33959         * modules/unicase/u8-tolower: New file.
33960
33961         Tests for module 'unicase/u32-toupper'.
33962         * modules/unicase/u32-toupper-tests: New file.
33963         * tests/unicase/test-u32-toupper.c: New file.
33964
33965         Tests for module 'unicase/u16-toupper'.
33966         * modules/unicase/u16-toupper-tests: New file.
33967         * tests/unicase/test-u16-toupper.c: New file.
33968
33969         Tests for module 'unicase/u8-toupper'.
33970         * modules/unicase/u8-toupper-tests: New file.
33971         * tests/unicase/test-u8-toupper.c: New file.
33972
33973         New module 'unicase/u32-toupper'.
33974         * lib/unicase/u32-toupper.c: New file.
33975         * modules/unicase/u32-toupper: New file.
33976
33977         New module 'unicase/u16-toupper'.
33978         * lib/unicase/u16-toupper.c: New file.
33979         * modules/unicase/u16-toupper: New file.
33980
33981         New module 'unicase/u8-toupper'.
33982         * lib/unicase/u8-toupper.c: New file.
33983         * modules/unicase/u8-toupper: New file.
33984
33985         New module 'unicase/u32-casemap'.
33986         * lib/unicase/u32-casemap.c: New file.
33987         * modules/unicase/u32-casemap: New file.
33988
33989         New module 'unicase/u16-casemap'.
33990         * lib/unicase/u16-casemap.c: New file.
33991         * modules/unicase/u16-casemap: New file.
33992
33993         New module 'unicase/u8-casemap'.
33994         * lib/unicase/unicasemap.h: New file.
33995         * lib/unicase/u8-casemap.c: New file.
33996         * lib/unicase/u-casemap.h: New file.
33997         * modules/unicase/u8-casemap: New file.
33998
33999         New module 'unicase/special-casing'.
34000         * lib/unicase/special-casing.h: New file.
34001         * lib/unicase/special-casing.c: New file.
34002         * lib/unicase/special-casing-table.gperf: New file, generated by
34003         gen-uni-tables.c.
34004         * modules/unicase/special-casing: New file.
34005
34006         Tests for module 'unicase/locale-language'.
34007         * modules/unicase/locale-language-tests: New file.
34008         * tests/unicase/test-locale-language.sh: New file.
34009         * tests/unicase/test-locale-language.c: New file.
34010
34011         New module 'unicase/locale-language'.
34012         * lib/unicase/locale-language.c: New file.
34013         * lib/unicase/locale-languages.gperf: New file.
34014         * modules/unicase/locale-language: New file.
34015
34016         Generate more tables for case conversion and case folding.
34017         * lib/gen-uni-tables.c (SCC_*): New enum items.
34018         (struct special_casing_rule): New type.
34019         (casing_rules, num_casing_rules, allocated_casing_rules): New
34020         variables.
34021         (add_casing_rule, fill_casing_rules): New functions.
34022         (struct casefold_rule): New type.
34023         (casefolding_rules, num_casefolding_rules,
34024         allocated_casefolding_rules): New variables.
34025         (fill_casefolding_rules): New function.
34026         (unicode_casefold): New variable.
34027         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34028         sort_casing_rules, output_casing_rules): New functions.
34029         (main): Accept to more arguments: SpecialCasing.txt and
34030         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34031         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34032         Output mapping for casefolding.
34033
34034         * lib/unicase.h: Include stdbool.h, uninorm.h.
34035         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34036         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34037         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34038         arguments.
34039         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34040         resultp arguments.
34041         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34042         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34043         resultp arguments.
34044         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34045         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34046         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34047         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34048         declarations.
34049         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34050
34051 2009-03-08  Bruno Haible  <bruno@clisp.org>
34052
34053         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34054         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34055         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34056         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34057
34058 2009-03-07  Bruno Haible  <bruno@clisp.org>
34059
34060         Adjust u*_normcmp, u*_normcoll API.
34061         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34062         u16_normcoll, u32_normcoll): Change failure conventions.
34063         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34064         errno and return -1.
34065         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34066
34067 2009-03-07  Bruno Haible  <bruno@clisp.org>
34068
34069         Tests for module 'uninorm/u32-normcoll'.
34070         * modules/uninorm/u32-normcoll-tests: New file.
34071         * tests/uninorm/test-u32-normcoll.c: New file.
34072
34073         Tests for module 'uninorm/u16-normcoll'.
34074         * modules/uninorm/u16-normcoll-tests: New file.
34075         * tests/uninorm/test-u16-normcoll.c: New file.
34076
34077         Tests for module 'uninorm/u8-normcoll'.
34078         * modules/uninorm/u8-normcoll-tests: New file.
34079         * tests/uninorm/test-u8-normcoll.c: New file.
34080
34081 2009-03-07  Bruno Haible  <bruno@clisp.org>
34082
34083         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34084         tests/uninorm/test-u32-normcmp.c.
34085         * tests/uninorm/test-u32-normcmp.c: Include it.
34086         (test_nonascii): New function, extracted from main. Add some more
34087         tests.
34088         (main): Invoke test_ascii and test_nonascii.
34089         * modules/uninorm/u32-normcmp-tests (Files): Add
34090         tests/uninorm/test-u32-normcmp.h.
34091         (Depends-on): Remove uninorm/u32-normcmp.
34092
34093         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34094         tests/uninorm/test-u16-normcmp.c.
34095         * tests/uninorm/test-u16-normcmp.c: Include it.
34096         (test_nonascii): New function, extracted from main. Add some more
34097         tests.
34098         (main): Invoke test_ascii and test_nonascii.
34099         * modules/uninorm/u16-normcmp-tests (Files): Add
34100         tests/uninorm/test-u16-normcmp.h.
34101         (Depends-on): Remove uninorm/u16-normcmp.
34102
34103         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34104         tests/uninorm/test-u8-normcmp.c.
34105         * tests/uninorm/test-u8-normcmp.c: Include it.
34106         (test_nonascii): New function, extracted from main. Add some more
34107         tests.
34108         (main): Invoke test_ascii and test_nonascii.
34109         * modules/uninorm/u8-normcmp-tests (Files): Add
34110         tests/uninorm/test-u8-normcmp.h.
34111         (Depends-on): Remove uninorm/u8-normcmp.
34112
34113 2009-03-07  Bruno Haible  <bruno@clisp.org>
34114
34115         New module 'uninorm/u32-normcoll'.
34116         * lib/uninorm/u32-normcoll.c: New file.
34117         * modules/uninorm/u32-normcoll: New file.
34118
34119         New module 'uninorm/u16-normcoll'.
34120         * lib/uninorm/u16-normcoll.c: New file.
34121         * modules/uninorm/u16-normcoll: New file.
34122
34123         New module 'uninorm/u8-normcoll'.
34124         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34125         declarations.
34126         * lib/uninorm/u8-normcoll.c: New file.
34127         * lib/uninorm/u-normcoll.h: New file.
34128         * modules/uninorm/u8-normcoll: New file.
34129
34130         New module 'uninorm/u32-normxfrm'.
34131         * lib/uninorm/u32-normxfrm.c: New file.
34132         * modules/uninorm/u32-normxfrm: New file.
34133
34134         New module 'uninorm/u16-normxfrm'.
34135         * lib/uninorm/u16-normxfrm.c: New file.
34136         * modules/uninorm/u16-normxfrm: New file.
34137
34138         New module 'uninorm/u8-normxfrm'.
34139         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34140         declarations.
34141         * lib/uninorm/u8-normxfrm.c: New file.
34142         * lib/uninorm/u-normxfrm.h: New file.
34143         * modules/uninorm/u8-normxfrm: New file.
34144
34145 2009-03-07  Bruno Haible  <bruno@clisp.org>
34146
34147         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34148         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34149         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34150
34151 2009-03-07  Bruno Haible  <bruno@clisp.org>
34152
34153         New module 'memxfrm'.
34154         * lib/memxfrm.h: New file.
34155         * lib/memxfrm.c: New file.
34156         * modules/memxfrm: New file.
34157
34158 2009-03-07  Bruno Haible  <bruno@clisp.org>
34159
34160         New module 'memcmp2'.
34161         * lib/memcmp2.h: New file.
34162         * lib/memcmp2.c: New file.
34163         * modules/memcmp2: New file.
34164
34165 2009-03-07  Bruno Haible  <bruno@clisp.org>
34166
34167         Tests for module 'uninorm/decomposing-form'.
34168         * modules/uninorm/decomposing-form-tests: New file.
34169         * tests/uninorm/test-decomposing-form.c: New file.
34170
34171         New module 'uninorm/decomposing-form'.
34172         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34173         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34174         Add 'decomposing_variant' field.
34175         * lib/uninorm/decomposing-form.c: New file.
34176         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34177         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34178         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34179         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34180         * modules/uninorm/decomposing-form: New file.
34181         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34182         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34183
34184 2009-03-07  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34187         strings.
34188
34189 2009-03-06  Bruno Haible  <bruno@clisp.org>
34190
34191         Tests for module 'uninorm/u32-normcmp'.
34192         * tests/uninorm/test-u32-normcmp.c: New file.
34193         * modules/uninorm/u32-normcmp-tests: New file.
34194
34195         Tests for module 'uninorm/u16-normcmp'.
34196         * tests/uninorm/test-u16-normcmp.c: New file.
34197         * modules/uninorm/u16-normcmp-tests: New file.
34198
34199         Tests for module 'uninorm/u8-normcmp'.
34200         * tests/uninorm/test-u8-normcmp.c: New file.
34201         * modules/uninorm/u8-normcmp-tests: New file.
34202
34203         New module 'uninorm/u32-normcmp'.
34204         * lib/uninorm/u32-normcmp.c: New file.
34205         * modules/uninorm/u32-normcmp: New file.
34206
34207         New module 'uninorm/u16-normcmp'.
34208         * lib/uninorm/u16-normcmp.c: New file.
34209         * modules/uninorm/u16-normcmp: New file.
34210
34211         New module 'uninorm/u8-normcmp'.
34212         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34213         declarations.
34214         * lib/uninorm/u8-normcmp.c: New file.
34215         * lib/uninorm/u-normcmp.h: New file.
34216         * modules/uninorm/u8-normcmp: New file.
34217
34218 2009-03-06  Bruno Haible  <bruno@clisp.org>
34219
34220         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34221         Reported by Eric Blake.
34222
34223 2009-03-06  Eric Blake  <ebb9@byu.net>
34224             Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34227         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34228         condition.
34229         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34230         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34231         condition.
34232         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34233
34234 2009-03-06  Eric Blake  <ebb9@byu.net>
34235
34236         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34237         to avoid compiler warnings.
34238         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34239
34240 2009-03-05  Bruno Haible  <bruno@clisp.org>
34241
34242         * tests/test-ftell.c (main): Disable test beyond end of file on
34243         FreeMiNT.
34244         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34245
34246 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34247
34248         * lib/filevercmp.c: Move hidden files up in ordering.
34249         * tests/test-filevercmp.c: Add tests for hidden files.
34250
34251 2009-03-04  Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34254         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34255         AM_CFLAGS.
34256         Reported by Simon Josefsson.
34257
34258 2009-03-03  Bruno Haible  <bruno@clisp.org>
34259
34260         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34261         Reported by Simon Josefsson.
34262
34263         * doc/ld-version-script.texi: Update node reference.
34264
34265 2009-03-03  Bruno Haible  <bruno@clisp.org>
34266
34267         * modules/visibility (License): Change to 'unlimited'.
34268         Suggested by Simon Josefsson.
34269
34270 2009-03-03  Jim Meyering  <meyering@redhat.com>
34271
34272         unlinkdir: cannot_unlink_dir may modify process state
34273         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34274         it's neither thread-safe nor appropriate for use in a library.
34275
34276 2009-03-03  Eric Blake  <ebb9@byu.net>
34277
34278         test-closein: silence test under Darwin
34279         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34280         care if it dies from EPIPE or EBADF.
34281
34282 2009-03-03  Bruno Haible  <bruno@clisp.org>
34283
34284         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34285         earlier.
34286         * doc/visibility.texi: Fix @node and @section.
34287
34288 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34289
34290         * doc/gnulib.texi: Link to sections for ld version script and
34291         visibility.
34292         * doc/visibility.texi: Add @node and @section.
34293         * modules/ld-version-script: New module.
34294         * m4/ld-version-script.m4: New file.
34295         * doc/ld-version-script.texi: New file.
34296
34297 2009-03-02  David Lutterkort  <lutter@redhat.com>
34298
34299         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34301
34302 2009-03-02  Bruno Haible  <bruno@clisp.org>
34303
34304         * doc/visibility.texi: Mention libtool's -export-symbols option.
34305
34306 2009-03-02  Jim Meyering  <meyering@redhat.com>
34307
34308         announce-gen: new option: --no-print-checksums
34309         * build-aux/announce-gen (usage): Describe it.
34310         (print_checksums): Print a newline here, not in the [*] footnote.
34311         (main): Honor it.
34312
34313 2009-03-01  Bruno Haible  <bruno@clisp.org>
34314
34315         Use socklen_t in the native Windows replacements prototypes.
34316         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34317         instead of 'int'.
34318         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34319         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34320         * modules/getsockopt (Depends-on): Add socklen.
34321         * modules/setsockopt (Depends-on): Add socklen.
34322
34323 2009-03-01  Bruno Haible  <bruno@clisp.org>
34324
34325         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34326         least 4.2.
34327
34328 2009-03-01  Eric Blake  <ebb9@byu.net>
34329             Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34332         error messages.
34333         * lib/wait-process.c (wait_subprocess): Omit error message about
34334         deadly signal sent to the child of termsigp != NULL.
34335
34336 2009-03-01  Eric Blake  <ebb9@byu.net>
34337
34338         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34339
34340 2009-03-01  Bruno Haible  <bruno@clisp.org>
34341
34342         Avoid a gcc warning.
34343         * tests/test-sched.c (b): Make global.
34344         Reported by Eric Blake.
34345
34346 2009-01-19  Martin Lambers  <marlam@marlam.de>
34347
34348         Provide POSIX semantics for socket timeout options on W32.
34349         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34350         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34351         * modules/setsockopt: Depend on sys_time module for struct timeval.
34352         * modules/getsockopt: Depend on sys_time module for struct timeval.
34353
34354 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34355
34356         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34357         __USE_GNU, for consistency with netdb.in.h.
34358         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34359
34360 2009-03-01  Bruno Haible  <bruno@clisp.org>
34361
34362         More support for FreeMiNT.
34363         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34364         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34365
34366 2009-03-01  Bruno Haible  <bruno@clisp.org>
34367
34368         More support for FreeMiNT.
34369         * lib/fpurge.c (fpurge): Correct last commit.
34370         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34371
34372 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34373
34374         Fix unportable awk script in vc-list-files.
34375         * build-aux/vc-list-files: In the replacement awk script, use
34376         substr with a second argument of 1, not zero.
34377         Report by Simon Josefsson.
34378
34379 2009-02-28  Bruno Haible  <bruno@clisp.org>
34380
34381         More support for FreeMiNT.
34382         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34383         to FreeMiNT today.
34384         * lib/fwriting.c (fwriting): Likewise.
34385         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34386
34387 2009-02-28  Bruno Haible  <bruno@clisp.org>
34388
34389         * tests/test-freadseek.c (main): Disable test beyond end of file on
34390         FreeMiNT.
34391         * tests/test-ftello.c (main): Likewise.
34392         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34393
34394 2009-02-28  Bruno Haible  <bruno@clisp.org>
34395
34396         Add tentative support for FreeMiNT.
34397         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34398         * lib/fpurge.c (fpurge): Likewise.
34399         * lib/freadable.c (freadable): Likewise.
34400         * lib/freading.c (freading): Likewise.
34401         * lib/freadptr.c (freadptr): Likewise.
34402         * lib/freadseek.c (freadptrinc): Likewise.
34403         * lib/fseeko.c (rpl_fseeko): Likewise.
34404         * lib/fseterr.c (fseterr): Likewise.
34405         * lib/fwritable.c (fwritable): Likewise.
34406         * lib/fwriting.c (fwriting): Likewise.
34407         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34408         Hourihane.
34409         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34410
34411 2009-02-28  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34414         SIGCHLD.
34415         Reported by Jim Meyering.
34416
34417 2009-02-28  Bruno Haible  <bruno@clisp.org>
34418
34419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34420         Mention the results of these tests on various platforms.
34421         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34422         order.
34423         * doc/posix-functions/printf.texi: Likewise.
34424         * doc/posix-functions/snprintf.texi: Likewise.
34425         * doc/posix-functions/sprintf.texi: Likewise.
34426         * doc/posix-functions/vfprintf.texi: Likewise.
34427         * doc/posix-functions/vprintf.texi: Likewise.
34428         * doc/posix-functions/vsnprintf.texi: Likewise.
34429         * doc/posix-functions/vsprintf.texi: Likewise.
34430         * doc/glibc-functions/obstack_printf.texi: Likewise.
34431         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34432
34433 2009-02-28  Bruno Haible  <bruno@clisp.org>
34434
34435         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34436         Reported by Loïc Minier <lool@dooz.org>.
34437
34438 2009-02-27  Bruno Haible  <bruno@clisp.org>
34439
34440         * gnulib-tool (func_import): Make the sed expression used to create the
34441         sed script for updating the .gitignore file POSIX compliant.
34442         Reported by Eric Blake.
34443
34444 2009-02-27  Bruno Haible  <bruno@clisp.org>
34445
34446         * gnulib-tool (sed): Don't alias as "sed --posix".
34447         Reported by Eric Blake.
34448
34449 2009-02-27  Bruno Haible  <bruno@clisp.org>
34450
34451         Avoid test link errors.
34452         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34453         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34454         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34455         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34457
34458 2009-02-27  Bruno Haible  <bruno@clisp.org>
34459
34460         Avoid spurious "(cached)" in configure output.
34461         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34462         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34463         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34465         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34466         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34467         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34468         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34469         Reported by Eric Blake.
34470
34471 2009-02-27  Eric Blake  <ebb9@byu.net>
34472
34473         printf: fix regression in previous patch
34474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34475
34476 2009-02-27  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34479         value.
34480         * lib/stdint.in.h: Likewise.
34481         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34482
34483 2009-02-27  Eric Blake  <ebb9@byu.net>
34484
34485         doc: mention more functions added in cygwin 1.7.0
34486         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34487         addition.
34488         * doc/posix-functions/open_wmemstream.texi: Likewise.
34489         * doc/posix-functions/wcsnlen.texi: Likewise.
34490         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34491         * doc/posix-functions/wcstod.texi: Likewise.
34492         * doc/posix-functions/wcstof.texi: Likewise.
34493         * doc/posix-functions/wcstoimax.texi: Likewise.
34494         * doc/posix-functions/wcstok.texi: Likewise.
34495         * doc/posix-functions/wcstoumax.texi: Likewise.
34496
34497         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34499         * doc/posix-functions/fprintf.texi: Update.
34500         * doc/posix-functions/printf.texi: Update.
34501         * doc/posix-functions/snprintf.texi: Update.
34502         * doc/posix-functions/sprintf.texi: Update.
34503         * doc/posix-functions/vfprintf.texi: Update.
34504         * doc/posix-functions/vprintf.texi: Update.
34505         * doc/posix-functions/vsnprintf.texi: Update.
34506         * doc/posix-functions/vsprintf.texi: Update.
34507         * doc/glibc-functions/obstack_printf.texi: Update.
34508         * doc/glibc-functions/obstack_vprintf.texi: Update.
34509
34510 2009-02-26  Eric Blake  <ebb9@byu.net>
34511
34512         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34513         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34514         compilation bug by using runtime conversion.
34515         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34516         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34517         * modules/ceill-tests (Files): Use nan.h.
34518         * modules/floorl-tests (Files): Likewise.
34519         * modules/frexpl-tests (Files): Likewise.
34520         * modules/isnanl-tests (Files): Likewise.
34521         * modules/ldexpl-tests (Files): Likewise.
34522         * modules/roundl-tests (Files): Likewise.
34523         * modules/truncl-tests (Files): Likewise.
34524         * tests/test-ceill.c (main): Use a working NaN.
34525         * tests/test-floorl.c (main): Likewise.
34526         * tests/test-frexpl.c (main): Likewise.
34527         * tests/test-isnan.c (test_long_double): Likewise.
34528         * tests/test-isnanl.h (main): Likewise.
34529         * tests/test-ldexpl.h (main): Likewise.
34530         * tests/test-roundl.h (main): Likewise.
34531         * tests/test-truncl.h (main): Likewise.
34532         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34533
34534 2009-02-26  Eric Blake  <ebb9@byu.net>
34535             Bruno Haible  <bruno@clisp.org>
34536
34537         Work around a *printf bug with %ls on Solaris.
34538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34539         precision is specified, sprintf stops converting the wide string
34540         argument when the number of bytes that have been produced by this
34541         conversion equals or exceeds the precision.
34542         * doc/posix-functions/fprintf.texi: Update.
34543         * doc/posix-functions/printf.texi: Update.
34544         * doc/posix-functions/snprintf.texi: Update.
34545         * doc/posix-functions/sprintf.texi: Update.
34546         * doc/posix-functions/vfprintf.texi: Update.
34547         * doc/posix-functions/vprintf.texi: Update.
34548         * doc/posix-functions/vsnprintf.texi: Update.
34549         * doc/posix-functions/vsprintf.texi: Update.
34550         * doc/glibc-functions/obstack_printf.texi: Update.
34551         * doc/glibc-functions/obstack_vprintf.texi: Update.
34552
34553 2009-02-26  Eric Blake  <ebb9@byu.net>
34554
34555         stdlib: favor compiler check of random.h
34556         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34557         to avoid an ObjC random.h installed by Swarm.
34558
34559 2009-02-26  Bruno Haible  <bruno@clisp.org>
34560
34561         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34562         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34563         Reported by Gary V. Vaughan <gary@gnu.org>.
34564
34565 2009-02-26  Bruno Haible  <bruno@clisp.org>
34566
34567         Fix *printf behaviour regarding the %ls directive.
34568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34569         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34570         NEED_PRINTF_DIRECTIVE_LS.
34571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34572         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34574         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34575         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34576         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34577         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34582         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34586         * doc/posix-functions/fprintf.texi: Update.
34587         * doc/posix-functions/printf.texi: Update.
34588         * doc/posix-functions/snprintf.texi: Update.
34589         * doc/posix-functions/sprintf.texi: Update.
34590         * doc/posix-functions/vfprintf.texi: Update.
34591         * doc/posix-functions/vprintf.texi: Update.
34592         * doc/posix-functions/vsnprintf.texi: Update.
34593         * doc/posix-functions/vsprintf.texi: Update.
34594         * doc/glibc-functions/obstack_printf.texi: Update.
34595         * doc/glibc-functions/obstack_vprintf.texi: Update.
34596         Reported by Eric Blake.
34597
34598 2009-02-25  Bruno Haible  <bruno@clisp.org>
34599
34600         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34601         with known value.
34602         Reported by Gary V. Vaughan <gary@gnu.org>.
34603
34604 2009-02-25  Bruno Haible  <bruno@clisp.org>
34605
34606         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34607         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34608         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34609         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34610         Reported by Gary V. Vaughan <gary@gnu.org>.
34611
34612 2009-02-25  Bruno Haible  <bruno@clisp.org>
34613
34614         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34615         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34616         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34617         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34618         Reported by Gary V. Vaughan <gary@gnu.org>.
34619
34620 2009-02-25  Eric Blake  <ebb9@byu.net>
34621
34622         tests: skip fseek/ftell tests if ungetc is broken
34623         * m4/ungetc.m4: New file.
34624         * modules/fseek-tests: Split test, so ungetc dependency is
34625         separate from rest of test.
34626         * modules/fseeko-tests: Likewise.
34627         * modules/ftell-tests: Likewise.
34628         * modules/ftello-tests: Likewise.
34629         * tests/test-fseek.c (main): Isolate ungetc dependency.
34630         * tests/test-fseeko.c (main): Likewise.
34631         * tests/test-ftell.c (main): Likewise.
34632         * tests/test-ftello.c (main): Likewise.
34633         * tests/test-fseek2.sh: New file.
34634         * tests/test-fseeko2.sh: Likewise.
34635         * tests/test-ftell2.sh: Likewise.
34636         * tests/test-ftello2.sh: Likewise.
34637
34638 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34639
34640         test-getaddrinfo: fix usage of skip return code 77
34641         * tests/test-gettaddrinfo.c: Return skip code 77 only
34642         for first occurance of skip (4x77 is not 77)
34643
34644 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34645
34646         strtod: avoid C99 decl-after-statement
34647         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34648
34649 2009-02-24  Eric Blake  <ebb9@byu.net>
34650
34651         strtod: detect HP-UX 11.31 bug
34652         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34653         Reported by Gary V. Vaughan.
34654
34655 2009-02-23  Bruno Haible  <bruno@clisp.org>
34656
34657         Fix invalid read past end of memory block.
34658         * lib/vasnprintf.c (DCHAR_SET): Define.
34659         (local_wcslen): Define only when needed.
34660         (local_strnlen, local_wcsnlen): New functions.
34661         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34662         directives that involve a conversion ourselves.
34663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34664         wcsnlen, mbrtowc, wcrtomb.
34665         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34666         * tests/test-vasprintf-posix.c (test_function): Likewise.
34667         * tests/test-snprintf-posix.h (test_function): Likewise.
34668         * tests/test-sprintf-posix.h (test_function): Likewise.
34669         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34670
34671 2009-02-22  Bruno Haible  <bruno@clisp.org>
34672
34673         Implement new clarified decomposition of Hangul syllables.
34674         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34675         of type LTV, return only a pairwise decomposition.
34676         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34677         Likewise.
34678         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34679         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34680         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34681
34682 2009-02-22  Bruno Haible  <bruno@clisp.org>
34683
34684         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34685         zero-length results and shrink excess allocated memory.
34686         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34687         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34688         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34689         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34690         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34691         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34692         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34693         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34694         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34695         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34696         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34697         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34698
34699 2009-02-21  Bruno Haible  <bruno@clisp.org>
34700
34701         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34702         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34703         spaces after a period. Put a space between a macro name and its
34704         argument list. Trivial rewordings.
34705         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34706         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34707         (main): Return 0 explicitly.
34708
34709 2009-02-21  Bruno Haible  <bruno@clisp.org>
34710
34711         Tests for module 'uninorm/filter'.
34712         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34713         * modules/uninorm/filter-tests: New file.
34714
34715         New module 'uninorm/filter'.
34716         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34717         uninorm_filter_flush, uninorm_filter_free): New declarations.
34718         * lib/uninorm/uninorm-filter.c: New file.
34719         * modules/uninorm/filter: New file.
34720
34721 2009-02-21  Bruno Haible  <bruno@clisp.org>
34722
34723         Tests for module 'uninorm/nfkc'.
34724         * tests/uninorm/test-nfkc.c: New file.
34725         * tests/uninorm/test-u8-nfkc.c: New file.
34726         * tests/uninorm/test-u16-nfkc.c: New file.
34727         * tests/uninorm/test-u32-nfkc.c: New file.
34728         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34729         * tests/uninorm/test-u32-nfkc-big.c: New file.
34730         * modules/uninorm/nfkc-tests: New file.
34731
34732         New module 'uninorm/nfkc'.
34733         * lib/uninorm/nfkc.c: New file.
34734         * modules/uninorm/nfkc: New file.
34735
34736         Tests for module 'uninorm/nfkd'.
34737         * tests/uninorm/test-nfkd.c: New file.
34738         * tests/uninorm/test-u8-nfkd.c: New file.
34739         * tests/uninorm/test-u16-nfkd.c: New file.
34740         * tests/uninorm/test-u32-nfkd.c: New file.
34741         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34742         * tests/uninorm/test-u32-nfkd-big.c: New file.
34743         * modules/uninorm/nfkd-tests: New file.
34744
34745         New module 'uninorm/nfkd'.
34746         * lib/uninorm/nfkd.c: New file.
34747         * modules/uninorm/nfkd: New file.
34748
34749         Tests for module 'uninorm/nfc'.
34750         * tests/uninorm/test-nfc.c: New file.
34751         * tests/uninorm/test-u8-nfc.c: New file.
34752         * tests/uninorm/test-u16-nfc.c: New file.
34753         * tests/uninorm/test-u32-nfc.c: New file.
34754         * tests/uninorm/test-u32-nfc-big.sh: New file.
34755         * tests/uninorm/test-u32-nfc-big.c: New file.
34756         * modules/uninorm/nfc-tests: New file.
34757
34758         New module 'uninorm/nfc'.
34759         * lib/uninorm/nfc.c: New file.
34760         * modules/uninorm/nfc: New file.
34761
34762         Tests for module 'uninorm/nfd'.
34763         * tests/uninorm/test-nfd.c: New file.
34764         * tests/uninorm/test-u8-nfd.c: New file.
34765         * tests/uninorm/test-u16-nfd.c: New file.
34766         * tests/uninorm/test-u32-nfd.c: New file.
34767         * tests/uninorm/test-u32-nfd-big.sh: New file.
34768         * tests/uninorm/test-u32-nfd-big.c: New file.
34769         * tests/uninorm/test-u32-normalize-big.h: New file.
34770         * tests/uninorm/test-u32-normalize-big.c: New file.
34771         * tests/uninorm/NormalizationTest.txt: New file, created from
34772         Unicode 5.1.0 NormalizationTest.txt.
34773         * modules/uninorm/nfd-tests: New file.
34774
34775         New module 'uninorm/nfd'.
34776         * lib/uninorm/nfd.c: New file.
34777         * modules/uninorm/nfd: New file.
34778
34779         New module 'uninorm/u32-normalize'.
34780         * lib/uninorm/u32-normalize.c: New file.
34781         * modules/uninorm/u32-normalize: New file.
34782
34783         New module 'uninorm/u16-normalize'.
34784         * lib/uninorm/u16-normalize.c: New file.
34785         * modules/uninorm/u16-normalize: New file.
34786
34787         New module 'uninorm/u8-normalize'.
34788         * lib/uninorm/u8-normalize.c: New file.
34789         * lib/uninorm/normalize-internal.h: New file.
34790         * lib/uninorm/u-normalize-internal.h: New file.
34791         * modules/uninorm/u8-normalize: New file.
34792
34793         New module 'uninorm/decompose-internal'.
34794         * lib/uninorm/decompose-internal.c: New file.
34795         * modules/uninorm/decompose-internal: New file.
34796
34797         Tests for module 'uninorm/composition'.
34798         * tests/uninorm/test-composition.c: New file.
34799         * modules/uninorm/composition-tests: New file.
34800
34801         New module 'uninorm/composition'.
34802         * lib/uninorm/composition.c: New file.
34803         * lib/uninorm/composition-table.gperf: New file, generated by
34804         gen-uni-tables.
34805         * modules/uninorm/composition: New file.
34806
34807         Tests for module 'uninorm/compat-decomposition'.
34808         * tests/uninorm/test-compat-decomposition.c: New file.
34809         * modules/uninorm/compat-decomposition-tests: New file.
34810
34811         New module 'uninorm/compat-decomposition'.
34812         * lib/uninorm/decompose-internal.h: New file.
34813         * lib/uninorm/compat-decomposition.c: New file.
34814         * modules/uninorm/compat-decomposition: New file.
34815
34816         Tests for module 'uninorm/canonical-decomposition'.
34817         * tests/uninorm/test-canonical-decomposition.c: New file.
34818         * modules/uninorm/canonical-decomposition-tests: New file.
34819
34820         New module 'uninorm/canonical-decomposition'.
34821         * lib/uninorm/canonical-decomposition.c: New file.
34822         * modules/uninorm/canonical-decomposition: New file.
34823
34824         Tests for module 'uninorm/decomposition'.
34825         * tests/uninorm/test-decomposition.c: New file.
34826         * modules/uninorm/decomposition-tests: New file.
34827
34828         New module 'uninorm/decomposition'.
34829         * lib/uninorm/decomposition.c: New file.
34830         * modules/uninorm/decomposition: New file.
34831
34832         New module 'uninorm/decomposition-table'.
34833         * lib/uninorm/decomposition-table.h: New file.
34834         * lib/uninorm/decomposition-table.c: New file.
34835         * lib/uninorm/decomposition-table1.h: New file, generated by
34836         gen-uni-tables.
34837         * lib/uninorm/decomposition-table2.h: New file, generated by
34838         gen-uni-tables.
34839         * modules/uninorm/decomposition-table: New file.
34840
34841         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34842         (UC_DECOMP_*): New enumeration items.
34843         (get_decomposition): New function.
34844         (struct decomp_table): New type.
34845         (output_decomposition, output_decomposition_tables): New functions.
34846         (unicode_composition_exclusions): New variable.
34847         (fill_composition_exclusions, debug_output_composition_tables): New
34848         functions.
34849         (main): Accept one more argument. Invoke fill_composition_exclusions.
34850         Output decomposition and composition tables.
34851
34852         New module 'uninorm/base'.
34853         * lib/uninorm.h: New file.
34854         * lib/unictype.h: Update comment.
34855         * modules/uninorm/base: New file.
34856
34857 2009-02-21  David Lutterkort  <lutter@redhat.com>
34858
34859         Tests for module 'safe-alloc'.
34860         * tests/test-safe-alloc.c: New file.
34861         * modules/safe-alloc-tests: New file.
34862
34863         New module 'safe-alloc'.
34864         * lib/safe-alloc.h: New file.
34865         * lib/safe-alloc.c: New file.
34866         * m4/safe-alloc.m4: New file.
34867         * modules/safe-alloc: New file.
34868         * doc/safe-alloc.texi: New file.
34869         * doc/gnulib.texi: Include it.
34870         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34871         safe-alloc.
34872
34873 2009-02-18  Bruno Haible  <bruno@clisp.org>
34874
34875         Fix link error on non-glibc systems.
34876         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34877         variable.
34878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34879
34880 2009-02-18  Jim Meyering  <meyering@redhat.com>
34881
34882         fts: avoid used-uninitialized error due to recent change
34883         * lib/fts.c (fts_read): Guard uses of the new member,
34884         parent->fts_n_dirs_remaining, since it's not relevant for
34885         the parent of a directory specified on the command-line.
34886
34887 2009-02-17  James Youngman  <jay@gnu.org>
34888             Bruno Haible  <bruno@clisp.org>
34889
34890         * m4/include_next.m4: Reformulate comment.
34891
34892 2009-02-16  Jim Meyering  <meyering@redhat.com>
34893
34894         fts: add #if guards so that the fts_lgpl module still builds
34895         * lib/fts.c: Guard just-added hash-table-using parts with
34896         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34897         Reported by Simon Josefsson.
34898
34899 2009-02-15  Bruno Haible  <bruno@clisp.org>
34900
34901         * modules/array-mergesort-tests: New file.
34902         * tests/test-array-mergesort.c: New file.
34903
34904         New module 'array-mergesort'.
34905         * modules/array-mergesort: New file.
34906         * lib/array-mergesort.h: New file.
34907
34908 2009-02-15  Bruno Haible  <bruno@clisp.org>
34909
34910         Fix 2009-02-07 commit.
34911         * lib/gen-uni-tables.c (output_predicate, output_category,
34912         output_combclass, output_bidi_category, output_decimal_digit,
34913         output_digit, output_numeric, output_mirror, output_scripts,
34914         output_ident_category, output_simple_mapping): Fix format directives.
34915         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34916
34917 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34918
34919         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34920         fixes are available from IBM.
34921
34922 2009-02-13  Jim Meyering  <meyering@redhat.com>
34923
34924         fts: arrange not to stat non-directories in more cases
34925         This makes GNU find (when it doesn't need to stat each file)
34926         *much* more efficient at traversing reiserfs file systems.
34927         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34928         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34929         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34930         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34931         (leaf_optimization_applies): New function.
34932         (LCO_hash, LCO_compare): New helper functions.
34933         (link_count_optimize_ok): New function.
34934         (fts_stat): Initialize new member (if dir).
34935         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34936         we've just stat'ed a directory.  Skip the stat call when possible.
34937         ---
34938         Note this AFS-related exchange:
34939         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34940         and note find's pioctl call in find/fstype.c.
34941         But that is necessary only if you want to enable the
34942         optimization for AFS, and for now, I don't.
34943
34944         fts: move a function definition "up" (no semantic change)
34945         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34946         "up" to precede upcoming use of a related function.
34947
34948 2009-02-11  Jim Meyering  <meyering@redhat.com>
34949
34950         fts: correct internal computation of nlinks (optimization-related)
34951         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34952         whether the current entry is a directory, so don't test it.
34953
34954 2009-02-10  Bruno Haible  <bruno@clisp.org>
34955
34956         Tests for module 'uniwbrk/ulc-wordbreaks'.
34957         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34958         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34959         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34960
34961         Tests for module 'uniwbrk/u32-wordbreaks'.
34962         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34963         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34964
34965         Tests for module 'uniwbrk/u16-wordbreaks'.
34966         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34967         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34968
34969         Tests for module 'uniwbrk/u8-wordbreaks'.
34970         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34971         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34972
34973 2009-02-10  Bruno Haible  <bruno@clisp.org>
34974
34975         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34976         property.
34977         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34978         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34979         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34980
34981 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34982
34983         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34984         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34985
34986 2009-02-10  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34989         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34990         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34991         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34992         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34993         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34994
34995 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34996
34997         * lib/sockets.h (gl_fd_to_handle): New function.
34998
34999         * tests/test-sockets.c: Call gl_fd_to_handle.
35000
35001 2009-02-09  Bruno Haible  <bruno@clisp.org>
35002
35003         * doc/havelib.texi: Document the conventions on bi-arch systems.
35004
35005 2009-02-08  Bruno Haible  <bruno@clisp.org>
35006
35007         Document the AC_LIB_LINKFLAGS macro.
35008         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35009         * doc/gnulib.texi: Include it.
35010
35011 2009-02-08  Bruno Haible  <bruno@clisp.org>
35012
35013         Fix wrong order of sections, compared to TOC.
35014         * doc/gnulib.texi: Include relocatable-maint.texi after the
35015         "Regular expressions" node, not before.
35016
35017 2009-02-08  Bruno Haible  <bruno@clisp.org>
35018
35019         Tests for module 'unicase/totitle'.
35020         * modules/unicase/totitle-tests: New file.
35021
35022         Tests for module 'unicase/tolower'.
35023         * modules/unicase/tolower-tests: New file.
35024
35025         Tests for module 'unicase/toupper'.
35026         * modules/unicase/toupper-tests: New file.
35027         * tests/unicase/test-mapping-part1.h: New file.
35028         * tests/unicase/test-mapping-part2.h: New file.
35029
35030         New module 'unicase/totitle'.
35031         * modules/unicase/totitle: New file.
35032         * lib/unicase/totitle.c: New file.
35033
35034         New module 'unicase/tolower'.
35035         * modules/unicase/tolower: New file.
35036         * lib/unicase/tolower.c: New file.
35037
35038         New module 'unicase/toupper'.
35039         * modules/unicase/toupper: New file.
35040         * lib/unicase/toupper.c: New file.
35041         * lib/unicase/simple-mapping.h: New file.
35042
35043         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35044         (mapping_table): New structure.
35045         (output_simple_mapping): New function.
35046         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35047         * modules/gen-uni-tables (Description): Update.
35048         * lib/unicase/toupper.h: New file, automatically generated by
35049         gen-uni-tables.
35050         * lib/unicase/tolower.h: New file, automatically generated by
35051         gen-uni-tables.
35052         * lib/unicase/totitle.h: New file, automatically generated by
35053         gen-uni-tables.
35054         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35055         gen-uni-tables.
35056         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35057         gen-uni-tables.
35058         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35059         gen-uni-tables.
35060
35061         New module 'unicase/base'.
35062         * modules/unicase/base: New file.
35063         * lib/unicase.h: New file.
35064
35065 2009-02-08  Bruno Haible  <bruno@clisp.org>
35066
35067         New module 'uniwbrk/ulc-wordbreaks'.
35068         * modules/uniwbrk/ulc-wordbreaks: New file.
35069         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35070
35071         New module 'uniwbrk/u32-wordbreaks'.
35072         * modules/uniwbrk/u32-wordbreaks: New file.
35073         * lib/uniwbrk/u32-wordbreaks.c: New file.
35074
35075         New module 'uniwbrk/u16-wordbreaks'.
35076         * modules/uniwbrk/u16-wordbreaks: New file.
35077         * lib/uniwbrk/u16-wordbreaks.c: New file.
35078
35079         New module 'uniwbrk/u8-wordbreaks'.
35080         * modules/uniwbrk/u8-wordbreaks: New file.
35081         * lib/uniwbrk/u8-wordbreaks.c: New file.
35082         * lib/uniwbrk/u-wordbreaks.h: New file.
35083
35084         New module 'uniwbrk/table'.
35085         * modules/uniwbrk/table: New file.
35086         * lib/uniwbrk/wbrktable.h: New file.
35087         * lib/uniwbrk/wbrktable.c: New file.
35088
35089         New module 'uniwbrk/wordbreak-property'.
35090         * modules/uniwbrk/wordbreak-property: New file.
35091         * lib/uniwbrk/wordbreak-property.c: New file.
35092
35093         * lib/gen-uni-tables.c (WBP_*): New enum items.
35094         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35095         (unicode_org_wbp): New variable.
35096         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35097         New functions.
35098         (wbp_table): New structure.
35099         (output_wbp, output_wbrk_tables): New functions.
35100         (main): Accept additional argument. Invoke fill_org_wbp,
35101         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35102         output_wbrk_tables.
35103         * modules/gen-uni-tables (Description): Update.
35104         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35105         gen-uni-tables.
35106
35107         New module 'uniwbrk/base'.
35108         * modules/uniwbrk/base: New file.
35109         * lib/uniwbrk.h: New file.
35110
35111 2009-02-08  Bruno Haible  <bruno@clisp.org>
35112
35113         Update to Unicode 5.1.0.
35114         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35115         U+2185..U+2188.
35116         (is_property_default_ignorable_code_point): Don't include characters
35117         of category Cc or Cs and not-a-characters.
35118         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35119         U+0D79, U+109E, U+109F, U+A60C.
35120         * lib/unictype/bidi_of.h: Regenerated.
35121         * lib/unictype/blocks.h: Regenerated.
35122         * lib/unictype/categ_C.h: Regenerated.
35123         * lib/unictype/categ_Cf.h: Regenerated.
35124         * lib/unictype/categ_Cn.h: Regenerated.
35125         * lib/unictype/categ_L.h: Regenerated.
35126         * lib/unictype/categ_Ll.h: Regenerated.
35127         * lib/unictype/categ_Lm.h: Regenerated.
35128         * lib/unictype/categ_Lo.h: Regenerated.
35129         * lib/unictype/categ_Lu.h: Regenerated.
35130         * lib/unictype/categ_M.h: Regenerated.
35131         * lib/unictype/categ_Mc.h: Regenerated.
35132         * lib/unictype/categ_Me.h: Regenerated.
35133         * lib/unictype/categ_Mn.h: Regenerated.
35134         * lib/unictype/categ_N.h: Regenerated.
35135         * lib/unictype/categ_Nd.h: Regenerated.
35136         * lib/unictype/categ_Nl.h: Regenerated.
35137         * lib/unictype/categ_No.h: Regenerated.
35138         * lib/unictype/categ_P.h: Regenerated.
35139         * lib/unictype/categ_Pd.h: Regenerated.
35140         * lib/unictype/categ_Pe.h: Regenerated.
35141         * lib/unictype/categ_Pf.h: Regenerated.
35142         * lib/unictype/categ_Pi.h: Regenerated.
35143         * lib/unictype/categ_Po.h: Regenerated.
35144         * lib/unictype/categ_Ps.h: Regenerated.
35145         * lib/unictype/categ_S.h: Regenerated.
35146         * lib/unictype/categ_Sk.h: Regenerated.
35147         * lib/unictype/categ_Sm.h: Regenerated.
35148         * lib/unictype/categ_So.h: Regenerated.
35149         * lib/unictype/categ_of.h: Regenerated.
35150         * lib/unictype/combining.h: Regenerated.
35151         * lib/unictype/ctype_alnum.h: Regenerated.
35152         * lib/unictype/ctype_alpha.h: Regenerated.
35153         * lib/unictype/ctype_graph.h: Regenerated.
35154         * lib/unictype/ctype_lower.h: Regenerated.
35155         * lib/unictype/ctype_print.h: Regenerated.
35156         * lib/unictype/ctype_punct.h: Regenerated.
35157         * lib/unictype/ctype_upper.h: Regenerated.
35158         * lib/unictype/decdigit.h: Regenerated.
35159         * lib/unictype/digit.h: Regenerated.
35160         * lib/unictype/mirror.h: Regenerated.
35161         * lib/unictype/numeric.h: Regenerated.
35162         * lib/unictype/pr_alphabetic.h: Regenerated.
35163         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35164         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35165         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35166         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35167         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35168         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35169         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35170         * lib/unictype/pr_combining.h: Regenerated.
35171         * lib/unictype/pr_dash.h: Regenerated.
35172         * lib/unictype/pr_decimal_digit.h: Regenerated.
35173         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35174         * lib/unictype/pr_deprecated.h: Regenerated.
35175         * lib/unictype/pr_diacritic.h: Regenerated.
35176         * lib/unictype/pr_extender.h: Regenerated.
35177         * lib/unictype/pr_format_control.h: Regenerated.
35178         * lib/unictype/pr_grapheme_base.h: Regenerated.
35179         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35180         * lib/unictype/pr_grapheme_link.h: Regenerated.
35181         * lib/unictype/pr_id_continue.h: Regenerated.
35182         * lib/unictype/pr_id_start.h: Regenerated.
35183         * lib/unictype/pr_ideographic.h: Regenerated.
35184         * lib/unictype/pr_ignorable_control.h: Regenerated.
35185         * lib/unictype/pr_lowercase.h: Regenerated.
35186         * lib/unictype/pr_math.h: Regenerated.
35187         * lib/unictype/pr_numeric.h: Regenerated.
35188         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35189         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35190         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35191         * lib/unictype/pr_other_id_continue.h: Regenerated.
35192         * lib/unictype/pr_other_lowercase.h: Regenerated.
35193         * lib/unictype/pr_other_math.h: Regenerated.
35194         * lib/unictype/pr_punctuation.h: Regenerated.
35195         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35196         * lib/unictype/pr_soft_dotted.h: Regenerated.
35197         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35198         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35199         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35200         * lib/unictype/pr_uppercase.h: Regenerated.
35201         * lib/unictype/pr_xid_continue.h: Regenerated.
35202         * lib/unictype/pr_xid_start.h: Regenerated.
35203         * lib/unictype/pr_zero_width.h: Regenerated.
35204         * lib/unictype/scripts.h: Regenerated.
35205         * lib/unictype/scripts_byname.gperf: Regenerated.
35206         * lib/unictype/sy_java_ident.h: Regenerated.
35207         * lib/unilbrk/lbrkprop1.h: Regenerated.
35208         * lib/unilbrk/lbrkprop2.h: Regenerated.
35209         * tests/unictype/test-categ_C.c: Regenerated.
35210         * tests/unictype/test-categ_Cf.c: Regenerated.
35211         * tests/unictype/test-categ_Cn.c: Regenerated.
35212         * tests/unictype/test-categ_L.c: Regenerated.
35213         * tests/unictype/test-categ_Ll.c: Regenerated.
35214         * tests/unictype/test-categ_Lm.c: Regenerated.
35215         * tests/unictype/test-categ_Lo.c: Regenerated.
35216         * tests/unictype/test-categ_Lu.c: Regenerated.
35217         * tests/unictype/test-categ_M.c: Regenerated.
35218         * tests/unictype/test-categ_Mc.c: Regenerated.
35219         * tests/unictype/test-categ_Me.c: Regenerated.
35220         * tests/unictype/test-categ_Mn.c: Regenerated.
35221         * tests/unictype/test-categ_N.c: Regenerated.
35222         * tests/unictype/test-categ_Nd.c: Regenerated.
35223         * tests/unictype/test-categ_Nl.c: Regenerated.
35224         * tests/unictype/test-categ_No.c: Regenerated.
35225         * tests/unictype/test-categ_P.c: Regenerated.
35226         * tests/unictype/test-categ_Pd.c: Regenerated.
35227         * tests/unictype/test-categ_Pe.c: Regenerated.
35228         * tests/unictype/test-categ_Pf.c: Regenerated.
35229         * tests/unictype/test-categ_Pi.c: Regenerated.
35230         * tests/unictype/test-categ_Po.c: Regenerated.
35231         * tests/unictype/test-categ_Ps.c: Regenerated.
35232         * tests/unictype/test-categ_S.c: Regenerated.
35233         * tests/unictype/test-categ_Sk.c: Regenerated.
35234         * tests/unictype/test-categ_Sm.c: Regenerated.
35235         * tests/unictype/test-categ_So.c: Regenerated.
35236         * tests/unictype/test-ctype_alnum.c: Regenerated.
35237         * tests/unictype/test-ctype_alpha.c: Regenerated.
35238         * tests/unictype/test-ctype_graph.c: Regenerated.
35239         * tests/unictype/test-ctype_lower.c: Regenerated.
35240         * tests/unictype/test-ctype_print.c: Regenerated.
35241         * tests/unictype/test-ctype_punct.c: Regenerated.
35242         * tests/unictype/test-ctype_upper.c: Regenerated.
35243         * tests/unictype/test-decdigit.h: Regenerated.
35244         * tests/unictype/test-digit.h: Regenerated.
35245         * tests/unictype/test-numeric.h: Regenerated.
35246         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35247         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35248         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35249         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35250         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35251         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35252         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35253         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35254         * tests/unictype/test-pr_combining.c: Regenerated.
35255         * tests/unictype/test-pr_dash.c: Regenerated.
35256         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35257         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35258         * tests/unictype/test-pr_deprecated.c: Regenerated.
35259         * tests/unictype/test-pr_diacritic.c: Regenerated.
35260         * tests/unictype/test-pr_extender.c: Regenerated.
35261         * tests/unictype/test-pr_format_control.c: Regenerated.
35262         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35263         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35264         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35265         * tests/unictype/test-pr_id_continue.c: Regenerated.
35266         * tests/unictype/test-pr_id_start.c: Regenerated.
35267         * tests/unictype/test-pr_ideographic.c: Regenerated.
35268         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35269         * tests/unictype/test-pr_lowercase.c: Regenerated.
35270         * tests/unictype/test-pr_math.c: Regenerated.
35271         * tests/unictype/test-pr_numeric.c: Regenerated.
35272         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35273         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35274         Regenerated.
35275         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35276         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35277         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35278         * tests/unictype/test-pr_other_math.c: Regenerated.
35279         * tests/unictype/test-pr_punctuation.c: Regenerated.
35280         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35281         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35282         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35283         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35284         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35285         * tests/unictype/test-pr_uppercase.c: Regenerated.
35286         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35287         * tests/unictype/test-pr_xid_start.c: Regenerated.
35288         * tests/unictype/test-pr_zero_width.c: Regenerated.
35289
35290         Update to Unicode 5.1.0.
35291         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35292         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35293         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35294         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35295         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35296         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35297         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35298         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35299         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35300         (nonspacing_table_ind): Update.
35301         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35302
35303         Update to Unicode 5.1.0.
35304         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35305         code transform.
35306         * lib/uniname/uniname.c (unicode_character_name,
35307         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35308         * lib/uniname/uninames.h: Regenerated.
35309         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35310
35311 2009-02-07  Bruno Haible  <bruno@clisp.org>
35312
35313         Merge gen-ctype and gen-lbrk into a single program.
35314         * lib/gen-uni-tables.c: New file, incorporating
35315         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35316         Add directory prefixes to the names of the generated files.
35317         * lib/unictype/gen-ctype.c: Remove file.
35318         * lib/unilbrk/gen-lbrk.c: Remove file.
35319         * modules/gen-uni-tables: New file.
35320         * modules/unictype/gen-ctype: Remove file.
35321         * modules/unilbrk/gen-lbrk: Remove file.
35322
35323 2009-02-07  Bruno Haible  <bruno@clisp.org>
35324
35325         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35326
35327         New module 'unistr/u32-strcoll'.
35328         * modules/unistr/u32-strcoll: New file.
35329         * lib/unistr/u32-strcoll.c: New file.
35330
35331         New module 'unistr/u16-strcoll'.
35332         * modules/unistr/u16-strcoll: New file.
35333         * lib/unistr/u16-strcoll.c: New file.
35334
35335         New module 'unistr/u8-strcoll'.
35336         * modules/unistr/u8-strcoll: New file.
35337         * lib/unistr/u8-strcoll.c: New file.
35338         * lib/unistr/u-strcoll.h: New file.
35339
35340 2009-02-07  Bruno Haible  <bruno@clisp.org>
35341
35342         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35343         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35344         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35345         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35346         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35347         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35348
35349 2009-02-07  Bruno Haible  <bruno@clisp.org>
35350
35351         Make 64-bit clean.
35352         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35353         output_combclass, output_bidi_category, output_decimal_digit,
35354         output_digit, output_numeric, output_mirror, output_scripts,
35355         output_ident_category): Use proper width specifier in format strings.
35356
35357 2009-02-07  Bruno Haible  <bruno@clisp.org>
35358
35359         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35360         failure behaviour.
35361
35362 2009-02-07  Jim Meyering  <meyering@redhat.com>
35363
35364         regex: avoid compilation failure with upcoming gcc-4.4
35365         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35366         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35367         "... error: integer overflow in preprocessor expression".
35368
35369 2009-02-05  Ben Pfaff  <blp@gnu.org>
35370
35371         Fix link errors on Windows when close module is used.
35372         * modules/close: Add $(LIB_CLOSE) to Link section.
35373         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35374         $(LIB_CLOSE) on Windows.
35375
35376 2009-02-05  Jim Meyering  <meyering@redhat.com>
35377
35378         still avoid unused-parameter warnings, but do it cleanly
35379         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35380         (get_fs_usage): Cast to void instead.
35381         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35382         (dev_from_mount_options, read_file_system_list): Cast to void.
35383         Prompted by Bruno Haible.
35384
35385 2009-02-04  Jim Meyering  <meyering@redhat.com>
35386
35387         fsusage.c: correct copyright year
35388         * lib/fsusage.c: Reflect year in which the change is pushed into
35389
35390         avoid misc. warnings
35391         * lib/fsusage.c (UNUSED_PARAM): Define.
35392         (get_fs_usage): Mark parameter "disk" as unused.
35393         * lib/getugroups.c (getgrent): Use "void" in prototype.
35394         * lib/mountlist.c: Mark unused parameters.
35395         (read_file_system_list): Declare a local with "const".
35396         * lib/nanosleep.c (getnow): Declare static.
35397         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35398
35399         dirfd: set errno upon failure
35400         * lib/dirfd.c: Include <errno.h>.
35401         Set errno to ENOTSUP when returning -1.
35402         * modules/dirfd (Depends-on): Add errno.
35403         Suggested by John Kodis <kodis@comcast.net>.
35404
35405 2009-02-01  Bruno Haible  <bruno@clisp.org>
35406
35407         Don't assume sizeof (long) >= sizeof (void *).
35408         * lib/memcmp.c: Include stdint.h.
35409         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35410         srcp2 to 'const byte *'.
35411         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35412         types to uintptr_t.
35413         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35414         * modules/memcmp (Depends-on): Add stdint.
35415         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35416
35417 2009-01-30  Eric Blake  <ebb9@byu.net>
35418
35419         fix more require-before-expand issues
35420         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35421         expand, AC_PROG_AWK.
35422         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35423
35424 2009-01-28  Eric Blake  <ebb9@byu.net>
35425
35426         version-etc: use consistent URL formatting
35427         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35428         Improve formatting.  Use fputs for string without %.
35429
35430 2009-01-28  Jim Meyering  <meyering@redhat.com>
35431
35432         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35433         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35434         "underquoted definition of NAME" from autoconf-2.59.
35435
35436 2009-01-28  Bruno Haible  <bruno@clisp.org>
35437
35438         * doc/gnulib.texi: Add "Obsolete modules" to index.
35439
35440 2009-01-28  Jim Meyering  <meyering@redhat.com>
35441
35442         useless-if-before-free: recognize more variants
35443         * build-aux/useless-if-before-free: Also recognize e.g.,
35444         if (NULL != p) free (p);
35445
35446 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35447
35448         test-getaddrinfo: skip (don't fail) this test when there's no network
35449         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35450         on the presumption that it means you lack network access.
35451
35452 2009-01-26  Jim Meyering  <meyering@redhat.com>
35453
35454         fflush: avoid warnings on modern systems
35455         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35456         pos and result, into scopes where they're used.
35457
35458 2009-01-26  Eric Blake  <ebb9@byu.net>
35459
35460         Silence warning reintroduced by recent extensions patch.
35461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35462         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35463         autoconf.
35464
35465         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35466         * m4/00gnulib.m4: New file.
35467         * gnulib-tool (func_get_filelist): Always use it.
35468         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35469         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35470
35471 2009-01-25  Bruno Haible  <bruno@clisp.org>
35472
35473         Make test-quotearg work on MacOS X and AIX.
35474         * tests/test-quotearg.sh: New file.
35475         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35476         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35477         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35478         include <libintl.h>.
35479         (fake_locale): Remove variable.
35480         (gettext, dgettext, dcgettext): Remove functions.
35481         (main): Instead of setting a fake locale, set a real locale. Call
35482         textdomain and bindtextdomain.
35483         * modules/quotearg-tests (Files): Add the new files.
35484         (Depends-on): Add gettext, setenv, unsetenv.
35485         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35486         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35487         Augment TESTS_ENVIRONMENT.
35488
35489 2009-01-25  Bruno Haible  <bruno@clisp.org>
35490
35491         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35492         fr_FR.ISO8859-1 locale on MacOS X.
35493         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35494         ja_JP.eucJP locale on MacOS X.
35495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35496         zh_CN.GB18030 locale on MacOS X.
35497
35498 2009-01-25  Bruno Haible  <bruno@clisp.org>
35499
35500         Avoid link errors on MacOS X 10.3.
35501         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35502         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35503
35504 2009-01-25  Bruno Haible  <bruno@clisp.org>
35505
35506         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35507         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35508         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35509         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35510         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35511         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35512         posix_spawnattr_init, posix_spawnattr_setsigmask,
35513         posix_spawnattr_setflags, posix_spawnattr_destroy.
35514
35515         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35516         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35517         * modules/execute (Files): Remove m4/posix_spawn.m4.
35518         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35519         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35520         posix_spawnattr_init, posix_spawnattr_setsigmask,
35521         posix_spawnattr_setflags, posix_spawnattr_destroy.
35522
35523 2009-01-25  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/glthread/threadlib.c: Include <stdlib.h>.
35526
35527 2009-01-25  Bruno Haible  <bruno@clisp.org>
35528
35529         * lib/glthread/threadlib.c (dummy): New declaration.
35530
35531 2009-01-25  Bruno Haible  <bruno@clisp.org>
35532
35533         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35534         multibyte characters also for the GB18030 encoding. Don't crash when
35535         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35536
35537 2009-01-25  Bruno Haible  <bruno@clisp.org>
35538
35539         Avoid redefining 'struct random_data' on OSF/1 5.1.
35540         * lib/stdlib.in.h: Include <random.h> if it exists.
35541         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35542         HAVE_RANDOM_H. Include <random.h> when testing whether
35543         'struct random_data' exists.
35544         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35545
35546 2009-01-25  Bruno Haible  <bruno@clisp.org>
35547
35548         Don't install charset.alias on MacOS X >= 10.3.
35549         * lib/localcharset.c (DARWIN7): New macro.
35550         (get_charset_aliases): Hardcode the result for Darwin7.
35551         * modules/localcharset (install-exec-local): Don't install
35552         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35553
35554 2009-01-25  Bruno Haible  <bruno@clisp.org>
35555
35556         Don't install charset.alias on mingw and Cygwin.
35557         * modules/localcharset (install-exec-local): Don't install
35558         charset.alias on mingw and Cygwin, if the file does not yet exist.
35559         The result for these platforms is hardcoded in localcharset.c.
35560
35561 2009-01-25  Bruno Haible  <bruno@clisp.org>
35562
35563         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35565         before requiring AC_USE_SYSTEM_EXTENSIONS.
35566
35567 2009-01-25  Jim Meyering  <meyering@redhat.com>
35568
35569         c-strtod: avoid warnings
35570         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35571         "assignment discards qualifiers from pointer target type" warnings.
35572
35573 2009-01-24  Bruno Haible  <bruno@clisp.org>
35574
35575         Add support for non-UTF-8 locales on MacOS X.
35576         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35577         canonical encodings. For Darwin 7 and newer, don't map traditional
35578         encodings to UTF-8.
35579         Reported by Vincent Lefevre <vincent@vinc17.org>
35580         at <http://savannah.gnu.org/bugs/?25235>.
35581
35582 2009-01-24  Bruno Haible  <bruno@clisp.org>
35583
35584         * doc/gnulib.texi (Obsolete modules): New section.
35585         Reported by Mike Frysinger <vapier@gentoo.org>.
35586
35587 2009-01-24  Bruno Haible  <bruno@clisp.org>
35588
35589         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35590         (%.dvi): New rule.
35591
35592 2009-01-24  Bruno Haible  <bruno@clisp.org>
35593
35594         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35595         Reported by Eric Blake.
35596
35597 2009-01-24  Bruno Haible  <bruno@clisp.org>
35598
35599         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35600         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35601         Reported by Gary V. Vaughan <gary@gnu.org>.
35602
35603 2009-01-24  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35606
35607 2009-01-23  Bruno Haible  <bruno@clisp.org>
35608
35609         Make c-strtod, c-strtold usable in libraries.
35610         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35611         (C_STRTOD): Call strdup instead of xstrdup.
35612         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35613         * modules/c-strtold (Depends-on): Likewise.
35614         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35615         * NEWS: Mention the change.
35616         Reported by Michael Gold <mgold@ncf.ca>.
35617
35618 2009-01-23  Jim Meyering  <meyering@redhat.com>
35619
35620         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35621         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35622         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35623
35624 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35625
35626         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35627         GNU CoreUtils.
35628         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35629         * modules/version-etc (Description): Update.
35630
35631 2009-01-22  Bruno Haible  <bruno@clisp.org>
35632
35633         Cache the C locale object.
35634         * lib/c-strtod.c (c_locale_cache): New variable.
35635         (c_locale): New function.
35636         (C_STRTOD): Use it, and don't call freelocale.
35637         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35638         Suggested by Paolo Bonzini.
35639
35640 2009-01-21  Bruno Haible  <bruno@clisp.org>
35641
35642         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35643         conditions other than overflow.
35644
35645 2009-01-21  Bruno Haible  <bruno@clisp.org>
35646
35647         * lib/c-strtod.c: Include errno.h.
35648         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35649         value from STRTOD_L and STRTOD.
35650
35651 2009-01-21  Bruno Haible  <bruno@clisp.org>
35652         and Jim Meyering  <meyering@redhat.com>
35653
35654         nanosleep: skip configure test (fail it) for apple universal builds
35655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35656         universal builds, assume that nanosleep does not work.
35657         * modules/nanosleep (Depends-on): Add multiarch.
35658
35659         mktime: skip configure test (fail it) for apple universal builds
35660         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35661         universal builds, assume that mktime does not work.
35662         * modules/mktime (Depends-on): Add multiarch.
35663
35664 2009-01-21  Eric Blake  <ebb9@byu.net>
35665
35666         multiarch: avoid expand-before-require warning
35667         * modules/multiarch (configure.ac): Require, rather than expand,
35668         gl_MULTIARCH.
35669         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35670         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35671         enforce that all clients require it.  Partial reversion of
35672         2008-12-29 patch.
35673
35674         error: avoid expand-before-require warning
35675         * modules/errno (configure.ac): Require, rather than expand,
35676         gl_HEADER_ERRNO_H.
35677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35678         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35679         enforce that all clients require it.
35680
35681         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35682         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35683         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35684         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35685
35686 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35687
35688         Revert:
35689         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35690
35691         regex: do not depend on obsolete modules.
35692         * modules/regex: Remove memcmp and memmove.
35693
35694 2009-01-20  Bruno Haible  <bruno@clisp.org>
35695
35696         Make the 'link' module link on Windows NT 4.
35697         * lib/link.c (_WIN32_WINNT): Don't define.
35698         (CreateHardLinkFuncType): New type.
35699         (CreateHardLinkFunc, initialized): New variables.
35700         (initialize): New function.
35701         (link): Invoke CreateHardLink indirectly through the function pointer.
35702
35703 2009-01-20  Bruno Haible  <bruno@clisp.org>
35704
35705         Fix compilation failure on mingw.
35706         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35707
35708 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35709
35710         * doc/c-strtod.texi: Mention a couple of restrictions.
35711
35712 2009-01-20  Jim Meyering  <meyering@redhat.com>
35713
35714         gettimeofday: move more declarations out of functions
35715         * lib/gettimeofday.c: Move extern declarations of tzset and
35716         gmtime out of containing functions.  Prompted by Bruno Haible.
35717
35718 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35719
35720         regex: do not depend on obsolete modules.
35721         * modules/regex: Remove memcmp and memmove.
35722
35723 2009-01-19  Bruno Haible  <bruno@clisp.org>
35724
35725         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35726         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35727         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35728         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35729         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35730
35731 2009-01-19  Bruno Haible  <bruno@clisp.org>
35732
35733         * tests/test-link.c: Include <errno.h>.
35734         (main): Exit with code 77 when a hard link cannot be created due to
35735         the file system.
35736         * tests/test-link.sh: Skip test when a hard link cannot be created due
35737         to the file system.
35738         Suggested by Eric Blake.
35739
35740 2009-01-19  Martin Lambers  <marlam@marlam.de>
35741
35742         * modules/link-tests: New file.
35743         * tests/test-link.sh: New file.
35744         * tests/test-link.c: New file.
35745
35746 2009-01-19  Eric Blake  <ebb9@byu.net>
35747
35748         doc: mention another function added in cygwin 1.7.0
35749         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35750         Another new function in cygwin 1.7.
35751
35752 2009-01-19  Bruno Haible  <bruno@clisp.org>
35753
35754         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35755         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35756         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35757         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35758         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35759         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35761         * m4/md4.m4 (gl_MD4): Likewise.
35762         * m4/md5.m4 (gl_MD5): Likewise.
35763         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35764         * m4/sha1.m4 (gl_SHA1): Likewise.
35765         * m4/sha256.m4 (gl_SHA256): Likewise.
35766         * m4/sha512.m4 (gl_SHA512): Likewise.
35767
35768 2009-01-19  Bruno Haible  <bruno@clisp.org>
35769
35770         * modules/uniname/uniname-tests (Depends-on): Add progname.
35771         * tests/uniname/test-uninames.c: Include progname.h.
35772         (main): Call set_program_name.
35773
35774         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35775         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35776         (main): Call set_program_name.
35777
35778         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35779         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35780         (main): Call set_program_name.
35781
35782         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35783         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35784         (main): Call set_program_name.
35785
35786         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35787         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35788         (main): Call set_program_name.
35789
35790         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35791         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35792         (main): Call set_program_name.
35793
35794         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35795         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35796         (main): Call set_program_name.
35797
35798         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35799         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35800         (main): Call set_program_name.
35801
35802         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35803         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35804         (main): Call set_program_name.
35805
35806 2009-01-19  Eric Blake  <ebb9@byu.net>
35807
35808         test-unistd: test previous patch
35809         * tests/test-unistd.c: Test *_FILENO macros.
35810
35811         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35812         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35813         Guarantee a definition.
35814         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35815         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35816         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35817         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35818         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35819         Likewise.
35820         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35821         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35822         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35823         Likewise.
35824         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35825         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35826         (STDERR_FILENO): Likewise.
35827         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35828         (STDERR_FILENO): Likewise.
35829         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35830         (STDERR_FILENO): Likewise.
35831         Reported by Elbert Pol.
35832
35833 2009-01-19  Eric Blake  <ebb9@byu.net>
35834
35835         doc: mention more functions added in cygwin 1.7.0
35836         * doc/posix-functions/abort.texi (abort): Update wording related
35837         to cygwin.
35838         * doc/posix-functions/daylight.texi (daylight): Likewise.
35839         * doc/posix-functions/optarg.texi (optarg): Likewise.
35840         * doc/posix-functions/optarg.texi (opterr): Likewise.
35841         * doc/posix-functions/optarg.texi (optind): Likewise.
35842         * doc/posix-functions/optarg.texi (optopt): Likewise.
35843         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35844         worked in 1.5.x, and was withdrawn in 1.7.
35845         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35846         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35847         cygwin versions.
35848         * doc/posix-functions/perror.texi (perror): Likewise.
35849         * doc/posix-functions/printf.texi (printf): Likewise.
35850         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35851         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35852         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35853         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35854         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35855         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35856         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35857         Likewise.
35858         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35859         Likewise.
35860         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35861         this function.
35862         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35863         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35864         Likewise.
35865         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35866         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35867         * doc/posix-functions/confstr.texi (confstr): Likewise.
35868         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35869         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35870         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35871         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35872         * doc/posix-functions/fputws.texi (fputws): Likewise.
35873         * doc/posix-functions/fwide.texi (fwide): Likewise.
35874         * doc/posix-functions/getwc.texi (getwc): Likewise.
35875         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35876         * doc/posix-functions/putwc.texi (putwc): Likewise.
35877         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35878         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35879         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35880         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35881         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35882         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35883         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35884         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35885         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35886         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35887         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35888
35889 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35890
35891         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35892         * lib/ioctl.c: Include <sys/ioctl.h>.
35893
35894 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35895
35896         * modules/getdate-tests (Depends-on): Add progname.
35897         * tests/test-getdate.c: Use progname module, to avoid link errors
35898         on non-glibc systems.
35899
35900 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35901
35902         * modules/filenamecat-tests (Depends-on): Add progname.
35903         * modules/fstrcmp-tests (Depends-on): Likewise.
35904
35905         * tests/test-filenamecat.c: Use progname module, to avoid link
35906         errors on non-glibc systems.
35907         * tests/test-fstrcmp.c: Likewise.
35908
35909 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35910
35911         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35912         * lib/gettimeofday.c: Move extern declaration out of function.
35913
35914 2009-01-18  Bruno Haible  <bruno@clisp.org>
35915
35916         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35917         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35918         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35919
35920 2009-01-18  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/strftime.c (MEMPCPY): Remove unused macro.
35923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35924
35925 2009-01-18  Martin Lambers  <marlam@marlam.de>
35926
35927         New module 'link'.
35928         * lib/unistd.in.h (link): New declaration.
35929         * lib/link.c: New file.
35930         * m4/link.m4: New file.
35931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35932         HAVE_LINK.
35933         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35934         * modules/link: New file.
35935         * doc/posix-functions/link.texi: Mention the new module.
35936
35937 2009-01-18  Bruno Haible  <bruno@clisp.org>
35938
35939         * tests/test-avltree_list.c (main): Call set_program_name.
35940         * tests/test-avltree_oset.c (main): Likewise.
35941         * tests/test-obstack-printf.c: Include progname.h.
35942         (main): Call set_program_name.
35943         * tests/test-quotearg.c: Include progname.h.
35944         (main): Call set_program_name.
35945         * tests/test-xmemdup0.c: Include progname.h.
35946         (main): Call set_program_name.
35947
35948 2009-01-18  Bruno Haible  <bruno@clisp.org>
35949
35950         New module 'alphasort'.
35951         * lib/dirent.in.h (alphasort): New declaration.
35952         * lib/alphasort.c: New file, from glibc with modifications.
35953         * m4/alphasort.m4: New file.
35954         * modules/alphasort: New file.
35955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35956         HAVE_ALPHASORT.
35957         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35958         HAVE_ALPHASORT.
35959         * doc/posix-functions/alphasort.texi: Mention the new module and the
35960         portability problems.
35961
35962 2009-01-18  Bruno Haible  <bruno@clisp.org>
35963
35964         New module 'scandir'.
35965         * lib/dirent.in.h (scandir): New declaration.
35966         * lib/scandir.c: New file, from glibc with modifications.
35967         * m4/scandir.m4: New file.
35968         * modules/scandir: New file.
35969         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35970         HAVE_SCANDIR.
35971         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35972         HAVE_SCANDIR.
35973         * doc/posix-functions/scandir.texi: Mention the new module and the
35974         portability problems.
35975
35976 2009-01-17  Bruno Haible  <bruno@clisp.org>
35977
35978         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35979         Update documentation.
35980         (func_remove_suffix): Escape all dots in the suffix. Update
35981         documentation.
35982         (func_filter_filelist): Update documentation.
35983         Reported by Ralf Wildenhues.
35984
35985 2009-01-17  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/dprintf-posix-tests: New file.
35988         * tests/test-dprintf-posix.sh: New file.
35989         * tests/test-dprintf-posix.c: New file.
35990
35991         New modules 'dprintf', 'dprintf-posix'.
35992         * lib/stdio.in.h (dprintf): New declaration.
35993         * lib/dprintf.c: New file.
35994         * m4/dprintf.m4: New file.
35995         * m4/dprintf-posix.m4: New file.
35996         * modules/dprintf: New file.
35997         * modules/dprintf-posix: New file.
35998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35999         HAVE_DPRINTF, REPLACE_DPRINTF.
36000         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36001         HAVE_DPRINTF, REPLACE_DPRINTF.
36002         * doc/posix-functions/dprintf.texi: Mention the new modules.
36003
36004 2009-01-17  Bruno Haible  <bruno@clisp.org>
36005
36006         * modules/vdprintf-posix-tests: New file.
36007         * tests/test-vdprintf-posix.sh: New file.
36008         * tests/test-vdprintf-posix.c: New file.
36009
36010         New modules 'vdprintf', 'vdprintf-posix'.
36011         * lib/stdio.in.h (vdprintf): New declaration.
36012         * lib/vdprintf.c: New file.
36013         * m4/vdprintf.m4: New file.
36014         * m4/vdprintf-posix.m4: New file.
36015         * modules/vdprintf: New file.
36016         * modules/vdprintf-posix: New file.
36017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36018         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36019         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36020         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36021         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36022
36023 2009-01-17  Bruno Haible  <bruno@clisp.org>
36024
36025         Fix replacement of fopen on mingw.
36026         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36027         mingw.
36028
36029 2009-01-17  Bruno Haible  <bruno@clisp.org>
36030
36031         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36032         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36033
36034 2009-01-17  Bruno Haible  <bruno@clisp.org>
36035
36036         Avoid test-fflush2.sh failure on mingw.
36037         * tests/test-fflush2.c: Include binary-io.h.
36038         (main): Put standard input into binary mode.
36039         * modules/fflush-tests (Depends-on): Add binary-io.
36040
36041 2009-01-17  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/wchar.in.h: In another particular situation, include only the
36044         system's <wchar.h> file.
36045         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36046         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36047         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36048
36049 2009-01-17  Bruno Haible  <bruno@clisp.org>
36050
36051         Support for stripping executables in --enable-relocatable.
36052         * build-aux/install-reloc: Expect one more argument, or an environment
36053         variable RELOC_STRIP_PROG. If set, strip the destination program and
36054         its wrapper.
36055         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36056         RELOC_STRIP_PROG.
36057         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36058         to set RELOCATABLE_STRIP.
36059         * NEWS: Mention the new Makefile requirement.
36060
36061 2009-01-17  Bruno Haible  <bruno@clisp.org>
36062
36063         * build-aux/install-reloc: Remove debugging information left over by
36064         C compiler on MacOS X.
36065
36066 2009-01-17  Bruno Haible  <bruno@clisp.org>
36067
36068         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36069         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36070         _NSGetExecutablePath.
36071
36072 2009-01-16  Jim Meyering  <meyering@redhat.com>
36073
36074         strerror: avoid warnings about discarding "const"
36075         * lib/strerror.c (rpl_strerror): Instead of returning a const
36076         string from each and every "case", use a variable, and add a single
36077         cast after the switch.
36078
36079 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36080
36081         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36082
36083 2009-01-16  Bruno Haible  <bruno@clisp.org>
36084
36085         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36086         array initializer syntax that also works in C++ mode.
36087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36088
36089 2009-01-16  Jim Meyering  <meyering@redhat.com>
36090
36091         poll: suppress a warning
36092         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36093         to ignore "...unsigned expression < 0 is always false" warnings.
36094
36095 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36096
36097         poll: remove declarations of unused variables
36098         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36099         sockbuf and optlen.
36100
36101 2009-01-15  Bruno Haible  <bruno@clisp.org>
36102
36103         Make fflush-after-ungetc POSIX compliant on BSD systems.
36104         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36105         (clear_ungetc_buffer): Implement also for other systems.
36106         (rpl_fflush): On glibc systems, invoke
36107         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36108         clear_ungetc_buffer after fetching the stream's position, not before.
36109
36110 2009-01-15  Bruno Haible  <bruno@clisp.org>
36111
36112         Make fflush-after-ungetc POSIX compliant on glibc systems.
36113         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36114         after ungetc.
36115         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36116         (rpl_fflush): On glibc systems, simply call the system's fflush
36117         function after clearing the ungetc buffer.
36118         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36119         Instead, lseek only to the end of file, then use the system's fseeko
36120         for the rest. On glibc systems, reset the EOF indicator bit.
36121
36122 2009-01-15  Jim Meyering  <meyering@redhat.com>
36123
36124         openmp.m4: revert quote-adding change, for portability to older autoconf
36125         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36126         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36127         Simon Josefsson noticed the problem when using autoconf-2.61.
36128
36129 2009-01-15  Bruno Haible  <bruno@clisp.org>
36130
36131         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36132         * tests/test-fflush2.c (ASSERT): Always fail.
36133         (main): Add two tests for fflush() after ungetc(), taking into account
36134         the Austin Group's clarification.
36135         Suggested by Eric Blake.
36136
36137 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36138
36139         mktime.m4: remove K&R-style function prototypes
36140         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36141         for the Sun C++ compiler.
36142
36143 2009-01-14  Bruno Haible  <bruno@clisp.org>
36144
36145         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36146         while including <wchar.h>.
36147         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36148         the system's <wchar.h> file.
36149         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36150
36151 2009-01-14  Bruno Haible  <bruno@clisp.org>
36152
36153         * m4/csharp.m4: Don't mention gettext on the serial number line.
36154         * m4/csharpexec.m4: Likewise.
36155         * m4/eaccess.m4: Likewise.
36156         * m4/javaexec.m4: Likewise.
36157         * m4/sig_atomic_t.m4: Likewise.
36158         * m4/tmpdir.m4: Likewise.
36159         * m4/intldir.m4: Bump gettext version.
36160         * m4/lib-ld.m4: Likewise.
36161
36162 2009-01-14  Bruno Haible  <bruno@clisp.org>
36163
36164         * lib/progname.c (set_program_name): Add more comments.
36165         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36166
36167 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36168
36169         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36170         were sys/stat.h does not define it.
36171
36172 2009-01-14  Jim Meyering  <meyering@redhat.com>
36173
36174         many *.m4 files: improve m4 quoting
36175         99% of this change was performed by running the following commands:
36176         git ls-files | grep '\.m4$' | xargs perl -pi \
36177           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36178           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36179           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36180           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36181         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36182         The remainder were to add Copyright dates, increment serial numbers,
36183         undo some changes in comments, exclude m4/intl.m4, and add quotes
36184         around the "1" in ",1" where the unusual spacing prohibited the
36185         above regexps from doing the job.  For more details, see
36186         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36187         * m4/acl.m4: Modified.
36188         * m4/afs.m4: Likewise.
36189         * m4/alloca.m4: Likewise.
36190         * m4/argp.m4: Likewise.
36191         * m4/argz.m4: Likewise.
36192         * m4/atexit.m4: Likewise.
36193         * m4/bison-i18n.m4: Likewise.
36194         * m4/bison.m4: Likewise.
36195         * m4/byteswap.m4: Likewise.
36196         * m4/c-stack.m4: Likewise.
36197         * m4/c-strtod.m4: Likewise.
36198         * m4/calloc.m4: Likewise.
36199         * m4/canonicalize-lgpl.m4: Likewise.
36200         * m4/chown.m4: Likewise.
36201         * m4/clock_time.m4: Likewise.
36202         * m4/codeset.m4: Likewise.
36203         * m4/copy-file.m4: Likewise.
36204         * m4/csharp.m4: Likewise.
36205         * m4/csharpcomp.m4: Likewise.
36206         * m4/csharpexec.m4: Likewise.
36207         * m4/d-ino.m4: Likewise.
36208         * m4/d-type.m4: Likewise.
36209         * m4/dirfd.m4: Likewise.
36210         * m4/double-slash-root.m4: Likewise.
36211         * m4/eaccess.m4: Likewise.
36212         * m4/eealloc.m4: Likewise.
36213         * m4/environ.m4: Likewise.
36214         * m4/errno_h.m4: Likewise.
36215         * m4/euidaccess.m4: Likewise.
36216         * m4/execute.m4: Likewise.
36217         * m4/fatal-signal.m4: Likewise.
36218         * m4/fchdir.m4: Likewise.
36219         * m4/fcntl_h.m4: Likewise.
36220         * m4/fileblocks.m4: Likewise.
36221         * m4/filenamecat.m4: Likewise.
36222         * m4/findprog.m4: Likewise.
36223         * m4/flexmember.m4: Likewise.
36224         * m4/fnmatch.m4: Likewise.
36225         * m4/fopen.m4: Likewise.
36226         * m4/fpending.m4: Likewise.
36227         * m4/fprintf-posix.m4: Likewise.
36228         * m4/free.m4: Likewise.
36229         * m4/frexp.m4: Likewise.
36230         * m4/frexpl.m4: Likewise.
36231         * m4/fsusage.m4: Likewise.
36232         * m4/ftruncate.m4: Likewise.
36233         * m4/gc-camellia.m4: Likewise.
36234         * m4/gc-random.m4: Likewise.
36235         * m4/gc.m4: Likewise.
36236         * m4/getaddrinfo.m4: Likewise.
36237         * m4/getcwd-abort-bug.m4: Likewise.
36238         * m4/getcwd-path-max.m4: Likewise.
36239         * m4/getdate.m4: Likewise.
36240         * m4/getdomainname.m4: Likewise.
36241         * m4/getgroups.m4: Likewise.
36242         * m4/gethostname.m4: Likewise.
36243         * m4/gethrxtime.m4: Likewise.
36244         * m4/getline.m4: Likewise.
36245         * m4/getloadavg.m4: Likewise.
36246         * m4/getndelim2.m4: Likewise.
36247         * m4/getpass.m4: Likewise.
36248         * m4/gettext.m4: Likewise.
36249         * m4/gettime.m4: Likewise.
36250         * m4/gettimeofday.m4: Likewise.
36251         * m4/gnulib-common.m4: Likewise.
36252         * m4/group-member.m4: Likewise.
36253         * m4/host-os.m4: Likewise.
36254         * m4/iconv.m4: Likewise.
36255         * m4/iconv_open.m4: Likewise.
36256         * m4/inet_ntop.m4: Likewise.
36257         * m4/inet_pton.m4: Likewise.
36258         * m4/inline.m4: Likewise.
36259         * m4/intldir.m4: Likewise.
36260         * m4/intlmacosx.m4: Likewise.
36261         * m4/intmax.m4: Likewise.
36262         * m4/intmax_t.m4: Likewise.
36263         * m4/inttypes.m4: Likewise.
36264         * m4/inttypes_h.m4: Likewise.
36265         * m4/inttypes-pri.m4: Likewise.
36266         * m4/isapipe.m4: Likewise.
36267         * m4/isnand.m4: Likewise.
36268         * m4/isnanf.m4: Likewise.
36269         * m4/isnanl.m4: Likewise.
36270         * m4/javacomp.m4: Likewise.
36271         * m4/javaexec.m4: Likewise.
36272         * m4/jm-winsz1.m4: Likewise.
36273         * m4/jm-winsz2.m4: Likewise.
36274         * m4/lchown.m4: Likewise.
36275         * m4/lcmessage.m4: Likewise.
36276         * m4/ldexpl.m4: Likewise.
36277         * m4/lib-ld.m4: Likewise.
36278         * m4/lib-link.m4: Likewise.
36279         * m4/libsigsegv.m4: Likewise.
36280         * m4/link-follow.m4: Likewise.
36281         * m4/localcharset.m4: Likewise.
36282         * m4/locale-fr.m4: Likewise.
36283         * m4/locale-ja.m4: Likewise.
36284         * m4/locale-tr.m4: Likewise.
36285         * m4/locale-zh.m4: Likewise.
36286         * m4/lock.m4: Likewise.
36287         * m4/longlong.m4: Likewise.
36288         * m4/ls-mntd-fs.m4: Likewise.
36289         * m4/lstat.m4: Likewise.
36290         * m4/malloc.m4: Likewise.
36291         * m4/mathl.m4: Likewise.
36292         * m4/mbrtowc.m4: Likewise.
36293         * m4/mbstate_t.m4: Likewise.
36294         * m4/mbswidth.m4: Likewise.
36295         * m4/memchr.m4: Likewise.
36296         * m4/memcmp.m4: Likewise.
36297         * m4/memcpy.m4: Likewise.
36298         * m4/memmem.m4: Likewise.
36299         * m4/memmove.m4: Likewise.
36300         * m4/mempcpy.m4: Likewise.
36301         * m4/memrchr.m4: Likewise.
36302         * m4/memset.m4: Likewise.
36303         * m4/minmax.m4: Likewise.
36304         * m4/mkdir-slash.m4: Likewise.
36305         * m4/mkdtemp.m4: Likewise.
36306         * m4/mktime.m4: Likewise.
36307         * m4/mmap-anon.m4: Likewise.
36308         * m4/mountlist.m4: Likewise.
36309         * m4/nanosleep.m4: Likewise.
36310         * m4/nls.m4: Likewise.
36311         * m4/nocrash.m4: Likewise.
36312         * m4/open.m4: Likewise.
36313         * m4/openat.m4: Likewise.
36314         * m4/openmp.m4: Likewise.
36315         * m4/pathmax.m4: Likewise.
36316         * m4/perl.m4: Likewise.
36317         * m4/physmem.m4: Likewise.
36318         * m4/pipe.m4: Likewise.
36319         * m4/po.m4: Likewise.
36320         * m4/poll.m4: Likewise.
36321         * m4/posixtm.m4: Likewise.
36322         * m4/posixver.m4: Likewise.
36323         * m4/printf-frexp.m4: Likewise.
36324         * m4/printf-frexpl.m4: Likewise.
36325         * m4/printf-posix.m4: Likewise.
36326         * m4/printf-posix-rpl.m4: Likewise.
36327         * m4/printf.m4: Likewise.
36328         * m4/progtest.m4: Likewise.
36329         * m4/putenv.m4: Likewise.
36330         * m4/readline.m4: Likewise.
36331         * m4/readlink.m4: Likewise.
36332         * m4/readutmp.m4: Likewise.
36333         * m4/realloc.m4: Likewise.
36334         * m4/regex.m4: Likewise.
36335         * m4/relocatable.m4: Likewise.
36336         * m4/relocatable-lib.m4: Likewise.
36337         * m4/rename-dest-slash.m4: Likewise.
36338         * m4/rename.m4: Likewise.
36339         * m4/rmdir-errno.m4: Likewise.
36340         * m4/rmdir.m4: Likewise.
36341         * m4/roundf.m4: Likewise.
36342         * m4/roundl.m4: Likewise.
36343         * m4/rpmatch.m4: Likewise.
36344         * m4/save-cwd.m4: Likewise.
36345         * m4/selinux-selinux-h.m4: Likewise.
36346         * m4/setenv.m4: Likewise.
36347         * m4/settime.m4: Likewise.
36348         * m4/sig2str.m4: Likewise.
36349         * m4/sig_atomic_t.m4: Likewise.
36350         * m4/signalblocking.m4: Likewise.
36351         * m4/signbit.m4: Likewise.
36352         * m4/sigpipe.m4: Likewise.
36353         * m4/sockets.m4: Likewise.
36354         * m4/sockpfaf.m4: Likewise.
36355         * m4/st_dm_mode.m4: Likewise.
36356         * m4/stat-time.m4: Likewise.
36357         * m4/stdbool.m4: Likewise.
36358         * m4/stdint.m4: Likewise.
36359         * m4/stdint_h.m4: Likewise.
36360         * m4/stpcpy.m4: Likewise.
36361         * m4/stpncpy.m4: Likewise.
36362         * m4/strcase.m4: Likewise.
36363         * m4/strchrnul.m4: Likewise.
36364         * m4/strcspn.m4: Likewise.
36365         * m4/strdup.m4: Likewise.
36366         * m4/strftime.m4: Likewise.
36367         * m4/strndup.m4: Likewise.
36368         * m4/strnlen.m4: Likewise.
36369         * m4/strpbrk.m4: Likewise.
36370         * m4/strptime.m4: Likewise.
36371         * m4/strsep.m4: Likewise.
36372         * m4/strtod.m4: Likewise.
36373         * m4/strtoimax.m4: Likewise.
36374         * m4/strtok_r.m4: Likewise.
36375         * m4/strtol.m4: Likewise.
36376         * m4/strtoll.m4: Likewise.
36377         * m4/strtoul.m4: Likewise.
36378         * m4/strtoull.m4: Likewise.
36379         * m4/strtoumax.m4: Likewise.
36380         * m4/strverscmp.m4: Likewise.
36381         * m4/threadlib.m4: Likewise.
36382         * m4/timegm.m4: Likewise.
36383         * m4/tm_gmtoff.m4: Likewise.
36384         * m4/tmpdir.m4: Likewise.
36385         * m4/tmpfile.m4: Likewise.
36386         * m4/tzset.m4: Likewise.
36387         * m4/uintmax_t.m4: Likewise.
36388         * m4/unlinkdir.m4: Likewise.
36389         * m4/unlocked-io.m4: Likewise.
36390         * m4/uptime.m4: Likewise.
36391         * m4/userspec.m4: Likewise.
36392         * m4/utimbuf.m4: Likewise.
36393         * m4/utime.m4: Likewise.
36394         * m4/utimes-null.m4: Likewise.
36395         * m4/utimes.m4: Likewise.
36396         * m4/vararrays.m4: Likewise.
36397         * m4/vasnprintf.m4: Likewise.
36398         * m4/vfprintf-posix.m4: Likewise.
36399         * m4/vprintf-posix.m4: Likewise.
36400         * m4/wait-process.m4: Likewise.
36401         * m4/wchar_t.m4: Likewise.
36402         * m4/wint_t.m4: Likewise.
36403         * m4/write-any-file.m4: Likewise.
36404         * m4/yield.m4: Likewise.
36405
36406 2009-01-13  Bruno Haible  <bruno@clisp.org>
36407
36408         Avoid test-copy-file.sh failures when ACL support insufficient.
36409         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36410         TESTS_ENVIRONMENT.
36411         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36412         Reported by Jim Meyering.
36413
36414 2009-01-13  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36417         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36418         * modules/unistdio/u8-printf-parse (Files): Likewise.
36419         * modules/unistdio/u32-printf-parse (Files): Likewise.
36420         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36421
36422 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36423
36424         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36425         and m4/inttypes_h.m4 too.
36426
36427 2009-01-12  Eric Blake  <ebb9@byu.net>
36428
36429         tests: IRIX 6.2 cc can't compile -0.0 into .data
36430         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36431         rather than at compile-time.
36432         * tests/test-floorl.c (minus_zero): Likewise.
36433         * tests/test-frexpl.c (minus_zero): Likewise.
36434         * tests/test-isnan.c (minus_zerol): Likewise.
36435         * tests/test-isnanl.h (minus_zero): Likewise.
36436         * tests/test-ldexpl.c (minus_zero): Likewise.
36437         * tests/test-roundl.c (minus_zero): Likewise.
36438         * tests/test-signbit.c (minus_zerol): Likewise.
36439         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36440         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36441         * tests/test-truncl.c (minus_zero): Likewise.
36442         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36443         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36444         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36445
36446 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36447
36448         regex: fix glibc bug 9697
36449         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36450         handling.
36451
36452 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36453
36454         regex: fix glibc bug 697
36455         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36456         being NULL also if there are no backreferences.
36457
36458 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36459
36460         regex: merge glibc changes
36461         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36462         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36463         re_string_skip_chars, re_string_reconstruct): Likewise.
36464         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36465
36466 2009-01-07  Jim Meyering  <meyering@redhat.com>
36467
36468         poll: filter through cppi
36469         * lib/poll.c: Indent cpp directives to reflect nesting.
36470
36471 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36472
36473         poll: don't return uninitialized
36474         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36475
36476 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36477
36478         avoid compile failure on AIX 6.1
36479         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36480         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36481
36482 2009-01-04  Jim Meyering  <meyering@redhat.com>
36483
36484         remove duplicate inclusion of <stdio.h>
36485         * tests/test-fprintf-posix.c: Likewise.
36486         * tests/test-printf-posix.c: Likewise.
36487         * tests/test-snprintf-posix.c: Likewise.
36488         * tests/test-sprintf-posix.c: Likewise.
36489         * tests/test-vasprintf-posix.c: Likewise.
36490         * tests/test-vfprintf-posix.c: Likewise.
36491         * tests/test-vprintf-posix.c: Likewise.
36492         * tests/test-vsnprintf-posix.c: Likewise.
36493         * tests/test-vsprintf-posix.c: Likewise.
36494
36495 2009-01-03  Jim Meyering  <meyering@redhat.com>
36496
36497         gnulib-tool: fix sed-based filtering
36498         * gnulib-tool (func_filter_filelist): Remove extra backslash
36499         in sed_fff_filter definition.
36500
36501 2009-01-02  Jim Meyering  <meyering@redhat.com>
36502
36503         strftime: avoid compilation failure on Solaris 2.6
36504         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36505         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36506         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36507         be available.  Reported by Tom G. Christensen.  Details in
36508         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36509
36510 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36511             Bruno Haible  <bruno@clisp.org>
36512
36513         Speed up gnulib-tool by doing more string processing through shell
36514         built-ins.
36515         * gnulib-tool (fast_func_append): New variable.
36516         (func_remove_prefix, func_remove_suffix): New functions.
36517         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36518         (func_filter_filelist): New function.
36519         (func_get_dependencies): Use func_remove_suffix instead of sed.
36520         (func_get_automake_snippet): Use func_filter_filelist instead of a
36521         subshell and sed invocation.
36522
36523 2009-01-01  Bruno Haible  <bruno@clisp.org>
36524
36525         Fix a security bug.
36526         * gnulib-tool (func_import, import, update): Don't allow the characters
36527         '"', '$', '`', '\' in macro arguments that become part of commands that
36528         are evaluated.
36529
36530 2009-01-01  Bruno Haible  <bruno@clisp.org>
36531
36532         * gnulib-tool (func_reset_sigpipe): Add more comments.
36533
36534 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36535
36536         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36537         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36538         already know the answer.
36539
36540 2009-01-01  Jim Meyering  <meyering@redhat.com>
36541
36542         * lib/version-etc.c (version_etc_va): Update copyright year.
36543
36544 2008-12-30  Bruno Haible  <bruno@clisp.org>
36545
36546         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36547         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36548         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36549
36550 2008-12-29  Eric Blake  <ebb9@byu.net>
36551
36552         multiarch: avoid autoconf AC_REQUIRE bug
36553         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36554         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36555         2.63 and older.
36556         Reported by Bruno Haible, and analyzed in
36557         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36558
36559 2008-12-29  Bruno Haible  <bruno@clisp.org>
36560
36561         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36562         files in subdirectories correctly.
36563         Reported by Ralf Wildenhues.
36564
36565 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36566
36567         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36568         rather than 'join FILE -', for Solaris join.
36569
36570 2008-12-29  Bruno Haible  <bruno@clisp.org>
36571
36572         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36573         quoting.
36574         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36575         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36576         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36577         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36578         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36579         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36580         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36582         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36583         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36584         * m4/nls.m4 (AM_NLS): Likewise.
36585         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36586         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36587         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36588         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36589         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36590         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36591         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36592         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36593         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36594         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36595         * m4/xsize.m4 (gl_XSIZE): Likewise.
36596         Suggested by Jim Meyering.
36597
36598 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36599
36600         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36601         * lib/parse-duration.c: use a switch instead of cascading if's.
36602
36603 2008-12-29  Eric Blake  <ebb9@byu.net>
36604
36605         wchar.h: supply WEOF on Irix 5.3
36606         * lib/wchar.in.h (wint_t): Also supply WEOF.
36607         * lib/wctype.in.h (wint_t): Likewise.
36608         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36609         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36610         Reported by Tom G. Christensen.
36611
36612 2008-12-26  Bruno Haible  <bruno@clisp.org>
36613
36614         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36615         i486, i586, i686.
36616
36617 2008-12-26  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36620
36621 2008-12-26  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36624         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36625         not __STDC_CONSTANT_MACROS.
36626         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36627
36628 2008-12-25  Bruno Haible  <bruno@clisp.org>
36629
36630         Add support for universal builds to vasnprintf.
36631         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36632         universal builds, guess no.
36633         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36634         * modules/vasprintf-posix (Depends-on): Likewise.
36635         * modules/fprintf-posix (Depends-on): Likewise.
36636         * modules/vfprintf-posix (Depends-on): Likewise.
36637         * modules/snprintf-posix (Depends-on): Likewise.
36638         * modules/vsnprintf-posix (Depends-on): Likewise.
36639         * modules/sprintf-posix (Depends-on): Likewise.
36640         * modules/vsprintf-posix (Depends-on): Likewise.
36641         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36642         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36643         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36644         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36645         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36646         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36647         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36648
36649         Add support for universal builds to <inttypes.h>.
36650         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36651         _SCNu64_PREFIX): In Apple
36652         universal builds, define directly, using _LP64.
36653         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36654         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36655         * modules/inttypes (Depends-on): Add multiarch.
36656         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36657
36658         Add support for universal builds to <stdint.h>.
36659         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36660         universal builds, define directly, using _LP64.
36661         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36662         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36663         and size_t.
36664         * modules/stdint (Depends-on): Add multiarch.
36665         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36666
36667         New module 'multiarch'.
36668         * modules/multiarch: New file.
36669         * m4/multiarch.m4: New file.
36670
36671 2008-12-25  Bruno Haible  <bruno@clisp.org>
36672
36673         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36674
36675 2008-12-25  Bruno Haible  <bruno@clisp.org>
36676
36677         * modules/btowc (License): Relicense under LGPLv2+.
36678         * modules/mbsinit (License): Likewise.
36679         * modules/mbrtowc (License): Likewise.
36680         * modules/wcrtomb (License): Likewise.
36681         * modules/streq (License): Likewise.
36682         Reported by David Lutterkort <lutter@redhat.com>.
36683
36684 2008-12-23  Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36687
36688 2008-12-23  Bruno Haible  <bruno@clisp.org>
36689
36690         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36692         GETADDRINFO_LIB, not in LIBS.
36693         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36694         * modules/canon-host (Link): Likewise.
36695         * NEWS: Mention the change.
36696         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36697         GETADDRINFO_LIB.
36698
36699 2008-12-22  Bruno Haible  <bruno@clisp.org>
36700
36701         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36702         * doc/posix-functions/iswalpha_l.texi: Likewise.
36703         * doc/posix-functions/iswblank_l.texi: Likewise.
36704         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36705         * doc/posix-functions/iswctype_l.texi: Likewise.
36706         * doc/posix-functions/iswdigit_l.texi: Likewise.
36707         * doc/posix-functions/iswgraph_l.texi: Likewise.
36708         * doc/posix-functions/iswlower_l.texi: Likewise.
36709         * doc/posix-functions/iswprint_l.texi: Likewise.
36710         * doc/posix-functions/iswpunct_l.texi: Likewise.
36711         * doc/posix-functions/iswspace_l.texi: Likewise.
36712         * doc/posix-functions/iswupper_l.texi: Likewise.
36713         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36714         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36715         * doc/posix-functions/open_wmemstream.texi: Likewise.
36716         * doc/posix-functions/swscanf.texi: Likewise.
36717         * doc/posix-functions/towctrans_l.texi: Likewise.
36718         * doc/posix-functions/towlower.texi: Likewise.
36719         * doc/posix-functions/towlower_l.texi: Likewise.
36720         * doc/posix-functions/towupper.texi: Likewise.
36721         * doc/posix-functions/towupper_l.texi: Likewise.
36722         * doc/posix-functions/vfwprintf.texi: Likewise.
36723         * doc/posix-functions/vfwscanf.texi: Likewise.
36724         * doc/posix-functions/vswscanf.texi: Likewise.
36725         * doc/posix-functions/vwprintf.texi: Likewise.
36726         * doc/posix-functions/vwscanf.texi: Likewise.
36727         * doc/posix-functions/wcpcpy.texi: Likewise.
36728         * doc/posix-functions/wcpncpy.texi: Likewise.
36729         * doc/posix-functions/wcscasecmp.texi: Likewise.
36730         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36731         * doc/posix-functions/wcscoll_l.texi: Likewise.
36732         * doc/posix-functions/wcsdup.texi: Likewise.
36733         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36734         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36735         * doc/posix-functions/wcsnlen.texi: Likewise.
36736         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36737         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36738         * doc/posix-functions/wctrans_l.texi: Likewise.
36739         * doc/posix-functions/wctype_l.texi: Likewise.
36740         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36741         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36742         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36743         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36744         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36745         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36746         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36747         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36748         * doc/glibc-functions/wcschrnul.texi: Likewise.
36749         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36750         * doc/glibc-functions/wcstod_l.texi: Likewise.
36751         * doc/glibc-functions/wcstof_l.texi: Likewise.
36752         * doc/glibc-functions/wcstol_l.texi: Likewise.
36753         * doc/glibc-functions/wcstold_l.texi: Likewise.
36754         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36755         * doc/glibc-functions/wcstoq.texi: Likewise.
36756         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36757         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36758         * doc/glibc-functions/wcstouq.texi: Likewise.
36759         * doc/glibc-functions/wmempcpy.texi: Likewise.
36760
36761 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36762             Eric Blake  <ebb9@byu.net>
36763             Paolo Bonzini  <bonzini@gnu.org>
36764             Bruno Haible  <bruno@clisp.org>
36765
36766         Make c-stack work on Haiku.
36767         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36768         (c_stack_action): Use SA_ONSTACK flag.
36769
36770 2008-12-22  Bruno Haible  <bruno@clisp.org>
36771
36772         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36773
36774 2008-12-22  Bruno Haible  <bruno@clisp.org>
36775
36776         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36777         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36778         being overridden.
36779         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36780         New macros.
36781         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36783         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36784         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36785
36786 2008-12-22  Bruno Haible  <bruno@clisp.org>
36787
36788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36789         from test code.
36790
36791 2008-12-22  Eric Blake  <ebb9@byu.net>
36792
36793         Avoid gcc warnings on cygwin.
36794         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36795         Avoid unused variable.
36796         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36797         Likewise.
36798
36799 2008-12-22  Bruno Haible  <bruno@clisp.org>
36800
36801         Remove HAVE_MBRTOWC conditionals.
36802         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36803         (mbscasecmp): Assume mbrtowc function.
36804         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36805         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36806         * lib/mbschr.c: Include mbuiter.h unconditionally.
36807         (mbschr): Assume mbrtowc function.
36808         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36809         (mbscspn): Assume mbrtowc function.
36810         * lib/mbslen.c: Include mbuiter.h unconditionally.
36811         (mbslen): Assume mbrtowc function.
36812         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36813         (mbsncasecmp): Assume mbrtowc function.
36814         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36815         (mbsnlen): Assume mbrtowc function.
36816         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36817         (mbspbrk): Assume mbrtowc function.
36818         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36819         (mbspcasecmp): Assume mbrtowc function.
36820         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36821         (mbsrchr): Assume mbrtowc function.
36822         * lib/mbssep.c: Include mbuiter.h unconditionally.
36823         (mbssep): Assume mbrtowc function.
36824         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36825         (mbsspn): Assume mbrtowc function.
36826         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36827         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36828         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36829         (mbstok_r): Assume mbrtowc function.
36830         * lib/propername.c: Include mbuiter.h unconditionally.
36831         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36832         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36833         (trim2): Assume mbrtowc function.
36834         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36835         (mbsnwidth): Assume mbrtowc function.
36836         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36837         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36838         fallback definitions.
36839         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36840
36841 2008-12-22  Bruno Haible  <bruno@clisp.org>
36842
36843         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36844
36845 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36846
36847         * modules/regex: Request emulations for the mb*/wc* functions we need.
36848         * m4/regex.m4: Don't look for those functions here.
36849         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36850
36851 2008-12-22  Bruno Haible  <bruno@clisp.org>
36852
36853         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36854
36855 2008-12-21  Bruno Haible  <bruno@clisp.org>
36856
36857         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36858         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36859         (Include): Remove conditionalization.
36860         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36861         (Include): Remove conditionalization.
36862         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36863         (Include): Remove conditionalization.
36864         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36865         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36866         * NEWS: Mention the change.
36867         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36868         via Sergey Poznyakoff <gray@gnu.org.ua>.
36869
36870 2008-12-21  Bruno Haible  <bruno@clisp.org>
36871
36872         * MODULES.html.sh (Extended multibyte and wide character utilities
36873         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36874         wcrtomb, wcsrtombs.
36875         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36876         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36877         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36878         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36879
36880 2008-12-21  Bruno Haible  <bruno@clisp.org>
36881
36882         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36883
36884 2008-12-21  Bruno Haible  <bruno@clisp.org>
36885
36886         * modules/wcsnrtombs-tests: New file.
36887         * tests/test-wcsnrtombs1.sh: New file.
36888         * tests/test-wcsnrtombs2.sh: New file.
36889         * tests/test-wcsnrtombs3.sh: New file.
36890         * tests/test-wcsnrtombs4.sh: New file.
36891         * tests/test-wcsnrtombs.c: New file.
36892
36893         New module 'wcsnrtombs'.
36894         * lib/wchar.in.h (wcsnrtombs): New declaration.
36895         * lib/wcsnrtombs.c: New file.
36896         * lib/wcsrtombs-state.c: New file.
36897         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36898         (internal_state): Remove variable.
36899         * m4/wcsnrtombs.m4: New file.
36900         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36901         compilation units.
36902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36903         HAVE_WCSNRTOMBS.
36904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36905         HAVE_WCSNRTOMBS.
36906         * modules/wcsnrtombs: New file.
36907         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36908         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36909
36910 2008-12-21  Bruno Haible  <bruno@clisp.org>
36911
36912         * modules/wcsrtombs-tests: New file.
36913         * tests/test-wcsrtombs1.sh: New file.
36914         * tests/test-wcsrtombs2.sh: New file.
36915         * tests/test-wcsrtombs3.sh: New file.
36916         * tests/test-wcsrtombs4.sh: New file.
36917         * tests/test-wcsrtombs.c: New file.
36918
36919         New module 'wcsrtombs'.
36920         * lib/wchar.in.h (wcsrtombs): New declaration.
36921         * lib/wcsrtombs.c: New file.
36922         * m4/wcsrtombs.m4: New file.
36923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36924         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36926         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36927         * modules/wcsrtombs: New file.
36928         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36929         bugs.
36930
36931 2008-12-21  Bruno Haible  <bruno@clisp.org>
36932
36933         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36934         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36936         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36937         if not correct.
36938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36939         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36940         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36941         m4/locale-zh.m4, m4/codeset.m4.
36942         * doc/posix-functions/wcrtomb.texi: Document the bug.
36943
36944 2008-12-21  Bruno Haible  <bruno@clisp.org>
36945
36946         Work around a btowc() bug on IRIX 6.5.
36947         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36948         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36949         REPLACE_WTOBC if not.
36950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36951         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36952         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36953
36954 2008-12-21  Bruno Haible  <bruno@clisp.org>
36955
36956         * modules/wcrtomb-tests: New file.
36957         * tests/test-wcrtomb.sh: New file.
36958         * tests/test-wcrtomb.c: New file.
36959
36960         New module 'wcrtomb'.
36961         * lib/wchar.in.h (wcrtomb): New declaration.
36962         * lib/wcrtomb.c: New file.
36963         * m4/wcrtomb.m4: New file.
36964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36965         HAVE_WCRTOMB.
36966         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36967         HAVE_WCRTOMB.
36968         * modules/wcrtomb: New file.
36969         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36970
36971 2008-12-21  Bruno Haible  <bruno@clisp.org>
36972
36973         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36974         * modules/mbsrtowcs (Files): Likewise.
36975         * modules/wctob (Files): Likewise.
36976         * modules/c-strcase-tests (Files): Likewise.
36977         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36978         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36979         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36980         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36981         * modules/vasnprintf-posix-tests (Files): Likewise.
36982
36983 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36984
36985         gitlog-to-changelog: pass all command-line arguments to git-log
36986         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36987         it is sometimes convenient to filter the commits in various ways.
36988         gitlog-to-changelog only allows --since to specify a start date,
36989         but git-log itself supports many other filtering mechanisms.
36990         At the moment, I want to filter by branch name.  Rather than
36991         adding a --branch option to gitlog-to-changelog, it seems more
36992         flexible to simply pass all options directly to git-log and let
36993         git do the work.  Notice that this effectively makes --since a
36994         redundant option for gitlog-to-changelog, but removing it would
36995         require current usage to change since calls would then require
36996         an additional '--'.
36997
36998 2008-12-21  Bruno Haible  <bruno@clisp.org>
36999
37000         * modules/mbsnrtowcs-tests: New file.
37001         * tests/test-mbsnrtowcs1.sh: New file.
37002         * tests/test-mbsnrtowcs2.sh: New file.
37003         * tests/test-mbsnrtowcs3.sh: New file.
37004         * tests/test-mbsnrtowcs4.sh: New file.
37005         * tests/test-mbsnrtowcs.c: New file.
37006
37007         New module 'mbsnrtowcs'.
37008         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37009         * lib/mbsnrtowcs.c: New file.
37010         * lib/mbsrtowcs-state.c: New file.
37011         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37012         (internal_state): Remove variable.
37013         * m4/mbsnrtowcs.m4: New file.
37014         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37015         compilation units.
37016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37017         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37018         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37019         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37020         * modules/mbsnrtowcs: New file.
37021         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37022         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37023         portability problem.
37024
37025 2008-12-21  Bruno Haible  <bruno@clisp.org>
37026
37027         Work around mbsrtowcs bug.
37028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37029         (gl_FUNC_MBSRTOWCS): Invoke it.
37030         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37031         m4/locale-zh.m4.
37032         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37033
37034 2008-12-21  Bruno Haible  <bruno@clisp.org>
37035
37036         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37037
37038 2008-12-21  Bruno Haible  <bruno@clisp.org>
37039
37040         Update doc for AIX.
37041         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37042         16-bit wchar_t type.
37043         * doc/posix-functions/btowc.texi: Likewise.
37044         * doc/posix-functions/fgetwc.texi: Likewise.
37045         * doc/posix-functions/fgetws.texi: Likewise.
37046         * doc/posix-functions/fputwc.texi: Likewise.
37047         * doc/posix-functions/fputws.texi: Likewise.
37048         * doc/posix-functions/fwide.texi: Likewise.
37049         * doc/posix-functions/fwprintf.texi: Likewise.
37050         * doc/posix-functions/fwscanf.texi: Likewise.
37051         * doc/posix-functions/getwchar.texi: Likewise.
37052         * doc/posix-functions/getwc.texi: Likewise.
37053         * doc/posix-functions/iswalnum.texi: Likewise.
37054         * doc/posix-functions/iswalpha.texi: Likewise.
37055         * doc/posix-functions/iswblank.texi: Likewise.
37056         * doc/posix-functions/iswcntrl.texi: Likewise.
37057         * doc/posix-functions/iswctype.texi: Likewise.
37058         * doc/posix-functions/iswdigit.texi: Likewise.
37059         * doc/posix-functions/iswgraph.texi: Likewise.
37060         * doc/posix-functions/iswlower.texi: Likewise.
37061         * doc/posix-functions/iswprint.texi: Likewise.
37062         * doc/posix-functions/iswpunct.texi: Likewise.
37063         * doc/posix-functions/iswspace.texi: Likewise.
37064         * doc/posix-functions/iswupper.texi: Likewise.
37065         * doc/posix-functions/iswxdigit.texi: Likewise.
37066         * doc/posix-functions/mbrtowc.texi: Likewise.
37067         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37068         * doc/posix-functions/mbstowcs.texi: Likewise.
37069         * doc/posix-functions/mbtowc.texi: Likewise.
37070         * doc/posix-functions/putwchar.texi: Likewise.
37071         * doc/posix-functions/putwc.texi: Likewise.
37072         * doc/posix-functions/swprintf.texi: Likewise.
37073         * doc/posix-functions/tolower.texi: Likewise.
37074         * doc/posix-functions/toupper.texi: Likewise.
37075         * doc/posix-functions/towctrans.texi: Likewise.
37076         * doc/posix-functions/ungetwc.texi: Likewise.
37077         * doc/posix-functions/vswprintf.texi: Likewise.
37078         * doc/posix-functions/wcrtomb.texi: Likewise.
37079         * doc/posix-functions/wcscat.texi: Likewise.
37080         * doc/posix-functions/wcschr.texi: Likewise.
37081         * doc/posix-functions/wcscmp.texi: Likewise.
37082         * doc/posix-functions/wcscoll.texi: Likewise.
37083         * doc/posix-functions/wcscpy.texi: Likewise.
37084         * doc/posix-functions/wcscspn.texi: Likewise.
37085         * doc/posix-functions/wcsftime.texi: Likewise.
37086         * doc/posix-functions/wcslen.texi: Likewise.
37087         * doc/posix-functions/wcsncat.texi: Likewise.
37088         * doc/posix-functions/wcsncmp.texi: Likewise.
37089         * doc/posix-functions/wcsncpy.texi: Likewise.
37090         * doc/posix-functions/wcspbrk.texi: Likewise.
37091         * doc/posix-functions/wcsrchr.texi: Likewise.
37092         * doc/posix-functions/wcsrtombs.texi: Likewise.
37093         * doc/posix-functions/wcsspn.texi: Likewise.
37094         * doc/posix-functions/wcsstr.texi: Likewise.
37095         * doc/posix-functions/wcstod.texi: Likewise.
37096         * doc/posix-functions/wcstof.texi: Likewise.
37097         * doc/posix-functions/wcstoimax.texi: Likewise.
37098         * doc/posix-functions/wcstok.texi: Likewise.
37099         * doc/posix-functions/wcstold.texi: Likewise.
37100         * doc/posix-functions/wcstoll.texi: Likewise.
37101         * doc/posix-functions/wcstol.texi: Likewise.
37102         * doc/posix-functions/wcstombs.texi: Likewise.
37103         * doc/posix-functions/wcstoull.texi: Likewise.
37104         * doc/posix-functions/wcstoul.texi: Likewise.
37105         * doc/posix-functions/wcstoumax.texi: Likewise.
37106         * doc/posix-functions/wcswidth.texi: Likewise.
37107         * doc/posix-functions/wcsxfrm.texi: Likewise.
37108         * doc/posix-functions/wctob.texi: Likewise.
37109         * doc/posix-functions/wctomb.texi: Likewise.
37110         * doc/posix-functions/wctrans.texi: Likewise.
37111         * doc/posix-functions/wctype.texi: Likewise.
37112         * doc/posix-functions/wcwidth.texi: Likewise.
37113         * doc/posix-functions/wmemchr.texi: Likewise.
37114         * doc/posix-functions/wmemcmp.texi: Likewise.
37115         * doc/posix-functions/wmemcpy.texi: Likewise.
37116         * doc/posix-functions/wmemmove.texi: Likewise.
37117         * doc/posix-functions/wmemset.texi: Likewise.
37118         * doc/posix-functions/wprintf.texi: Likewise.
37119         * doc/posix-functions/wscanf.texi: Likewise.
37120
37121 2008-12-21  Bruno Haible  <bruno@clisp.org>
37122
37123         Update doc for HP-UX 11.11.
37124         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37125         in HP-UX version 11.00, not in all versions of HP-UX 11.
37126         * doc/posix-functions/fwide.texi: Likewise.
37127         * doc/posix-functions/fwprintf.texi: Likewise.
37128         * doc/posix-functions/fwscanf.texi: Likewise.
37129         * doc/posix-functions/inet_ntop.texi: Likewise.
37130         * doc/posix-functions/inet_pton.texi: Likewise.
37131         * doc/posix-functions/mbrlen.texi: Likewise.
37132         * doc/posix-functions/mbrtowc.texi: Likewise.
37133         * doc/posix-functions/mbsinit.texi: Likewise.
37134         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37135         * doc/posix-functions/swprintf.texi: Likewise.
37136         * doc/posix-functions/swscanf.texi: Likewise.
37137         * doc/posix-functions/towctrans.texi: Likewise.
37138         * doc/posix-functions/vfwprintf.texi: Likewise.
37139         * doc/posix-functions/vswprintf.texi: Likewise.
37140         * doc/posix-functions/vwprintf.texi: Likewise.
37141         * doc/posix-functions/wcrtomb.texi: Likewise.
37142         * doc/posix-functions/wcsrtombs.texi: Likewise.
37143         * doc/posix-functions/wcsstr.texi: Likewise.
37144         * doc/posix-functions/wctob.texi: Likewise.
37145         * doc/posix-functions/wctrans.texi: Likewise.
37146         * doc/posix-functions/wmemchr.texi: Likewise.
37147         * doc/posix-functions/wmemcmp.texi: Likewise.
37148         * doc/posix-functions/wmemcpy.texi: Likewise.
37149         * doc/posix-functions/wmemmove.texi: Likewise.
37150         * doc/posix-functions/wmemset.texi: Likewise.
37151         * doc/posix-functions/wprintf.texi: Likewise.
37152         * doc/posix-functions/wscanf.texi: Likewise.
37153
37154 2008-12-21  Bruno Haible  <bruno@clisp.org>
37155
37156         Work around a portability problem.
37157         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37158         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37159
37160 2008-12-20  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37163         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37164         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37166         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37167
37168         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37169         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37170         set.
37171         (GNULIB_defined_mbstate_t): New macro.
37172         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37173         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37174         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37175         reuses the system's mbrtowc function but works around the bugs.
37176         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37177         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37178         macros.
37179         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37180         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37181         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37182         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37183         REPLACE_MBSINIT if mbsinit needs to be overridden.
37184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37185         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37186         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37187         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37188         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37189         m4/locale-zh.m4.
37190         (Depends): Add mbsinit.
37191         * modules/mbsinit (Depends): Add mbrtowc.
37192         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37193
37194 2008-12-20  Bruno Haible  <bruno@clisp.org>
37195
37196         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37197         so that there are no conversion errors on AIX.
37198         * tests/test-mbsrtowcs.c (main): LIkewise.
37199
37200 2008-12-20  Bruno Haible  <bruno@clisp.org>
37201
37202         Work around wctob bug on Solaris <= 9.
37203         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37204         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37206         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37207         * modules/wctob (Files): Add m4/locale-fr.m4.
37208         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37209
37210 2008-12-20  Bruno Haible  <bruno@clisp.org>
37211
37212         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37213         /dev/null.
37214         * tests/test-select-in.sh: Likewise.
37215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37216
37217 2008-12-20  Bruno Haible  <bruno@clisp.org>
37218
37219         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37220         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37221         Cygwin 1.5.x.
37222
37223 2008-12-20  Bruno Haible  <bruno@clisp.org>
37224
37225         Ensure mbstate_t is defined on HP-UX 11.11.
37226         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37227         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37228         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37229         AC_USE_SYSTEM_EXTENSIONS.
37230         * modules/fnmatch (Depends-on): Add extensions.
37231         * modules/mbrlen (Depends-on): Likewise.
37232         * modules/mbrtowc (Depends-on): Likewise.
37233         * modules/mbsinit (Depends-on): Likewise.
37234         * modules/mbsrtowcs (Depends-on): Likewise.
37235         * modules/mbswidth (Depends-on): Likewise.
37236         * modules/quotearg (Depends-on): Likewise.
37237         * modules/strftime (Depends-on): Likewise.
37238
37239 2008-12-20  Bruno Haible  <bruno@clisp.org>
37240
37241         Ensure wctob is declared on IRIX 6.5.
37242         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37243         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37244         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37246         of HAVE_WCTOB.
37247         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37248         HAVE_WCTOB.
37249         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37250
37251 2008-12-19  Bruno Haible  <bruno@clisp.org>
37252
37253         * modules/mbsrtowcs-tests: New file.
37254         * tests/test-mbsrtowcs1.sh: New file.
37255         * tests/test-mbsrtowcs2.sh: New file.
37256         * tests/test-mbsrtowcs3.sh: New file.
37257         * tests/test-mbsrtowcs4.sh: New file.
37258         * tests/test-mbsrtowcs.c: New file.
37259
37260         New module 'mbsrtowcs'.
37261         * lib/wchar.in.h (mbsrtowcs): New declaration.
37262         * lib/mbsrtowcs.c: New file.
37263         * m4/mbsrtowcs.m4: New file.
37264         * modules/mbsrtowcs: New file.
37265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37266         HAVE_MBSRTOWCS.
37267         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37268         HAVE_MBSRTOWCS.
37269         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37270
37271 2008-12-19  Bruno Haible  <bruno@clisp.org>
37272
37273         New module 'mbrlen'.
37274         * lib/wchar.in.h (mbrlen): New declaration.
37275         * lib/mbrlen.c: New file.
37276         * m4/mbrlen.m4: New file.
37277         * modules/mbrlen: New file.
37278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37279         HAVE_MBRLEN.
37280         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37281         HAVE_MBRLEN.
37282         * doc/posix-functions/mbrlen.texi: Document the new module.
37283
37284 2008-12-19  Bruno Haible  <bruno@clisp.org>
37285
37286         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37287         * modules/mbrtowc (Depends-on): Add verify.
37288         Suggested by Paul Eggert.
37289
37290 2008-12-18  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/mbsinit-tests: New file.
37293         * tests/test-mbsinit.sh: New file.
37294         * tests/test-mbsinit.c: New file.
37295
37296 2008-12-18  Bruno Haible  <bruno@clisp.org>
37297
37298         * modules/mbrtowc-tests: New file.
37299         * tests/test-mbrtowc1.sh: New file.
37300         * tests/test-mbrtowc2.sh: New file.
37301         * tests/test-mbrtowc3.sh: New file.
37302         * tests/test-mbrtowc4.sh: New file.
37303         * tests/test-mbrtowc.c: New file.
37304
37305         New module 'mbrtowc'.
37306         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37307         mbsinit and mbrtowc.
37308         (mbrtowc): New declaration.
37309         * lib/mbrtowc.c: New file.
37310         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37311         * modules/mbrtowc: New file.
37312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37313         HAVE_MBRTOWC.
37314         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37315         HAVE_MBRTOWC.
37316         * doc/posix-functions/mbrtowc.texi: Document the new module.
37317
37318 2008-12-18  Bruno Haible  <bruno@clisp.org>
37319
37320         New module 'wctob'.
37321         * lib/wchar.in.h (wctob): New declaration.
37322         * lib/wctob.c: New file.
37323         * m4/wctob.m4: New file.
37324         * modules/wctob: New file.
37325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37326         HAVE_WCTOB.
37327         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37328         * doc/posix-functions/wctob.texi: Document the new module.
37329
37330 2008-12-18  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37333         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37334
37335 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37336
37337         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37338         G. Christensen" <tgc@jupiterrise.com>.
37339
37340         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37341         G. Christensen" <tgc@jupiterrise.com>.
37342
37343         * lib/flock.c: Need to include string.h.  Reported by "Tom
37344         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37345         <ebb9@byu.net>.
37346
37347 2008-12-18  Bruno Haible  <bruno@clisp.org>
37348
37349         * m4/locale-ja.m4: New file, from GNU gettext.
37350
37351 2008-12-17  Bruno Haible  <bruno@clisp.org>
37352
37353         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37354         Suggested by Eric Blake.
37355
37356 2008-12-17  Bruno Haible  <bruno@clisp.org>
37357
37358         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37359
37360 2008-12-17  Bruno Haible  <bruno@clisp.org>
37361
37362         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37363         * modules/mbsinit (Depends-on): Add verify.
37364         Suggested by Paul Eggert.
37365
37366 2008-12-17  Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37369         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37370         gl_FUNC_MBRTOWC.
37371         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37372         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37373         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37374         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37375         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37376         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37377         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37378         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37379         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37380         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37381         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37382         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37383         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37384         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37385         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37386         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37387         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37388         * modules/trim (configure.ac): Likewise.
37389
37390 2008-12-17  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/btowc-tests: New file.
37393         * tests/test-btowc1.sh: New file.
37394         * tests/test-btowc2.sh: New file.
37395         * tests/test-btowc.c: New file.
37396
37397         New module 'btowc'.
37398         * lib/wchar.in.h (btowc): New declaration.
37399         * lib/btowc.c: New file.
37400         * m4/btowc.m4: New file.
37401         * modules/btowc: New file.
37402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37403         HAVE_BTOWC.
37404         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37405         * doc/posix-functions/btowc.texi: Document the new module.
37406
37407 2008-12-17  Bruno Haible  <bruno@clisp.org>
37408
37409         New module 'mbsinit'.
37410         * lib/wchar.in.h (mbsinit): New declaration.
37411         * lib/mbsinit.c: New file.
37412         * m4/mbsinit.m4: New file.
37413         * modules/mbsinit: New file.
37414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37415         HAVE_MBSINIT.
37416         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37417         HAVE_MBSINIT.
37418         * doc/posix-functions/mbsinit.texi: Document the new module.
37419
37420 2008-12-16  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/unistd.in.h: Add comment.
37423         * tests/test-environ.c: Don't include <stdlib.h>.
37424
37425 2008-12-16  Bruno Haible  <bruno@clisp.org>
37426
37427         * lib/parse-duration.h (parse_duration): Document return value
37428         convention.
37429         * lib/parse-duration.c: Include specification header first. Add
37430         comments.
37431         (_): Remove macro.
37432         (parse_year_month_day, parse_hour_minute_second): Move side effects
37433         outside of strchr call.
37434         (parse_non_iso8601): Move side effects outside of isspace call.
37435         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37436         call.
37437
37438 2008-12-16  Bruno Haible  <bruno@clisp.org>
37439
37440         * tests/test-parse-duration.sh: Produce no output when the test
37441         succeeds.
37442
37443 2008-12-16  Bruno Haible  <bruno@clisp.org>
37444
37445         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37446         expressions.
37447
37448 2008-12-15  Bruno Haible  <bruno@clisp.org>
37449
37450         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37451         * doc/glibc-functions/flistxattr.texi: Likewise.
37452         * doc/glibc-functions/fopencookie.texi: Likewise.
37453         * doc/glibc-functions/fremovexattr.texi: Likewise.
37454         * doc/glibc-functions/fsetxattr.texi: Likewise.
37455         * doc/glibc-functions/getxattr.texi: Likewise.
37456         * doc/glibc-functions/lgetxattr.texi: Likewise.
37457         * doc/glibc-functions/listxattr.texi: Likewise.
37458         * doc/glibc-functions/llistxattr.texi: Likewise.
37459         * doc/glibc-functions/lremovexattr.texi: Likewise.
37460         * doc/glibc-functions/lsetxattr.texi: Likewise.
37461         * doc/glibc-functions/removexattr.texi: Likewise.
37462         * doc/glibc-functions/setxattr.texi: Likewise.
37463         * doc/posix-functions/open_memstream.texi: Likewise.
37464
37465 2008-12-15  Eric Blake  <ebb9@byu.net>
37466
37467         Update doc for cygwin 1.7.
37468         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37469         functions.
37470         * doc/posix-functions/fchmodat.texi: Likewise.
37471         * doc/posix-functions/fchownat.texi: Likewise.
37472         * doc/posix-functions/fdopendir.texi: Likewise.
37473         * doc/posix-functions/fmemopen.texi: Likewise.
37474         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37475         * doc/posix-functions/fstatat.texi: Likewise.
37476         * doc/posix-functions/futimens.texi: Likewise.
37477         * doc/posix-functions/gai_strerror.texi: Likewise.
37478         * doc/posix-functions/getaddrinfo.texi: Likewise.
37479         * doc/posix-functions/getnameinfo.texi: Likewise.
37480         * doc/posix-functions/if_freenameindex.texi: Likewise.
37481         * doc/posix-functions/if_indextoname.texi: Likewise.
37482         * doc/posix-functions/if_nameindex.texi: Likewise.
37483         * doc/posix-functions/if_nametoindex.texi: Likewise.
37484         * doc/posix-functions/insque.texi: Likewise.
37485         * doc/posix-functions/linkat.texi: Likewise.
37486         * doc/posix-functions/llrint.texi: Likewise.
37487         * doc/posix-functions/llrintf.texi: Likewise.
37488         * doc/posix-functions/llrintl.texi: Likewise.
37489         * doc/posix-functions/lockf.texi: Likewise.
37490         * doc/posix-functions/lrintl.texi: Likewise.
37491         * doc/posix-functions/mkdirat.texi: Likewise.
37492         * doc/posix-functions/mkfifoat.texi: Likewise.
37493         * doc/posix-functions/mknodat.texi: Likewise.
37494         * doc/posix-functions/mq_close.texi: Likewise.
37495         * doc/posix-functions/mq_getattr.texi: Likewise.
37496         * doc/posix-functions/mq_notify.texi: Likewise.
37497         * doc/posix-functions/mq_open.texi: Likewise.
37498         * doc/posix-functions/mq_receive.texi: Likewise.
37499         * doc/posix-functions/mq_send.texi: Likewise.
37500         * doc/posix-functions/mq_setattr.texi: Likewise.
37501         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37502         * doc/posix-functions/mq_timedsend.texi: Likewise.
37503         * doc/posix-functions/mq_unlink.texi: Likewise.
37504         * doc/posix-functions/open_memstream.texi: Likewise.
37505         * doc/posix-functions/openat.texi: Likewise.
37506         * doc/posix-functions/posix_fadvise.texi: Likewise.
37507         * doc/posix-functions/posix_fallocate.texi: Likewise.
37508         * doc/posix-functions/posix_madvise.texi: Likewise.
37509         * doc/posix-functions/posix_memalign.texi: Likewise.
37510         * doc/posix-functions/posix_openpt.texi: Likewise.
37511         * doc/posix-functions/readlinkat.texi: Likewise.
37512         * doc/posix-functions/remque.texi: Likewise.
37513         * doc/posix-functions/renameat.texi: Likewise.
37514         * doc/posix-functions/rintl.texi: Likewise.
37515         * doc/posix-functions/sem_unlink.texi: Likewise.
37516         * doc/posix-functions/shm_open.texi: Likewise.
37517         * doc/posix-functions/shm_unlink.texi: Likewise.
37518         * doc/posix-functions/signgam.texi: Likewise.
37519         * doc/posix-functions/sigset.texi: Likewise.
37520         * doc/posix-functions/stpcpy.texi: Likewise.
37521         * doc/posix-functions/stpncpy.texi: Likewise.
37522         * doc/posix-functions/strerror.texi: Likewise.
37523         * doc/posix-functions/strtod.texi: Likewise.
37524         * doc/posix-functions/symlinkat.texi: Likewise.
37525         * doc/posix-functions/unlinkat.texi: Likewise.
37526         * doc/posix-functions/utimensat.texi: Likewise.
37527         * doc/glibc-functions/bindresvport.texi: Likewise.
37528         * doc/glibc-functions/dn_expand.texi: Likewise.
37529         * doc/glibc-functions/exp10.texi: Likewise.
37530         * doc/glibc-functions/exp10f.texi: Likewise.
37531         * doc/glibc-functions/fgetxattr.texi: Likewise.
37532         * doc/glibc-functions/flistxattr.texi: Likewise.
37533         * doc/glibc-functions/fopencookie.texi: Likewise.
37534         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37535         * doc/glibc-functions/fremovexattr.texi: Likewise.
37536         * doc/glibc-functions/fsetxattr.texi: Likewise.
37537         * doc/glibc-functions/getifaddrs.texi: Likewise.
37538         * doc/glibc-functions/getxattr.texi: Likewise.
37539         * doc/glibc-functions/lgetxattr.texi: Likewise.
37540         * doc/glibc-functions/listxattr.texi: Likewise.
37541         * doc/glibc-functions/llistxattr.texi: Likewise.
37542         * doc/glibc-functions/lremovexattr.texi: Likewise.
37543         * doc/glibc-functions/lsetxattr.texi: Likewise.
37544         * doc/glibc-functions/pow10.texi: Likewise.
37545         * doc/glibc-functions/pow10f.texi: Likewise.
37546         * doc/glibc-functions/rcmd_af.texi: Likewise.
37547         * doc/glibc-functions/removexattr.texi: Likewise.
37548         * doc/glibc-functions/res_init.texi: Likewise.
37549         * doc/glibc-functions/res_mkquery.texi: Likewise.
37550         * doc/glibc-functions/res_query.texi: Likewise.
37551         * doc/glibc-functions/res_querydomain.texi: Likewise.
37552         * doc/glibc-functions/res_send.texi: Likewise.
37553         * doc/glibc-functions/rresvport_af.texi: Likewise.
37554         * doc/glibc-functions/setxattr.texi: Likewise.
37555         * doc/glibc-functions/strcasestr.texi: Likewise.
37556
37557 2008-12-15  Bruno Haible  <bruno@clisp.org>
37558
37559         Fix compilation error on OSF/1 4.0.
37560         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37561         <sys/time.h>, simply delegate to the system header.
37562         Reported by Daniel Richard G. <oss@teragram.com>.
37563
37564 2008-12-15  Bruno Haible  <bruno@clisp.org>
37565
37566         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37567         * doc/posix-functions/fchmodat.texi: Likewise.
37568         * doc/posix-functions/fchownat.texi: Likewise.
37569         * doc/posix-functions/fdopendir.texi: Likewise.
37570         * doc/posix-functions/fstatat.texi: Likewise.
37571         * doc/posix-functions/mkdirat.texi: Likewise.
37572         * doc/posix-functions/unlinkat.texi: Likewise.
37573
37574 2008-12-14  Bruno Haible  <bruno@clisp.org>
37575
37576         Update doc for POSIX:2008.
37577         * doc/posix-functions/faccessat.texi: New file.
37578         * doc/posix-functions/fchmodat.texi: New file.
37579         * doc/posix-functions/fchownat.texi: New file.
37580         * doc/posix-functions/fdopendir.texi: New file.
37581         * doc/posix-functions/fstatat.texi: New file.
37582         * doc/posix-functions/futimens.texi: New file.
37583         * doc/posix-functions/linkat.texi: New file.
37584         * doc/posix-functions/mkdirat.texi: New file.
37585         * doc/posix-functions/mkfifoat.texi: New file.
37586         * doc/posix-functions/mknodat.texi: New file.
37587         * doc/posix-functions/open_wmemstream.texi: New file.
37588         * doc/posix-functions/openat.texi: New file.
37589         * doc/posix-functions/psiginfo.texi: New file.
37590         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37591         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37592         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37593         * doc/posix-functions/readlinkat.texi: New file.
37594         * doc/posix-functions/renameat.texi: New file.
37595         * doc/posix-functions/strerror_l.texi: New file.
37596         * doc/posix-functions/symlinkat.texi: New file.
37597         * doc/posix-functions/unlinkat.texi: New file.
37598         * doc/posix-functions/utimensat.texi: New file.
37599         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37600
37601 2008-12-14  Bruno Haible  <bruno@clisp.org>
37602
37603         Update doc for POSIX:2008.
37604         * doc/posix-functions/alphasort.texi: Renamed from
37605         doc/glibc-functions/alphasort.texi.
37606         * doc/posix-functions/dirfd.texi: Renamed from
37607         doc/glibc-functions/dirfd.texi.
37608         * doc/posix-functions/dprintf.texi: Renamed from
37609         doc/glibc-functions/dprintf.texi.
37610         * doc/posix-functions/duplocale.texi: Renamed from
37611         doc/glibc-functions/duplocale.texi.
37612         * doc/posix-functions/fexecve.texi: Renamed from
37613         doc/glibc-functions/fexecve.texi.
37614         * doc/posix-functions/fmemopen.texi: Renamed from
37615         doc/glibc-functions/fmemopen.texi.
37616         * doc/posix-functions/freelocale.texi: Renamed from
37617         doc/glibc-functions/freelocale.texi.
37618         * doc/posix-functions/getdate_err.texi: Renamed from
37619         doc/glibc-functions/getdate_err.texi.
37620         * doc/posix-functions/isalnum_l.texi: Renamed from
37621         doc/glibc-functions/isalnum_l.texi.
37622         * doc/posix-functions/isalpha_l.texi: Renamed from
37623         doc/glibc-functions/isalpha_l.texi.
37624         * doc/posix-functions/isblank_l.texi: Renamed from
37625         doc/glibc-functions/isblank_l.texi.
37626         * doc/posix-functions/iscntrl_l.texi: Renamed from
37627         doc/glibc-functions/iscntrl_l.texi.
37628         * doc/posix-functions/isdigit_l.texi: Renamed from
37629         doc/glibc-functions/isdigit_l.texi.
37630         * doc/posix-functions/isgraph_l.texi: Renamed from
37631         doc/glibc-functions/isgraph_l.texi.
37632         * doc/posix-functions/islower_l.texi: Renamed from
37633         doc/glibc-functions/islower_l.texi.
37634         * doc/posix-functions/isprint_l.texi: Renamed from
37635         doc/glibc-functions/isprint_l.texi.
37636         * doc/posix-functions/ispunct_l.texi: Renamed from
37637         doc/glibc-functions/ispunct_l.texi.
37638         * doc/posix-functions/isspace_l.texi: Renamed from
37639         doc/glibc-functions/isspace_l.texi.
37640         * doc/posix-functions/isupper_l.texi: Renamed from
37641         doc/glibc-functions/isupper_l.texi.
37642         * doc/posix-functions/iswalnum_l.texi: Renamed from
37643         doc/glibc-functions/iswalnum_l.texi.
37644         * doc/posix-functions/iswalpha_l.texi: Renamed from
37645         doc/glibc-functions/iswalpha_l.texi.
37646         * doc/posix-functions/iswblank_l.texi: Renamed from
37647         doc/glibc-functions/iswblank_l.texi.
37648         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37649         doc/glibc-functions/iswcntrl_l.texi.
37650         * doc/posix-functions/iswctype_l.texi: Renamed from
37651         doc/glibc-functions/iswctype_l.texi.
37652         * doc/posix-functions/iswdigit_l.texi: Renamed from
37653         doc/glibc-functions/iswdigit_l.texi.
37654         * doc/posix-functions/iswgraph_l.texi: Renamed from
37655         doc/glibc-functions/iswgraph_l.texi.
37656         * doc/posix-functions/iswlower_l.texi: Renamed from
37657         doc/glibc-functions/iswlower_l.texi.
37658         * doc/posix-functions/iswprint_l.texi: Renamed from
37659         doc/glibc-functions/iswprint_l.texi.
37660         * doc/posix-functions/iswpunct_l.texi: Renamed from
37661         doc/glibc-functions/iswpunct_l.texi.
37662         * doc/posix-functions/iswspace_l.texi: Renamed from
37663         doc/glibc-functions/iswspace_l.texi.
37664         * doc/posix-functions/iswupper_l.texi: Renamed from
37665         doc/glibc-functions/iswupper_l.texi.
37666         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37667         doc/glibc-functions/iswxdigit_l.texi.
37668         * doc/posix-functions/isxdigit_l.texi: Renamed from
37669         doc/glibc-functions/isxdigit_l.texi.
37670         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37671         doc/glibc-functions/mbsnrtowcs.texi.
37672         * doc/posix-functions/mkdtemp.texi: Renamed from
37673         doc/glibc-functions/mkdtemp.texi.
37674         * doc/posix-functions/newlocale.texi: Renamed from
37675         doc/glibc-functions/newlocale.texi.
37676         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37677         doc/glibc-functions/nl_langinfo_l.texi.
37678         * doc/posix-functions/open_memstream.texi: Renamed from
37679         doc/glibc-functions/open_memstream.texi.
37680         * doc/posix-functions/opterr.texi: Renamed from
37681         doc/glibc-functions/opterr.texi.
37682         * doc/posix-functions/optind.texi: Renamed from
37683         doc/glibc-functions/optind.texi.
37684         * doc/posix-functions/optopt.texi: Renamed from
37685         doc/glibc-functions/optopt.texi.
37686         * doc/posix-functions/psignal.texi: Renamed from
37687         doc/glibc-functions/psignal.texi.
37688         * doc/posix-functions/scandir.texi: Renamed from
37689         doc/glibc-functions/scandir.texi.
37690         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37691         doc/glibc-functions/sched_get_priority_min.texi.
37692         * doc/posix-functions/signgam.texi: Renamed from
37693         doc/glibc-functions/signgam.texi.
37694         * doc/posix-functions/stpcpy.texi: Renamed from
37695         doc/glibc-functions/stpcpy.texi.
37696         * doc/posix-functions/stpncpy.texi: Renamed from
37697         doc/glibc-functions/stpncpy.texi.
37698         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37699         doc/glibc-functions/strcasecmp_l.texi.
37700         * doc/posix-functions/strcoll_l.texi: Renamed from
37701         doc/glibc-functions/strcoll_l.texi.
37702         * doc/posix-functions/strfmon_l.texi: Renamed from
37703         doc/glibc-functions/strfmon_l.texi.
37704         * doc/posix-functions/strftime_l.texi: Renamed from
37705         doc/glibc-functions/strftime_l.texi.
37706         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37707         doc/glibc-functions/strncasecmp_l.texi.
37708         * doc/posix-functions/strndup.texi: Renamed from
37709         doc/glibc-functions/strndup.texi.
37710         * doc/posix-functions/strnlen.texi: Renamed from
37711         doc/glibc-functions/strnlen.texi.
37712         * doc/posix-functions/strsignal.texi: Renamed from
37713         doc/glibc-functions/strsignal.texi.
37714         * doc/posix-functions/strxfrm_l.texi: Renamed from
37715         doc/glibc-functions/strxfrm_l.texi.
37716         * doc/posix-functions/timer_gettime.texi: Renamed from
37717         doc/glibc-functions/timer_gettime.texi.
37718         * doc/posix-functions/tolower_l.texi: Renamed from
37719         doc/glibc-functions/tolower_l.texi.
37720         * doc/posix-functions/toupper_l.texi: Renamed from
37721         doc/glibc-functions/toupper_l.texi.
37722         * doc/posix-functions/towctrans_l.texi: Renamed from
37723         doc/glibc-functions/towctrans_l.texi.
37724         * doc/posix-functions/towlower_l.texi: Renamed from
37725         doc/glibc-functions/towlower_l.texi.
37726         * doc/posix-functions/towupper_l.texi: Renamed from
37727         doc/glibc-functions/towupper_l.texi.
37728         * doc/posix-functions/uselocale.texi: Renamed from
37729         doc/glibc-functions/uselocale.texi.
37730         * doc/posix-functions/vdprintf.texi: Renamed from
37731         doc/glibc-functions/vdprintf.texi.
37732         * doc/posix-functions/wcpcpy.texi:
37733         Renamed from doc/glibc-functions/wcpcpy.texi.
37734         * doc/posix-functions/wcpncpy.texi: Renamed from
37735         doc/glibc-functions/wcpncpy.texi.
37736         * doc/posix-functions/wcscasecmp.texi: Renamed from
37737         doc/glibc-functions/wcscasecmp.texi.
37738         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37739         doc/glibc-functions/wcscasecmp_l.texi.
37740         * doc/posix-functions/wcscoll_l.texi: Renamed from
37741         doc/glibc-functions/wcscoll_l.texi.
37742         * doc/posix-functions/wcsdup.texi: Renamed from
37743         doc/glibc-functions/wcsdup.texi.
37744         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37745         doc/glibc-functions/wcsncasecmp.texi.
37746         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37747         doc/glibc-functions/wcsncasecmp_l.texi.
37748         * doc/posix-functions/wcsnlen.texi: Renamed from
37749         doc/glibc-functions/wcsnlen.texi.
37750         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37751         doc/glibc-functions/wcsnrtombs.texi.
37752         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37753         doc/glibc-functions/wcsxfrm_l.texi.
37754         * doc/posix-functions/wctrans_l.texi: Renamed from
37755         doc/glibc-functions/wctrans_l.texi.
37756         * doc/posix-functions/wctype_l.texi: Renamed from
37757         doc/glibc-functions/wctype_l.texi.
37758         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37759         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37760         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37761         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37762         these subsections.
37763         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37764         Remove sections.
37765
37766 2008-12-14  Bruno Haible  <bruno@clisp.org>
37767
37768         Update doc for POSIX:2008.
37769         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37770
37771 2008-12-14  Bruno Haible  <bruno@clisp.org>
37772
37773         Update doc for POSIX:2008.
37774         * doc/pastposix-functions/bcmp.texi: Renamed from
37775         doc/posix-functions/bcmp.texi.
37776         * doc/pastposix-functions/bcopy.texi: Renamed from
37777         doc/posix-functions/bcopy.texi.
37778         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37779         doc/posix-functions/bsd_signal.texi.
37780         * doc/pastposix-functions/bzero.texi: Renamed from
37781         doc/posix-functions/bzero.texi.
37782         * doc/pastposix-functions/ecvt.texi: Renamed from
37783         doc/posix-functions/ecvt.texi.
37784         * doc/pastposix-functions/fcvt.texi: Renamed from
37785         doc/posix-functions/fcvt.texi.
37786         * doc/pastposix-functions/ftime.texi: Renamed from
37787         doc/posix-functions/ftime.texi.
37788         * doc/pastposix-functions/gcvt.texi: Renamed from
37789         doc/posix-functions/gcvt.texi.
37790         * doc/pastposix-functions/getcontext.texi: Renamed from
37791         doc/posix-functions/getcontext.texi.
37792         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37793         doc/posix-functions/gethostbyaddr.texi.
37794         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37795         doc/posix-functions/gethostbyname.texi.
37796         * doc/pastposix-functions/getwd.texi: Renamed from
37797         doc/posix-functions/getwd.texi.
37798         * doc/pastposix-functions/h_errno.texi: Renamed from
37799         doc/posix-functions/h_errno.texi.
37800         * doc/pastposix-functions/index.texi: Renamed from
37801         doc/posix-functions/index.texi.
37802         * doc/pastposix-functions/makecontext.texi: Renamed from
37803         doc/posix-functions/makecontext.texi.
37804         * doc/pastposix-functions/mktemp.texi: Renamed from
37805         doc/posix-functions/mktemp.texi.
37806         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37807         doc/posix-functions/pthread_attr_getstackaddr.texi.
37808         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37809         doc/posix-functions/pthread_attr_setstackaddr.texi.
37810         * doc/pastposix-functions/rindex.texi: Renamed from
37811         doc/posix-functions/rindex.texi.
37812         * doc/pastposix-functions/scalb.texi: Renamed from
37813         doc/posix-functions/scalb.texi.
37814         * doc/pastposix-functions/setcontext.texi: Renamed from
37815         doc/posix-functions/setcontext.texi.
37816         * doc/pastposix-functions/swapcontext.texi: Renamed from
37817         doc/posix-functions/swapcontext.texi.
37818         * doc/pastposix-functions/ualarm.texi: Renamed from
37819         doc/posix-functions/ualarm.texi.
37820         * doc/pastposix-functions/usleep.texi: Renamed from
37821         doc/posix-functions/usleep.texi.
37822         * doc/pastposix-functions/vfork.texi: Renamed from
37823         doc/posix-functions/vfork.texi.
37824         * doc/pastposix-functions/wcswcs.texi: Renamed from
37825         doc/posix-functions/wcswcs.texi.
37826         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37827         (Function Substitutes): Update.
37828
37829 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37830
37831         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37832         m4/strerror.m4.
37833
37834 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37835             Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37838
37839 2008-12-13  Bruno Haible  <bruno@clisp.org>
37840
37841         * modules/strtoull (Depends-on): Remove unistd.
37842
37843 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37844
37845         * modules/strtoull (Depends-on): Add stdlib.
37846
37847 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37848
37849         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37850
37851 2008-12-10  Jim Meyering  <meyering@redhat.com>
37852
37853         gl_ASSERT: don't say assertions are disabled when they're not
37854         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37855         "checking whether to enable assertions... no", when they are in
37856         fact enabled.  This is solely a bug in the output of configure.
37857         In spite of saying "no", NDEBUG was not defined in that case.
37858         Also, as noted by Eric Blake, leave assertions enabled upon
37859         --enable-assert=INVALID.
37860
37861 2008-12-10  Bruno Haible  <bruno@clisp.org>
37862
37863         Change MODULES.html to refer to POSIX:2008 where possible.
37864         * MODULES.html.sh (POSIX2008_URL): New variable.
37865         (posix_headers): Remove sys/timeb, ucontext.
37866         (posix2001_headers): New variable.
37867         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37868         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37869         index, makecontext, mktemp, pthread_attr_getstackaddr,
37870         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37871         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37872         (posix2001_functions): New variable.
37873         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37874         otherwise.
37875
37876 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37877
37878         add missing include to parse-duration.c
37879         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37880         * modules/parse-duration (Depends-on): Add xalloc.
37881
37882         fix sed script reading maint.mk
37883         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37884         (syntax-check-rules): Use it.
37885
37886 2008-12-09  Bruno Haible  <bruno@clisp.org>
37887
37888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37889         MacOS X 10.4/PowerPC.
37890         Reported by Simon Josefsson.
37891
37892 2008-12-08  Jim Meyering  <meyering@redhat.com>
37893
37894         work around mingw's lack of some S_IF definitions
37895         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37896         Reported by Simon Josefsson.
37897
37898 2008-12-08  Bruno Haible  <bruno@clisp.org>
37899
37900         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37901         applied to variables. Needed on MacOS X 10.4/PowerPC.
37902         Reported by Simon Josefsson.
37903
37904 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37905         and Eric Blake  <ebb9@byu.net>
37906
37907         assert: honor --enable-assert
37908         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37909         order to honor --enable-assert, rather than treating it as a
37910         synonym for --disable-assert.
37911
37912 2008-12-08  Jim Meyering  <meyering@redhat.com>
37913
37914         * lib/posixtm.c: Remove now-useless declaration of mktime.
37915
37916         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37917
37918 2008-12-07  Bruno Haible  <bruno@clisp.org>
37919
37920         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37921         test_once): Mark functions as static.
37922         * tests/test-tls.c (test_tls): Likewise.
37923
37924 2008-12-07  Bruno Haible  <bruno@clisp.org>
37925
37926         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37927         iconv_register_autodetect.
37928
37929 2008-12-07  Jim Meyering  <meyering@redhat.com>
37930
37931         posixtm.c: avoid a warning
37932         * lib/posixtm.c (posixtime): Don't initialize tm0.
37933         It's no longer needed to placate gcc4's -Wuninitialized,
37934         and the attempt to placate would elicit a new warning.
37935
37936         unicodeio.c: mark unused parameters
37937         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37938         (fallback_failure_callback): Likewise.
37939
37940 2008-12-07  Bruno Haible  <bruno@clisp.org>
37941
37942         * gnulib-tool (func_create_testdir): When building the tests
37943         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37944         Reported by Simon Josefsson.
37945
37946 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37947
37948         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37949
37950 2008-12-06  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37953         Suggested by Eric Blake.
37954
37955 2008-12-06  Bruno Haible  <bruno@clisp.org>
37956
37957         Fix a c-stack test failure on MacOS X.
37958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37959         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37960         handler for SIGBUS as well.
37961         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37962         install a signal handler for SIGBUS as well.
37963         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37964
37965 2008-12-06  Bruno Haible  <bruno@clisp.org>
37966
37967         Advocacy documentation.
37968         * doc/gnulib-intro.texi (Benefits): New section.
37969         * doc/gnulib.texi: Update.
37970
37971 2008-12-06  Bruno Haible  <bruno@clisp.org>
37972
37973         Document the 'manywarnings' module.
37974         * doc/manywarnings.texi: New file.
37975         * doc/gnulib.texi: Include it.
37976
37977 2008-12-05  Eric Blake  <ebb9@byu.net>
37978
37979         tests: silence some gcc warnings
37980         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37981         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37982         type mismatches.
37983
37984 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37985             Bruno Haible  <bruno@clisp.org>
37986
37987         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37988
37989 2008-11-29  Jim Meyering  <meyering@redhat.com>
37990
37991         unicodeio.c: mark unused parameters
37992         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37993         (fallback_failure_callback): Likewise.
37994
37995         fts: fix a thinko
37996         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37997         (set_stat_type): Return S_IF*-valued "type" directly.
37998         Prompted by James Youngman's spotting a related bug.
37999         Confirmed by further testing through find.
38000
38001         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38002         * lib/fts.c (D_TYPE): Define.
38003         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38004         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38005         (s_ifmt_shift_bits): New function.
38006         (set_stat_type): New function.
38007         (fts_build): When not calling fts_stat, call set_stat_type
38008         to propagate dirent.d_type info to fts_read caller.
38009         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38010         fts_statp->st_mode type information may be valid.
38011
38012 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38013
38014         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38015         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38016         <sds@gnu.org>.
38017
38018 2008-11-20  Bruno Haible  <bruno@clisp.org>
38019
38020         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38021         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38022         INCLUDE_NEXT.
38023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38024         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38025         * modules/math (Makefile.am): Substitute
38026         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38028
38029 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38030             Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/stdint.in.h: Define all type macros so that their expansion is
38033         a single typedef'ed token. Fixes a compilation failure in Boost which
38034         does "using ::int8_t;".
38035
38036 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38037
38038         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38039         gl_MANYWARN_ALL_GCC.
38040         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38041         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38042         * modules/manywarnings: New file.
38043         * MODULES.html.sh: Mention manywarnings module.
38044
38045 2008-11-18  Bruno Haible  <bruno@clisp.org>
38046
38047         * doc/gnulib-tool.texi (Unit tests): New section.
38048
38049 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38050
38051         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38052         paths like 'lib/po/foo.po'.
38053
38054 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38055
38056         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38057         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38058
38059 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38060
38061         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38062         parameter works.
38063
38064 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38065
38066         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38067
38068 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38069
38070         * modules/parse-duration-tests: New file.
38071         * tests/test-parse-duration.sh: New file.
38072         * tests/test-parse-duration.c: New file.
38073
38074         New module 'parse-duration'.
38075         * lib/parse-duration.h: New file.
38076         * lib/parse-duration.c: New file.
38077         * modules/parse-duration: New file.
38078
38079 2008-11-17  Bruno Haible  <bruno@clisp.org>
38080
38081         * tests/test-select-out.sh: Comment out the first pipe test.
38082         Reported by Simon Josefsson.
38083
38084 2008-11-17  Bruno Haible  <bruno@clisp.org>
38085
38086         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38088         gl_HOSTENT.
38089
38090 2008-11-17  Bruno Haible  <bruno@clisp.org>
38091
38092         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38093         -lnetwork and -lnet. Needed for Haiku and BeOS.
38094
38095 2008-11-16  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38098
38099 2008-11-16  Bruno Haible  <bruno@clisp.org>
38100
38101         Avoid test failure on Haiku.
38102         * tests/test-fsync.c: Include <errno.h>.
38103         (main): Don't require that fsync (0) fails.
38104
38105 2008-11-15  Bruno Haible  <bruno@clisp.org>
38106
38107         New module 'hostent'.
38108         * modules/hostent: New file.
38109         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38110
38111 2008-11-15  Bruno Haible  <bruno@clisp.org>
38112
38113         New module 'servent'.
38114         * modules/servent: New file.
38115         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38116
38117 2008-11-15  Bruno Haible  <bruno@clisp.org>
38118
38119         Avoid generating same test program with two different rules.
38120         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38121         test-frexp to test-frexp-nolibm.
38122         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38123         test-frexpl to test-frexpl-nolibm.
38124
38125 2008-11-15  Bruno Haible  <bruno@clisp.org>
38126
38127         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38128         $(FREXPL_LIBM).
38129
38130 2008-11-15  Bruno Haible  <bruno@clisp.org>
38131
38132         * lib/netdb.in.h: Activate the definitions also when the system's
38133         <netdb.h> has 'struct addrinfo'.
38134         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38135         EAI_OVERFLOW or AI_NUMERICSERV.
38136         * doc/posix-headers/netdb.texi: Document the problem.
38137
38138 2008-11-15  Bruno Haible  <bruno@clisp.org>
38139
38140         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38141
38142         Make the 'sched' module work on platforms where <sched.h> exists but
38143         is incomplete (such as Haiku).
38144         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38145         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38146         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38147         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38148         HAVE_STRUCT_SCHED_PARAM.
38149         * modules/sched (Depends-on): Add include_next.
38150         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38151         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38152         * doc/posix-headers/sched.texi: Document the issue.
38153
38154 2008-11-13  Jim Meyering  <meyering@redhat.com>
38155
38156         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38157         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38158         test would fail due to the difference in the Report bugs to ...
38159         line.  The expected address is empty, "<>", while the actual
38160         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38161
38162 2008-11-12  Bruno Haible  <bruno@clisp.org>
38163
38164         lstat: don't compile lstat.c on systems lacking lstat
38165         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38166         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38167         Reported by Daniel P. Berrange via Jim Meyering.
38168
38169 2008-11-12  Jim Meyering  <meyering@redhat.com>
38170
38171         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38172
38173 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38174
38175         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38176         instead.
38177
38178 2008-11-12  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/unicodeio.c: Include unistr.h.
38181         (utf8_wctomb): Remove function.
38182         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38183
38184 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38185
38186         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38187         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38188         <bruno@clisp.org>.
38189         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38190
38191 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38192
38193         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38194         * doc/gnulib.texi: Add section for warnings.
38195
38196 2008-11-11  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/sockets.h: Add a comment.
38199
38200 2008-11-11  Karl Berry  <karl@gnu.org>
38201
38202         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38203
38204 2008-11-11  Eric Blake  <ebb9@byu.net>
38205
38206         fdl.texi: avoid git symlinks
38207         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38208
38209 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38210
38211         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38212
38213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38214
38215         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38216         (gl_WARN_ADD): Substitute $2 if literal.
38217
38218 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38219
38220         * m4/warning.m4: Remove.
38221
38222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38223
38224         * m4/warnings.m4: Almost complete rewrite. :-)
38225
38226 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38227
38228         * modules/warnings: New module.
38229         * m4/warnings.m4: New file.
38230         * MODULES.html.sh: Mention warnings module.
38231         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38232         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38233
38234 2008-11-10  Eric Blake  <ebb9@byu.net>
38235
38236         fdl.texi: make a symlink to the latest version
38237         * doc/standards.texi: Revert today's earlier change.
38238         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38239         * doc/fdl.texi: ...and replace this with a symlink to the newer
38240         fdl-1.3.texi.
38241
38242 2008-11-10  Bruno Haible  <bruno@clisp.org>
38243
38244         * tests/test-select-fd.c (main): Accept the result file name as fourth
38245         argument.
38246         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38247         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38248
38249 2008-11-10  Bruno Haible  <bruno@clisp.org>
38250
38251         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38252         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38253         as autoconf-substituted macros.
38254         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38256         gl_NETDB_H_DEFAULTS. Set these variables.
38257         * modules/netdb (Makefile.am): Substitute these variables.
38258
38259 2008-11-10  Eric Blake  <ebb9@byu.net>
38260
38261         standards.texi: include correct file for FDL 1.3
38262         * doc/standards.texi (GNU Free Documentation License): Change
38263         include file to pull in FDL 1.3, not 1.2.
38264
38265         fdl.texi: revert accidental change to license
38266         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38267
38268 2008-11-10  Bruno Haible  <bruno@clisp.org>
38269
38270         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38271         cross-compiling guesses also when the native compile gives no result.
38272
38273 2008-11-10  Bruno Haible  <bruno@clisp.org>
38274
38275         * lib/spawni.c (__spawni): Force variable into the stack.
38276
38277 2008-11-10  Bruno Haible  <bruno@clisp.org>
38278
38279         Add support for Haiku.
38280         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38281         glibc and BeOS, but also on Haiku.
38282         * lib/fpurge.c (fpurge): Likewise.
38283         * lib/freadable.c (freadable): Likewise.
38284         * lib/freadahead.c (freadahead): Likewise.
38285         * lib/freading.c (freading): Likewise.
38286         * lib/freadptr.c (freadptr): Likewise.
38287         * lib/freadseek.c (freadptrinc): Likewise.
38288         * lib/fseeko.c (rpl_fseeko): Likewise.
38289         * lib/fseterr.c (fseterr): Likewise.
38290         * lib/fwritable.c (fwritable): Likewise.
38291         * lib/fwriting.c (fwriting): Likewise.
38292         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38293
38294 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38295
38296         * lib/config.charset: Treat Haiku like BeOS.
38297
38298 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38299
38300         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38301         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38302
38303 2008-11-08  Bruno Haible  <bruno@clisp.org>
38304
38305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38306         AC_CACHE_CHECK.
38307
38308 2008-11-08  Bruno Haible  <bruno@clisp.org>
38309
38310         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38311
38312 2008-11-08  Bruno Haible  <bruno@clisp.org>
38313
38314         * tests/test-select-fd.c: New file.
38315         * tests/test-select-in.sh: New file.
38316         * tests/test-select-out.sh: New file.
38317         * tests/test-select-stdin.c: New file.
38318         * modules/select-tests (Files): Add the new files.
38319         (Depends-on): Add gettimeofday.
38320         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38321         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38322         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38323
38324 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38325             Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38328
38329 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38330
38331         * build-aux/pmccabe2html: Added support for C++ source files.
38332
38333 2008-11-05  Ben Pfaff  <blp@gnu.org>
38334
38335         Fix lib/close.c build on Windows.
38336         * modules/close (Files): Add lib/w32sock.h.
38337
38338 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38339
38340         Accept Bison's NEWS format.
38341         * build-aux/announce-gen (print_news_deltas): Tweak
38342         $re_prefix.
38343
38344 2008-11-04  Bruno Haible  <bruno@clisp.org>
38345
38346         * modules/random_r (Maintainer): Add glibc.
38347
38348 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38349
38350         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38351         by karl@freefriends.org (Karl Berry).
38352         * doc/alloca.texi: Likewise.
38353         * doc/c-ctype.texi: Likewise.
38354         * doc/c-strcase.texi: Likewise.
38355         * doc/c-strcaseeq.texi: Likewise.
38356         * doc/c-strcasestr.texi: Likewise.
38357         * doc/c-strstr.texi: Likewise.
38358         * doc/c-strtod.texi: Likewise.
38359         * doc/c-strtold.texi: Likewise.
38360         * doc/ctime.texi: Likewise.
38361         * doc/error.texi: Likewise.
38362         * doc/fdl.texi: Likewise.
38363         * doc/gcd.texi: Likewise.
38364         * doc/getdate.texi: Likewise.
38365         * doc/gnulib-intro.texi: Likewise.
38366         * doc/gnulib-tool.texi: Likewise.
38367         * doc/gnulib.texi: Likewise.
38368         * doc/inet_ntoa.texi: Likewise.
38369         * doc/maintain.texi: Likewise.
38370         * doc/make-stds.texi: Likewise.
38371         * doc/quote.texi: Likewise.
38372         * doc/regexprops-generic.texi: Likewise.
38373         * doc/standards.texi: Likewise.
38374         * doc/verify.texi: Likewise.
38375         * doc/visibility.texi: Likewise.
38376         * doc/gnulib.texi (GNU Free Documentation License): Include
38377         fdl-1.3.texi instead of fdl.texi.
38378
38379 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38380
38381         * doc/fdl-1.3.texi: New file, from
38382         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38383         * modules/fdl-1.3: Add.
38384         * MODULES.html.sh: Add fdl-1.3.
38385
38386 2008-11-03  Bruno Haible  <bruno@clisp.org>
38387
38388         Make determination of absolute name of header file work with AIX xlc.
38389         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38390         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38391         preprocessing.
38392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38393         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38394
38395 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38396
38397         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38398         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38399         <ludo@gnu.org>.
38400
38401 2008-11-02  Bruno Haible  <bruno@clisp.org>
38402
38403         Mark 'strpbrk' obsolete.
38404         * modules/strpbrk (Status, Notice): New sections.
38405         * modules/strtok_r (Depends-on): Add strpbrk.
38406
38407 2008-11-02  Bruno Haible  <bruno@clisp.org>
38408
38409         Mark 'strdup' obsolete.
38410         * modules/strdup (Status, Notice): New sections.
38411         * modules/findprog (Depends-on): Add strdup.
38412         * modules/getaddrinfo (Depends-on): Likewise.
38413         * modules/localename (Depends-on): Likewise.
38414         * modules/relocatable-lib (Depends-on): Likewise.
38415         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38416         * modules/relocatable-prog (Depends-on): Likewise.
38417         * modules/trim (Depends-on): Likewise.
38418         * modules/unictype/gen-ctype (Depends-on): Likewise.
38419         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38420
38421 2008-11-02  Bruno Haible  <bruno@clisp.org>
38422
38423         Mark 'strcspn' obsolete.
38424         * modules/strcspn (Status, Notice): New sections.
38425
38426 2008-11-02  Bruno Haible  <bruno@clisp.org>
38427
38428         Mark 'rmdir' obsolete.
38429         * modules/rmdir (Status, Notice): New sections.
38430         * modules/clean-temp (Depends-on): Add rmdir.
38431         * modules/openat (Depends-on): Likewise.
38432
38433 2008-11-02  Bruno Haible  <bruno@clisp.org>
38434
38435         Mark 'raise' obsolete.
38436         * modules/raise (Status, Notice): New sections.
38437         (Include): Specify <signal.h>.
38438         * modules/stdio (Depends-on): Add raise.
38439         * modules/write (Depends-on): Likewise.
38440
38441 2008-11-02  Bruno Haible  <bruno@clisp.org>
38442
38443         Mark 'memset' obsolete.
38444         * modules/memset (Status, Notice): New sections.
38445
38446 2008-11-02  Bruno Haible  <bruno@clisp.org>
38447
38448         Mark 'memmove' obsolete.
38449         * modules/memmove (Status, Notice): New sections.
38450         * modules/argp (Depends-on): Add memmove.
38451         * modules/argz (Depends-on): Likewise.
38452         * modules/canonicalize (Depends-on): Likewise.
38453         * modules/canonicalize-lgpl (Depends-on): Likewise.
38454         * modules/fts (Depends-on): Likewise.
38455         * modules/getcwd (Depends-on): Likewise.
38456         * modules/human (Depends-on): Likewise.
38457         * modules/regex (Depends-on): Likewise.
38458         * modules/striconveh (Depends-on): Likewise.
38459         * modules/trim (Depends-on): Likewise.
38460         * modules/unistr/u8-move (Depends-on): Likewise.
38461         * modules/unistr/u16-move (Depends-on): Likewise.
38462         * modules/unistr/u32-move (Depends-on): Likewise.
38463
38464 2008-11-02  Bruno Haible  <bruno@clisp.org>
38465
38466         Mark 'memcpy' obsolete.
38467         * modules/memcpy (Status, Notice): New sections.
38468
38469 2008-11-02  Bruno Haible  <bruno@clisp.org>
38470
38471         Mark 'memcmp' obsolete.
38472         * modules/memcmp (Status, Notice): New sections.
38473         * modules/argmatch (Depends-on): Add memchr.
38474         * modules/backupfile (Depends-on): Likewise.
38475         * modules/c-strcasestr (Depends-on): Likewise.
38476         * modules/crypto/des (Depends-on): Likewise.
38477         * modules/csharpcomp (Depends-on): Likewise.
38478         * modules/fnmatch (Depends-on): Likewise.
38479         * modules/git-merge-changelog (Depends-on): Likewise.
38480         * modules/isnand (Depends-on): Likewise.
38481         * modules/isnand-nolibm (Depends-on): Likewise.
38482         * modules/isnanf (Depends-on): Likewise.
38483         * modules/isnanf-nolibm (Depends-on): Likewise.
38484         * modules/isnanl (Depends-on): Likewise.
38485         * modules/isnanl-nolibm (Depends-on): Likewise.
38486         * modules/mbchar (Depends-on): Likewise.
38487         * modules/memcoll (Depends-on): Likewise.
38488         * modules/quotearg (Depends-on): Likewise.
38489         * modules/regex (Depends-on): Likewise.
38490         * modules/relocatable-prog (Depends-on): Likewise.
38491         * modules/same (Depends-on): Likewise.
38492         * modules/signbit (Depends-on): Likewise.
38493         * modules/strcasestr-simple (Depends-on): Likewise.
38494         * modules/unictype/gen-ctype (Depends-on): Likewise.
38495         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38496         * modules/uniname/uniname (Depends-on): Likewise.
38497         * modules/unistr/u8-cmp (Depends-on): Likewise.
38498
38499 2008-11-02  Bruno Haible  <bruno@clisp.org>
38500
38501         Mark 'memchr' obsolete.
38502         * modules/memchr (Status, Notice): New sections.
38503         * modules/argp (Depends-on): Add memchr.
38504         * modules/base64 (Depends-on): Likewise.
38505         * modules/c-strcasestr (Depends-on): Likewise.
38506         * modules/chdir-long (Depends-on): Likewise.
38507         * modules/fnmatch (Depends-on): Likewise.
38508         * modules/getsubopt (Depends-on): Likewise.
38509         * modules/git-merge-changelog (Depends-on): Likewise.
38510         * modules/glob (Depends-on): Likewise.
38511         * modules/strcasestr-simple (Depends-on): Likewise.
38512         * modules/strnlen (Depends-on): Likewise.
38513
38514 2008-11-02  Bruno Haible  <bruno@clisp.org>
38515
38516         Mark 'atexit' obsolete.
38517         * modules/atexit (Status, Notice): New sections.
38518         * modules/chdir-long (Depends-on): Add atexit.
38519         * modules/wait-process (Depends-on): Likewise.
38520
38521 2008-11-02  Bruno Haible  <bruno@clisp.org>
38522
38523         * gnulib-tool: New option --with-obsolete.
38524         (func_usage): Document it.
38525         (func_modules_transitive_closure): Drop obsolete dependencies if
38526         incobsolete is not true.
38527         (func_import): Read and save the incobsolete variable to the cache.
38528
38529 2008-11-02  Bruno Haible  <bruno@clisp.org>
38530
38531         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38532         * gnulib-tool: New option --extract-status.
38533         (func_usage): Document it.
38534         (sed_extract_prog): Recognize it.
38535         (func_get_status): New function.
38536
38537 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38538
38539         * modules/sockets (License): Change from LGPL to LGPLv2+.
38540
38541 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38542
38543         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38544
38545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38546
38547         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38548         Mention times and sys_times.
38549         * modules/sys_times, modules/sys_times-tests: New modules.
38550         * modules/times, modules/times-tests: Likewise
38551         * m4/sys_times_h.m4: New file.
38552         * lib/sys_times.in.h: Likewise
38553         * lib/times.c: Likewise.
38554         * tests/test-sys_times.c: Likewise.
38555         * tests/test-times.c: Likewise.
38556         * doc/posix-headers/sys_times.texi: Update.
38557         * doc/posix-functions/times.texi: Update.
38558
38559 2008-10-28  Jim Meyering  <meyering@redhat.com>
38560
38561         * modules/tempname (Depends-on): Add lstat.
38562
38563         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38564
38565 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38566
38567         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38568         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38569         using idiom used elsewhere in gnulib.
38570
38571 2008-10-27  Jim Meyering  <meyering@redhat.com>
38572
38573         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38574
38575 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38576
38577         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38578         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38579         programs.
38580         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38581
38582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38583
38584         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38585
38586 2008-10-27  Bruno Haible  <bruno@clisp.org>
38587
38588         * tests/test-lstat.c: Include <stdio.h>.
38589
38590 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38591
38592         * modules/lstat-tests: New module.
38593         * tests/test-lstat.c: New file.
38594
38595 2008-10-26  Jim Meyering  <meyering@redhat.com>
38596
38597         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38598
38599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38600             Bruno Haible  <bruno@clisp.org>
38601
38602         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38603         * modules/configmake (Include): Add a note that the include must come
38604         after all system headers.
38605         * lib/javaversion.c: Include configmake.h after all other includes.
38606
38607 2008-10-26  Bruno Haible  <bruno@clisp.org>
38608
38609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38610         HAVE_STRUCT_RANDOM_DATA to 1.
38611         (gl_STDLIB_H): Simplify.
38612
38613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38614
38615         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38616         substitute HAVE_STRUCT_RANDOM_DATA.
38617         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38618         random_data.
38619         * modules/stdlib (Makefile.am): Substitute
38620         HAVE_STRUCT_RANDOM_DATA.
38621
38622 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38623
38624         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38625         * doc/gnulib-intro.texi (Copyright): Likewise.
38626
38627 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38628
38629         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38630         findings.
38631
38632 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38633             Bruno Haible  <bruno@clisp.org>
38634
38635         * lib/unistd.in.h: Include <winsock2.h>.
38636         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38637         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38638         Provide dummy declarations.
38639         (gethostname): Override.
38640         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38642         gl_PREREQ_SYS_H_WINSOCK2.
38643         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38644         * doc/posix-functions/gethostname.texi: More details.
38645
38646 2008-10-25  Bruno Haible  <bruno@clisp.org>
38647
38648         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38649         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38650         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38651
38652         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38653         here ...
38654         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38655         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38656         gl_UNISTD_H_DEFAULTS.
38657
38658 2008-10-25  Eric Blake  <ebb9@byu.net>
38659
38660         signbit: avoid spurious compiler failure
38661         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38662         declarations inside function.
38663
38664 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38665             Bruno Haible  <bruno@clisp.org>
38666
38667         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38668         * modules/random_r (Depends-on): Add stdint.
38669
38670 2008-10-24  Bruno Haible  <bruno@clisp.org>
38671
38672         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38673         Eggert.
38674         * modules/strerror (License): Likewise.
38675
38676 2008-10-24  Jim Meyering  <meyering@redhat.com>
38677
38678         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38679         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38680
38681 2008-10-24  Eric Blake  <ebb9@byu.net>
38682
38683         getgroups: fix compilation when getgroups is available
38684         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38685         but with <config.h> override of getgroups disabled.
38686
38687 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38688
38689         * doc/gnulib.texi (Header files): Add note about C++ problems.
38690         Explained by Bruno Haible <bruno@clisp.org>.
38691
38692 2008-10-23  Bruno Haible  <bruno@clisp.org>
38693
38694         Define a dummy SA_NODEFER macro on Interix.
38695         * lib/signal.in.h (SA_NODEFER): Define fallback.
38696         Reported by Aleksey Cheusov <cheusov@tut.by> via
38697         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38698
38699 2008-10-23  Bruno Haible  <bruno@clisp.org>
38700
38701         * modules/freadahead (License): Change to LGPLv2+.
38702         Suggested by Simon Josefsson.
38703
38704 2008-10-23  Jim Meyering  <meyering@redhat.com>
38705
38706         random_r: new module
38707         * modules/random_r: New file.
38708         * m4/random_r.m4: New file.
38709         * lib/random_r.c: New file, from glibc.
38710         * modules/random_r-tests: New file.
38711         * tests/test-random_r.c: New file.
38712         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38713          Declare.
38714         (RAND_MAX): Define.
38715         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38716         * modules/stdlib: Substitute them, too.
38717         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38718         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38719         * doc/glibc-functions/random_r.texi: Likewise.
38720         * doc/glibc-functions/setstate_r.texi: Likewise.
38721         * doc/glibc-functions/srandom_r.texi: Likewise.
38722         * config/srclist.txt: Mention it.
38723
38724 2008-10-23  David Lutterkort  <lutter@redhat.com>
38725
38726         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38727         link requirement
38728
38729 2008-10-23  Jim Meyering  <meyering@redhat.com>
38730
38731         selinux-h: mark parameters of stub functions as intentionally unused
38732         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38733         * lib/se-context.in.h: Likewise.
38734
38735 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38736
38737         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38738
38739 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38740
38741         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38742
38743 2008-10-22  Eric Blake  <ebb9@byu.net>
38744
38745         glthread/thread: avoid compiler warning
38746         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38747         Add unreachable abort to silence compiler.
38748
38749 2008-10-22  Eric Blake  <ebb9@byu.net>
38750
38751         netdb: also supply struct addrinfo for cygwin 1.5.x
38752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38753         older cygwin.
38754         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38755         cygwin.
38756         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38757
38758 2008-10-22  Bruno Haible  <bruno@clisp.org>
38759
38760         * users.txt: Update entry about pspp.
38761
38762 2008-10-21  Bruno Haible  <bruno@clisp.org>
38763
38764         Simplification.
38765         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38766         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38767
38768         Simplification.
38769         * lib/ioctl.c (ioctl): Don't undefine.
38770         * lib/socket.c (socket): Don't undefine.
38771
38772         Remove unused module indicator macros.
38773         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38774         GNULIB_$1 as a C macro.
38775
38776         * doc/posix-functions/close.texi: Undo last change.
38777         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38778         Windows platforms.
38779
38780 2008-10-21  Bruno Haible  <bruno@clisp.org>
38781
38782         Add gethostname() declaration to <unistd.h>.
38783         * lib/unistd.in.h (gethostname): New declaration.
38784         * lib/gethostname.c: Include <unistd.h>.
38785         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38786         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38788         and HAVE_GETHOSTNAME.
38789         * modules/gethostname (Depends-on): Add unistd.
38790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38791         (Include): Specify <unistd.h>.
38792         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38793         HAVE_GETHOSTNAME.
38794         * tests/test-gethostname.c: Include <unistd.h> first.
38795
38796 2008-10-21  Bruno Haible  <bruno@clisp.org>
38797
38798         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38799         * modules/select-tests (Depends-on): Likewise.
38800         Reported by Simon Josefsson.
38801
38802 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38803
38804         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38805         * lib/accept.c: New file, based on winsock.c.
38806         * lib/bind.c: New file, based on winsock.c.
38807         * lib/connect.c: New file, based on winsock.c.
38808         * lib/getpeername.c: New file, based on winsock.c.
38809         * lib/getsockname.c: New file, based on winsock.c.
38810         * lib/getsockopt.c: New file, based on winsock.c.
38811         * lib/ioctl.c: New file, based on winsock.c.
38812         * lib/listen.c: New file, based on winsock.c.
38813         * lib/recv.c: New file, based on winsock.c.
38814         * lib/recvfrom.c: New file, based on winsock.c.
38815         * lib/send.c: New file, based on winsock.c.
38816         * lib/sendto.c: New file, based on winsock.c.
38817         * lib/setsockopt.c: New file, based on winsock.c.
38818         * lib/shutdown.c: New file, based on winsock.c.
38819         * lib/socket.c: New file, based on winsock.c.
38820         * lib/w32sock.h: New file, based on winsock.c.
38821         * lib/winsock.c: Remove file.
38822         * modules/accept: Likewise.
38823         * modules/bind: Likewise.
38824         * modules/connect: Likewise.
38825         * modules/getpeername: Likewise.
38826         * modules/getsockname: Likewise.
38827         * modules/getsockopt: Likewise.
38828         * modules/ioctl: Likewise.
38829         * modules/listen: Likewise.
38830         * modules/recv: Likewise.
38831         * modules/recvfrom: Likewise.
38832         * modules/send: Likewise.
38833         * modules/sendto: Likewise.
38834         * modules/setsockopt: Likewise.
38835         * modules/shutdown: Likewise.
38836         * modules/socket: Use socket.c instead of winsock.c.
38837         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38838         * doc/posix-functions/accept.texi: Doc fix.
38839         * doc/posix-functions/bind.texi: Doc fix.
38840         * doc/posix-functions/close.texi: Doc fix.
38841         * doc/posix-functions/connect.texi: Doc fix.
38842         * doc/posix-functions/getpeername.texi: Doc fix.
38843         * doc/posix-functions/getsockname.texi: Doc fix.
38844         * doc/posix-functions/getsockopt.texi: Doc fix.
38845         * doc/posix-functions/ioctl.texi: Doc fix.
38846         * doc/posix-functions/listen.texi: Doc fix.
38847         * doc/posix-functions/recv.texi: Doc fix.
38848         * doc/posix-functions/recvfrom.texi: Doc fix.
38849         * doc/posix-functions/send.texi: Doc fix.
38850         * doc/posix-functions/sendto.texi: Doc fix.
38851         * doc/posix-functions/setsockopt.texi: Doc fix.
38852         * doc/posix-functions/shutdown.texi: Doc fix.
38853         * doc/posix-functions/socket.texi: Doc fix.
38854
38855 2008-10-20  Bruno Haible  <bruno@clisp.org>
38856
38857         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38858         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38859         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38860         as an alias for SIGABRT.
38861         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38862         (sigaction): Map it to SIGABRT.
38863         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38864
38865 2008-10-20  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/fts.c: Don't include lstat.h.
38868         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38869
38870         Move the lstat() declaration to <sys/stat.h>.
38871         * lib/lstat.h: Remove file.
38872         * lib/sys_stat.in.h: Add special invocation convention.
38873         (lstat): New declaration.
38874         * lib/lstat.c (orig_lstat): New function.
38875         (rpl_lstat): Use orig_lstat instead of lstat.
38876         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38877         AC_C_INLINE. Set REPLACE_LSTAT.
38878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38879         and REPLACE_LSTAT.
38880         * modules/lstat (Files): Remove lib/lstat.h.
38881         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38882         (Include): Specify <sys/stat.h> instead of lstat.h.
38883         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38884         REPLACE_LSTAT.
38885         * NEWS: Mention the change.
38886
38887 2008-10-20  Bruno Haible  <bruno@clisp.org>
38888
38889         * modules/posix_spawn-tests: New file.
38890         * tests/test-posix_spawn3.c: New file.
38891
38892 2008-10-20  Bruno Haible  <bruno@clisp.org>
38893
38894         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38895         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38896         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38897         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38898         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38899
38900 2008-10-20  Bruno Haible  <bruno@clisp.org>
38901
38902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38903         of posix_spawn on AIX 5.3.
38904
38905 2008-10-20  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38908
38909 2008-10-20  Bruno Haible  <bruno@clisp.org>
38910
38911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38912         of AC_LANG_PROGRAM.
38913
38914 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38915
38916         * lib/netdb.in.h: Don't define GNU specific constants until they
38917         are supported or needed.  Reported by Bruno Haible
38918         <bruno@clisp.org>.
38919
38920 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38921
38922         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38923
38924 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38925
38926         * lib/getaddrinfo.h: Remove file.
38927         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38928         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38929         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38930         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38931         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38932         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38933         * tests/test-getaddrinfo.c: Likewise.
38934         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38935         * NEWS: Mention change.
38936
38937 2008-10-19  Bruno Haible  <bruno@clisp.org>
38938
38939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38940
38941 2008-10-19  Bruno Haible  <bruno@clisp.org>
38942
38943         * lib/wait-process.c: Include simply <sys/wait.h>.
38944         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38945         WIFSTOPPED): Remove fallback definitions.
38946         * modules/wait-process (Depends-on): Add sys_wait.
38947
38948         New module 'sys_wait'.
38949         * modules/sys_wait: New file.
38950         * lib/sys_wait.in.h: New file, partially copied from
38951         lib/wait-process.c.
38952         * m4/sys_wait_h.m4: New file.
38953         * doc/posix-headers/sys_wait.texi: Mention the new module.
38954
38955 2008-10-19  Bruno Haible  <bruno@clisp.org>
38956
38957         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38958
38959 2008-10-19  Bruno Haible  <bruno@clisp.org>
38960
38961         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38962         * lib/wait-process.c (WAIT_T): Remove type.
38963         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38964         (wait_subprocess): Update.
38965
38966 2008-10-19  Bruno Haible  <bruno@clisp.org>
38967
38968         New module 'atoll'.
38969         * modules/atoll: New file.
38970         * lib/stdlib.in.h (atoll): New declaration.
38971         * lib/atoll.c: New file, from glibc with modifications.
38972         * m4/atoll.m4: New file.
38973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38974         HAVE_ATOLL.
38975         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38976         * doc/posix-functions/atoll.texi: Mention the new module.
38977
38978 2008-10-19  Bruno Haible  <bruno@clisp.org>
38979
38980         Add strtoull() declaration to <stdlib.h>.
38981         * lib/stdlib.in.h (strtoull): New declaration.
38982         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38983         Set HAVE_STRTOULL.
38984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38985         HAVE_STRTOULL.
38986         * modules/strtoull (Depends-on): Add stdlib.
38987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38988         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38989         HAVE_STRTOULL.
38990
38991 2008-10-19  Bruno Haible  <bruno@clisp.org>
38992
38993         Add strtoll() declaration to <stdlib.h>.
38994         * lib/stdlib.in.h (strtoll): New declaration.
38995         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38996         Set HAVE_STRTOLL.
38997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38998         HAVE_STRTOLL.
38999         * modules/strtoll (Depends-on): Add stdlib.
39000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39001         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39002
39003 2008-10-19  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/bcopy (Depends-on): Add strings.
39006         (Include): Specify <strings.h>.
39007
39008 2008-10-19  Bruno Haible  <bruno@clisp.org>
39009
39010         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39011
39012 2008-10-19  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39015         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39016         mingw.
39017
39018 2008-10-19  Bruno Haible  <bruno@clisp.org>
39019
39020         * lib/atanl.c: Don't include isnanl.h.
39021         * lib/cosl.c: Likewise.
39022         * lib/ldexpl.c: Likewise.
39023         * lib/logl.c: Likewise.
39024         * lib/sinl.c: Likewise.
39025         * lib/sqrtl.c: Likewise.
39026         * lib/tanl.c: Likewise.
39027
39028         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39029         * lib/isnanf.h: Remove file.
39030         * lib/isnand.h: Remove file.
39031         * lib/isnanl.h: Remove file.
39032         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39033         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39034         macros.
39035         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39036         HAVE_ISNANF, don't define it as a C macro.
39037         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39038         HAVE_ISNAND, don't define it as a C macro.
39039         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39040         HAVE_ISNANL, don't define it as a C macro.
39041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39042         HAVE_ISNAN[FDL].
39043         * modules/isnanf (Files): Remove lib/isnanf.h.
39044         (Depends-on): Add math.
39045         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39046         (Include): Specify <math.h> instead of isnanf.h.
39047         * modules/isnand (Files): Remove lib/isnand.h.
39048         (Depends-on): Add math.
39049         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39050         (Include): Specify <math.h> instead of isnand.h.
39051         * modules/isnanl (Files): Remove lib/isnanl.h.
39052         (Depends-on): Add math.
39053         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39054         (Include): Specify <math.h> instead of isnanl.h.
39055         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39056         HAVE_ISNAN[FDL].
39057         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39058         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39059         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39060         * NEWS: Mention the change.
39061
39062 2008-10-18  Bruno Haible  <bruno@clisp.org>
39063
39064         Add getusershell(), setusershell(), endusershell() declarations to
39065         <unistd.h>.
39066         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39067         declarations.
39068         * lib/getusershell.c: Include unistd.h.
39069         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39070         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39071         HAVE_GETUSERSHELL.
39072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39073         and HAVE_GETUSERSHELL.
39074         * modules/getusershell (Depends-on): Add unistd, extensions.
39075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39076         (Include): Specify <unistd.h>.
39077         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39078         HAVE_GETUSERSHELL.
39079
39080 2008-10-18  Bruno Haible  <bruno@clisp.org>
39081
39082         Add a getloadavg() declaration to <stdlib.h>.
39083         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39084         getloadavg declaration.
39085         (getloadavg): New declaration.
39086         * lib/getloadavg.c: Include <stdlib.h> first.
39087         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39088         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39089         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39091         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39092         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39094         (Include): Specify <stdlib.h>.
39095         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39096         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39097
39098 2008-10-18  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/dirchownmod.c: Don't include lchmod.h.
39101
39102         Move the lchmod() declaration to <sys/stat.h>.
39103         * lib/lchmod.h: Remove file.
39104         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39105         (lchmod): New declaration, moved here from lib/lchown.h.
39106         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39107         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39109         and HAVE_LCHMOD.
39110         * modules/lchmod (Files): Remove lib/lchmod.h.
39111         (Depends-on): Add sys_stat, extensions.
39112         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39113         (Include): Specify <sys/stat.h> instead of lchmod.h.
39114         * modules/sys_stat (Depends-on): Add link-warning.
39115         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39116         definition of GL_LINK_WARNING.
39117         * NEWS: Mention the change.
39118
39119 2008-10-18  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/fchdir.c: Don't include dirfd.h.
39122         * lib/fts.c: Likewise.
39123         * lib/getcwd.c: Likewise.
39124         * lib/glob.c: Likewise.
39125
39126         Move the dirfd() declaration to <dirent.h>.
39127         * lib/dirfd.h: Remove file.
39128         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39129         (dirfd): New declaration.
39130         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39132         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39133         HAVE_DECL_DIRFD.
39134         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39135         HAVE_DECL_DIRFD.
39136         * modules/dirfd (Files): Remove lib/dirfd.h.
39137         (Depends-on): Add dirent, extensions.
39138         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39139         (Include): Specify <dirent.h> instead of dirfd.h.
39140         * modules/dirent (Depends-on): Add link-warning.
39141         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39142         definition of GL_LINK_WARNING.
39143         * NEWS: Mention the change.
39144
39145 2008-10-18  Bruno Haible  <bruno@clisp.org>
39146
39147         Move the euidaccess() declaration to <unistd.h>.
39148         * lib/euidaccess.h: Remove file.
39149         * lib/unistd.in.h (euidaccess): New declaration.
39150         * lib/euidaccess.c: Don't include euidaccess.h.
39151         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39152         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39154         and HAVE_EUIDACCESS.
39155         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39156         (Depends-on): Add unistd.
39157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39158         (Include): Specify <unistd.h> instead of euidaccess.h.
39159         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39160         HAVE_EUIDACCESS.
39161         * NEWS: Mention the change.
39162
39163 2008-10-18  Bruno Haible  <bruno@clisp.org>
39164
39165         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39166
39167         Move the getdomainname() declaration to <unistd.h>.
39168         * lib/getdomainname.h: Remove file.
39169         * lib/unistd.in.h (getdomainname): New declaration.
39170         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39171         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39172         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39173         HAVE_GETDOMAINNAME.
39174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39175         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39176         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39177         (Depends-on): Add unistd, extensions.
39178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39179         (Includes): Specify <unistd.h> instead of getdomainname.h.
39180         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39181         HAVE_GETDOMAINNAME.
39182         * NEWS: Mention the change.
39183
39184 2008-10-18  Bruno Haible  <bruno@clisp.org>
39185
39186         * modules/dirent: New file.
39187         * m4/dirent_h.m4: New file.
39188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39189         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39190         * modules/fchdir (Files): Remove lib/dirent.in.h.
39191         (Depends-on): Add dirent.
39192         (Makefile.am): Move rules to modules/dirent.
39193         * doc/posix-headers/dirent.texi: Mention the new module.
39194
39195 2008-10-18  Bruno Haible  <bruno@clisp.org>
39196
39197         Avoid -Wunused-parameter warnings in public gnulib header files.
39198         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39199         macro.
39200         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39201
39202 2008-10-18  Bruno Haible  <bruno@clisp.org>
39203
39204         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39205         * doc/glibc-functions/error.texi: Mention the module 'error'.
39206         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39207         * doc/glibc-functions/getdomainname.texi: Mention the module
39208         'getdomainname'.
39209         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39210         * doc/glibc-functions/getpagesize.texi: Mention the module
39211         'getpagesize'.
39212         * doc/glibc-functions/getusershell.texi: Mention the module
39213         'getusershell'.
39214         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39215         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39216         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39217         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39218         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39219         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39220         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39221         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39222         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39223         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39224         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39225         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39226         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39227         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39228
39229 2008-10-17  Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39232         HP-UX and IRIX, use -0.0L.
39233         * tests/test-ceill.c (minus_zero): Likewise.
39234         * tests/test-floorl.c (minus_zero): Likewise.
39235         * tests/test-frexpl.c (minus_zero): Likewise.
39236         * tests/test-isnan.c (minus_zerol): Likewise.
39237         * tests/test-isnanl.h (minus_zero): Likewise.
39238         * tests/test-ldexpl.c (minus_zero): Likewise.
39239         * tests/test-roundl.c (minus_zero): Likewise.
39240         * tests/test-signbit.c (minus_zerol): Likewise.
39241         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39242         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39243         * tests/test-truncl.c (minus_zero): Likewise.
39244         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39245         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39246         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39247         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39248
39249 2008-10-17  Bruno Haible  <bruno@clisp.org>
39250
39251         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39252         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39253         that it gets activated only for gcc >= 3.0.
39254         * lib/dirent.in.h: Likewise.
39255         * lib/errno.in.h: Likewise.
39256         * lib/fcntl.in.h: Likewise.
39257         * lib/float.in.h: Likewise.
39258         * lib/iconv.in.h: Likewise.
39259         * lib/inttypes.in.h: Likewise.
39260         * lib/locale.in.h: Likewise.
39261         * lib/math.in.h: Likewise.
39262         * lib/netdb.in.h: Likewise.
39263         * lib/netinet_in.in.h: Likewise.
39264         * lib/search.in.h: Likewise.
39265         * lib/signal.in.h: Likewise.
39266         * lib/spawn.in.h: Likewise.
39267         * lib/stdarg.in.h: Likewise.
39268         * lib/stdint.in.h: Likewise.
39269         * lib/stdio.in.h: Likewise.
39270         * lib/stdlib.in.h: Likewise.
39271         * lib/string.in.h: Likewise.
39272         * lib/strings.in.h: Likewise.
39273         * lib/sys_file.in.h: Likewise.
39274         * lib/sys_ioctl.in.h: Likewise.
39275         * lib/sys_select.in.h: Likewise.
39276         * lib/sys_socket.in.h: Likewise.
39277         * lib/sys_stat.in.h: Likewise.
39278         * lib/sys_time.in.h: Likewise.
39279         * lib/sysexits.in.h: Likewise.
39280         * lib/time.in.h: Likewise.
39281         * lib/unistd.in.h: Likewise.
39282         * lib/wchar.in.h: Likewise.
39283         * lib/wctype.in.h: Likewise.
39284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39285
39286 2008-10-17  Jim Meyering  <meyering@redhat.com>
39287
39288         ignore-value: don't depend on inline module
39289         * modules/ignore-value (Depends-on): Remove 'inline'.
39290         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39291         Suggestion from Bruno Haible.
39292
39293 2008-10-17  Bruno Haible  <bruno@clisp.org>
39294
39295         New implementation of condition variables for Win32.
39296         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39297         (gl_linked_waitqueue_t): New type.
39298         (gl_cond_t): Use it.
39299         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39300         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39301         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39302         (glthread_cond_init_func, glthread_cond_wait_func,
39303         glthread_cond_timedwait_func, glthread_cond_signal_func,
39304         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39305         Reimplemented on the basis of gl_linked_waitqueue_t.
39306         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39307         gl_waitqueue_t.
39308         (gl_rwlock_t): Update.
39309         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39310
39311 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39312
39313         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39314         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39315
39316 2008-10-17  Jim Meyering  <meyering@redhat.com>
39317
39318         ignore-value: new module
39319         * modules/ignore-value: New file.
39320         * lib/ignore-value.h: New file.
39321         * MODULES.html.sh (Compiler warning management): New section,
39322         just for this module.  More to come.
39323
39324 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39325
39326         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39327         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39328         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39329
39330 2008-10-16  Jim Meyering  <meyering@redhat.com>
39331
39332         openat-die.c: avoid 'no previous prototype' warning
39333         * lib/openat-die.c: Include "openat.h".
39334         Reported by Reuben Thomas <rrt@sc3d.org>.
39335
39336 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39337
39338         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39339         * lib/netdb.in.h: Fix typo.
39340         Reported by Bruno Haible  <bruno@clisp.org>
39341
39342         * lib/netdb.in.h: Include sys/socket.h for platforms without
39343         netdb.h, to get structures like hostent on MinGW.
39344         * modules/netdb (Depends-on): Add sys_socket.
39345
39346 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39347
39348         * modules/netdb, modules/netdb-tests: New file.
39349         * m4/netdb_h.m4: New file.
39350         * lib/netdb.in.h: Add, currently just an empty file pending
39351         definitions.
39352         * tests/test-netdb.c: New file.
39353         * doc/posix-headers/netdb.texi: Mention that we replace it if
39354         needed.
39355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39356         netdb.
39357
39358 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39359
39360         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39361         with code.
39362
39363 2008-10-13  Bruno Haible  <bruno@clisp.org>
39364
39365         * lib/glthread/cond.c (glthread_cond_wait_func,
39366         glthread_cond_timedwait_func): Add a comment.
39367
39368 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39369
39370         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39371         * tests/test-select.c: Likewise,
39372
39373 2008-10-13  Bruno Haible  <bruno@clisp.org>
39374
39375         * lib/glthread/cond.c (glthread_cond_wait_func,
39376         glthread_cond_timedwait_func): Fix variable name.
39377         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39378
39379 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39380
39381         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39383         struct sockaddr.sa_len.
39384         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39385
39386 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39387
39388         * build-aux/pmccabe2html: Add css and css_url parameters.
39389
39390 2008-10-12  Bruno Haible  <bruno@clisp.org>
39391
39392         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39393         calling aclx_get.
39394         Reported by Rainer Tammer <tammer@tammer.net>.
39395
39396 2008-10-12  Bruno Haible  <bruno@clisp.org>
39397
39398         Use msvcrt aware primitives for creation/termination of Win32 threads.
39399         * lib/glthread/thread.c: Include <process.h>.
39400         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39401         (wrapper_func): Update signature.
39402         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39403
39404 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39405             Bruno Haible  <bruno@clisp.org>
39406
39407         Provide a Win32 implementation of the 'cond' module.
39408         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39409         * lib/glthread/cond.c (glthread_cond_init_func,
39410         glthread_cond_wait_func, glthread_cond_timedwait_func,
39411         glthread_cond_signal_func, glthread_cond_broadcast_func,
39412         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39413         * modules/cond (Dependencies): Add gettimeofday.
39414
39415 2008-10-11  Bruno Haible  <bruno@clisp.org>
39416
39417         Make sleep work on older versions of mingw.
39418         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39419         only whether it exists.
39420         * doc/posix-functions/sleep.texi: Mention the problem with older
39421         versions of mingw.
39422
39423 2008-10-11  Bruno Haible  <bruno@clisp.org>
39424
39425         New module 'shutdown'.
39426         * modules/shutdown: New file.
39427         * lib/sys_socket.in.h (shutdown): New declaration.
39428         * lib/winsock.c (shutdown): New function.
39429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39430         GNULIB_SHUTDOWN.
39431         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39432         * doc/posix-functions/shutdown.texi: Document the new module.
39433
39434 2008-10-11  Jim Meyering  <meyering@redhat.com>
39435
39436         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39437
39438 2008-10-11  Bruno Haible  <bruno@clisp.org>
39439
39440         New module 'fclose'.
39441         * modules/fclose: New file.
39442         * lib/stdio.in.h (fclose): New declaration.
39443         * lib/fclose.c: New file.
39444         * m4/fclose.m4: New file.
39445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39446         REPLACE_FCLOSE.
39447         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39448         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39449         REPLACE_FCLOSE.
39450         * modules/close (Depends-on): fclose.
39451         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39452
39453 2008-10-11  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39456         set errno and don't call _close.
39457
39458 2008-10-10  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39461         ACL, not afterwards. Fixes test failure on Cygwin.
39462
39463 2008-10-09  Ben Pfaff  <blp@gnu.org>
39464
39465         * build-aux/announce-gen: Fix gnulib version related part of usage
39466         message.  Die with a useful error message if no tarballs are
39467         found.
39468
39469 2008-10-10  Jim Meyering  <meyering@redhat.com>
39470
39471         bootstrap: use git's --depth=N option only if it's supported
39472         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39473         recognize the --depth option.  Reported by Pádraig Brady.
39474
39475 2008-10-09  Bruno Haible  <bruno@clisp.org>
39476
39477         New module 'ioctl'.
39478         * modules/ioctl: New file.
39479         * lib/sys_socket.in.h (ioctl): Remove declaration.
39480         * lib/winsock.c: Include <sys/ioctl.h>.
39481         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39482         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39483         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39484         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39485         * doc/posix-functions/ioctl.texi: Mention the new module.
39486
39487 2008-10-09  Bruno Haible  <bruno@clisp.org>
39488
39489         New module 'sys_ioctl'.
39490         * lib/sys_ioctl.in.h: New file.
39491         * m4/sys_ioctl_h.m4: New file.
39492         * modules/sys_ioctl: New file.
39493         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39494
39495 2008-10-09  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39498         * lib/winsock.c: Include <stdarg.h>.
39499         (rpl_ioctl): Change to second argument 'int' and then varargs.
39500
39501 2008-10-09  Bruno Haible  <bruno@clisp.org>
39502
39503         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39504         when the sys_socket module is present and the system has <winsock2.h>.
39505
39506 2008-10-09  Bruno Haible  <bruno@clisp.org>
39507
39508         * doc/posix-functions/close.texi: Mention module 'close' instead of
39509         module 'sys_socket'.
39510
39511 2008-10-09  Bruno Haible  <bruno@clisp.org>
39512
39513         * doc/glibc-headers/sys_ioctl.texi: New file.
39514         * doc/gnulib.texi: Include it.
39515
39516 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39517             Bruno Haible  <bruno@clisp.org>
39518
39519         Combine the two replacements of 'close'.
39520         * lib/sys_socket.in.h (close): Define to a reminder to include
39521         <unistd.h>.
39522         (_gl_close_fd_maybe_socket): New declaration.
39523         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39524         * lib/winsock.c (close): Remove undefinition.
39525         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39526         needed for the gnulib module 'close'.
39527         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39528         define to an error symbol or to a warning, if suitable.
39529         * lib/close.c: Include <sys/socket.h>.
39530         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39531         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39532         UNISTD_H_HAVE_WINSOCK2_H.
39533         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39535         UNISTD_H_HAVE_WINSOCK2_H.
39536         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39537         (configure.ac): Set a module indicator.
39538         (Makefile.am): Substitute GNULIB_CLOSE.
39539         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39540         * modules/poll-tests (Depends-on): Add close.
39541         * modules/select-tests (Depends-on): Likewise.
39542
39543 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39544             Bruno Haible  <bruno@clisp.org>
39545
39546         New module 'close'.
39547         * modules/close: New file.
39548         * lib/unistd.in.h (close): Move declaration out of the
39549         FCHDIR_REPLACEMENT scope.
39550         (_gl_unregister_fd): New declaration.
39551         * lib/close.c: New file.
39552         * lib/fchdir.c (rpl_close): Remove function.
39553         * m4/close.m4: New file.
39554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39555         close.
39556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39557         REPLACE_CLOSE.
39558         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39559         REPLACE_CLOSE.
39560         * modules/fchdir (Depends-on): Add close.
39561
39562 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39563             Bruno Haible  <bruno@clisp.org>
39564
39565         * lib/fcntl.in.h (open): Simplify conditionals.
39566         (_gl_register_fd): New declaration.
39567         * lib/fchdir.c (rpl_open): Remove function.
39568         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39569         also.
39570         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39572         open.
39573
39574 2008-10-09  Jim Meyering  <meyering@redhat.com>
39575
39576         GNUmakefile: use the more name-space-friendly "_version"
39577         * top/GNUmakefile (_dummy): Update.
39578         (_version): Rename from "version".
39579
39580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39581             Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39584         rpl_close.
39585         (_gl_register_fd): New function, extracted from rpl_open.
39586         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39587         (rpl_open, rpl_opendir): Use _gl_register_fd.
39588
39589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39590
39591         Fix organization of 'open' replacement.
39592         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39593         (gl_FUNC_OPEN): Use it.
39594         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39595
39596 2008-10-08  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39599
39600 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39601
39602         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39603         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39604         listen).
39605
39606 2008-10-08  Eric Blake  <ebb9@byu.net>
39607
39608         GNUmakefile: add 'make version' target
39609         * top/GNUmakefile (_curr-ver): Split version update rules...
39610         (version): ...into a target.
39611
39612 2008-10-07  Bruno Haible  <bruno@clisp.org>
39613
39614         Use a more portable replacement expression for -0.0L.
39615         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39616         instead of -0.0L. Fix m4 quotation.
39617
39618         * tests/test-signbit.c: Include <float.h>.
39619         (minus_zero): New variable.
39620         (test_signbitl): Use minus_zero instead of -zero.
39621         * modules/signbit-tests (Depends-on): Add float.
39622
39623         * tests/test-ceill.c: Include <float.h>.
39624         (zero): Remove variable.
39625         (minus_zero): New variable.
39626         (main): Use minus_zero instead of -zero.
39627         * modules/ceill-tests (Depends-on): Add float.
39628
39629         * tests/test-floorl.c: Include <float.h>.
39630         (zero): Remove variable.
39631         (minus_zero): New variable.
39632         (main): Use minus_zero instead of -zero.
39633         * modules/floorl-tests (Depends-on): Add float.
39634
39635         * tests/test-roundl.c: Include <float.h>.
39636         (zero): Remove variable.
39637         (minus_zero): New variable.
39638         (main): Use minus_zero instead of -zero.
39639         * modules/roundl-tests (Depends-on): Add float.
39640
39641         * tests/test-truncl.c: Include <float.h>.
39642         (zero): Remove variable.
39643         (minus_zero): New variable.
39644         (main): Use minus_zero instead of -zero.
39645         * modules/truncl-tests (Depends-on): Add float.
39646
39647         * tests/test-frexpl.c (zero): Remove variable.
39648         (minus_zero): New variable.
39649         (main): Use minus_zero instead of -zero.
39650         * modules/frexpl-tests (Depends-on): Add float.
39651
39652         * tests/test-isnan.c (zerol): Remove variable.
39653         (minus_zerol): New variable.
39654         (test_long_double): Use minus_zerol instead of -zerol.
39655         * modules/isnan-tests (Depends-on): Add float.
39656
39657         * tests/test-isnanl.h (zero): Remove variable.
39658         (minus_zero): New variable.
39659         (main): Use minus_zero instead of -zero.
39660         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39661         * modules/isnanl-tests (Depends-on): Add float.
39662
39663         * tests/test-ldexpl.c (zero): Remove variable.
39664         (minus_zero): New variable.
39665         (main): Use minus_zero instead of -zero.
39666         * modules/ldexpl-tests (Depends-on): Add float.
39667
39668         * tests/test-snprintf-posix.h (zerol): Remove variable.
39669         (minus_zerol): New variable.
39670         (test_function): Use minus_zerol instead of -zerol.
39671         * modules/snprintf-posix-tests (Depends-on): Add float.
39672         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39673
39674         * tests/test-sprintf-posix.h (zerol): Remove variable.
39675         (minus_zerol): New variable.
39676         (test_function): Use minus_zerol instead of -zerol.
39677         * modules/sprintf-posix-tests (Depends-on): Add float.
39678         * modules/vsprintf-posix-tests (Depends-on): Add float.
39679
39680         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39681         (minus_zerol): New variable.
39682         (test_function): Use minus_zerol instead of -zerol.
39683         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39684
39685         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39686         (minus_zerol): New variable.
39687         (test_function): Use minus_zerol instead of -zerol.
39688         * modules/vasprintf-posix-tests (Depends-on): Add float.
39689
39690 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39691
39692         * MODULES.html.sh (Support for building documentation): Mention
39693         pmccabe2html.  Sort entries.
39694
39695         Add pmccabe2html module, from gnupdf.
39696         * build-aux/pmccabe.css: New file.
39697         * build-aux/pmccabe2html: New file.
39698         * m4/pmccabe2html.m4: New file.
39699         * modules/pmccabe2html: New file.
39700
39701 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39702
39703         flock: new module
39704         * MODULES.html.sh: Add to list of modules.
39705         * lib/flock.c: flock implementation for Windows and Unix systems
39706         which have fcntl.
39707         * doc/glibc-functions/flock.texi: Update documentation.
39708         * lib/sys_file.in.h: <sys/file.h> header file.
39709         * m4/flock.m4: M4 macros.
39710         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39711         * modules/flock: flock module.
39712         * modules/flock-tests: flock tests module.
39713         * modules/sys_file: sys/file.h module.
39714         * tests/test-flock.c: test suite for flock.
39715
39716 2008-10-06  Jim Meyering  <meyering@redhat.com>
39717
39718         bootstrap: check for LT_INIT more portably still ;-)
39719         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39720         Spotted by Bruno Haible.
39721
39722 2008-10-06  Eric Blake  <ebb9@byu.net>
39723
39724         test-signbit: avoid tripping Irix cc bug on -0.0L
39725         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39726         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39727         entire testsuite consistent and avoids an Irix 6.2 bug.
39728
39729 2008-10-05  Bruno Haible  <bruno@clisp.org>
39730             Jim Meyering  <jim@meyering.net>
39731
39732         Add an option for ignoring EPIPE during close_stdout.
39733         * lib/closeout.h: Include <stdbool.h>.
39734         (close_stdout_set_ignore_EPIPE): New declaration.
39735         * lib/closeout.c: Include <stdbool.h>.
39736         (ignore_EPIPE): New variable.
39737         (close_stdout_set_ignore_EPIPE): New function.
39738         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39739         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39740         failure.
39741         * modules/closeout (Depends-on): Add stdbool.
39742
39743 2008-10-05  Bruno Haible  <bruno@clisp.org>
39744
39745         * modules/accept: New file.
39746         * modules/bind: New file.
39747         * modules/connect: New file.
39748         * modules/getpeername: New file.
39749         * modules/getsockname: New file.
39750         * modules/getsockopt: New file.
39751         * modules/listen: New file.
39752         * modules/recv: New file.
39753         * modules/recvfrom: New file.
39754         * modules/send: New file.
39755         * modules/sendto: New file.
39756         * modules/setsockopt: New file.
39757         * modules/socket: New file.
39758         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39759         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39760         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39761         the particular module is requested. Add a link warning when the
39762         particular module is not requested.
39763         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39764         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39765         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39766         the particular module is requested.
39767         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39768         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39769         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39770         * modules/sys_socket (Depends-on): Add link-warning.
39771         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39772         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39773         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39774         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39775         GL_LINK_WARNING.
39776         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39777         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39778         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39779         * doc/posix-functions/getpeername.texi: Mention the new module
39780         'getpeername'.
39781         * doc/posix-functions/getsockname.texi: Mention the new module
39782         'getsockname'.
39783         * doc/posix-functions/getsockopt.texi: Mention the new module
39784         'getsockopt'.
39785         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39786         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39787         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39788         * doc/posix-functions/send.texi: Mention the new module 'send'.
39789         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39790         * doc/posix-functions/setsockopt.texi: Mention the new module
39791         'setsockopt'.
39792         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39793         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39794         listen, connect, accept.
39795         * modules/select-tests (Depends-on): Likewise.
39796
39797 2008-10-05  Bruno Haible  <bruno@clisp.org>
39798
39799         * lib/winsock.c (strerror): Remove unused #undef.
39800         (rpl_close): Remove unused local variable.
39801
39802         * modules/sys_socket (Depends-on); Add errno.
39803
39804 2008-10-05  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39807         (select): Add a link warning when the 'select' module is not used.
39808         * modules/sys_select (Depends-on): Add link-warning.
39809         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39810         Suggested by Paolo Bonzini.
39811
39812 2008-10-05  Jim Meyering  <meyering@redhat.com>
39813
39814         bootstrap: check for LT_INIT more portably
39815         * build-aux/bootstrap: Avoid using grep -E, since it's not
39816         portable enough.  Suggestion from Bruno Haible.
39817
39818 2008-10-05  Bruno Haible  <bruno@clisp.org>
39819
39820         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39821         as being fixed by gnulib.
39822
39823 2008-10-05  Bruno Haible  <bruno@clisp.org>
39824
39825         * modules/select-tests: New file, mostly copied from
39826         modules/sys_select-tests.
39827         * tests/test-select.c: New file, mostly copied from
39828         tests/test-sys_select.c.
39829         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39830         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39831         (Makefile.am): Remove test_sys_select_LDADD.
39832
39833         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39834         to an undefined symbol, for an error message.
39835         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39836         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39837         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39838         winsock-select.c here.
39839         * modules/sys_select (Files): Remove lib/winsock-select.c.
39840         (Depends-on): Remove alloca.
39841         (Makefile.am): Substitute GNULIB_SELECT.
39842         * modules/select: New file.
39843         * doc/posix-functions/select.texi: Update.
39844
39845 2008-10-05  Bruno Haible  <bruno@clisp.org>
39846
39847         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39848         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39849         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39850         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39851         getdtablesize.
39852         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39853         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39854
39855 2008-10-05  Bruno Haible  <bruno@clisp.org>
39856
39857         * modules/getdtablesize-tests: New file.
39858         * tests/test-getdtablesize.c: New file.
39859
39860         New module 'getdtablesize'.
39861         * lib/unistd.in.h (getdtablesize): New declaration.
39862         * lib/getdtablesize.c: New file.
39863         * m4/getdtablesize.m4: New file.
39864         * modules/getdtablesize: New file.
39865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39866         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39867         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39868         HAVE_GETDTABLESIZE.
39869         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39870
39871 2008-10-05  Bruno Haible  <bruno@clisp.org>
39872
39873         * modules/sched (Makefile.am): Fix typo.
39874         Reported by Simon Josefsson.
39875
39876 2008-10-05  Jim Meyering  <meyering@redhat.com>
39877
39878         bootstrap: check for LT_INIT, too
39879         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39880         are deprecated.  Suggestion from Ralf Wildenhues.
39881
39882 2008-10-05  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39885         overriding them by ours.
39886         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39887
39888 2008-10-05  Jim Meyering  <meyering@redhat.com>
39889
39890         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39891         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39892         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39893
39894 2008-10-04  Bruno Haible  <bruno@clisp.org>
39895
39896         * modules/dup2 (License): Change to LGPLv2+.
39897         * modules/sleep (License): Likewise.
39898         * modules/perror (License): Likewise.
39899         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39900         Blake.
39901         * modules/signal (License): Likewise.
39902         * modules/sigprocmask (License): Likewise.
39903         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39904         Meyering.
39905
39906 2008-10-04  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39909         Reported by Rainer Tammer <tammer@tammer.net>.
39910
39911 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39912             Bruno Haible  <bruno@clisp.org>
39913
39914         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39915         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39916         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39917
39918 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39919
39920         filevercmp: new module
39921         * lib/filevercmp.h: New function filevercmp comparing version strings.
39922         * lib/filevercmp.c: Implementation of filevercmp function.
39923         * modules/filevercmp: Module metadata.
39924         * tests/test-filevercmp.c: Unit test for new module.
39925         * modules/filevercmp-tests: Unit test metadata.
39926         * MODULES.html.sh: Add filevercmp module.
39927
39928 2008-10-03  Bruno Haible  <bruno@clisp.org>
39929
39930         * lib/c-ctype.h: Add comment.
39931         Reported by Jim Meyering.
39932
39933 2008-10-02  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39936
39937 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39938
39939         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39940         name of bootstrap.conf accordingly.
39941
39942 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39943
39944         * build-aux/bootstrap: Install git-merge-changelog configuration
39945         items into .gitconfig if needed.
39946
39947 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39948
39949         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39950         git repository, and initialize/update it accordingly.
39951
39952 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39953
39954         * modules/fsync-tests: New file.
39955         * tests/test-fsync.c: New file.
39956
39957         New module 'fsync'.
39958         * lib/fsync.c: New file.
39959         * m4/fsync.m4: New file.
39960         * modules/fsync: New file.
39961         * lib/unistd.in.h (fsync): New declaration.
39962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39963         GNULIB_FSYNC and HAVE_FSYNC.
39964         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39965         * MODULES.html.sh (posix_functions): Add fsync.
39966         * doc/posix-functions/fsync.texi: Mention the new module.
39967
39968 2008-10-02  Jim Meyering  <meyering@redhat.com>
39969
39970         fts.c: sync with similar code from coreutils' remove.c
39971         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39972         Guard also with "#if defined __linux__", since for now at least,
39973         this code is Linux-kernel-specific.
39974
39975 2008-10-02  Jim Meyering  <meyering@redhat.com>
39976
39977         fts: bug fixes
39978         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39979         Include <sys/vfs.h>, not <sys/statfs.h>.
39980
39981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39982         Include <sys/vfs.h>, not <sys/statfs.h>.
39983
39984 2008-10-01  Bruno Haible  <bruno@clisp.org>
39985
39986         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39988         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39989         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39990         * doc/posix-functions/posix_spawnp.texi: Likewise.
39991         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39992         whether posix_spawn actually works.
39993         * m4/pipe.m4 (gl_PIPE): Likewise.
39994         * modules/execute (Files): Add m4/posix_spawn.m4.
39995         * modules/pipe (Files): Add m4/posix_spawn.m4.
39996         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39997
39998 2008-10-01  Jim Meyering  <meyering@redhat.com>
39999
40000         remove trailing spaces
40001         * NEWS: Likewise.
40002         * lib/poll.c (poll): Likewise.
40003         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40004         * lib/winsock.c (rpl_close): Likewise.
40005         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40006         * modules/yield: Likewise.
40007         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40008         * tests/test-sys_select.c (connect_to_socket): Likewise.
40009
40010         fts.c: adjust a new interface to be more generally useful
40011         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40012         (fts_build): Adjust caller.
40013
40014 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40015
40016         * modules/cond-tests: New file.
40017         * tests/test-cond.c: New file.
40018
40019 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40020             Bruno Haible  <bruno@clisp.org>
40021
40022         * modules/cond (Dependencies): Add errno, time.
40023         * lib/glthread/cond.h: Include <time.h>.
40024         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40025         across platforms.
40026
40027 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40028             Bruno Haible  <bruno@clisp.org>
40029
40030         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40031
40032 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40033             Bruno Haible  <bruno@clisp.org>
40034
40035         * modules/tls-tests (Depends-on): Add thread, yield.
40036         (configure.ac): Remove all checks.
40037         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40038         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40039         gl_thread_self): Remove definitions. Include glthread/thread.h and
40040         glthread/yield.h instead.
40041         (test_tls): Pass an additional NULL argument to gl_thread_join.
40042
40043 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40044             Bruno Haible  <bruno@clisp.org>
40045
40046         * modules/lock-tests (Depends-on): Add thread, yield.
40047         (configure.ac): Remove all checks.
40048         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40049         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40050         gl_thread_self): Remove definitions. Include glthread/thread.h and
40051         glthread/yield.h instead.
40052         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40053         additional NULL argument to gl_thread_join.
40054
40055 2008-09-30  Bruno Haible  <bruno@clisp.org>
40056
40057         Fix the Win32 implementation of the 'thread' module.
40058         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40059         pointer type.
40060         (gl_thread_self): Invoke gl_thread_self_func.
40061         (gl_thread_self_func): New declaration.
40062         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40063         (do_init_self_key, init_self_key): New functions.
40064         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40065         Remove some fields.
40066         (running_threads, running_lock): Remove variables.
40067         (get_current_thread_handle): New function.
40068         (gl_thread_self_func, wrapper_func, glthread_create_func,
40069         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40070         simplified.
40071
40072 2008-09-30  Bruno Haible  <bruno@clisp.org>
40073
40074         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40075         files.
40076
40077 2008-09-30  Jim Meyering  <meyering@redhat.com>
40078
40079         fts.m4: correct the test for statfs.f_type
40080         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40081         when checking for statfs.f_type.
40082
40083 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40084
40085         tests: avoid some compiler warnings
40086         * tests/test-memchr.c (main): Pass NULL indirectly.
40087         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40088
40089 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40090
40091         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40092         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40093         exactly specified dayshifts.
40094         (dayshift): New rule.
40095         (rel): Add dayshift.
40096         (relative_time_table) [tomorrow, yesterday, today, now]:
40097         Use tDAY_SHIFT in place of tDAY_UNIT.
40098         * tests/test-getdate.c: Add tests for now-disallowed countable
40099         dayshifts, e.g., "4 yesterday ago".
40100
40101 2008-09-29  Bruno Haible  <bruno@clisp.org>
40102
40103         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40104         * tests/test-posix_spawn1.in.sh: Renamed from
40105         tests/test-posix_spawn.in.sh.
40106         * tests/test-posix_spawn2.c: New file.
40107         * tests/test-posix_spawn2.in.sh: New file.
40108         * modules/posix_spawnp-tests (Files): Update.
40109         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40110
40111 2008-09-29  Bruno Haible  <bruno@clisp.org>
40112
40113         Propagate effects of putenv/setenv/unsetenv to child processes.
40114         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40115         * lib/pipe.c (create_pipe): Likewise.
40116
40117 2008-09-29  Bruno Haible  <bruno@clisp.org>
40118
40119         Enable use of shell scripts as executables in mingw.
40120         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40121         run the program as a shell script.
40122         * lib/pipe.c (create_pipe): Likewise.
40123         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40124         resulting array.
40125
40126 2008-09-29  Eric Blake  <ebb9@byu.net>
40127
40128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40129
40130 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40131
40132         * doc/posix-functions/accept.texi: Update mingw problems.
40133         * doc/posix-functions/bind.texi: Update mingw problems.
40134         * doc/posix-functions/close.texi: Update mingw problems.
40135         * doc/posix-functions/connect.texi: Update mingw problems.
40136         * doc/posix-functions/getpeername.texi: Update mingw problems.
40137         * doc/posix-functions/getsockname.texi: Update mingw problems.
40138         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40139         * doc/posix-functions/ioctl.texi: Update mingw problems.
40140         * doc/posix-functions/listen.texi: Update mingw problems.
40141         * doc/posix-functions/recv.texi: Update mingw problems.
40142         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40143         * doc/posix-functions/select.texi: Update mingw problems.
40144         * doc/posix-functions/send.texi: Update mingw problems.
40145         * doc/posix-functions/sendto.texi: Update mingw problems.
40146         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40147         * doc/posix-functions/socket.texi: Update mingw problems.
40148
40149 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40150             Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/sys_select.in.h: Include sys/time.h.
40153         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40154         * modules/sys_select: Depend on sys_time.
40155         * tests/test-sys_select.c: Test that sys/select.h defines struct
40156         timeval fully.
40157
40158 2008-09-29  Bruno Haible  <bruno@clisp.org>
40159
40160         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40161         * lib/sys_select.in.h: Likewise.
40162
40163 2008-09-29  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40166
40167 2008-09-29  Bruno Haible  <bruno@clisp.org>
40168
40169         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40170         Set LIBSOCKET instead of augmenting LIBS.
40171         * modules/sockets (Link): New section.
40172         * modules/sockets-tests (test_sockets_LDADD): New variable.
40173         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40174         * modules/poll-tests (test_poll_LDADD): New variable.
40175         * NEWS: Document the change.
40176
40177 2008-09-29  Bruno Haible  <bruno@clisp.org>
40178
40179         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40180         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40181         ARPA_INET_H directly.
40182         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40183
40184 2008-09-28  Bruno Haible  <bruno@clisp.org>
40185
40186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40187         from gl_HEADER_SYS_SOCKET.
40188         (gl_HEADER_SYS_SOCKET): Invoke it.
40189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40190
40191 2008-09-28  Bruno Haible  <bruno@clisp.org>
40192
40193         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40194         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40195         Needed on OSF/1 4.0.
40196
40197 2008-09-28  Bruno Haible  <bruno@clisp.org>
40198
40199         Override open more carefully.
40200         * lib/open.c (orig_open): New function.
40201         (rpl_open): Use orig_open instead of open.
40202         * lib/fcntl.in.h: Add special invocation convention.
40203         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40204         (gl_FUNC_OPEN): Invoke it.
40205
40206         Override freopen more carefully.
40207         * lib/freopen.c (orig_freopen): New function.
40208         (rpl_freopen): Use orig_freopen instead of freopen.
40209         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40210         (gl_FUNC_FREOPEN): Invoke it.
40211
40212         Override fopen more carefully.
40213         * lib/fopen.c (orig_fopen): New function.
40214         (rpl_fopen): Use orig_fopen instead of fopen.
40215         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40216         (gl_FUNC_FOPEN): Invoke it.
40217         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40218
40219 2008-09-28  Bruno Haible  <bruno@clisp.org>
40220
40221         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40222         SIGPIPE.
40223
40224 2008-09-28  Bruno Haible  <bruno@clisp.org>
40225
40226         * tests/test-sigaction.c (handler, main): Disable the check whether
40227         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40228         glibc systems with LinuxThreads.
40229
40230 2008-09-28  Bruno Haible  <bruno@clisp.org>
40231
40232         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40233
40234         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40235         with AIX xlc.
40236         * lib/fcntl.in.h (open): Likewise.
40237         Reported by Rainer Tammer <tammer@tammer.net>.
40238
40239 2008-09-28  Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/posix_spawnp-tests: New file.
40242         * tests/test-posix_spawn.c: New file.
40243         * tests/test-posix_spawn.in.sh: New file.
40244
40245         New module 'posix_spawnp'.
40246         * modules/posix_spawnp: New file.
40247         * lib/spawnp.c: New file, from GNU libc with modifications.
40248         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40249
40250         New module 'posix_spawn'.
40251         * modules/posix_spawn: New file.
40252         * lib/spawn.c: New file, from GNU libc with modifications.
40253         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40254
40255         New module 'posix_spawnattr_destroy'.
40256         * modules/posix_spawnattr_destroy: New file.
40257         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40258         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40259         module.
40260
40261         New module 'posix_spawnattr_setsigmask'.
40262         * modules/posix_spawnattr_setsigmask: New file.
40263         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40264         modifications.
40265         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40266         new module.
40267
40268         New module 'posix_spawnattr_getsigmask'.
40269         * modules/posix_spawnattr_getsigmask: New file.
40270         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40271         modifications.
40272         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40273         new module.
40274
40275         New module 'posix_spawnattr_setsigdefault'.
40276         * modules/posix_spawnattr_setsigdefault: New file.
40277         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40278         modifications.
40279         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40280         new module.
40281
40282         New module 'posix_spawnattr_getsigdefault'.
40283         * modules/posix_spawnattr_getsigdefault: New file.
40284         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40285         modifications.
40286         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40287         new module.
40288
40289         New module 'posix_spawnattr_setschedpolicy'.
40290         * modules/posix_spawnattr_setschedpolicy: New file.
40291         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40292         modifications.
40293         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40294         new module.
40295
40296         New module 'posix_spawnattr_getschedpolicy'.
40297         * modules/posix_spawnattr_getschedpolicy: New file.
40298         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40299         modifications.
40300         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40301         new module.
40302
40303         New module 'posix_spawnattr_setschedparam'.
40304         * modules/posix_spawnattr_setschedparam: New file.
40305         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40306         modifications.
40307         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40308         new module.
40309
40310         New module 'posix_spawnattr_getschedparam'.
40311         * modules/posix_spawnattr_getschedparam: New file.
40312         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40313         modifications.
40314         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40315         new module.
40316
40317         New module 'posix_spawnattr_setpgroup'.
40318         * modules/posix_spawnattr_setpgroup: New file.
40319         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40320         modifications.
40321         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40322         module.
40323
40324         New module 'posix_spawnattr_getpgroup'.
40325         * modules/posix_spawnattr_getpgroup: New file.
40326         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40327         modifications.
40328         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40329         module.
40330
40331         New module 'posix_spawnattr_setflags'.
40332         * modules/posix_spawnattr_setflags: New file.
40333         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40334         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40335         module.
40336
40337         New module 'posix_spawnattr_getflags'.
40338         * modules/posix_spawnattr_getflags: New file.
40339         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40340         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40341         module.
40342
40343         New module 'posix_spawnattr_init'.
40344         * modules/posix_spawnattr_init: New file.
40345         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40346         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40347         module.
40348
40349         New module 'posix_spawn_file_actions_destroy'.
40350         * modules/posix_spawn_file_actions_destroy: New file.
40351         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40352         modifications.
40353         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40354         the new module.
40355
40356         New module 'posix_spawn_file_actions_addopen'.
40357         * modules/posix_spawn_file_actions_addopen: New file.
40358         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40359         modifications.
40360         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40361         the new module.
40362
40363         New module 'posix_spawn_file_actions_adddup2'.
40364         * modules/posix_spawn_file_actions_adddup2: New file.
40365         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40366         modifications.
40367         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40368         the new module.
40369
40370         New module 'posix_spawn_file_actions_addclose'.
40371         * modules/posix_spawn_file_actions_addclose: New file.
40372         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40373         modifications.
40374         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40375         the new module.
40376
40377         New module 'posix_spawn_file_actions_init'.
40378         * modules/posix_spawn_file_actions_init: New file.
40379         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40380         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40381         new module.
40382
40383         New module 'posix_spawn-internal'.
40384         * modules/posix_spawn-internal: New file.
40385         * lib/spawn_int.h: New file, from GNU libc with modifications.
40386         * lib/spawni.c: New file, from GNU libc with modifications.
40387         * m4/posix_spawn.m4: New file.
40388
40389         New module 'spawn'.
40390         * modules/spawn: New file.
40391         * lib/spawn.in.h: New file, from GNU libc with modifications.
40392         * m4/spawn_h.m4: New file.
40393         * doc/posix-headers/spawn.texi: Mention the new module.
40394
40395 2008-09-28  Bruno Haible  <bruno@clisp.org>
40396
40397         * modules/sched-tests: New file.
40398         * tests/test-sched.c: New file.
40399
40400         New module 'sched'.
40401         * modules/sched: New file.
40402         * lib/sched.in.h: New file.
40403         * m4/sched_h.m4: New file.
40404         * doc/posix-headers/sched.texi: Mention the new module.
40405
40406 2008-09-27  Eric Blake  <ebb9@byu.net>
40407
40408         Fix previous patch, and tweak references to $0.
40409         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40410         (func_version, func_gnulib_dir): Don't call this program
40411         gnulib-tool.
40412         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40413         with using $0 in function.
40414         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40415         (func_fatal_error): Reuse the name the user invoked us with.
40416
40417 2008-09-27  Bruno Haible  <bruno@clisp.org>
40418
40419         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40420         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40421         (gl_ICONV_H): Not here.
40422         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40423         instead of assigning ICONV_H directly.
40424
40425         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40427         WCHAR_H directly.
40428
40429 2008-09-27  Bruno Haible  <bruno@clisp.org>
40430
40431         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40432         * modules/arpa_inet (Depends-on): Add link-warning.
40433         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40434         * modules/unistd (Makefile.am): Likewise.
40435
40436 2008-09-26  Bruno Haible  <bruno@clisp.org>
40437
40438         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40439         variables.
40440         (func_version): Essentially copied from gnulib-tool.
40441         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40442         func_readlink): Copied from gnulib-tool.
40443
40444 2008-09-26  Bruno Haible  <bruno@clisp.org>
40445
40446         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40447         invoking git-version-gen.
40448
40449 2008-09-26  Bruno Haible  <bruno@clisp.org>
40450
40451         * posix-modules: Update to directory names changed on 2008-01-19.
40452         Remove commas in output before splitting into words. No more need to
40453         avoid 'ftruncate' since 2007-02-19.
40454
40455 2008-09-26  Bruno Haible  <bruno@clisp.org>
40456
40457         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40458
40459 2008-09-26  Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40462         * modules/fwriteerror (Depends-on): Add errno.
40463
40464 2008-09-26  Bruno Haible  <bruno@clisp.org>
40465
40466         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40467         * tests/test-vc-list-files-cvs.sh: Likewise.
40468
40469 2008-09-26  Bruno Haible  <bruno@clisp.org>
40470
40471         * doc/posix-headers/sys_resource.texi: Reorder items.
40472
40473 2008-09-26  Jim Meyering  <meyering@redhat.com>
40474
40475         fts: tweak inode comparison function
40476         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40477         inode numbers, as documented.
40478
40479         fts: sort dirent entries on inode number before traversing
40480         This avoids a quadratic, seek-related performance penalty when
40481         operating on a directory containing many entries (measurable at 10k;
40482         3.5 hours at 2 million entries with a cold cache) on certain types
40483         of file systems, including ext3 and ext4, but not tmpfs.
40484         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40485         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40486         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40487         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40488         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40489         (fts_build): Set the stat.st_ino member from D_INO.
40490         If it is likely to be useful, sort dirent entries on inode number.
40491
40492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40493         and the struct statfs.f_type member.
40494         * modules/fts (Depends-on): Add d-ino.
40495
40496 2008-09-26  Bruno Haible  <bruno@clisp.org>
40497
40498         * modules/sigpipe-die (Depends-on): Add sigpipe.
40499
40500         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40501         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40502         and GNULIB_STDIO_H_SIGPIPE are set.
40503         * lib/stdio-write.c: New file.
40504         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40505         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40506         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40507         REPLACE_STDIO_WRITE_FUNCS.
40508         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40509         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40510         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40511         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40512         * modules/stdio (Files): Add lib/stdio-write.c.
40513         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40514         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40515         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40516         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40517         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40518         REPLACE_FPRINTF_POSIX.
40519         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40520         REPLACE_PRINTF_POSIX.
40521         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40522         REPLACE_VFPRINTF_POSIX.
40523         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40524         REPLACE_VPRINTF_POSIX.
40525         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40526         SIGPIPE issue.
40527         * doc/posix-functions/fputc.texi: Likewise.
40528         * doc/posix-functions/fputs.texi: Likewise.
40529         * doc/posix-functions/fwrite.texi: Likewise.
40530         * doc/posix-functions/printf.texi: Likewise.
40531         * doc/posix-functions/putc.texi: Likewise.
40532         * doc/posix-functions/putchar.texi: Likewise.
40533         * doc/posix-functions/puts.texi: Likewise.
40534         * doc/posix-functions/vfprintf.texi: Likewise.
40535         * doc/posix-functions/vprintf.texi: Likewise.
40536
40537         * modules/safe-write (Depends-on): Add write.
40538
40539         * modules/sigpipe-tests: New file.
40540         * tests/test-sigpipe.c: New file.
40541         * tests/test-sigpipe.sh: New file.
40542
40543         * modules/write: New file.
40544         * lib/unistd.in.h: Include <sys/types.h>.
40545         (write): New declaration.
40546         * lib/write.c: New file.
40547         * m4/write.m4: New file.
40548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40549         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40550         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40551         GNULIB_WRITE, REPLACE_WRITE.
40552         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40553         and the SIGPIPE issue.
40554
40555         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40556         (raise): New declaration.
40557         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40558         (ext_signal): New function.
40559         (rpl_raise): New function.
40560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40561         GNULIB_SIGNAL_H_SIGPIPE.
40562         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40563         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40564
40565         * modules/sigpipe: New file.
40566         * m4/sigpipe.m4: New file.
40567
40568 2008-09-25  Derek Price  <derek@ximbiot.com>
40569             Bruno Haible  <bruno@clisp.org>
40570
40571         * gnulib-tool (func_import): Report all license incompatibilities, not
40572         just the first one.
40573
40574 2008-09-25  Bruno Haible  <bruno@clisp.org>
40575
40576         * gnulib-tool (func_import): When computing the edits, consider not
40577         only the Makefile.ams that exist but also those that will be generated.
40578
40579 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40580
40581         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40582         fixes gnulib-tool --test warning about duplicate dependency.
40583
40584 2008-09-25  Bruno Haible  <bruno@clisp.org>
40585
40586         * gnulib-tool: Don't ask the user to perform edits in the generated
40587         Makefile.ams.
40588         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40589         apply to the Makefile.am being generated.
40590         (func_emit_tests_Makefile_am): Execute edits that apply to the
40591         Makefile.am being generated.
40592         (func_import): Setup list of Makefile.am edits before emitting the
40593         Makefile.ams, not at the end.
40594         (func_create_testdir): Update.
40595         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40596
40597 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40598
40599         * gnulib-tool (func_import): Store the --tests-base option in the
40600         comment in gnulib-cache.m4.
40601
40602 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40603
40604         * NEWS: Document increased portability that sys_select now provides.
40605
40606         * lib/sys_select.in.h: Install select wrapper.
40607         * lib/sys_socket.in.h: Use more descriptive name when there is no
40608         select wrapper.
40609         * lib/winsock-select.c: New.
40610         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40611         Require gl_HEADER_SYS_SOCKET.
40612         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40613         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40614         * tests/test-sys_select.c: Add functional tests.
40615
40616 2008-09-24  Eric Blake  <ebb9@byu.net>
40617
40618         open, fopen: close fd leak in last patch
40619         * lib/open.c (rpl_open): Close fd before returning error.
40620         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40621         * doc/posix-functions/open.texi (open): Document that Irix also
40622         has the bug.
40623         * doc/posix-functions/fopen.texi (fopen): Likewise.
40624         Reported by Paolo Bonzini.
40625
40626 2008-09-24  Bruno Haible  <bruno@clisp.org>
40627
40628         Ensure that a filename ending in a slash cannot be used to access a
40629         non-directory.
40630         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40631         to check whether it's really a directory.
40632         * lib/fopen.c: Include fcntl.h, unistd.h.
40633         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40634         and fdopen().
40635         * modules/fopen (Depends-on): Add unistd.
40636         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40637         * tests/test-fopen.c (main): Likewise.
40638         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40639         * doc/posix-functions/fopen.texi: Likewise.
40640         Reported by Eric Blake.
40641
40642 2008-09-23  Eric Blake  <ebb9@byu.net>
40643
40644         c-stack: avoid compiler optimizations when provoking overflow
40645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40646         recursion harder to optimize, to ensure a stack overflow occurs.
40647         * tests/test-c-stack.c (recurse): Likewise.
40648         Borrowed from libsigsegv.
40649
40650         c-stack: work around Irix sigaltstack bug
40651         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40652         whether sigaltstack uses wrong end of stack_t (copied in part from
40653         libsigsegv).
40654         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40655         Irix bug, without requiring an over-allocation.
40656         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40657         bug.
40658
40659         fopen: document mingw bug on directories
40660         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40661         not allowing a stream visiting a directory, even though reading
40662         from such a stream is not portable.
40663
40664 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40665
40666         * lib/poll.c: Rewrite.
40667         * modules/poll: Depend on alloca.
40668
40669 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40670
40671         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40672         instead define prototypes for a full set of wrappers.  Ensure
40673         that Cygwin does not use the compatibility code, which is only
40674         for MinGW.
40675         * lib/winsock.c: New.
40676         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40677         * modules/sys_socket: Add lib/winsock.c.
40678
40679         * modules/poll-tests: Add errno and perror.
40680         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40681
40682 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40683
40684         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40685
40686 2008-09-23  Bruno Haible  <bruno@clisp.org>
40687
40688         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40689         * doc/glibc-functions/*: Likewise.
40690
40691 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40692
40693         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40694         success.
40695
40696 2008-09-22  Eric Blake  <ebb9@byu.net>
40697             Bruno Haible  <bruno@clisp.org>
40698
40699         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40700         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40701         supply %A but mishandle pseudo-NaN.
40702         Reported by Simon Josefsson.
40703
40704 2008-09-21  Bruno Haible  <bruno@clisp.org>
40705
40706         * tests/test-lock.c (main): Tweak skip message.
40707         * tests/test-tls.c (main): Likewise.
40708
40709 2008-09-21  Bruno Haible  <bruno@clisp.org>
40710
40711         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40712         whether 'struct sigaction' has sa_sigaction here...
40713         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40714         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40715
40716 2008-09-21  Bruno Haible  <bruno@clisp.org>
40717
40718         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40719         section.
40720         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40721         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40722         the new section.
40723         (Support for obsolete systems lacking POSIX:2001): New section.
40724         (String handling <string.h>): Move strdup to the new section.
40725         Suggested by Simon Josefsson and Paolo Bonzini.
40726
40727 2008-09-21  Bruno Haible  <bruno@clisp.org>
40728
40729         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40730         exponents in %e and %g results on 'long double'. Needed for mingw's
40731         improved *printf functions.
40732         * tests/test-vasprintf-posix.c (test_function): Likewise.
40733         * tests/test-snprintf-posix.h (test_function): Likewise.
40734         * tests/test-sprintf-posix.h (test_function): Likewise.
40735         Reported by Eric Blake.
40736
40737 2008-09-21  Bruno Haible  <bruno@clisp.org>
40738
40739         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40740         * tests/test-sprintf-posix.h (test_function): Likewise.
40741
40742 2008-09-21  Bruno Haible  <bruno@clisp.org>
40743
40744         * modules/getpass (Depends-on): Add strdup-posix.
40745
40746         New module 'strdup-posix'.
40747         * modules/strdup-posix: New file.
40748         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40749         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40751         REPLACE_STRDUP.
40752         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40753         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40755         strdup-posix.
40756
40757         * modules/strdup (Depends-on): Remove malloc-posix.
40758
40759 2008-09-20  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40762         Wildenhues.
40763
40764 2008-09-20  Bruno Haible  <bruno@clisp.org>
40765
40766         Ensure that wint_t gets defined on IRIX 5.3.
40767         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40768         * lib/wctype.in.h (wint_t): Likewise.
40769         (__wctype_wint_t): Remove type.
40770         (isw*): Use wint_t instead of __wctype_wint_t.
40771         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40772         * modules/wchar (Files): Add m4/wint_t.m4.
40773         (Makefile.am): Substitute HAVE_WINT_T.
40774         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40775         * tests/test-wctype.c: Check that wint_t is defined.
40776         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40777         * doc/posix-headers/wctype.texi: Likewise.
40778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40779
40780 2008-09-18  Bruno Haible  <bruno@clisp.org>
40781
40782         * gnulib-tool (func_exit): Update comment.
40783
40784 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40785
40786         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40787         assumes strdup exists and does not depend on strdup to return
40788         ENOMEM on out of memory conditions.
40789
40790 2008-09-18  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40793         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40794         digits for the exponent.
40795
40796 2008-09-18  Jim Meyering  <meyering@redhat.com>
40797             Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/vasnprintf.c (decimal_point_char): Define also if
40800         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40801
40802 2008-09-16  Bruno Haible  <bruno@clisp.org>
40803         and Eric Blake  <ebb9@byu.net>
40804
40805         vasnprintf: support Irix 5.3
40806         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40807         that mishandle long double infinity.
40808         Reported by Tom G. Christensen.
40809
40810 2008-09-16  Bruno Haible  <bruno@clisp.org>
40811
40812         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40813         Solaris 9.
40814         * doc/glibc-functions/alphasort.texi: Likewise.
40815         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40816
40817 2008-09-16  Jim Meyering  <meyering@redhat.com>
40818
40819         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40820         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40821         a umask modification leak out of a subshell.  Otherwise, the
40822         opensolaris /bin/sh would be accepted and thus cause unwarranted
40823         failures in the coreutils test suite.
40824
40825 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40826
40827         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40828         to succeed.
40829
40830 2008-09-16  Jim Meyering  <meyering@redhat.com>
40831
40832         avoid spurious test failure when library is built without ACL support
40833         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40834         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40835         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40836         * tests/test-copy-acl.sh: Likewise.
40837
40838 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40839
40840         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40841         based on character occurrence counts.
40842
40843 2008-09-15  Eric Blake  <ebb9@byu.net>
40844
40845         tests: avoid some compiler warnings
40846         * tests/test-memchr.c (main): Pass NULL indirectly.
40847         * tests/test-closein.c (main): Avoid unused variable.
40848
40849 2008-09-15  Bruno Haible  <bruno@clisp.org>
40850
40851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40852         are missing on OpenBSD 4.0 individually.
40853         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40854
40855 2008-09-15  Bruno Haible  <bruno@clisp.org>
40856
40857         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40858         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40859         * doc/posix-functions/perror.texi: Likewise.
40860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40861         is missing.
40862         Reported by Eric Blake.
40863
40864         * lib/errno.in.h: Use replacement values >= 2000.
40865         Reported by Eric Blake.
40866
40867 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40868
40869         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40870         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40871         limit.
40872         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40873         compareseq was aborted.
40874
40875 2008-09-14  Bruno Haible  <bruno@clisp.org>
40876
40877         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40878         yvec_edit_count.
40879         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40880         (fstrcmp_bounded): Simplify result computation accordingly.
40881
40882 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40883
40884         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40885         (fstrcmp): Define in terms of fstrcmp_bounded.
40886         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40887         lower_bound argument.
40888         Return quickly if the result is certainly < lower_bound.
40889         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40890
40891 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40892
40893         * lib/diffseq.h (EARLY_ABORT): New macro.
40894         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40895         evaluates to true.
40896
40897 2008-09-14  Bruno Haible  <bruno@clisp.org>
40898
40899         * modules/perror-tests: New file.
40900         * tests/test-perror.sh: New file.
40901         * tests/test-perror.c: New file.
40902
40903         New module 'perror'.
40904         * lib/stdio.in.h (perror): New declaration.
40905         * lib/perror.c: New file.
40906         * m4/perror.m4: New file.
40907         * modules/perror: New file.
40908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40909         * doc/posix-functions/perror.texi: Mention the perror module.
40910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40911         REPLACE_PERROR.
40912         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40913         REPLACE_PERROR.
40914
40915 2008-09-14  Bruno Haible  <bruno@clisp.org>
40916
40917         * modules/stdio (Makefile.am): Reorder to match the order in
40918         lib/stdio.in.h.
40919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40920
40921 2008-09-13  Bruno Haible  <bruno@clisp.org>
40922
40923         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40924
40925 2008-09-13  Bruno Haible  <bruno@clisp.org>
40926
40927         Extend strerror to cover the added errno values.
40928         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40929         (rpl_strerror): Provide error messages for the added errno values and
40930         for the WSA* values.
40931         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40932         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40933         strerror.
40934         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40935         * modules/strerror (Depends-on): Add errno.
40936         * doc/posix-functions/strerror.texi: Document the change.
40937         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40938         and EOVERFLOW.
40939
40940 2008-09-13  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/EOVERFLOW: Remove file.
40943         * m4/eoverflow.m4: Remove file.
40944         * modules/EOVERFLOW-tests: Remove file.
40945         * tests/test-EOVERFLOW.c: Remove file.
40946         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40947         * modules/ftell (Depends-on): Likewise.
40948         * modules/getdelim (Depends-on): Likewise.
40949         * modules/getugroups (Depends-on): Likewise.
40950         * modules/poll (Depends-on): Likewise.
40951         * modules/snprintf (Depends-on): Likewise.
40952         * modules/sprintf-posix (Depends-on): Likewise.
40953         * modules/vasnprintf (Depends-on): Likewise.
40954         * modules/vasprintf (Depends-on): Likewise.
40955         * modules/vfprintf-posix (Depends-on): Likewise.
40956         * modules/vsnprintf (Depends-on): Likewise.
40957         * modules/vsprintf-posix (Depends-on): Likewise.
40958         * modules/xvasprintf (Depends-on): Likewise.
40959         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40960         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40961         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40962         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40963         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40964         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40965         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40966         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40967         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40968         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40969         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40970         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40972         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40973         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40974         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40976         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40977         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40978         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40980         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40981         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40982         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40983         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40984         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40985         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40986         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40987         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40988         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40989         * MODULES.html.sh: Remove EOVERFLOW.
40990         * NEWS: Mention the change.
40991
40992 2008-09-13  Bruno Haible  <bruno@clisp.org>
40993
40994         * modules/errno-tests: New file.
40995         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40996
40997         * lib/errno.in.h: New file.
40998         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40999         * modules/errno: New file.
41000         * doc/posix-headers/errno.texi: Update documentation.
41001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41002
41003 2008-09-13  Bruno Haible  <bruno@clisp.org>
41004
41005         * tests/test-poll.c: Use #if for native Windows, rather than testing
41006         __MSVCRT__.
41007
41008 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41009             Bruno Haible  <bruno@clisp.org>
41010
41011         * lib/glob.c: Don't include <pwd.h> on native Windows.
41012         (WINDOWS32): New macro.
41013         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41014
41015 2008-09-13  Bruno Haible  <bruno@clisp.org>
41016
41017         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41018         (ETIMEDOUT): Remove macro.
41019         (glthread_cond_timedwait_multithreaded): New declaration.
41020         (glthread_cond_timedwait): Use it.
41021         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41022         (glthread_cond_timedwait_multithreaded): New function.
41023
41024 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41025
41026         * modules/poll-tests: Do not check for io.h.
41027         * tests/test-poll.c: Check for __MSVCRT__ instead.
41028
41029 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41030
41031         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41032         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41033         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41034
41035 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41036
41037         * modules/poll-tests: New.
41038         * tests/test-poll.c: New.
41039
41040 2008-09-12  Eric Blake  <ebb9@byu.net>
41041
41042         frexp: test for NetBSD failure on -0.0
41043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41044         not all, bugs from NetBSD 3.0 have been fixed.
41045         * doc/posix-functions/frexp.texi (frexp): Document bug.
41046         Reported by Thomas Klausner.
41047
41048         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41049         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41050         literal -0.0.
41051         Reported by Jonathan C. Patschke <jp@centtech.com>.
41052
41053 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41054
41055         * lib/glthread/cond.h: Use dummy implementation also if
41056         USE_WIN32_THREADS.
41057
41058 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41059
41060         * modules/fnmatch-posix (License): Change to LGPLv2+.
41061         * modules/fnmatch-gnu (License): Likewise.
41062
41063 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41064
41065         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41066
41067 2008-09-11  Jim Meyering  <meyering@redhat.com>
41068
41069         * users.txt: Add gtk-vnc.
41070
41071 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41072
41073         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41074         rotate amounts.
41075
41076         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41077         required for 16-bit and 8-bit rotates.
41078         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41079         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41080         UINT8_MAX instead of hard-coded constants.
41081         Suggested by Paul Eggert.
41082
41083 2008-09-07  Bruno Haible  <bruno@clisp.org>
41084
41085         * tests/test-striconveh.c (main): Check behaviour when converting from
41086         UTF-7.
41087
41088         Make striconveh work better with stateful encodings.
41089         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41090         that iconv does not increment the inptr when returning -1/EINVAL.
41091
41092 2008-09-07  Bruno Haible  <bruno@clisp.org>
41093
41094         * build-aux/config.rpath: Update according to libtool-2.2.6.
41095         * build-aux/config.libpath: Likewise.
41096
41097 2008-09-06  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41100         * lib/freadptr.c (freadptr): Likewise.
41101         * lib/freadseek.c (freadptrinc): Likewise.
41102         Reported by Simon Josefsson.
41103
41104 2008-09-06  Bruno Haible  <bruno@clisp.org>
41105
41106         * modules/freadptr (License): Change to LGPLv2+.
41107         * modules/freadseek (License): Likewise.
41108         Suggested by Eric Blake.
41109
41110         * modules/memchr2 (License): Change to LGPLv2+.
41111         Approved by Eric Blake.
41112
41113 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41114             Bruno Haible  <bruno@clisp.org>
41115
41116         Make gnulib-tool work with native 'sed' on AIX.
41117         * gnulib-tool (sed_noop): New variable.
41118         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41119         func_add_or_update, func_create_testdir): Use it to initialize sed
41120         script variables.
41121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41122
41123 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41124             Bruno Haible  <bruno@clisp.org>
41125
41126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41127         also works after #include directives.
41128
41129 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41130
41131         getdate.y: reject an out-of-range timezone value
41132         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41133         the range [-24...+24].  When specified with only one or two digits,
41134         * tests/test-getdate.c: Tests for the fix.
41135         * doc/getdate.texi: Document this change.
41136
41137 2008-09-03  Bruno Haible  <bruno@clisp.org>
41138
41139         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41140
41141 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41142
41143         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41144         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41145         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41146         Blake <ebb9@byu.net>.
41147
41148         * tests/test-bitrotate.c: Add more test vectors.
41149
41150 2008-09-02  Eric Blake  <ebb9@byu.net>
41151
41152         vasnprintf-posix: handle large precision via %.*d
41153         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41154         when handling it ourselves.
41155         * tests/test-vasnprintf-posix.c (test_function): Add test.
41156         * tests/test-snprintf-posix.h (test_function): Likewise.
41157         * tests/test-sprintf-posix.h (test_function): Likewise.
41158         * tests/test-vasprintf-posix.c (test_function): Likewise.
41159         Reported by Alain Guibert.
41160
41161 2008-09-01  Eric Blake  <ebb9@byu.net>
41162
41163         c-stack: make configure-time check more robust
41164         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41165         successful sigaction call.
41166         Reported by Tom G. Christensen.
41167
41168 2008-09-01  Bruno Haible  <bruno@clisp.org>
41169
41170         New module 'findprog-lgpl'.
41171         * modules/findprog-lgpl: New file.
41172         * lib/findprog-lgpl.c: New file.
41173         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41174         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41175         to decide whether to use strdup or xstrdup, concatenated_filename or
41176         xconcatenated_filename.
41177
41178 2008-09-01  Bruno Haible  <bruno@clisp.org>
41179
41180         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41181         'xconcat-filename' (GPL).
41182         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41183         (License): Change to LGPLv2+.
41184         * modules/xconcat-filename: New file.
41185         * lib/concat-filename.h (concatenated_filename): Change specification.
41186         (xconcatenated_filename): New declaration.
41187         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41188         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41189         memory situations.
41190         * lib/xconcat-filename.c: New file.
41191         * NEWS: Mention the change.
41192         * lib/findprog.c: Include concat-filename.h, not filename.h.
41193         (find_in_path): Use xconcatenated_filename instead of
41194         concatenated_filename.
41195         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41196         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41197         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41198         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41199         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41200         instead of concatenated_filename.
41201         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41202         (execute_java_class): Use xconcatenated_filename instead of
41203         concatenated_filename.
41204         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41205         * modules/javacomp (Depends-on): Likewise.
41206         * modules/javaexec (Depends-on): Likewise.
41207
41208 2008-09-01  Bruno Haible  <bruno@clisp.org>
41209
41210         Split module 'filename' into 'filename' and 'concat-filename'.
41211         * modules/filename: Keep only lib/filename.h.
41212         (License): Change to LGPLv2+.
41213         * modules/concat-filename: New file, extracted from modules/filename.
41214         * lib/filename.h (concatenated_filename): Remove declaration.
41215         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41216         * lib/concat-filename.c: Include concat-filename.h.
41217         * NEWS: Mention the change.
41218
41219 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41220
41221         * lib/bitrotate.h (rotl8, rotr8): Add.
41222
41223         * modules/bitrotate (configure.ac): Need
41224         AC_REQUIRE([AC_C_INLINE]).
41225         (Description): Mention stdint.h.  Reported by Bruno Haible
41226         <bruno@clisp.org>.
41227
41228         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41229         Paolo Bonzini <bonzini@gnu.org>.
41230
41231 2008-08-31  Bruno Haible  <bruno@clisp.org>
41232
41233         Assume Solaris specific bi-arch conventions on Solaris systems.
41234         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41235         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41237         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41238         like acl_libdirstem.
41239         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41240         acl_libdirstem.
41241         * NEWS: Mention the change.
41242         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41243
41244 2008-08-31  Jim Meyering  <meyering@redhat.com>
41245
41246         * lib/strftime.h: Add comments describing the two added arguments.
41247
41248         remove duplicate #include directives
41249         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41250         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41251
41252 2008-08-31  Bruno Haible  <bruno@clisp.org>
41253
41254         New module 'sigpipe-die'.
41255         * modules/sigpipe-die: New file.
41256         * lib/sigpipe-die.h: New file.
41257         * lib/sigpipe-die.c: New file.
41258         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41259
41260 2008-08-31  Bruno Haible  <bruno@clisp.org>
41261
41262         Don't override previously installed signal handlers.
41263         * lib/fatal-signal.c (saved_sigactions): New variable.
41264         (uninstall_handlers): Reset the signal to the saved handler, not
41265         to SIG_DFL (except when ignored).
41266         (install_handlers): Save the previous handlers.
41267
41268 2008-08-30  Bruno Haible  <bruno@clisp.org>
41269
41270         * gnulib-tool (func_reset_sigpipe): New function.
41271         (func_get_automake_snippet, func_modules_transitive_closure,
41272         func_import): Invoke it before a join command that reads from stdin,
41273         to avoid "echo: write error: Broken pipe" error messages on stderr.
41274         Reported by Sam Steingold <sds@gnu.org>.
41275
41276 2008-08-30  Bruno Haible  <bruno@clisp.org>
41277
41278         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41279         Code copied from m4/open.m4.
41280         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41281         access and the filename ends in a slash. Code copied from lib/open.c.
41282         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41283         * tests/test-fopen.c (main): Check against bug with trailing slash.
41284
41285 2008-08-29  Bruno Haible  <bruno@clisp.org>
41286
41287         Avoid some "gcc -pedantic" warnings.
41288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41289         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41290         * lib/dirent.in.h: Likewise.
41291         * lib/fcntl.in.h: Likewise.
41292         * lib/float.in.h: Likewise.
41293         * lib/iconv.in.h: Likewise.
41294         * lib/inttypes.in.h: Likewise.
41295         * lib/locale.in.h: Likewise.
41296         * lib/math.in.h: Likewise.
41297         * lib/netinet_in.in.h: Likewise.
41298         * lib/search.in.h: Likewise.
41299         * lib/signal.in.h: Likewise.
41300         * lib/stdarg.in.h: Likewise.
41301         * lib/stdint.in.h: Likewise.
41302         * lib/stdio.in.h: Likewise.
41303         * lib/stdlib.in.h: Likewise.
41304         * lib/string.in.h: Likewise.
41305         * lib/strings.in.h: Likewise.
41306         * lib/sys_select.in.h: Likewise.
41307         * lib/sys_socket.in.h: Likewise.
41308         * lib/sys_stat.in.h: Likewise.
41309         * lib/sys_time.in.h: Likewise.
41310         * lib/sysexits.in.h: Likewise.
41311         * lib/time.in.h: Likewise.
41312         * lib/unistd.in.h: Likewise.
41313         * lib/wchar.in.h: Likewise.
41314         * lib/wctype.in.h: Likewise.
41315         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41316         * modules/fchdir (Makefile.am): Likewise.
41317         * modules/fcntl (Makefile.am): Likewise.
41318         * modules/float (Makefile.am): Likewise.
41319         * modules/iconv_open (Makefile.am): Likewise.
41320         * modules/inttypes (Makefile.am): Likewise.
41321         * modules/locale (Makefile.am): Likewise.
41322         * modules/math (Makefile.am): Likewise.
41323         * modules/netinet_in (Makefile.am): Likewise.
41324         * modules/search (Makefile.am): Likewise.
41325         * modules/signal (Makefile.am): Likewise.
41326         * modules/stdarg (Makefile.am): Likewise.
41327         * modules/stdint (Makefile.am): Likewise.
41328         * modules/stdio (Makefile.am): Likewise.
41329         * modules/stdlib (Makefile.am): Likewise.
41330         * modules/string (Makefile.am): Likewise.
41331         * modules/strings (Makefile.am): Likewise.
41332         * modules/sys_select (Makefile.am): Likewise.
41333         * modules/sys_socket (Makefile.am): Likewise.
41334         * modules/sys_stat (Makefile.am): Likewise.
41335         * modules/sys_time (Makefile.am): Likewise.
41336         * modules/sysexits (Makefile.am): Likewise.
41337         * modules/time (Makefile.am): Likewise.
41338         * modules/unistd (Makefile.am): Likewise.
41339         * modules/wchar (Makefile.am): Likewise.
41340         * modules/wctype (Makefile.am): Likewise.
41341         Reported by Reuben Thomas <rrt@sc3d.org>.
41342
41343 2008-08-29  Bruno Haible  <bruno@clisp.org>
41344
41345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41346         any more.
41347
41348 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41349
41350         * MODULES.html.sh (Misc): Add bitrotate.
41351
41352         * modules/bitrotate: New file.
41353
41354         * lib/bitrotate.h: New file.
41355
41356         * modules/bitrotate-tests: New file.
41357
41358         * tests/test-bitrotate.c: New file.
41359
41360         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41361         on the bitrotate module.
41362
41363         * lib/arctwo.c: Use new bitrotate module.
41364
41365 2008-08-29  Jim Meyering  <meyering@redhat.com>
41366
41367         bootstrap: merge changes from coreutils
41368         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41369         of copied files.  Remove a kludge, now that this is fixed.
41370         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41371         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41372         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41373
41374 2008-08-29  Bruno Haible  <bruno@clisp.org>
41375
41376         * MODULES.html.sh: Remove --cvs-urls option.
41377
41378 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41379
41380         maint.mk: adjust to file name change
41381         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41382
41383 2008-08-28  Jim Meyering  <meyering@redhat.com>
41384
41385         * modules/getndelim2 (License): Relicense to LGPLv2+.
41386         Approved by Richard Stallman for the version of 1995, and by
41387         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41388
41389 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41390
41391         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41392         dummy if one is not available.  Do not touch them if
41393         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41394         (getc_maybe_unlocked): New.
41395         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41396
41397 2008-08-26  Eric Blake  <ebb9@byu.net>
41398
41399         doc/INSTALL: resync from autoconf
41400         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41401         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41402         moving...
41403         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41404         * INSTALL: Regenerate.
41405         * INSTALL.ISO: New file.
41406         * INSTALL.UTF-8: Likewise.
41407
41408 2008-08-26  Jim Meyering  <meyering@redhat.com>
41409
41410         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41411         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41412         these definitions conditional, so that they may be overridden, too.
41413
41414 2008-08-26  Bruno Haible  <bruno@clisp.org>
41415
41416         Generate INSTALL file variants with prettier quotes.
41417         * doc/Makefile (INSTALL_PRELUDE): New macro.
41418         (INSTALL): Use it.
41419         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41420
41421 2008-08-26  Bruno Haible  <bruno@clisp.org>
41422
41423         Run makeinfo in an English locale.
41424         * doc/Makefile (MAKEINFO): New variable.
41425
41426 2008-08-26  Bruno Haible  <bruno@clisp.org>
41427
41428         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41429         Suggested by Eric Blake.
41430
41431 2008-08-25  Bruno Haible  <bruno@clisp.org>
41432
41433         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41434
41435 2008-08-25  Eric Blake  <ebb9@byu.net>
41436
41437         c-stack: test that stack overflow can be caught
41438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41439         that platform allows handling stack overflow; at least OS/2 EMX
41440         has sigaltstack, but crashes before transferring control to
41441         handler on stack overflow.
41442         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41443         check for HAVE_STACK_OVERFLOW_HANDLING.
41444         Reported by Elbert Pol.
41445
41446 2008-08-25  Bruno Haible  <bruno@clisp.org>
41447
41448         * doc/posix-functions/strftime.texi: Fix description of strftime
41449         module.
41450
41451 2008-08-24  Bruno Haible  <bruno@clisp.org>
41452
41453         * tests/uniwidth/test-uc_width2.c: New file.
41454         * tests/uniwidth/test-uc_width2.sh: New file.
41455         * modules/uniwidth/width-tests (Files): Add the new files.
41456         (TESTS): Add uniwidth/test-uc_width2.sh.
41457         (TESTS_ENVIRONMENT): New variable.
41458         (check_PROGRAMS): Add test-uc_width2.
41459         (test_uc_width2_SOURCES): New variable.
41460
41461         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41462         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41463         not 0x00AB.
41464         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41465
41466 2008-08-22  Eric Blake  <ebb9@byu.net>
41467
41468         test-lock, test-tls: mention why a test is skipped
41469         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41470         skipped.
41471         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41472
41473         count-one-bits: relax license
41474         * modules/count-one-bits (License): Relicense to LGPLv2+.
41475         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41476
41477 2008-08-22  Andreas Schwab  <schwab@suse.de>
41478
41479         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41480         Remove spurious space in assignment.
41481
41482 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41483
41484         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41485         Paul Eggert <eggert@CS.UCLA.EDU>.
41486
41487 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41488
41489         * modules/gettext: Add m4/threadlib.m4.
41490
41491 2008-08-19  Eric Blake  <ebb9@byu.net>
41492
41493         test-c-stack: fix compilation failure on FreeBSD 5.0
41494         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41495         headers before <sys/resource.h>.
41496         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41497         the bug.
41498         Reported by Nelson H. F. Beebe.
41499
41500         strverscmp: migrate from "strverscmp.h" to <string.h>
41501         * modules/string (Makefile.am): Add new hooks.
41502         * modules/strverscmp (Files): Remove strverscmp.h.
41503         (Depends-on): Add string.
41504         (configure.ac): Add indicator.
41505         (Include): Mention new header.
41506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41507         defaults.
41508         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41509         results.
41510         * lib/strverscmp.h: Delete.
41511         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41512         * tests/test-strverscmp.c (includes): Adjust client.
41513         * lib/check-version.c (includes): Likewise.
41514         * NEWS: Document the change.
41515
41516         strverscmp: add unit test
41517         * modules/strverscmp-tests: New file.
41518         * tests/test-strverscmp.c: Likewise.
41519
41520 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41521
41522         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41523         regarding Windows crypto stuff, from Mono.
41524
41525 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41526
41527         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41528         if present, for intel RND.  Return error on failures.
41529
41530 2008-08-18  Ben Pfaff  <blp@gnu.org>
41531
41532         gitlog-to-changelog: give better diagnostic for failed pipe-open
41533         * build-aux/gitlog-to-changelog: Improve error message: suggest
41534         that the version of Git may be too old.
41535
41536 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41537
41538         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41539         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41540
41541 2008-08-18  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41544         pthread_in_use().
41545
41546 2008-08-18  Bruno Haible  <bruno@clisp.org>
41547
41548         * lib/glthread/threadlib.c: Include <pthread.h>.
41549
41550 2008-08-18  Bruno Haible  <bruno@clisp.org>
41551
41552         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41553         glthread_recursive_lock_* macros.
41554         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41555         Fix syntax error.
41556
41557 2008-08-18  Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/glthread/thread.c: Avoid forcing a context switch right after
41560         thread creation.
41561
41562 2008-08-17  Bruno Haible  <bruno@clisp.org>
41563
41564         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41565         * lib/glthread/thread.h: Provide Win32 specific implementation.
41566         * modules/thread (Files): Add lib/glthread/thread.c.
41567         (Depends-on): Add lock.
41568         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41569
41570 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41571
41572         New module 'yield'.
41573         * modules/yield: New file.
41574         * lib/glthread/yield.h: New file.
41575         * m4/yield.m4: New file.
41576         * MODULES.html.sh (Multithreading): Add yield.
41577
41578 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41579
41580         New module 'thread'.
41581         * modules/thread: New file.
41582         * lib/glthread/thread.h: New file.
41583         * m4/thread.m4: New file.
41584         * MODULES.html.sh (Multithreading): Add thread.
41585
41586 2008-08-17  Bruno Haible  <bruno@clisp.org>
41587
41588         * lib/glthread/lock.h: Include <stdlib.h> always.
41589         * lib/glthread/tls.h: Likewise.
41590         * lib/glthread/cond.h: Likewise.
41591
41592 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41593
41594         New module 'cond'.
41595         * modules/cond: New file.
41596         * lib/glthread/cond.h: New file.
41597         * lib/glthread/cond.c: New file.
41598         * m4/cond.m4: New file.
41599         * MODULES.html.sh (Multithreading): Add cond.
41600
41601 2008-08-16  Eric Blake  <ebb9@byu.net>
41602
41603         c-stack: fix regression on Irix 5.3 from 2008-06-21
41604         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41605         sa_sigaction...
41606         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41607         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41608         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41609         * modules/signal (Makefile.am): Use the value.
41610         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41611         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41612         * doc/posix-headers/signal.texi (signal.h): Document this
41613         portability issue.
41614         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41615         Reported by Tom G. Christensen.
41616
41617 2008-08-17  Bruno Haible  <bruno@clisp.org>
41618
41619         New module 'threadlib'.
41620         * modules/threadlib: New file.
41621         * lib/glthread/threadlib.c: New file, extracted from
41622         lib/glthread/lock.c.
41623         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41624         functions.
41625         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41626         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41627         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41628         macros.
41629         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41630         (gl_DISABLE_THREADS): Remove macro.
41631         * modules/lock (Files): Remove build-aux/config.rpath.
41632         (Depends-on): Remove havelib. Add threadlib.
41633         (configure.ac-early): Remove section.
41634         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41635         * modules/tls (Depends-on): Remove lock. Add threadlib.
41636         (Link): New section, copied from threadlib.
41637         * MODULES.html.sh (Multithreading): Add threadlib.
41638
41639 2008-08-14  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41642         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41643         glthread_rwlock_unlock, glthread_rwlock_destroy,
41644         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41645         glthread_recursive_lock_destroy): Define as macros always.
41646         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41647         glthread_lock_lock.
41648         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41649         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41650         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41651         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41652         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41653         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41654         (glthread_recursive_lock_lock_func): Renamed from
41655         glthread_recursive_lock_lock.
41656         (glthread_recursive_lock_unlock_func): Renamed from
41657         glthread_recursive_lock_unlock.
41658         (glthread_recursive_lock_destroy_func): Renamed from
41659         glthread_recursive_lock_destroy.
41660
41661 2008-08-14  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/glthread/lock.h: Renamed from lib/lock.h.
41664         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41665         * lib/glthread/tls.h: Renamed from lib/tls.h.
41666         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41667         * lib/fstrcmp.c: Update includes.
41668         * lib/strsignal.c: Update includes.
41669         * modules/lock (Files, Makefile.am): Update.
41670         (Include): Change to "glthread/lock.h".
41671         * modules/tls (Files, Makefile.am): Update.
41672         (Include): Change to "glthread/tls.h".
41673         * tests/test-lock.c: Update includes.
41674         * tests/test-tls.c: Update includes.
41675         * NEWS: Mention the renamed header files.
41676
41677 2008-08-11  Jim Meyering  <meyering@redhat.com>
41678
41679         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41680
41681 2008-08-11  Eric Blake  <ebb9@byu.net>
41682
41683         test-c-stack: avoid C99-ism
41684         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41685         before statement.
41686         Reported by Alain Guibert.
41687
41688 2008-08-10  Jim Meyering  <meyering@redhat.com>
41689
41690         ensure that return value of uinttostr et al are not ignored
41691         * lib/inttostr.h (__GNUC_PREREQ): Define.
41692         (__attribute_warn_unused_result__): Define.
41693         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41694
41695 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41696
41697         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41698         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41699
41700 2008-08-07  Jim Meyering  <meyering@redhat.com>
41701
41702         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41703
41704         * modules/mkstemp (License): Relicense under LGPLv2+.
41705         * modules/tempname (License): Likewise.
41706
41707 2008-08-06  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/poll.c (poll): Further micro-optimization.
41710
41711 2008-08-06  Jim Meyering  <meyering@redhat.com>
41712
41713         inet_pton.c: use locale-independent tolower
41714         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41715         (inet_pton6): Use c_tolower rather than tolower.
41716         * modules/inet_pton (Depends-on): Add c-ctype.
41717
41718 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41719
41720         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41721         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41722
41723 2008-08-06  Jim Meyering  <meyering@redhat.com>
41724
41725         * modules/inet_pton (License): Relicense under LGPLv2+.
41726
41727 2008-08-03  Bruno Haible  <bruno@clisp.org>
41728
41729         Additional non-aborting API for lock and tls.
41730         * lib/lock.h: Include <errno.h>.
41731         (glthread_lock_init): New macro/function.
41732         (gl_lock_init): Define as wrapper around glthread_lock_init.
41733         (glthread_lock_lock): New macro/function.
41734         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41735         (glthread_lock_unlock): New macro/function.
41736         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41737         (glthread_lock_destroy): New macro/function.
41738         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41739         (glthread_rwlock_init): New macro/function.
41740         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41741         (glthread_rwlock_rdlock): New macro/function.
41742         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41743         (glthread_rwlock_wrlock): New macro/function.
41744         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41745         (glthread_rwlock_unlock): New macro/function.
41746         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41747         (glthread_rwlock_destroy): New macro/function.
41748         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41749         (glthread_recursive_lock_init): New macro/function.
41750         (gl_recursive_lock_init): Define as wrapper around
41751         glthread_recursive_lock_init.
41752         (glthread_recursive_lock_lock): New macro/function.
41753         (gl_recursive_lock_lock): Define as wrapper around
41754         glthread_recursive_lock_lock.
41755         (glthread_recursive_lock_unlock): New macro/function.
41756         (gl_recursive_lock_unlock): Define as wrapper around
41757         glthread_recursive_lock_unlock.
41758         (glthread_recursive_lock_destroy): New macro/function.
41759         (gl_recursive_lock_destroy): Define as wrapper around
41760         glthread_recursive_lock_destroy.
41761         (glthread_once): New macro/function.
41762         (gl_once): Define as wrapper around glthread_once.
41763         Update function declarations.
41764         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41765         glthread_rwlock_init. Return error code.
41766         (glthread_rwlock_rdlock_multithreaded): Renamed from
41767         glthread_rwlock_rdlock. Return error code.
41768         (glthread_rwlock_wrlock_multithreaded): Renamed from
41769         glthread_rwlock_wrlock. Return error code.
41770         (glthread_rwlock_unlock_multithreaded): Renamed from
41771         glthread_rwlock_unlock. Return error code.
41772         (glthread_rwlock_destroy_multithreaded): Renamed from
41773         glthread_rwlock_destroy. Return error code.
41774         (glthread_recursive_lock_init_multithreaded): Renamed from
41775         glthread_recursive_lock_init. Return error code.
41776         (glthread_recursive_lock_lock_multithreaded): Renamed from
41777         glthread_recursive_lock_lock. Return error code.
41778         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41779         glthread_recursive_lock_unlock. Return error code.
41780         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41781         glthread_recursive_lock_destroy. Return error code.
41782         (glthread_once_call): Make static.
41783         (glthread_once_multithreaded): Renamed from glthread_once.
41784         * lib/tls.h: Include <errno.h>.
41785         (glthread_tls_key_init): New macro/function.
41786         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41787         (glthread_tls_set): New macro/function.
41788         (gl_tls_set): Define as wrapper around glthread_tls_set.
41789         (glthread_tls_key_destroy): New macro/function.
41790         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41791         Update function declarations.
41792         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41793         glthread_tls_get.
41794         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41795
41796 2008-08-04  Eric Blake  <ebb9@byu.net>
41797
41798         gnumakefile: use space, not TAB, outside of targets
41799         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41800
41801 2008-08-02  Jim Meyering  <meyering@redhat.com>
41802
41803         getdate.y: avoid locale-dependent date parsing failure
41804         In Turkish locales, getdate would fail to recognize keywords
41805         containing a lowercase "i".  The solution is not to rely on
41806         locale-sensitive case-conversion.
41807         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41808         (lookup_word): Use c_toupper in place of toupper.
41809         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41810         Reported by Vefa Bicakci <bicave@superonline.com> in
41811         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41812         * modules/getdate (Depends-on): Add c-ctype.
41813
41814 2008-08-02  Bruno Haible  <bruno@clisp.org>
41815
41816         * gnulib-tool (func_import): When updating or creating a .gitignore
41817         file, prepend each added line with a slash, and ignore leading slashes
41818         from the existing lines.
41819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41820
41821 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41822
41823         Portability fix for GNU make 3.79.1.
41824         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41825         versions do not understand.
41826
41827 2008-08-01  Bruno Haible  <bruno@clisp.org>
41828
41829         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41830         * tests/test-isnanf.h (zero): New variable.
41831         (main): Avoid literal -0.0f.
41832         * tests/test-isnand.h (zero): New variable.
41833         (main): Avoid literal -0.0.
41834         * tests/test-isnanl.h (zero): New variable.
41835         (main): Avoid literal -0.0L.
41836         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41837         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41838         -0.0, -0.0L.
41839         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41840         (test_signbitd): Avoid literal -0.0.
41841         (test_signbitl): Avoid literal -0.0L.
41842         * tests/test-ceilf1.c (zero): New variable.
41843         (main): Avoid literal -0.0f.
41844         * tests/test-ceill.c (zero): New variable.
41845         (main): Avoid literal -0.0L.
41846         * tests/test-floorf1.c (zero): New variable.
41847         (main): Avoid literal -0.0f.
41848         * tests/test-floorl.c (zero): New variable.
41849         (main): Avoid literal -0.0L.
41850         * tests/test-roundf1.c (zero): New variable.
41851         (main): Avoid literal -0.0f.
41852         * tests/test-round1.c (zero): New variable.
41853         (main): Avoid literal -0.0.
41854         * tests/test-roundl.c (zero): New variable.
41855         (main): Avoid literal -0.0L.
41856         * tests/test-truncf1.c (zero): New variable.
41857         (main): Avoid literal -0.0f.
41858         * tests/test-trunc1.c (zero): New variable.
41859         (main): Avoid literal -0.0.
41860         * tests/test-truncl.c (zero): New variable.
41861         (main): Avoid literal -0.0L.
41862         * tests/test-frexp.c (zero): New variable.
41863         (main): Avoid literal -0.0.
41864         * tests/test-frexpl.c (zero): New variable.
41865         (main): Avoid literal -0.0L.
41866         * tests/test-ldexpl.c (zero): New variable.
41867         (main): Avoid literal -0.0L.
41868         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41869         (zerod, zerol): New variables.
41870         (test_function): Avoid literals -0.0, -0.0L.
41871         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41872         (zerod, zerol): New variables.
41873         (test_function): Avoid literals -0.0, -0.0L.
41874         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41875         (zerod, zerol): New variables.
41876         (test_function): Avoid literals -0.0, -0.0L.
41877         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41878         (zerod, zerol): New variables.
41879         (test_function): Avoid literals -0.0, -0.0L.
41880         * tests/test-strtod.c (zero): New variable.
41881         (main): Avoid literal -0.0.
41882         Reported by Jonathan C. Patschke <jp@centtech.com>.
41883
41884 2008-07-31  Jim Meyering  <meyering@redhat.com>
41885
41886         sha256.h: correct definition of SHA224_DIGEST_SIZE
41887         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41888         Reported by Paulie Pena IV <paulie4@gmail.com>.
41889         Define as 224 / 8, rather than as a literal.
41890         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41891         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41892         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41893
41894 2008-07-31  Bruno Haible  <bruno@clisp.org>
41895
41896         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41897         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41898         Reported by Jonathan Patschke <jp@centtech.com>.
41899
41900 2008-07-31  Bruno Haible  <bruno@clisp.org>
41901
41902         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41903         Reported by Paolo Bonzini <bonzini@gnu.org>.
41904
41905 2008-07-30  Eric Blake  <ebb9@byu.net>
41906
41907         test-strtod: allow compilation without -lm
41908         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41909         Reported by Dennis Clarke <blastwave@gmail.com>.
41910
41911 2008-07-28  Jim Meyering  <meyering@redhat.com>
41912
41913         bootstrap: work also when there are no .po files in po/
41914         * build-aux/bootstrap (update_po_files): Complete the change
41915         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41916
41917 2008-07-27  Jim Meyering  <meyering@redhat.com>
41918
41919         * users.txt: Add zile.
41920
41921 2008-07-26  Ben Pfaff  <blp@gnu.org>
41922
41923         Add missing dependencies on new m4/exponent[fdl].m4 files.
41924         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41925         * modules/isnand-nolibm: Add m4/exponentd.m4.
41926         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41927         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41928         m4/isnan[fdl].m4, because the macros actually used moved.
41929         Reported by Jim Meyering.
41930
41931 2008-07-14  Ben Pfaff  <blp@gnu.org>
41932
41933         Add isinf module.
41934         * lib/isinf.c: New file.
41935         * lib/math.in.h: Define isinf macro if we have decided to replace
41936         it.
41937         * m4/isinf.m4: New file.
41938         * m4/math_h.m4: Initialize and substitute variables for isinf
41939         module.
41940         * modules/isinf: New file.
41941         * modules/isinf-tests: New file.
41942         * modules/math: Add substitutions for new module.
41943         * tests/test-isinf.c: New file.
41944         * doc/posix-functions/isinf.texi: Mention new module.
41945         * MODULES.html.sh: Mention new module.
41946
41947 2008-07-14  Ben Pfaff  <blp@gnu.org>
41948
41949         Factor out some macros for use by additional modules.
41950         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41951         exponentf.m4.
41952         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41953         exponentd.m4.
41954         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41955         file exponentl.m4.
41956         * m4/exponentf.m4: New file.
41957         * m4/exponentd.m4: New file.
41958         * m4/exponentl.m4: New file.
41959         * modules/isnanf: Use new file m4/exponentf.m4.
41960         * modules/isnand: Use new file m4/exponentd.m4.
41961         * modules/isnanl: Use new file m4/exponentl.m4.
41962
41963 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41964
41965         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41966         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41967         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41968         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41969
41970         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41971         readlink on platforms without PATH_MAX.
41972
41973 2008-07-21  Eric Blake  <ebb9@byu.net>
41974
41975         Warn, not fail, on stale version.
41976         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41977
41978         Don't allow installation with stale devel version number.
41979         * top/GNUmakefile (_is-install-target): New macro.
41980         (_curr-ver): Forbid installation with stale version number.
41981
41982 2008-07-20  Bruno Haible  <bruno@clisp.org>
41983
41984         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41985         TESTS_ENVIRONMENT.
41986         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41987
41988 2008-07-20  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/c-stack.h (c_stack_action): Add documentation.
41991         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41992
41993 2008-07-20  Bruno Haible  <bruno@clisp.org>
41994
41995         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41996         * modules/readlink (License): Likewise.
41997
41998 2008-07-17  Eric Blake  <ebb9@byu.net>
41999
42000         * modules/c-stack (Link): Fix typo.
42001
42002         Make c-stack use libsigsegv, when available.
42003         * modules/c-stack (Depends-on): Add libsigsegv.
42004         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42005         needed.
42006         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42007         (segv_handler, overflow_handler, c_stack_action)
42008         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42009         implementation when libsigsegv is available, but only when using
42010         the library is necessary.
42011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42012         comment, explaining why XSI check fails on Linux.
42013         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42014         * tests/test-c-stack2.sh: Tweak skip message.
42015         * NEWS: Document new link-time requirements.
42016
42017 2008-07-16  Eric Blake  <ebb9@byu.net>
42018
42019         c-stack: Expose false positives when not using libsigsegv.
42020         * modules/c-stack-tests (Files): Expand test.
42021         * tests/test-c-stack.c (main): Add means to conditionally trigger
42022         non-overflow SIGSEGV.
42023         * tests/test-c-stack2.sh: New file.
42024
42025 2008-07-14  Bruno Haible  <bruno@clisp.org>
42026
42027         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42028         Reported by Eric Blake.
42029
42030 2008-07-14  Sam Steingold  <sds@gnu.org>
42031             Bruno Haible  <bruno@clisp.org>
42032
42033         New module libsigsegv.
42034         * modules/libsigsegv: New file.
42035         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42036         modifications.
42037         * MODULES.html.sh (Signal handling): New section.
42038
42039 2008-07-14  Bruno Haible  <bruno@clisp.org>
42040
42041         * modules/unictype/ctype-* (Description): Add the word "function".
42042         Improves the resulting doc in MODULES.html.
42043
42044 2008-07-12  Ben Pfaff  <blp@gnu.org>
42045
42046         Add longlong module.
42047         * modules/longlong: New file.
42048
42049 2008-07-12  Bruno Haible  <bruno@clisp.org>
42050
42051         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42052         to empty.
42053
42054 2008-07-10  Ben Pfaff  <blp@gnu.org>
42055
42056         Add isnan module.
42057         * doc/posix-functions/isnan.texi: Mention new module.
42058         * lib/math.in.h: Define isnan macro if we have decided to replace
42059         it.
42060         * m4/isnan.m4: New file.
42061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42062         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42063         also.
42064         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42065         redundancy.
42066         * m4/math_h.m4: Initialize and substitute variables for isnan
42067         module.
42068         * modules/isnan: New file.
42069         * modules/isnan-tests: New file.
42070         * modules/math: Add substitutions for new module.
42071         * tests/test-isnan.c: New file.
42072         * MODULES.html.sh: Mention new module.
42073
42074 2008-07-10  Ben Pfaff  <blp@gnu.org>
42075
42076         Add isnanf module.
42077         * lib/isnanf.m4: New file.
42078         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42079         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42080         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42081         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42082         * modules/isnanf: New file.
42083         * modules/isnanf-tests: New file.
42084         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42085         files.
42086         * tests/test-isnanf-nolibm.c: factored most of its contents into
42087         new file tests/test-isnanf.h.
42088         * tests/test-isnanf.h: New file.
42089         * tests/test-isnanf.c: New file.
42090         * MODULES.html.sh: Mention new module.
42091         * doc/glibc-functions/isnanf.texi: Mention new module.
42092
42093 2008-07-10  Ben Pfaff  <blp@gnu.org>
42094
42095         Add isnand module.
42096         * lib/isnand.h: New file.
42097         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42098         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42099         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42100         functionality also.
42101         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42102         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42103         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42104         * modules/isnand: New file.
42105         * modules/isnand-tests: New file.
42106         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42107         files.
42108         * tests/test-isnand-nolibm.c: factored most of its contents into
42109         new file tests/test-isnand.h.
42110         * tests/test-isnand.h: New file.
42111         * tests/test-isnand.c: New file.
42112         * MODULES.html.sh: Mention new module.
42113
42114 2008-07-10  Ben Pfaff  <blp@gnu.org>
42115
42116         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42117         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42118         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42119         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42120         * modules/isnanf-nolibm: Update references to renamed files.
42121         * modules/isnand-nolibm: Likewise.
42122         * modules/isnanf-nolibm-tests: Likewise.
42123         * modules/isnand-nolibm-tests: Likewise.
42124         * lib/frexp.c: Likewise.
42125         * lib/isfinite.c: Likewise.
42126         * lib/signbitd.c: Likewise.
42127         * lib/signbitf.c: Likewise.
42128         * lib/vasnprintf.c: Likewise.
42129         * tests/test-ceilf1.c: Likewise.
42130         * tests/test-ceilf2.c: Likewise.
42131         * tests/test-floorf1.c: Likewise.
42132         * tests/test-floorf2.c: Likewise.
42133         * tests/test-frexp.c: Likewise.
42134         * tests/test-round1.c: Likewise.
42135         * tests/test-round2.c: Likewise.
42136         * tests/test-roundf1.c: Likewise.
42137         * tests/test-strtod.c: Likewise.
42138         * tests/test-trunc1.c: Likewise.
42139         * tests/test-trunc2.c: Likewise.
42140         * tests/test-truncf1.c: Likewise.
42141         * tests/test-truncf2.c: Likewise.
42142         * NEWS: Mention the renamed header files.
42143
42144 2008-07-11  Jim Meyering  <meyering@redhat.com>
42145
42146         vc-list-files: make the last-resort awk code more portable
42147         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42148         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42149         does not support it.
42150
42151 2008-07-10  Eric Blake  <ebb9@byu.net>
42152
42153         Work with tar's bootstrap.
42154         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42155         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42156         an m4 comment.
42157
42158 2008-07-09  Jim Meyering  <meyering@redhat.com>
42159
42160         posix-shell.m4: fix typo that made this test malfunction
42161         * m4/posix-shell.m4: Remove capitalization in variable name.
42162
42163 2008-07-08  Bruno Haible  <bruno@clisp.org>
42164
42165         * m4/onceonly.m4: Update comments.
42166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42167
42168 2008-07-04  Jim Meyering  <meyering@redhat.com>
42169
42170         * users.txt: Add vc-dwim.
42171         (bison, coreutils): Use the gitweb URL.
42172
42173 2008-07-03  Jim Meyering  <meyering@redhat.com>
42174
42175         * users.txt: Add libffcall.  From Sam Steingold.
42176
42177 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42178
42179         getdate.y: do not ignore TZ with relative day, month or year offset
42180         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42181         relative-date-handling, since otherwise, the latter would clobber the
42182         sole output (an updated Start value) of the tz-handling block.
42183         * tests/test-getdate.c: Tests for the fix
42184
42185 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42186
42187         Recognize 'foo_LIBRARIES += libgnu.a'.
42188         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42189         makefile snippet has already specified an installation location,
42190         also using '+='.
42191
42192 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42193
42194         getdate.y: factor out common actions
42195         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42196         Use them in place of open-coded actions.
42197
42198 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42199
42200         Add self-test for getdate module.
42201         * modules/getdate-tests: New file.
42202         * tests/test-getdate.c: New file.
42203
42204 2008-06-29  Bruno Haible  <bruno@clisp.org>
42205
42206         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42207         .gitignore.
42208         Reported by Sylvain Beucler <beuc@beuc.net>.
42209
42210 2008-06-29  Bruno Haible  <bruno@clisp.org>
42211
42212         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42213         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42214
42215 2008-06-29  Bruno Haible  <bruno@clisp.org>
42216
42217         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42218         EXTRA_DIST.
42219         Reported by Sylvain Beucler <beuc@beuc.net>.
42220
42221 2008-06-26  Jim Meyering  <meyering@redhat.com>
42222
42223         make several modules depend on the "open" module
42224         This provides slightly increased consistency when opening-for-write
42225         the name of a non-directory spelled with a trailing slash.
42226         * modules/chdir-safer: Likewise.
42227         * modules/chown: Likewise.
42228         * modules/clean-temp: Likewise.
42229         * modules/copy-file: Likewise.
42230         * modules/fchdir: Likewise.
42231         * modules/fcntl-safer: Likewise.
42232         * modules/pipe: Likewise.
42233         * modules/utime: Likewise.
42234         Prompted by Eric Blake and Bruno Haible.
42235
42236 2008-06-24  Andreas Schwab  <schwab@suse.de>
42237
42238         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42239         literals can be used as initializers for global variables.
42240
42241 2008-06-23  Eric Blake  <ebb9@byu.net>
42242
42243         Make gnulib-cache.m4 easier to diff.
42244         * gnulib-tool (func_import): Allow newlines when reading cached
42245         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42246
42247 2008-06-23  Bruno Haible  <bruno@clisp.org>
42248
42249         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42250         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42251         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42252         m4/signalblocking.m4.
42253         (gl_PREREQ_SIGACTION): Don't invoke it.
42254         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42255         gl_PREREQ_SIG_HANDLER_H.
42256         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42257         Don't check for sigaction here.
42258
42259 2008-06-23  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42262         (install_handlers): Don't set the SA_RESETHAND flag.
42263
42264 2008-06-23  Bruno Haible  <bruno@clisp.org>
42265
42266         * m4/sigaction.m4: Comment fixes.
42267         * lib/signal.in.h: Likewise.
42268
42269 2008-06-23  Eric Blake  <ebb9@byu.net>
42270
42271         Fix typo.
42272         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42273
42274         Avoid SA_ namespace.
42275         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42276         Reported by Ralf Wildenhues.
42277
42278         Avoid test failure due to SA_RESTORER.
42279         * tests/test-sigaction.c (SA_MASK): New macro.
42280         (main): Avoid failing due to extension flags being set.
42281         Reported by Jim Meyering.
42282
42283         Revert use of sig-handler.h in sigprocmask.c.
42284         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42285         it requires the existence of struct sigaction.
42286         * lib/sigprocmask.c (handler_t): Restore typedef.
42287         (rpl_signal, old_handlers): Use local type.
42288
42289 2008-06-22  Bruno Haible  <bruno@clisp.org>
42290
42291         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42292         conditionally.
42293         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42294
42295 2008-06-22  Bruno Haible  <bruno@clisp.org>
42296
42297         * doc/posix-functions/siginterrupt.texi: Move note.
42298
42299         * lib/signal.in.h (SA_RESTART): New macro.
42300         * lib/sigaction.c: Update comment.
42301
42302         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42303
42304         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42305         (gl_PREREQ_SIGPROCMASK): Invoke it.
42306         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42307
42308         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42309
42310         * lib/sigprocmask.c: Update a comment.
42311
42312 2008-06-21  Eric Blake  <ebb9@byu.net>
42313
42314         Use sigaction module rather than signal().
42315         * modules/c-stack (Depends-on): Add sigaction.
42316         * modules/fatal-signal (Depends-on): Likewise.
42317         * modules/nanosleep (Depends-on): Likewise.
42318         * modules/sigprocmask (Files): Add sig-handler.h.
42319         * modules/sigaction (Files): Likewise.
42320         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42321         Eggert.
42322         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42323         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42324         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42325         (init_fatal_signals): Likewise.
42326         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42327         (siginterrupt): Delete fallback.
42328         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42329         instead.
42330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42331         siginterrupt.
42332
42333         New module sigaction, for mingw.
42334         * modules/sigaction: New module...
42335         * modules/sigaction-tests: ...and its test.
42336         * m4/sigaction.m4: New file.
42337         * lib/sigaction.c: Likewise.
42338         * tests/test-sigaction.c: Likewise.
42339         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42340         * modules/signal (Makefile.am): Likewise.
42341         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42342         needed.
42343         * doc/posix-headers/signal.texi (signal.h): Mention provided
42344         types.
42345         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42346         that sigaction is preferable.
42347         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42348         module.
42349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42350         sigaction.
42351
42352         Improve robustness of sigprocmask by overriding signal.
42353         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42354         is in use.
42355         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42356         (SIGKILL, SIGSTOP): Provide fallbacks.
42357         (rpl_signal): Implement.
42358         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42359         signal can be called inside handlers.
42360
42361         Fix nanosleep module on mingw.
42362         * modules/nanosleep (Depends-on): Add sys_select.
42363         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42364
42365         Fix licensing of sigprocmask.
42366         * modules/raise (License): Relicense as LGPL.
42367
42368 2008-06-21  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42371         result if it contains question marks.
42372         Reported by Michael Geng <linux@michaelgeng.de>.
42373
42374 2008-06-19  Bruno Haible  <bruno@clisp.org>
42375
42376         Fix CVS-ism.
42377         * doc/gnulib.texi: Include updated-stamp.texi.
42378         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42379         (updated-stamp.texi): New rule.
42380         (gnulib.info): Depend on it.
42381         * doc/.gitignore: Add updated-stamp.texi.
42382         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42383
42384 2008-06-19  Bruno Haible  <bruno@clisp.org>
42385
42386         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42388
42389 2008-06-19  Eric Blake  <ebb9@byu.net>
42390
42391         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42392         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42393         Reported by Stepan Kasal.
42394
42395 2008-06-18  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42398         Reported by Eric Blake.
42399
42400 2008-06-18  Eric Blake  <ebb9@byu.net>
42401
42402         Work around cygwin 1.5.25 strsignal bug.
42403         * tests/test-strsignal.c: Allow for const char *.
42404         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42405
42406 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42407
42408         * users.txt: Update URL to article and add author/date
42409         information.
42410
42411 2008-06-17  Bruno Haible  <bruno@clisp.org>
42412
42413         New macro gl_DISABLE_THREADS.
42414         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42415         if the user did not pass --enable-threads or --disable-threads option.
42416         (gl_DISABLE_THREADS): New macro.
42417         Reported by Eric Blake <ebb9@byu.net>.
42418
42419 2008-06-17  Bruno Haible  <bruno@clisp.org>
42420
42421         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42422         when the macro ignores it.
42423         Based on a patch by Eric Blake <ebb9@byu.net>.
42424
42425 2008-06-17  Bruno Haible  <bruno@clisp.org>
42426
42427         * modules/tls (License): Change to LGPLv2+.
42428         Reported by Eric Blake.
42429
42430 2008-06-17  Eric Blake  <ebb9@byu.net>
42431
42432         Simplify c-stack prerequisites.
42433         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42435         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42436         check.
42437         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42438         <sys/resource.h>.
42439
42440         Move c-stack test into testsuite.
42441         * modules/c-stack-tests: New file.
42442         * lib/c-stack.c [DEBUG]: Move test program...
42443         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42444         fail test if sigaltstack is lacking.
42445         * tests/test-c-stack.sh: New driver file.
42446
42447 2008-06-16  Eric Blake  <ebb9@byu.net>
42448
42449         Use raise module consistently.
42450         * modules/fatal-signal (Depends-on): Add raise.
42451         * modules/sigprocmask (Depends-on): Likewise.
42452         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42453         * lib/sigprocmask.c (sigprocmask): Likewise.
42454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42455         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42456
42457         Fix compliance bug in sigpending.
42458         * lib/sigprocmask.c (sigpending): Return pending array via
42459         parameter, not return value.
42460
42461 2008-06-14  Eric Blake  <ebb9@byu.net>
42462
42463         Improve obstack-printf test code.
42464         * tests/test-obstack-printf.c (test_function): Fix comment, and
42465         simplify usage of obstack_* in macros.  Add a test for coverage.
42466         Reported by Bruno Haible.
42467
42468 2008-06-14  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42471         array size as a constant, not as a const variable.
42472         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42473         AC_USE_SYSTEM_EXTENSIONS.
42474         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42475         Test whether the obstack_printf function actually exists.
42476         * modules/obstack-printf (Depends-on): Add extensions.
42477         (Include): Remove obstack.h.
42478         * modules/obstack-printf-posix (Depends-on): Add extensions.
42479         (Include): Remove obstack.h.
42480
42481 2008-06-13  Eric Blake  <ebb9@byu.net>
42482
42483         Add obstack-printf and obstack-printf-posix modules.
42484         * modules/obstack-printf: New file.
42485         * modules/obstack-printf-posix: Likewise.
42486         * MODULES.html.sh (Misc): Mention them.
42487         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42488         Likewise.
42489         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42490         Likewise.
42491         * modules/stdio (Makefile.am): Accomodate new modules.
42492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42493         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42494         Declare.
42495         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42496         functions.
42497         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42498         (gl_REPLACE_OBSTACK_PRINTF): New macros
42499         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42500         * tests/test-obstack-printf.c: New file.
42501         * modules/obstack-printf-tests: Likewise.
42502         * modules/obstack-printf-posix-tests: Likewise.
42503
42504 2008-06-11  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42507         * lib/open.c: Include errno.h.
42508         (open): Fail when attempting to write to a file that has a trailing
42509         slash.
42510         * tests/test-open.c (main): Test against trailing slash bug.
42511         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42512
42513 2008-06-10  Bruno Haible  <bruno@clisp.org>
42514
42515         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42516         for $? to work inside the trap command, with various /bin/sh-s.
42517         * tests/test-vc-list-files-cvs.sh: Likewise.
42518
42519 2008-06-10  Bruno Haible  <bruno@clisp.org>
42520
42521         * lib/acl-internal.h: Don't include gettext.h here.
42522         * lib/set-mode-acl.c: Include gettext.h here.
42523         * lib/copy-acl.c: Likewise.
42524
42525 2008-06-10  Bruno Haible  <bruno@clisp.org>
42526
42527         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42528         * lib/wait-process.c (wait_subprocess): Likewise.
42529         * lib/execute.h (execute): Add termsigp argument.
42530         * lib/execute.c (execute): Likewise.
42531         * lib/csharpcomp.c (compile_csharp_using_pnet,
42532         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42533         * lib/csharpexec.c (execute_csharp_using_pnet,
42534         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42535         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42536         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42537         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42538         is_jikes_present): Update.
42539         * lib/javaexec.c (execute_java_class): Update.
42540         * lib/javaversion.c (execute_and_read_line): Update.
42541         * NEWS: Document the changes.
42542         Reported by Eric Blake.
42543
42544 2008-06-10  Eric Blake  <ebb9@byu.net>
42545
42546         Add missing include.
42547         * tests/test-strstr.c (includes): Add <signal.h>.
42548         * tests/test-strcasestr.c (includes): Likewise.
42549         * tests/test-memmem.c (includes): Likewise.
42550
42551 2008-06-10  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/wait-process.c (wait_subprocess): Add an assertion.
42554
42555 2008-06-10  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42558
42559 2008-06-10  Bruno Haible  <bruno@clisp.org>
42560
42561         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42562         using alarm().
42563         * tests/test-strcasestr.c (main): Likewise.
42564         * tests/test-strstr.c (main): Likewise.
42565
42566 2008-06-09  Bruno Haible  <bruno@clisp.org>
42567
42568         Work around the Solaris 10 ACE ACLs ABI change.
42569         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42570         declare if ACL_NO_TRIVIAL is present.
42571         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42572         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42573         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42574         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42575         define if ACL_NO_TRIVIAL is present.
42576         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42577         and use the current ABI.
42578         (file_has_acl): Use same #if condition as elsewhere.
42579         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42580         in use, and use the current ABI.
42581         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42582         Reported by Jim Meyering.
42583
42584 2008-06-09  Eric Blake  <ebb9@byu.net>
42585
42586         Work around environments that (stupidly) ignore SIGALRM.
42587         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42588         before using alarm().
42589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42591         Reported by Ian Beckwith <ianb@erislabs.net>.
42592
42593         Produce autobuild blurb earlier in log.
42594         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42595
42596 2008-06-09  Jim Meyering  <meyering@redhat.com>
42597         and OndÅ™ej Vašík  <ovasik@redhat.com>
42598
42599         utimens.c: correct kernel bug work-around
42600         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42601         failure, not success, and the kernel bug we're trying to work
42602         around affects not just the utimensat call, but also the fallback
42603         futimens call.
42604         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42605         not success.
42606         [HAVE_FUTIMENS]: Use the same work-around, here.
42607
42608 2008-06-09  Jim Meyering  <meyering@redhat.com>
42609
42610         add more guards around definition of ACE_-related code
42611         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42612         ALLOW and ACE_OWNER are also defined.
42613
42614 2008-06-08  Bruno Haible  <bruno@clisp.org>
42615
42616         * lib/acl-internal.h: Add me as co-author.
42617         * lib/file-has-acl.c: Likewise.
42618         * lib/set-mode-acl.c: Likewise.
42619         * lib/copy-acl.c: Likewise.
42620
42621 2008-06-08  Bruno Haible  <bruno@clisp.org>
42622
42623         Add support for AIX ACLs.
42624         * lib/acl-internal.h (acl_nontrivial): New declaration.
42625         * lib/file-has-acl.c (acl_nontrivial): New function.
42626         (file_has_acl): Add implementation using AIX 4 ACL API.
42627         * lib/set-mode-acl.c (qset_acl): Likewise.
42628         * lib/copy-acl.c (qcopy_acl): Likewise.
42629
42630 2008-06-08  Bruno Haible  <bruno@clisp.org>
42631
42632         Add support for HP-UX ACLs.
42633         * lib/acl-internal.h (acl_nontrivial): New declaration.
42634         * lib/file-has-acl.c (acl_nontrivial): New function.
42635         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42636         * lib/set-mode-acl.c (qset_acl): Likewise.
42637         * lib/copy-acl.c (qcopy_acl): Likewise.
42638
42639 2008-06-08  Bruno Haible  <bruno@clisp.org>
42640
42641         Add support for Cygwin ACLs.
42642         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42643         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42644         the chmod_or_fchmod call.
42645         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42646
42647 2008-06-08  Bruno Haible  <bruno@clisp.org>
42648
42649         Fix bug with setuid modes in Solaris 10+ code.
42650         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42651         succeeded, when the mode contains some special bits.
42652
42653 2008-06-08  Bruno Haible  <bruno@clisp.org>
42654
42655         Add support for Solaris 7..10 ACLs.
42656         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42657         declarations.
42658         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42659         functions.
42660         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42661         * lib/set-mode-acl.c (qset_acl): Likewise.
42662         * lib/copy-acl.c (qcopy_acl): Likewise.
42663
42664 2008-06-08  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42667         declaration.
42668         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42669         (acl_access_nontrivial): Remove MacOS X case.
42670         (file_has_acl): Use acl_extended_nontrivial.
42671         * lib/copy-acl.c (qcopy_acl): Likewise.
42672
42673 2008-06-08  Bruno Haible  <bruno@clisp.org>
42674
42675         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42676
42677 2008-06-08  Jim Meyering  <meyering@redhat.com>
42678
42679         * modules/acl (Maintainer): Add Bruno Haible.
42680
42681 2008-06-07  Bruno Haible  <bruno@clisp.org>
42682
42683         Improve support for Tru64 ACLs.
42684         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42685         ACL on OSF/1.
42686
42687 2008-06-07  Bruno Haible  <bruno@clisp.org>
42688
42689         Add support for MacOS X ACLs.
42690         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42691         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42692         * lib/set-mode-acl.c (qset_acl): Likewise.
42693         * lib/copy-acl.c (qcopy_acl): Likewise.
42694
42695 2008-06-07  Bruno Haible  <bruno@clisp.org>
42696
42697         Fix memory leak introduced on 2008-05-22.
42698         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42699         use.
42700
42701 2008-06-07  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42704         to construct an empty ACL.
42705
42706 2008-06-07  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42709         precisely.
42710         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42711
42712 2008-06-07  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42715         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42716
42717 2008-06-07  Bruno Haible  <bruno@clisp.org>
42718
42719         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42720         regardless of POSIX.
42721         * doc/posix-functions/_longjmp.texi: Likewise.
42722         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42723         SystemV platform in this case.
42724
42725 2008-06-06  Eric Blake  <ebb9@byu.net>
42726
42727         Document abort() bugs.
42728         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42729
42730         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42731         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42732         sigsetjmp.
42733         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42734         siglongjmp, but only as a macro.
42735         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42736         is obsolete.
42737         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42738
42739         Tweak documentation to cover cygwin argz bugs.
42740         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42741         argz bug fix; no code change needed since no cygwin releases
42742         occurred between the last fix and the bug being tested.
42743         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42744         module and recently fixed cygwin bugs.
42745         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42746         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42747         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42748         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42749         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42750         Likewise.
42751         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42752         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42753         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42754         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42755         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42756         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42757         Likewise.
42758
42759         Avoid gcc warning on cygwin.
42760         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42761         !ACL_NO_TRIVIAL]: Avoid unused variable.
42762
42763 2008-06-05  Eric Blake  <ebb9@byu.net>
42764
42765         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42766         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42767         git-version-gen fails to come up with a version.
42768         Reported by Simon Josefsson.
42769
42770 2008-06-05  Jim Meyering  <meyering@redhat.com>
42771             Paul Eggert  <eggert@cs.ucla.edu>
42772
42773         utimens.c: work around a probable Linux kernel bug
42774         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42775         appears to be a kernel bug that causes utimensat to return 280
42776         instead of 0, indicating success.
42777
42778 2008-06-04  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42781         2008-06-01 commit.
42782
42783 2008-06-04  Bruno Haible  <bruno@clisp.org>
42784
42785         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42786         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42787         (file_has_acl): Use it. Save errno afterwards.
42788         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42789
42790 2008-06-03  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42793         draft code. Simplify #ifs.
42794         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42795         Put Solaris code after POSIX-draft code. Fix comments regarding
42796         Solaris 10, HP-UX. Mention Cygwin.
42797         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42798
42799 2008-06-03  Eric Blake  <ebb9@byu.net>
42800
42801         Provide fallback for older kernels.
42802         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42803         Provide runtime fallback if kernel lacks support.
42804         Reported by Mike Frysinger.
42805
42806 2008-06-02  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42809         it exists.
42810
42811 2008-06-02  Bruno Haible  <bruno@clisp.org>
42812
42813         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42814         * lib/copy-acl.c (qcopy_acl): Update comment.
42815
42816 2008-06-02  Bruno Haible  <bruno@clisp.org>
42817
42818         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42819         like ACL APIs.
42820
42821 2008-06-02  Bruno Haible  <bruno@clisp.org>
42822
42823         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42824         * tests/test-set-mode-acl.sh: Likewise.
42825         * tests/test-copy-acl.sh: Likewise.
42826         * tests/test-copy-file.sh: Likewise.
42827
42828 2008-06-02  Bruno Haible  <bruno@clisp.org>
42829
42830         * tests/test-file-has-acl.sh: Remove unused code.
42831
42832 2008-06-01  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42835         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42836         messages.
42837         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42838
42839 2008-06-01  Bruno Haible  <bruno@clisp.org>
42840
42841         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42842         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42843         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42844         APIs.
42845         * modules/acl-tests (configure.ac): Remove tests now contained in
42846         m4/acl.m4.
42847
42848 2008-06-02  Jim Meyering  <meyering@redhat.com>
42849
42850         announce-gen: use a better key-server host name
42851         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42852         it may be more consistently reliable.  Suggested by Werner Koch
42853         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42854
42855 2008-06-01  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42858         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42859
42860 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42861
42862         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42863
42864 2008-06-01  Bruno Haible  <bruno@clisp.org>
42865
42866         New ACL tests.
42867         * tests/test-file-has-acl.sh: New file.
42868         * tests/test-file-has-acl.c: New file.
42869         * tests/test-set-mode-acl.sh: New file.
42870         * tests/test-set-mode-acl.c: New file.
42871         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42872         * tests/test-copy-acl.c: New file.
42873         * modules/acl-tests: New file, based on modules/copy-file-tests.
42874         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42875         (Depends-on): Add acl-tests.
42876         (configure.ac): Remove checks.
42877         (Makefile.am): Don't create test-sameacls program here any more.
42878
42879 2008-06-01  Bruno Haible  <bruno@clisp.org>
42880
42881         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42882         * tests/test-sameacls.c: Include progname.h.
42883         (main): Invoke set_program_name. Portability fixes for MacOS X,
42884         Solaris, HP-UX.
42885
42886 2008-06-01  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42889         function.
42890         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42891
42892 2008-06-01  Bruno Haible  <bruno@clisp.org>
42893
42894         * modules/rpmatch (Depends-on): Add strdup.
42895
42896 2008-06-01  Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/pipe.c: Include unistd-safer.h.
42899         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42900         * modules/pipe (Depends-on): Add unistd-safer.
42901
42902 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42903
42904         * modules/autobuild (configure.ac): Call AB_INIT.
42905
42906 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42907
42908         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42909         Suggested by Bruno Haible <bruno@clisp.org>.
42910
42911 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42912
42913         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42914         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42915         <bruno@clisp.org>.
42916
42917 2008-05-29  Eric Blake  <ebb9@byu.net>
42918
42919         Prefer new POSIX 200x interfaces over futimesat.
42920         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42921         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42922         when available.
42923         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42924
42925 2008-05-28  Bruno Haible  <bruno@clisp.org>
42926
42927         * modules/stpcpy (License): Change to LGPLv2+.
42928         Requested by David Lutterkort <dlutter@redhat.com>.
42929
42930 2008-05-27  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42933         current mingw.
42934         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42935
42936 2008-05-27  Bruno Haible  <bruno@clisp.org>
42937
42938         * modules/iconv_open (Link): New section, from module 'iconv'.
42939         * modules/striconv (Link): Likewise.
42940         * modules/striconveh (Link): Likewise.
42941         * modules/xstriconv (Link): Likewise.
42942         * modules/unicodeio (Link): Likewise.
42943         * modules/propername (Link): Likewise.
42944         Reported by Jim Meyering.
42945
42946 2008-05-26  Jim Meyering  <meyering@redhat.com>
42947
42948         sha256: do not artificially restrict buffer length to be < 2^32
42949         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42950         uint32_t to size_t.
42951         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42952         to match.
42953
42954         avoid unaligned access errors, e.g., on sparc
42955         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42956         direct access through a possibly-unaligned uint64* pointer.
42957         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42958         direct access through a possibly-unaligned uint32* pointer.
42959         Prompted by this patch from Tom "spot" Callaway:
42960         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42961
42962         sha512.c: fix typo in comment
42963         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42964
42965 2008-05-25  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42968         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42969         (Makefile.am): Update lib_SOURCES.
42970
42971 2008-05-25  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42974
42975 2008-05-25  Jim Meyering  <meyering@redhat.com>
42976
42977         useless-if-before-free: freed expr may have white-space differences
42978         * build-aux/useless-if-before-free: Recognize cases in which the
42979         freed expression differs from the tested one in embedded white
42980         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42981         $1 was used, so we can't make any regexp shy.  Improved tests now
42982         detect this.
42983
42984         useless-if-before-free: accept white space in the expression.
42985         * build-aux/useless-if-before-free: For now, any white space
42986         in the expression must be identical in the free argument.
42987
42988         useless-if-before-free: efficiency tweak
42989         * build-aux/useless-if-before-free: Make the expression-matching
42990         regexp "shy".
42991         Make the *outer* regexp shy, not the expr-matching one.
42992
42993         update code-in-comment to accept cast of free arg
42994         * build-aux/useless-if-before-free: Update regexp.
42995
42996 2008-05-25  Bruno Haible  <bruno@clisp.org>
42997
42998         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42999         * modules/copy-file-tests (Files, Makefile.am): Update.
43000         * tests/test-copy-file.c (func_test_copy): Update.
43001
43002 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43003
43004         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43005
43006 2008-05-23  Bruno Haible  <bruno@clisp.org>
43007
43008         Improve support for ACLs on OSF/1.
43009         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43010         Remove fallback for unknown flavors of ACLs.
43011
43012 2008-05-22  Bruno Haible  <bruno@clisp.org>
43013
43014         Add support for ACLs on OSF/1.
43015         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43016         replacements.
43017         (acl_free_text): New macro fallback.
43018         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43019         acl_free.
43020         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43021         acl_free_text function. Require AC_C_INLINE.
43022
43023 2008-05-22  Bruno Haible  <bruno@clisp.org>
43024
43025         Make copy_acl work on MacOS X 10.5.
43026         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43027         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43028         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43029         If MODE_INSIDE_ACL, don't assume that every system has the same text
43030         representation for ACLs as FreeBSD.
43031         * lib/copy-acl.c (copy_acl): Add support for platforms with
43032         !MODE_INSIDE_ACL.
43033         * lib/file-has-acl.c (file_has_acl): Likewise.
43034         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43035         FreeBSD, MacOS X, or IRIX, respectively.
43036
43037 2008-05-22  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/acl.h: Don't include <sys/acl.h>.
43040         (GETACLCNT): Move fallback to lib/acl-internal.h.
43041         * lib/acl-internal.h: Include <sys/acl.h> here.
43042         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43043
43044 2008-05-22  Bruno Haible  <bruno@clisp.org>
43045
43046         Split off copy_acl function to separate file.
43047         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43048         * lib/acl.c (copy_acl): Moved function to separate file.
43049         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43050         * modules/acl (Files): Add lib/copy-acl.c.
43051         (Makefiles.am): Augment lib_SOURCES.
43052
43053 2008-05-22  Bruno Haible  <bruno@clisp.org>
43054
43055         * modules/copy-file-tests: New file.
43056         * tests/test-copy-file.sh: New file.
43057         * tests/test-copy-file.c: New file.
43058         * tests/test-copy-file-sameacls.c: New file.
43059
43060 2008-05-22  Eric Blake  <ebb9@byu.net>
43061
43062         Avoid gcc warning.
43063         * tests/test-memcmp.c (main): Pass NULL indirectly.
43064
43065 2008-05-21  Bruno Haible  <bruno@clisp.org>
43066
43067         Add reference doc about ACLs.
43068         * doc/acl-resources.txt: New file.
43069         * doc/acl-cygwin.txt: New file.
43070
43071 2008-05-21  Bruno Haible  <bruno@clisp.org>
43072
43073         Avoid one more warning from gcc.
43074         * lib/vasnprintf.c (IF_LINT): Update comments.
43075         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43076
43077 2008-05-21  Jim Meyering  <meyering@redhat.com>
43078
43079         avoid a warning from gcc
43080         * lib/vasnprintf.c (IF_LINT): Define.
43081         (scale10_round_decimal_long_double):
43082         Use it to avoid a "may be used uninitialized" warning.
43083         (scale10_round_decimal_double): Likewise.
43084
43085 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43086
43087         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43088         declared.
43089
43090 2008-05-20  Bruno Haible  <bruno@clisp.org>
43091
43092         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43093         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43094
43095 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43096
43097         * modules/memcmp-tests: New file.
43098         * tests/test-memcmp.c: New file.
43099
43100 2008-05-19  Bruno Haible  <bruno@clisp.org>
43101
43102         * modules/propername (Notice, configure.ac): Put quoted "..." into
43103         --keyword option.
43104         * lib/propername.h: Update comments accordingly.
43105         Reported by Eric Blake.
43106
43107 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43108
43109         * modules/getpass-gnu (Depends-on): Add fseeko.
43110
43111 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43112
43113         * modules/base64-tests: New file.
43114
43115 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43116
43117         * lib/base64.c (base64_decode_ctx): If a decode context structure
43118         was passed in use it to ignore newlines.  If a context structure
43119         was _not_ passed in, continue to treat newlines as garbage (this
43120         is the historical behavior).  Formerly base64_decode.
43121         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43122         takes a decode context structure.
43123         * lib/base64.h (base64_decode): Macro for four-argument calls.
43124         (base64_decode_alloc): Likewise.
43125         * lib/base64.c (base64_decode_ctx): If a decode context structure
43126         was passed in use it to ignore newlines.  If a context structure
43127         was _not_ passed in, continue to treat newlines as garbage (this
43128         is the historical behavior).  Formerly base64_decode.
43129         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43130         takes a decode context structure.
43131         * lib/base64.h (base64_decode): Macro for four-argument calls.
43132         (base64_decode_alloc): Likewise.
43133
43134 2008-05-19  Jim Meyering  <meyering@redhat.com>
43135
43136         avoid a warning from gcc
43137         * lib/trim.c (IF_LINT): Define.
43138         (trim2): Use it to avoid a "may be used uninitialized" warning.
43139
43140         Fix doc typo.
43141         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43142
43143 2008-05-19  Bruno Haible  <bruno@clisp.org>
43144
43145         * doc/glibc-functions/getpass.texi: Document limits of other
43146         implementations.
43147
43148 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43149             Bruno Haible <bruno@clisp.org>
43150
43151         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43152
43153 2008-05-18  Bruno Haible  <bruno@clisp.org>
43154
43155         * modules/propername: New file, from GNU gettext.
43156         * lib/propername.h: New file, from GNU gettext.
43157         * lib/propername.c: New file, from GNU gettext.
43158         * MODULES.html.sh (Internationalization functions): Add propername.
43159
43160 2008-05-16  Jim Meyering  <meyering@redhat.com>
43161             Bruno Haible  <bruno@clisp.org>
43162
43163         Avoid some warnings from "gcc -Wshadow".
43164         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43165
43166 2008-05-15  Eric Blake  <ebb9@byu.net>
43167
43168         Extend previous patch to cygwin 1.7.0.
43169         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43170         fast implementation in cygwin >= 1.7.0.
43171         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43173
43174 2008-05-15  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43177         implementation in glibc >= 2.9.
43178         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43180
43181 2008-05-15  Bruno Haible  <bruno@clisp.org>
43182
43183         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43184         (Unicode string functions): Add unilbrk/*.
43185         Reported by Karl Berry.
43186
43187 2008-05-15  Eric Blake  <ebb9@byu.net>
43188
43189         Fix violation of <stdbool.h> replacement in regex.
43190         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43191         * lib/regexec.c (re_search_internal): Likewise.
43192         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43193
43194 2008-05-15  Jim Meyering  <meyering@redhat.com>
43195
43196         avoid distracting test output when git or cvs is not found
43197         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43198         * tests/test-vc-list-files-git.sh: Likewise.
43199
43200 2008-05-15  Eric Blake  <ebb9@byu.net>
43201
43202         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43203         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43204         glibc version.
43205         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43206         * doc/posix-functions/strstr.texi (strstr): Likewise.
43207         * lib/str-two-way.h (MAX): Sychronize with glibc.
43208
43209 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43210
43211         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43212         opr.ctx_type.
43213         (calc_first): Initialize constraint field.
43214         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43215         Fix grammar.
43216         (duplicate_node): Merge constraint field for all node types.
43217         (calc_eclosure_iter): Look at constraint field for all node types.
43218         * lib/regex_internal.c (create_cd_newstate): Don't look at
43219         opr.ctx_type.
43220
43221 2008-05-14  Bruno Haible  <bruno@clisp.org>
43222
43223         Help GCC to do better code generation.
43224         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43225         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43226         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43227         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43228         Declare with attribute 'malloc' if supported.
43229
43230 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43231
43232         use "echo STR|wc -c" rather than unportable "expr length STR"
43233         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43234         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43235
43236 2008-05-14  Jim Meyering  <meyering@redhat.com>
43237
43238         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43239         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43240         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43241         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43242         via Collin Lasse.
43243
43244 2008-05-14  Eric Blake  <ebb9@byu.net>
43245
43246         Avoid quadratic growth in gl_LIBSOURCES.
43247         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43248         Suggested by Bruno Haible.
43249
43250         Test xmemdup0.
43251         * modules/xmemdup0-tests: New file.
43252         * tests/test-xmemdup0.c: Likewise.
43253
43254 2008-05-13  Eric Blake  <ebb9@byu.net>
43255
43256         Split xmemdup0 into its own module.
43257         * modules/xmemdup0: New file.
43258         * lib/xmemdup0.h: Likewise.
43259         * lib/xmemdup0.c: Likewise.
43260         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43261         * lib/xalloc.h (xmemdup0): Remove.
43262         * lib/xmalloc.c (xmemdup0): Likewise.
43263
43264 2008-05-13  Eric Blake  <ebb9@byu.net>
43265             Bruno Haible  <bruno@clisp.org>
43266
43267         Reduce number of forks required during autoconf.
43268         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43269         and gl_LIBSOURCES_DIR.
43270         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43271         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43272         m4_syscmd per file.
43273         <m4_foreach_w>: Move...
43274         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43275
43276 2008-05-13  Eric Blake  <ebb9@byu.net>
43277
43278         * gnulib-tool: Fix various comment typos.
43279
43280 2008-05-12  Bruno Haible  <bruno@clisp.org>
43281
43282         Tailor the linebreaking algorithm.
43283         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43284
43285 2008-05-12  Bruno Haible  <bruno@clisp.org>
43286
43287         Update to Unicode 5.0.0.
43288         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43289         LBP_JV, LBP_JT. Redistribute values.
43290         (unilbrk_table): Change size.
43291         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43292         Unicode TR#14 rev. 22.
43293         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43294         LBP_JV, LBP_JT. Redistribute values.
43295         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43296         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43297         Update.
43298         * lib/unilbrk/lbrkprop1.h: Regenerated.
43299         * lib/unilbrk/lbrkprop2.h: Regenerated.
43300         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43301         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43302         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43303         Likewise.
43304         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43305         Likewise.
43306         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43307         result.
43308         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43309         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43310         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43311         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43312         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43313         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43314
43315 2008-05-11  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43318
43319 2008-05-11  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43322         * modules/unilbrk/gen-lbrk: New file.
43323
43324 2008-05-11  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43327         * m4/sha512.m4 (gl_SHA512): Likewise.
43328
43329 2008-05-11  Jim Meyering  <meyering@redhat.com>
43330
43331         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43332         * modules/crypto/sha256: New file.
43333         * modules/crypto/sha512: Likewise.
43334         * lib/sha256.c: Likewise.
43335         * lib/sha256.h: Likewise.
43336         * lib/sha512.c: Likewise.
43337         * lib/sha512.h: Likewise.
43338         * lib/u64.h: Likewise.
43339         * m4/sha256.m4: Likewise.
43340         * m4/sha512.m4: Likewise.
43341         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43342
43343 2008-05-10  Bruno Haible  <bruno@clisp.org>
43344
43345         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43346         (Input/Output <stdio.h>): Add xprintf.
43347         (Signal handling <signal.h>): Add strsignal.
43348         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43349         (Core language properties): Add func.
43350         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43351         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43352         strings.
43353         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43354         (Input/output): New section.
43355         (File system functions): Add openat-die, stat-macros.
43356         (Networking functions): Add sockets.
43357         (Unicode string functions): Add unictype/*.
43358         (Support for building libraries and executables): Add gperf.
43359         (Support for building documentation): Add agpl-3.0.
43360         (Misc): Add nocrash.
43361
43362 2008-05-10  Bruno Haible  <bruno@clisp.org>
43363
43364         * modules/unictype/gen-ctype: New file.
43365
43366 2008-05-10  Jim Meyering  <meyering@redhat.com>
43367
43368         Make chdir-safer.c more efficient on a system with no symlinks.
43369         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43370         also if ELOOP is zero.  Suggested by Bruno Haible.
43371
43372         Make chdir-safer.c slightly safer.
43373         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43374         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43375
43376         Avoid compile failure on systems without ELOOP (like mingw).
43377         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43378         Reported by Bruno Haible.
43379
43380 2008-05-10  Bruno Haible  <bruno@clisp.org>
43381
43382         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43383         (is_utf8_encoding): Use a case-insensitive comparison.
43384         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43385         streq.
43386
43387 2008-05-10  Bruno Haible  <bruno@clisp.org>
43388
43389         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43390         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43391         * lib/unilbrk/ulc-common.h (iconv_string_length,
43392         iconv_string_keeping_offsets): Remove declarations.
43393         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43394         Don't include <iconv.h>, streq.h, xsize.h.
43395         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43396         conversion.
43397         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43398         <iconv.h>, streq.h, xsize.h.
43399         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43400         conversion.
43401         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43402         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43403         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43404         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43405
43406 2008-05-10  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43409         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43410
43411         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43412         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43413
43414         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43415         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43416
43417         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43418         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43419
43420         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43421         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43422
43423         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43424         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43425
43426         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43427         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43428
43429         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43430         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43431
43432 2008-05-10  Bruno Haible  <bruno@clisp.org>
43433
43434         Split up 'linebreak' module.
43435         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43436         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43437         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43438         modifications.
43439         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43440         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43441         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43442         lib/linebreak.c.
43443         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43444         lib/linebreak.c.
43445         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43446         lib/linebreak.c.
43447         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43448         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43449         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43450         lib/linebreak.c.
43451         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43452         lib/linebreak.c.
43453         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43454         lib/linebreak.c.
43455         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43456         lib/linebreak.c.
43457         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43458         lib/linebreak.c.
43459         * modules/unilbrk/base: New file.
43460         * modules/unilbrk/tables: New file.
43461         * modules/unilbrk/u8-possible-linebreaks: New file.
43462         * modules/unilbrk/u16-possible-linebreaks: New file.
43463         * modules/unilbrk/u32-possible-linebreaks: New file.
43464         * modules/unilbrk/ulc-common: New file.
43465         * modules/unilbrk/ulc-possible-linebreaks: New file.
43466         * modules/unilbrk/u8-width-linebreaks: New file.
43467         * modules/unilbrk/u16-width-linebreaks: New file.
43468         * modules/unilbrk/u32-width-linebreaks: New file.
43469         * modules/unilbrk/ulc-width-linebreaks: New file.
43470         * lib/linebreak.h: Remove file.
43471         * lib/linebreak.c: Remove file.
43472         * m4/linebreak.m4: Remove file.
43473         * modules/linebreak: Remove file.
43474         * NEWS: Mention the changes.
43475
43476 2008-05-09  Eric Blake  <ebb9@byu.net>
43477
43478         Add xmemdup0.
43479         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43480         implementation.
43481         * lib/xmalloc.c (xmemdup0): New C implementation.
43482
43483 2008-05-08  Bruno Haible  <bruno@clisp.org>
43484
43485         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43486
43487 2008-05-07  Eric Blake  <ebb9@byu.net>
43488
43489         Support cross-compilation of <wctype.h>.
43490         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43491         AC_CACHE_CHECK.
43492
43493 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43494
43495         * build-aux/vc-list-files: Add support for bzr.
43496
43497 2008-05-03  Jim Meyering  <meyering@redhat.com>
43498
43499         avoid failed assertion with tight malloc
43500         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43501
43502 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43503
43504         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43505         are needed from arpa/inet.h.
43506         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43507         Reported by Bruno Haible.
43508
43509 2008-05-02  Jim Meyering  <meyering@redhat.com>
43510
43511         avoid compilation error on FreeBSD 6
43512         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43513
43514 2008-05-01  Jim Meyering  <meyering@redhat.com>
43515
43516         useless-if-before-free: correct --help's exit status description
43517         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43518         for one or more matches, etc.  Reported by Bruno Haible.
43519
43520         vc-list-files: make the stand-alone gnulib test work
43521         * modules/vc-list-files-tests (configure.ac):
43522         Define and AC_SUBST abs_aux_dir.
43523         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43524         $(abs_top_srcdir) to each script and having each of them
43525         duplicate the work of setting PATH, set PATH here, using
43526         the new variable, abs_aux_dir instead.
43527         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43528         * tests/test-vc-list-files-git.sh: Likewise.
43529         Reported by Bruno Haible.
43530
43531 2008-05-01  Bruno Haible  <bruno@clisp.org>
43532
43533         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43534         reallocation. Rename 'done' to 'found_delimiter'.
43535
43536 2008-05-01  Jim Meyering  <meyering@redhat.com>
43537
43538         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43539         * build-aux/vc-list-files: Use `...`, not $(...).
43540
43541 2008-04-30  Jim Meyering  <meyering@redhat.com>
43542
43543         add tests for vc-list-files
43544         * modules/vc-list-files-tests: New module.
43545         * tests/test-vc-list-files-cvs.sh: New file.
43546         * tests/test-vc-list-files-git.sh: New file.
43547
43548         avoid a warning from gcc
43549         * lib/getndelim2.c (IF_LINT): Define.
43550         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43551
43552         vc-list-files: work properly with build-aux/cvsu, too
43553         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43554         to all cvs-based clauses.
43555
43556         vc-list-files: work properly in the CVS+awk case, too
43557         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43558
43559         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43560         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43561         take more than one file argument, so .  Add quotes, just in case $dir
43562         ever contains a shell meta-character.  Prompted by Soren Hansen in
43563         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43564
43565 2008-04-29  Eric Blake  <ebb9@byu.net>
43566
43567         Optimize getndelim2 to use block operations when possible.
43568         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43569         freadseek, and memchr2.
43570         * lib/getndelim2.c (getndelim2): Use them for block reads.
43571
43572 2008-04-29  Bruno Haible  <bruno@clisp.org>
43573
43574         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43575         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43576         * modules/inet_ntop (Depends-on): Add extensions.
43577         * modules/inet_pton (Depends-on): Likewise.
43578         Reported by Simon Josefsson.
43579
43580 2008-04-29  Jim Meyering  <meyering@redhat.com>
43581
43582         When the is more than one match in a block, match all of them.
43583         * build-aux/useless-if-before-free: Iterate through each block
43584         until there are no more matches.
43585
43586         Fix broken useless-if-before-free script.
43587         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43588         the expression to match cast of argument to free-like function.
43589
43590 2008-04-29  Eric Blake  <ebb9@byu.net>
43591
43592         Use new header.
43593         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43594
43595 2008-04-29  Jim Meyering  <meyering@redhat.com>
43596
43597         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43598         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43599         by gnulib to exist and to declare e.g., inet_ntop.
43600         Don't include "inet_ntop.h", now removed.
43601
43602         * m4/arpa_inet_h.m4: Remove trailing blanks.
43603
43604 2008-04-29  Eric Blake  <ebb9@byu.net>
43605
43606         Silence valgrind on safe reads beyond potential array bounds.
43607         * lib/rawmemchr.valgrind: New file.
43608         * lib/strchrnul.valgrind: Likewise.
43609         * modules/rawmemchr (Files): Distribute new file.
43610         * modules/strchrnul (Files): Likewise.
43611         Suggested by Bruno Haible.
43612
43613 2008-04-29  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43616         (inet_ntop, inet_pton): Change portability warning's wording.
43617         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43618         Invoke gl_CHECK_NEXT_HEADERS.
43619         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43620         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43621         set ARPA_INET_H.
43622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43623         * modules/arpa_inet (Description): No longer only for systems that
43624         lack it.
43625         (Depends-on): Add include_next.
43626         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43627         HAVE_ARPA_INET_H.
43628
43629 2008-04-29  Jim Meyering  <meyering@redhat.com>
43630
43631         * modules/mkdir (License): Re-license as LGPLv2+.
43632
43633 2008-04-29  Bruno Haible  <bruno@clisp.org>
43634
43635         * modules/rawmemchr (Maintainer): Set to Eric.
43636         * modules/strchrnul (Maintainer): Likewise.
43637
43638 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43639
43640         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43641         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43642
43643         * modules/arpa_inet (arpa/inet.h): Use them.
43644
43645 2008-04-28  Eric Blake  <ebb9@byu.net>
43646
43647         Test getndelim2.
43648         * modules/getndelim2-tests: New file.
43649         * tests/test-getndelim2.c: Likewise.
43650         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43651         stream.
43652         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43653
43654         * MODULES.html.sh: Document new module.
43655
43656 2008-04-20  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/c-stack.c (die): Use raise.
43659         * modules/c-stack (Depends-on): Add raise.
43660
43661 2008-04-28  Bruno Haible  <bruno@clisp.org>
43662
43663         Expect rpmatch to be declared.
43664         * lib/yesno.c (rpmatch): Remove declaration.
43665
43666         Declare rpmatch.
43667         * lib/stdlib.in.h (rpmatch): New declaration.
43668         * lib/rpmatch.c: Include <stdlib.h> first.
43669         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43670         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43672         HAVE_RPMATCH.
43673         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43675         (Include): Set to <stdlib.h>.
43676         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43677         HAVE_RPMATCH.
43678         * NEWS: Document the change.
43679
43680 2008-04-28  Bruno Haible  <bruno@clisp.org>
43681
43682         Change rpmatch to use nl_langinfo when appropriate.
43683         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43684         (N_): New macro.
43685         (localized_pattern): New function/macro.
43686         (try): Remove match, nomatch arguments. Copy the pattern into safe
43687         memory before caching it.
43688         (rpmatch): Use localized_pattern. Add translator comments.
43689         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43690         Suggested by Eric Blake.
43691         * modules/rpmatch (Depends-on): Add stdbool.
43692
43693 2008-04-28  Eric Blake  <ebb9@byu.net>
43694
43695         Add rawmemchr module, matching glibc.
43696         * modules/string (Makefile.am): New indicator.
43697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43698         * lib/string.in.h (rawmemchr): Declare when appropriate.
43699         * modules/rawmemchr: New file.
43700         * m4/rawmemchr.m4: Likewise.
43701         * lib/rawmemchr.c: Likewise.
43702         * modules/rawmemchr-tests: Likewise.
43703         * tests/test-rawmemchr.c: Likewise.
43704         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43705         module.
43706         * modules/strchrnul (Depends-on): Add rawmemchr.
43707         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43708
43709         Whitespace cleanup.
43710         * tests/test-strchrnul.c: Reindent.
43711         * lib/strchrnul.c: Likewise.
43712
43713         Optimize and test strchrnul.
43714         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43715         * modules/strchrnul-tests: New file.
43716         * tests/test-strchrnul.c: Likewise.
43717
43718         Remove intprops dependency.
43719         * modules/memchr (Depends-on): Remove intprops.
43720         * modules/memrchr (Depends-on): Likewise.
43721         * modules/memchr2 (Depends-on): Likewise.
43722         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43723         * lib/memrchr.c (__memrchr): Likewise.
43724         * lib/memrchr2.c (memchr2): Likewise.
43725         Reported by Simon Josefsson.
43726
43727 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43728
43729         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43730         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43731
43732 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43733
43734         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43735
43736         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43737
43738         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43739
43740         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43741         declarations.
43742         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43743
43744         * m4/inet_pton.m4: Don't check for header files.
43745
43746         * m4/inet_ntop.m4: Don't check for header files.
43747
43748 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43749
43750         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43751         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43752         trigger for cygwin).
43753         Reported by Bruno Haible  <bruno@clisp.org>.
43754
43755 2008-04-28  Bruno Haible  <bruno@clisp.org>
43756
43757         * doc/posix-functions/strdup.texi: Mention mingw problem.
43758
43759 2008-04-27  Bruno Haible  <bruno@clisp.org>
43760
43761         * modules/stat-time-tests (Depends-on): Add sleep.
43762         * tests/test-stat-time.c (force_unlink): New function.
43763         (cleanup): Use it.
43764         (test_mtime): Remove the ctime related tests.
43765         (test_ctime): New function, containing the ctime related tests.
43766         (main): Call test_ctime, except on native Windows platforms.
43767
43768 2008-04-27  Bruno Haible  <bruno@clisp.org>
43769
43770         * lib/rpmatch.c (rpmatch): Add some comments.
43771         Reported by James Youngman <jay@gnu.org>.
43772
43773 2008-04-27  Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43776         quiet NaNs.
43777
43778 2008-04-27  Bruno Haible  <bruno@clisp.org>
43779
43780         Make test-yesno.sh work on mingw.
43781         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43782         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43783         (main): Set stdin to binary mode.
43784         * modules/yesno-tests (Depends-on): Add binary-io.
43785
43786 2008-04-27  Bruno Haible  <bruno@clisp.org>
43787
43788         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43789         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43790         argument that lie outside the IEEE 854 domain.
43791         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43792         (gl_ISFINITE): Use it.
43793         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43794
43795 2008-04-27  Bruno Haible  <bruno@clisp.org>
43796
43797         Allow local renaming in config.h.
43798         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43799
43800 2008-04-27  Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/memchr.c (__memchr): Change type of 'i'.
43803         * lib/memchr2.c (memchr2): Likewise.
43804
43805 2008-04-26  Eric Blake  <ebb9@byu.net>
43806         and Bruno Haible  <bruno@clisp.org>
43807
43808         Optimize and test memrchr.
43809         * modules/memrchr (Depends-on): Add intprops.
43810         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43811         * modules/memrchr-tests: New file.
43812         * tests/test-memrchr.c: New file.
43813
43814 2008-04-26  Bruno Haible  <bruno@clisp.org>
43815
43816         Add tentative support for DragonFly BSD.
43817         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43818         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43819         fp.
43820         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43821         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43822         * lib/fpurge.c (fpurge): Likewise.
43823         * lib/freadable.c (freaadable): Likewise.
43824         * lib/freadahead.c (freadahead): Likewise.
43825         * lib/freading.c (freading): Likewise.
43826         * lib/freadptr.c (freadptr): Likewise.
43827         * lib/freadseek.c (freadptrinc): Likewise.
43828         * lib/fseeko.c (fseeko): Likewise.
43829         * lib/fseterr.c (fseterr): Likewise.
43830         * lib/fwritable.c (fwritable): Likewise.
43831         * lib/fwriting.c (fwriting): Likewise.
43832
43833 2008-04-26  Bruno Haible  <bruno@clisp.org>
43834
43835         * lib/stdio-impl.h: New file.
43836         * lib/fbufmode.c: Include stdio-impl.h.
43837         (fbufmode): Use fp_, remove redundant #defines.
43838         * lib/fflush.c: Include stdio-impl.h.
43839         (clear_ungetc_buffer): Remove redundant #defines.
43840         * lib/fpurge.c: Include stdio-impl.h.
43841         (fpurge): Remove redundant #defines.
43842         * lib/freadable.c: Include stdio-impl.h.
43843         (freadable): Remove redundant #defines.
43844         * lib/freadahead.c: Include stdio-impl.h.
43845         (freadahead): Remove redundant #defines.
43846         * lib/freading.c: Include stdio-impl.h.
43847         (freading): Remove redundant #defines.
43848         * lib/freadptr.c: Include stdio-impl.h.
43849         (freadptr): Remove redundant #defines.
43850         * lib/freadseek.c: Include stdio-impl.h.
43851         (freadptrinc): Remove redundant #defines.
43852         * lib/fseeko.c: Include stdio-impl.h.
43853         (rpl_fseeko): Remove redundant #defines.
43854         * lib/fseterr.c: Include stdio-impl.h.
43855         (fseterr): Remove redundant #defines.
43856         * lib/fwritable.c: Include stdio-impl.h.
43857         (fwritable: Remove redundant #defines.
43858         * lib/fwriting.c: Include stdio-impl.h.
43859         (fwriting): Remove redundant #defines.
43860         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43861         * modules/fflush (Files): Likewise.
43862         * modules/fpurge (Files): Likewise.
43863         * modules/freadable (Files): Likewise.
43864         * modules/freadahead (Files): Likewise.
43865         * modules/freading (Files): Likewise.
43866         * modules/freadptr (Files): Likewise.
43867         * modules/freadseek (Files): Likewise.
43868         * modules/fseeko (Files): Likewise.
43869         * modules/fseterr (Files): Likewise.
43870         * modules/fwritable (Files): Likewise.
43871         * modules/fwriting (Files): Likewise.
43872
43873 2008-04-26  Bruno Haible  <bruno@clisp.org>
43874
43875         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43876         restore_seek_optimization, update_fpos_cache): New functions, extracted
43877         from rpl_fflush.
43878         (rpl_fflush): Use them.
43879         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43880         (gl_REPLACE_FFLUSH): Use it.
43881
43882 2008-04-26  Bruno Haible  <bruno@clisp.org>
43883
43884         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43885         on Solaris.
43886         * tests/test-xstrtoimax.sh: Likewise.
43887         * tests/test-xstrtoumax.sh: Likewise.
43888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43889
43890 2008-04-26  Bruno Haible  <bruno@clisp.org>
43891
43892         * modules/memchr-tests: New file.
43893         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43894
43895 2008-04-26  Eric Blake  <ebb9@byu.net>
43896             Bruno Haible  <bruno@clisp.org>
43897
43898         * lib/memchr.c: Include intprops.h.
43899         (__memchr): Optimize parallel detection of matching bytes. Rename local
43900         variables. Add explanatory comments.
43901
43902 2008-04-26  Bruno Haible  <bruno@clisp.org>
43903
43904         Fix module 'memchr', broken since 2000-10-28.
43905         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43906
43907 2008-04-26  Bruno Haible  <bruno@clisp.org>
43908
43909         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43910         comments.
43911
43912 2008-04-25  Eric Blake  <ebb9@byu.net>
43913
43914         Use native fstatat on cygwin 1.7.0.
43915         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43916         first.
43917
43918 2008-04-23  Eric Blake  <ebb9@byu.net>
43919
43920         Improve memchr2 performance.
43921         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43922         NUL bytes.
43923         * modules/memchr2 (Depends-on): Use intprops.h.
43924
43925 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43926
43927         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43928         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43929         <blp@cs.stanford.edu>.
43930
43931 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43932
43933         * lib/arpa_inet.in.h: New file.
43934
43935         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43936         (Makefile.am): Sed in substitute header file.
43937
43938         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43939         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43940
43941         * modules/inet_ntop (configure.ac): Use
43942         gl_ARPA_INET_MODULE_INDICATOR.
43943
43944         * modules/inet_pton (configure.ac): Use
43945         gl_ARPA_INET_MODULE_INDICATOR.
43946
43947 2008-04-22  Jim Meyering  <meyering@redhat.com>
43948
43949         * modules/verify (License): Re-license as LGPLv2+.
43950
43951 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43952
43953         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43954         parameter to void* as per POSIX standard (MinGW uses char*).
43955
43956 2008-04-21  Bruno Haible  <bruno@clisp.org>
43957
43958         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43959         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43960         Define to replacements if REPLACE_ISWCNTRL is 1.
43961         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43962         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43963         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43964         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43965         what it fixes.
43966         * doc/posix-functions/iswalpha.texi: Likewise.
43967         * doc/posix-functions/iswblank.texi: Likewise.
43968         * doc/posix-functions/iswcntrl.texi: Likewise.
43969         * doc/posix-functions/iswdigit.texi: Likewise.
43970         * doc/posix-functions/iswgraph.texi: Likewise.
43971         * doc/posix-functions/iswlower.texi: Likewise.
43972         * doc/posix-functions/iswprint.texi: Likewise.
43973         * doc/posix-functions/iswpunct.texi: Likewise.
43974         * doc/posix-functions/iswspace.texi: Likewise.
43975         * doc/posix-functions/iswupper.texi: Likewise.
43976         * doc/posix-functions/iswxdigit.texi: Likewise.
43977         Reported by Alain Guibert.
43978
43979 2008-04-21  Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43982         Patch by Alain Guibert.
43983
43984 2008-04-21  Bruno Haible  <bruno@clisp.org>
43985
43986         Fix test failures on mingw.
43987         * tests/test-xstrtol.c (print_no_progname): New function.
43988         (main): Install it in error_print_progname hook.
43989         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43990         * tests/test-xstrtoimax.sh: Likewise.
43991         * tests/test-xstrtoumax.sh: Likewise.
43992
43993 2008-04-21  Bruno Haible  <bruno@clisp.org>
43994
43995         Fix test failure on mingw.
43996         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43997
43998 2008-04-21  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44001         Actually assign a value.
44002
44003 2008-04-20  Bruno Haible  <bruno@clisp.org>
44004
44005         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44006         take 2.
44007         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44008         'canonicalize-lgpl' module is also used.
44009         * lib/canonicalize-lgpl.c: Undo last change.
44010         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44011
44012 2008-04-20  Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44015         config.h. Provide _mkdir based fallback for mingw.
44016         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44017         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44018         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44019         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44020         rather than defining mkdir in config.h.
44021         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44022         (gl_SYS_STAT_H_DEFAULTS): New macro.
44023         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44024         HAVE_IO_H any more.
44025         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44026         HAVE_DECL_MKDIR and HAVE_IO_H.
44027
44028 2008-04-20  Bruno Haible  <bruno@clisp.org>
44029
44030         * lib/isapipe.c: Port to native Windows platforms.
44031
44032 2008-04-20  Bruno Haible  <bruno@clisp.org>
44033
44034         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44035
44036 2008-04-21  Eric Blake  <ebb9@byu.net>
44037
44038         Work around preprocessors that don't handle UINTMAX_MAX.
44039         * lib/memchr2.c (memchr2): Avoid embedded #if.
44040         Reported by Alain Guibert, fix suggested by Bruno Haible.
44041
44042 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44043
44044         * doc/posix-functions/strftime.texi (strftime): Explain better
44045         Windows incompatibility.  Suggested by Micah Cowan
44046         <micah@cowan.name>.
44047
44048 2008-04-20  Bruno Haible  <bruno@clisp.org>
44049
44050         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44051         unistr/u8-mblen.
44052
44053 2008-04-20  Bruno Haible  <bruno@clisp.org>
44054
44055         Fix test failure on platforms with non-GNU iconv.
44056         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44057         (U_TO_U8): Use it, rather than u16_to_u8.
44058         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44059         units at the end of the input string.
44060         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44061
44062 2008-04-20  Bruno Haible  <bruno@clisp.org>
44063
44064         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44065         when the resulting length is 0.
44066         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44067
44068 2008-04-20  Bruno Haible  <bruno@clisp.org>
44069
44070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44071         works.
44072         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44073
44074 2008-04-20  Bruno Haible  <bruno@clisp.org>
44075
44076         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44077         * modules/tsearch-tests (configure.ac): Test for initstate function.
44078
44079 2008-04-20  Bruno Haible  <bruno@clisp.org>
44080
44081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44082         for nlink_t if missing.
44083         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44084
44085 2008-04-19  Bruno Haible  <bruno@clisp.org>
44086
44087         Work around snprintf bug on Linux libc5.
44088         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44090         gl_SNPRINTF_SIZE1.
44091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44092         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44093         that test failed.
44094         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44095         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44096         * modules/snprintf (Files): Add m4/printf.m4.
44097         * modules/vsnprintf (Files): Likewise.
44098         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44099         * doc/posix-functions/vsnprintf.texi: Likewise.
44100
44101 2008-04-19  Bruno Haible  <bruno@clisp.org>
44102
44103         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44104         from 0.0058 to less than 10^-7.
44105
44106 2008-04-19  Bruno Haible  <bruno@clisp.org>
44107
44108         Fix rounding when a precision is given.
44109         * lib/vasnprintf.c (is_borderline): New function.
44110         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44111         9...9x.
44112         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44113         %e, %g.
44114         * tests/test-vasprintf-posix.c (test_function): Likewise.
44115         * tests/test-snprintf-posix.h (test_function): Likewise.
44116         * tests/test-sprintf-posix.h (test_function): Likewise.
44117         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44118         * tests/test-printf-posix.h (test_function): Likewise.
44119         * tests/test-printf-posix.output: Update.
44120         Reported by John Darrington <john@darrington.wattle.id.au> via
44121         Ben Pfaff <blp@cs.stanford.edu>.
44122
44123 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44124
44125         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44126         Suggested by Bruno Haible <bruno@clisp.org>.
44127
44128 2008-04-17  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44131         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44132         implementation.
44133         Patch by Bruce Merry <bmerry@gmail.com>.
44134
44135 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44136
44137         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44138         doesn't work under Windows.
44139
44140 2008-04-16  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44143         New macros.
44144         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44145         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44146         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44147         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44148         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44149         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44150         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44151         macros.
44152         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44153         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44154         Northern Sotho, Uighur.
44155
44156 2008-04-16  Bruno Haible  <bruno@clisp.org>
44157
44158         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44159         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44160         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44161         Reported by Daniel Bergström <daniel@octocode.com>.
44162
44163 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44164             Bruno Haible  <bruno@clisp.org>
44165
44166         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44167         function.
44168         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44169         New functions, mostly extracted from gl_locale_name_default.
44170         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44171
44172 2008-04-16  Eric Blake  <ebb9@byu.net>
44173
44174         Adjust strtod detection to catch glibc 2.7 bug.
44175         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44176         Reported by John Gatewood Ham.
44177
44178 2008-04-16  Bruno Haible  <bruno@clisp.org>
44179
44180         Add tentative support for Linux libc5.
44181         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44182         * lib/fpurge.c (fpurge): Likewise.
44183         * lib/freadable.c (freadable): Likewise.
44184         * lib/freadahead.c (freadahead): Likewise.
44185         * lib/freading.c (freading): Likewise.
44186         * lib/freadptr.c (freadptr): Likewise.
44187         * lib/freadseek.c (freadptrinc): Likewise.
44188         * lib/fseeko.c (rpl_fseeko): Likewise.
44189         * lib/fseterr.c (fseterr): Likewise.
44190         * lib/fwritable.c (fwritable): Likewise.
44191         * lib/fwriting.c (fwriting): Likewise.
44192         Reported by Alain Guibert <alguibert+bts@free.fr>.
44193
44194 2008-04-15  Bruno Haible  <bruno@clisp.org>
44195
44196         * modules/mathl (configure.ac): Define module indicator.
44197
44198 2008-04-15  Bruno Haible  <bruno@clisp.org>
44199
44200         * lib/logl.c (logl): Remove unused variables.
44201
44202 2008-04-15  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44205         fails.
44206
44207 2008-04-15  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/trim.c (trim2): Fix argument of isspace() macro.
44210
44211 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44212
44213         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44214         to 0.
44215         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44216
44217 2008-04-14  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44220         AC_LANG_PROGRAM argument.
44221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44222         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44224         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44225         * m4/math_h.m4 (gl_MATH_H): Likewise.
44226         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44228         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44229         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44230         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44231         * m4/regex.m4 (gl_REGEX): Likewise.
44232         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44233         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44236         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44237         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44240
44241 2008-04-14  Jim Meyering  <meyering@redhat.com>
44242
44243         test-strtod: fix typos: s/abs/fabs/
44244         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44245
44246 2008-04-13  Bruno Haible  <bruno@clisp.org>
44247
44248         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44249         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44250         module is also used and while not building the reloc-wrapper.
44251
44252 2008-04-13  Bruno Haible  <bruno@clisp.org>
44253
44254         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44255
44256 2008-04-13  Bruno Haible  <bruno@clisp.org>
44257
44258         Fix AIX compilation failure introduced on 2008-04-02.
44259         * tests/test-frexp.c (exp): Undefine before redefining.
44260         * tests/test-frexpl.c (exp): Likewise.
44261
44262 2008-04-13  Bruno Haible  <bruno@clisp.org>
44263
44264         Work around a HP-UX stdio bug.
44265         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44266         * tests/test-ftello.c (main): Likewise.
44267         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44268         * doc/posix-functions/ftello.texi: Likewise.
44269
44270 2008-04-13  Bruno Haible  <bruno@clisp.org>
44271
44272         Make test-signbit pass on HP-UX/hppa.
44273         * tests/test-signbit.c (minus_zerol): New variable.
44274         (test_signbitl): Use it.
44275
44276 2008-04-13  Bruno Haible  <bruno@clisp.org>
44277
44278         Make truncl work on OSF/1 4.0.
44279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44280         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44281         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44283         HAVE_DECL_TRUNCL.
44284         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44285         HAVE_DECL_TRUNCL.
44286         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44287
44288 2008-04-13  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44291
44292 2008-04-13  Bruno Haible  <bruno@clisp.org>
44293
44294         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44295         expression, so as to avoid HP-UX 11 cc compiler bug.
44296
44297 2008-04-13  Bruno Haible  <bruno@clisp.org>
44298
44299         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44300
44301 2008-04-13  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/git-merge-changelog.c: Remove empty declaration outside of
44304         functions.
44305
44306 2008-04-13  Bruno Haible  <bruno@clisp.org>
44307
44308         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44309
44310 2008-04-13  Bruno Haible  <bruno@clisp.org>
44311
44312         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44313         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44315         also if it exists but lacks definitions of the SHUT_* macros.
44316         * modules/sys_socket (Description): Update.
44317         Reported by Elbert Pol <e.pol@chello.nl>.
44318
44319 2008-04-13  Bruno Haible  <bruno@clisp.org>
44320
44321         * lib/localcharset.c (OS2): Don't redefine if already defined.
44322         Reported by Elbert Pol <e.pol@chello.nl>.
44323
44324 2008-04-13  Bruno Haible  <bruno@clisp.org>
44325
44326         * lib/binary-io.h [__EMX__]: Include <io.h>.
44327         Reported by Elbert Pol <e.pol@chello.nl>.
44328
44329 2008-04-12  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/fpucw.h: Enable the definitions also for x86_64.
44332         Needed for NetBSD/x86_64.
44333         Reported by Thomas Klausner <tk@giga.or.at>.
44334
44335 2008-04-12  Bruno Haible  <bruno@clisp.org>
44336
44337         * tests/test-strtod.c: Include isnand.h.
44338         (main): Use isnand instead of isnan.
44339         Reported by Jim Meyering.
44340
44341 2008-04-12  Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44344         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44345
44346 2008-04-12  Jim Meyering  <meyering@redhat.com>
44347
44348         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44349
44350 2008-04-12  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44353         Reported by Elbert Pol <e.pol@chello.nl>.
44354
44355 2008-04-12  Eric Blake  <ebb9@byu.net>
44356
44357         Work around Solaris 10 math.h bug.
44358         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44359         (gl_MATH_H_DEFAULTS): Set up default.
44360         * modules/math (Makefile.am): Replace new indicators.
44361         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44362         * tests/test-math.c (main): Test this.
44363         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44364         * doc/posix-headers/math.texi (math.h): Mention bug.
44365         Reported by Nelson H. F. Beebe and Jim Meyering.
44366
44367 2008-04-11  Bruno Haible  <bruno@clisp.org>
44368
44369         Adapt to future versions of Apple GCC.
44370         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44371         Reported by Peter O'Gorman <peter@pogma.com>.
44372
44373 2008-04-11  Bruno Haible  <bruno@clisp.org>
44374
44375         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44376
44377 2008-04-11  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44380
44381         * modules/getaddrinfo-tests (Makefile.am): Define
44382         test_getaddrinfo_LDADD.
44383
44384 2008-04-11  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44387         (init): Fix syntax error.
44388         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44389         is declared.
44390
44391 2008-04-11  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44394         * modules/glob (Depends-on): Add stdbool.
44395
44396 2008-04-11  Bruno Haible  <bruno@clisp.org>
44397
44398         * lib/trim.c: Include <string.h>.
44399
44400 2008-04-11  Eric Blake  <ebb9@byu.net>
44401
44402         Avoid compile failure on OS/2.
44403         * lib/regex_internal.h (internal_function): Disable optimization
44404         on OS/2 (__EMX__), where it caused compiler error.
44405         Reported by Elbert Pol.
44406
44407 2008-04-11  Bruno Haible  <bruno@clisp.org>
44408
44409         Flush the standard error stream before aborting. Needed on mingw.
44410         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44411         * tests/test-array_list.c (ASSERT): Likewise.
44412         * tests/test-array_oset.c (ASSERT): Likewise.
44413         * tests/test-avltree_list.c (ASSERT): Likewise.
44414         * tests/test-avltree_oset.c (ASSERT): Likewise.
44415         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44416         * tests/test-binary-io.c (ASSERT): Likewise.
44417         * tests/test-byteswap.c (ASSERT): Likewise.
44418         * tests/test-c-ctype.c (ASSERT): Likewise.
44419         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44420         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44421         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44422         * tests/test-c-strstr.c (ASSERT): Likewise.
44423         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44424         * tests/test-canonicalize.c (ASSERT): Likewise.
44425         * tests/test-carray_list.c (ASSERT): Likewise.
44426         * tests/test-ceilf1.c (ASSERT): Likewise.
44427         * tests/test-ceilf2.c (ASSERT): Likewise.
44428         * tests/test-ceill.c (ASSERT): Likewise.
44429         * tests/test-count-one-bits.c (ASSERT): Likewise.
44430         * tests/test-fbufmode.c (ASSERT): Likewise.
44431         * tests/test-fflush2.c (ASSERT): Likewise.
44432         * tests/test-floorf1.c (ASSERT): Likewise.
44433         * tests/test-floorf2.c (ASSERT): Likewise.
44434         * tests/test-floorl.c (ASSERT): Likewise.
44435         * tests/test-fopen.c (ASSERT): Likewise.
44436         * tests/test-fpending.c (ASSERT): Likewise.
44437         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44438         * tests/test-fpurge.c (ASSERT): Likewise.
44439         * tests/test-freadable.c (ASSERT): Likewise.
44440         * tests/test-freadahead.c (ASSERT): Likewise.
44441         * tests/test-freading.c (ASSERT): Likewise.
44442         * tests/test-freadptr.c (ASSERT): Likewise.
44443         * tests/test-freadptr2.c (ASSERT): Likewise.
44444         * tests/test-freadseek.c (ASSERT): Likewise.
44445         * tests/test-freopen.c (ASSERT): Likewise.
44446         * tests/test-frexp.c (ASSERT): Likewise.
44447         * tests/test-frexpl.c (ASSERT): Likewise.
44448         * tests/test-fseek.c (ASSERT): Likewise.
44449         * tests/test-fseeko.c (ASSERT): Likewise.
44450         * tests/test-fstrcmp.c (ASSERT): Likewise.
44451         * tests/test-ftell.c (ASSERT): Likewise.
44452         * tests/test-ftello.c (ASSERT): Likewise.
44453         * tests/test-func.c (ASSERT): Likewise.
44454         * tests/test-fwritable.c (ASSERT): Likewise.
44455         * tests/test-fwriting.c (ASSERT): Likewise.
44456         * tests/test-getdelim.c (ASSERT): Likewise.
44457         * tests/test-getline.c (ASSERT): Likewise.
44458         * tests/test-i-ring.c (ASSERT): Likewise.
44459         * tests/test-iconv-utf.c (ASSERT): Likewise.
44460         * tests/test-iconv.c (ASSERT): Likewise.
44461         * tests/test-isfinite.c (ASSERT): Likewise.
44462         * tests/test-isnand.c (ASSERT): Likewise.
44463         * tests/test-isnanf.c (ASSERT): Likewise.
44464         * tests/test-isnanl.h (ASSERT): Likewise.
44465         * tests/test-ldexpl.c (ASSERT): Likewise.
44466         * tests/test-linked_list.c (ASSERT): Likewise.
44467         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44468         * tests/test-localename.c (ASSERT): Likewise.
44469         * tests/test-lseek.c (ASSERT): Likewise.
44470         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44471         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44472         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44473         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44474         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44475         * tests/test-mbschr.c (ASSERT): Likewise.
44476         * tests/test-mbscspn.c (ASSERT): Likewise.
44477         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44478         * tests/test-mbspbrk.c (ASSERT): Likewise.
44479         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44480         * tests/test-mbsrchr.c (ASSERT): Likewise.
44481         * tests/test-mbsspn.c (ASSERT): Likewise.
44482         * tests/test-mbsstr1.c (ASSERT): Likewise.
44483         * tests/test-mbsstr2.c (ASSERT): Likewise.
44484         * tests/test-mbsstr3.c (ASSERT): Likewise.
44485         * tests/test-memchr2.c (ASSERT): Likewise.
44486         * tests/test-memmem.c (ASSERT): Likewise.
44487         * tests/test-open.c (ASSERT): Likewise.
44488         * tests/test-printf-frexp.c (ASSERT): Likewise.
44489         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44490         * tests/test-printf-posix.c (ASSERT): Likewise.
44491         * tests/test-quotearg.c (ASSERT): Likewise.
44492         * tests/test-rbtree_list.c (ASSERT): Likewise.
44493         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44494         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44495         * tests/test-round1.c (ASSERT): Likewise.
44496         * tests/test-roundf1.c (ASSERT): Likewise.
44497         * tests/test-roundl.c (ASSERT): Likewise.
44498         * tests/test-signbit.c (ASSERT): Likewise.
44499         * tests/test-sleep.c (ASSERT): Likewise.
44500         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44501         * tests/test-snprintf.c (ASSERT): Likewise.
44502         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44503         * tests/test-stat-time.c (ASSERT): Likewise.
44504         * tests/test-strcasestr.c (ASSERT): Likewise.
44505         * tests/test-strerror.c (ASSERT): Likewise.
44506         * tests/test-striconv.c (ASSERT): Likewise.
44507         * tests/test-striconveh.c (ASSERT): Likewise.
44508         * tests/test-striconveha.c (ASSERT): Likewise.
44509         * tests/test-strsignal.c (ASSERT): Likewise.
44510         * tests/test-strstr.c (ASSERT): Likewise.
44511         * tests/test-strtod.c (ASSERT): Likewise.
44512         * tests/test-trunc1.c (ASSERT): Likewise.
44513         * tests/test-trunc2.c (ASSERT): Likewise.
44514         * tests/test-truncf1.c (ASSERT): Likewise.
44515         * tests/test-truncf2.c (ASSERT): Likewise.
44516         * tests/test-truncl.c (ASSERT): Likewise.
44517         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44518         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44519         * tests/test-vasnprintf.c (ASSERT): Likewise.
44520         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44521         * tests/test-vasprintf.c (ASSERT): Likewise.
44522         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44523         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44524         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44525         * tests/test-vsnprintf.c (ASSERT): Likewise.
44526         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44527         * tests/test-wcwidth.c (ASSERT): Likewise.
44528         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44529         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44530         * tests/test-xvasprintf.c (ASSERT): Likewise.
44531         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44532         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44533         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44534         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44535         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44536         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44537         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44538         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44539         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44540         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44541         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44542         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44543         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44544         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44545         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44546         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44547         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44548         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44549         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44550         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44551         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44552         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44553         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44554         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44555         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44556         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44557         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44558         * tests/unictype/test-combining.c (ASSERT): Likewise.
44559         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44560         * tests/unictype/test-digit.c (ASSERT): Likewise.
44561         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44562         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44563         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44564         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44565         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44566         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44567         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44568         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44569         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44570         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44571         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44572         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44573         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44574         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44575         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44576         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44577         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44578         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44579         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44580         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44581         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44582         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44583         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44584         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44585         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44586         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44587         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44588         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44589         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44590         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44591         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44592         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44593         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44594         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44595         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44596         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44597         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44598         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44599         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44600         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44601         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44602         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44603         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44604         Reported by Eric Blake.
44605
44606 2008-04-11  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/wchar.in.h: Tweak comment.
44609
44610 2008-04-11  Bruno Haible  <bruno@clisp.org>
44611
44612         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44613         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44614         gl_COMMON.
44615         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44616
44617 2008-04-11  Bruno Haible  <bruno@clisp.org>
44618
44619         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44620
44621 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44622
44623         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44624         of attempting to use non-existing /dev/*random.  Based on patch
44625         from Adam Strzelecki <ono@java.pl> in
44626         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44627
44628 2008-04-08  Bruno Haible  <bruno@clisp.org>
44629
44630         Add tentative support for emx+gcc.
44631         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44632         * lib/fpurge.c (fpurge): Likewise.
44633         * lib/freadable.c (freadable): Likewise.
44634         * lib/freadahead.c (freadahead): Likewise.
44635         * lib/freading.c (freading): Likewise.
44636         * lib/freadptr.c (freadptr): Likewise.
44637         * lib/freadseek.c (freadptrinc): Likewise.
44638         * lib/fseeko.c (rpl_fseeko): Likewise.
44639         * lib/fseterr.c (fseterr): Likewise.
44640         * lib/fwritable.c (fwritable): Likewise.
44641         * lib/fwriting.c (fwriting): Likewise.
44642         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44643
44644 2008-04-09  Eric Blake  <ebb9@byu.net>
44645
44646         Avoid some autoconf warnings.
44647         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44648         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44649         * m4/afs.m4 (gl_AFS): Likewise.
44650         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44651         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44653         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44654         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44655         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44656         (AC_CHECK_DECLS_ONCE): Likewise.
44657         Rename file...
44658         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44659         gnulib-tool requires autoconf 2.59 or better.
44660         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44661
44662 2008-04-08  Eric Blake  <ebb9@byu.net>
44663
44664         Use 'git describe --match' if present (added in git 1.5.5).
44665         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44666         if possible.
44667
44668 2008-04-08  Bruno Haible  <bruno@clisp.org>
44669
44670         Add tentative support for OpenServer.
44671         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44672         _ptr, _cnt.
44673         * lib/fpurge.c (fpurge): Likewise.
44674         * lib/freadable.c (freadable): Likewise.
44675         * lib/freadahead.c (freadahead): Likewise.
44676         * lib/freading.c (freading): Likewise.
44677         * lib/freadptr.c (freadptr): Likewise.
44678         * lib/freadseek.c (freadptrinc): Likewise.
44679         * lib/fseeko.c (rpl_fseeko): Likewise.
44680         * lib/fseterr.c (fseterr): Likewise.
44681         * lib/fwritable.c (fwritable): Likewise.
44682         * lib/fwriting.c (fwriting): Likewise.
44683         Reported by Roger Cornelius <rac@tenzing.org> and
44684         Brian K. White <brian@aljex.com>.
44685
44686 2008-04-06  Jim Meyering  <meyering@redhat.com>
44687
44688         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44689
44690 2008-04-06  Bruno Haible  <bruno@clisp.org>
44691
44692         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44693         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44694         * tests/test-printf-posix.sh: Likewise.
44695         * tests/test-vfprintf-posix.sh: Likewise.
44696         * tests/test-vprintf-posix.sh: Likewise.
44697         * tests/test-xprintf-posix.sh: Likewise.
44698
44699 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44700
44701         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44702         hide error from 'ls', needed on OS/2.
44703         Report by Elbert Pol <elbert.pol@gmail.com>.
44704
44705 2008-04-04  Eric Blake  <ebb9@byu.net>
44706
44707         Make test-fseeko.c failures meaningful.
44708         * tests/test-fseeko.c: Print line number on failure.
44709         * tests/test-fseek.c: Likewise.
44710         Reported by Nelson H. F. Beebe.
44711
44712         Improve strtod bug detection check.
44713         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44714         required for Solaris 10.
44715         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44716
44717 2008-04-04  Bruno Haible  <bruno@clisp.org>
44718
44719         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44720         by m4/setenv.m4.
44721
44722 2008-04-03  Eric Blake  <ebb9@byu.net>
44723
44724         Ensure sane .version contents.
44725         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44726         version string.
44727         * build-aux/git-version-gen: Improve documentation.
44728
44729         Make GNU make output nicer.
44730         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44731         MAKECMDGOALS to enforce message for all command line targets.  Set
44732         srcdir for use in maint.mk.
44733
44734         Another maintainer tweak.
44735         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44736         a target that regenerates version.
44737
44738 2008-04-03  Jim Meyering  <meyering@redhat.com>
44739
44740         vc-list-files: don't cause coreutils "make po-check" failure
44741         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44742
44743 2008-04-03  Eric Blake  <ebb9@byu.net>
44744
44745         Allow VPATH usage of vc-list-files.
44746         * build-aux/vc-list-files (scriptversion): Add timestamp.
44747         (options): Add --help, --version, -C.
44748         (CVS): Support installed cvsu.
44749
44750 2008-04-02  Bruno Haible  <bruno@clisp.org>
44751
44752         Avoid some "statement with no effect" warnings from gcc.
44753         * tests/test-wctype.c (main): Explicitly ignore unused values.
44754         Reported by Jim Meyering.
44755
44756 2008-04-02  Jim Meyering  <meyering@redhat.com>
44757
44758         Avoid some warnings from "gcc -Wshadow".
44759         * tests/test-frexp.c (exp): Define to a different identifier.
44760         * tests/test-frexpl.c (exp): Likewise.
44761
44762 2008-04-03  Jim Meyering  <meyering@redhat.com>
44763
44764         bootstrap: remove dangling *.[ch] symlinks from lib
44765         * build-aux/bootstrap [dangling symlink removal]: Move find's
44766         -depth option to precede all others, to avoid a warning.
44767         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44768
44769 2008-04-02  Bruno Haible  <bruno@clisp.org>
44770
44771         Avoid some warnings from "gcc -Wshadow".
44772         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44773         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44774         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44775         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44776         Reported by Jim Meyering.
44777
44778 2008-04-01  Bruno Haible  <bruno@clisp.org>
44779
44780         Fix test to work on IRIX 6.5 with cc.
44781         * tests/test-math.c (numeric_equal): New function.
44782         (main): Use it.
44783
44784 2008-04-01  Bruno Haible  <bruno@clisp.org>
44785
44786         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44787
44788 2008-04-01  Bruno Haible  <bruno@clisp.org>
44789
44790         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44791         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44792         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44793         (Depends-on): Remove math.
44794
44795         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44796         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44797         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44798         (Depends-on): Remove math.
44799
44800         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44801         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44802         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44803         (Depends-on): Remove math.
44804         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44805         (Depends-on): Remove math.
44806
44807         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44809         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44810         (Depends-on): Remove math.
44811         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44812         (Depends-on): Remove math.
44813
44814         * tests/test-round1.c: Include nan.h.
44815         (main): Use NaNd instead of NAN.
44816         * modules/round-tests (Files): Add tests/nan.h.
44817
44818         * tests/test-trunc1.c: Include nan.h.
44819         (main): Use NaNd instead of NAN.
44820         * modules/trunc-tests (Files): Add tests/nan.h.
44821
44822         * tests/test-roundf1.c: Include nan.h.
44823         (main): Use NaNf instead of NAN.
44824         * modules/roundf-tests (Files): Add tests/nan.h.
44825
44826         * tests/test-truncf1.c: Include nan.h.
44827         (main): Use NaNf instead of NAN.
44828         * modules/truncf-tests (Files): Add tests/nan.h.
44829
44830         * tests/test-ceilf1.c: Include nan.h.
44831         (main): Use NaNf instead of NAN.
44832         * modules/ceilf-tests (Files): Add tests/nan.h.
44833
44834         * tests/test-floorf1.c: Include nan.h.
44835         (main): Use NaNf instead of NAN.
44836         * modules/floorf-tests (Files): Add tests/nan.h.
44837
44838         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44839         (main): Use NaNf instead of NAN.
44840         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44841
44842         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44843         (main): Use NaNd instead of NAN.
44844         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44845
44846         * tests/test-frexp.c: Include nan.h.
44847         (main): Use NaNd instead of NAN.
44848         * modules/frexp-tests (Files): Add tests/nan.h.
44849
44850         * lib/isnan.c: Don't include <math.h>.
44851         (FUNC): Don't use NAN macro.
44852         * modules/isnand-nolibm (Depends-on): Remove math.
44853         * modules/isnanf-nolibm (Depends-on): Remove math.
44854         * modules/isnanl (Depends-on): Remove math.
44855         * modules/isnanl-nolibm (Depends-on): Remove math.
44856
44857         * tests/nan.h: New file.
44858
44859 2008-04-01  Eric Blake  <ebb9@byu.net>
44860
44861         Fix typos.
44862         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44863         values to be the right type.
44864
44865         For now, cater to gnulib strtod inaccuracies.
44866         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44867         fractional results.  While not as nice from a QoI perspective, it
44868         is a quicker patch than correctly implementing decimal to binary
44869         rounding.
44870
44871 2008-03-31  Eric Blake  <ebb9@byu.net>
44872
44873         Guarantee a definition of NAN.
44874         * lib/math.in.h (NAN): Define if missing.
44875         * tests/test-math.c (main): Test it.
44876         * doc/posix-headers/math.texi (math.h): Document this.
44877         * lib/isnan.c (rpl_isnand): Use it.
44878         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44879         * tests/test-floorf1.c (NaN): Likewise.
44880         * tests/test-frexp.c (NaN): Likewise.
44881         * tests/test-isnand.c (NaN): Likewise.
44882         * tests/test-isnanf.c (NaN): Likewise.
44883         * tests/test-round1.c (NaN): Likewise.
44884         * tests/test-roundf1.c (NaN): Likewise.
44885         * tests/test-snprintf-posix.h (NaN): Likewise.
44886         * tests/test-sprintf-posix.h (NaN): Likewise.
44887         * tests/test-trunc1.c (NaN): Likewise.
44888         * tests/test-truncf1.c (NaN): Likewise.
44889         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44890         * tests/test-vasprintf-posix.c (NaN): Likewise.
44891         * modules/isnand-nolibm (Depends-on): Add math.
44892         * modules/isnanf-nolibm (Depends-on): Likewise.
44893         * modules/isnanl (Depends-on): Likewise.
44894         * modules/isnanl-nolibm (Depends-on): Likewise.
44895         * modules/snprintf-posix-tests (Depends-on): Likewise.
44896         * modules/sprintf-posix-tests (Depends-on): Likewise.
44897         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44898         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44899         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44900         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44901
44902 2008-03-31  Bruno Haible  <bruno@clisp.org>
44903
44904         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44905         * doc/posix-functions/strtod.texi: Likewise.
44906
44907 2008-03-31  Bruno Haible  <bruno@clisp.org>
44908
44909         * tests/test-strtod.c (main): Don't use C99 syntax.
44910
44911 2008-03-31  Bruno Haible  <bruno@clisp.org>
44912
44913         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44914         Reported by Eric Blake.
44915
44916 2008-03-31  Jim Meyering  <meyering@redhat.com>
44917
44918         Don't compare actual signbit return values.
44919         * tests/test-strtod.c (main): Rather, compare only their
44920         zero/non-zero nature.
44921
44922 2008-03-31  Eric Blake  <ebb9@byu.net>
44923
44924         More strtod documentation.
44925         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44926         failures as distinct bugs.
44927
44928 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44929
44930         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44931         Problem reported by Erik Benada in
44932         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44933
44934 2008-03-30  Bruno Haible  <bruno@clisp.org>
44935
44936         * tests/test-strtod.c: Add comments about which assertion fails on which
44937         platform.
44938         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44939
44940 2008-03-30  Eric Blake  <ebb9@byu.net>
44941
44942         Test signbit behavior on zeros.
44943         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44944         (test_signbitd, test_signbitl): Likewise.
44945
44946         More strtod touchups.
44947         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44948         sign of negative underflow, for now.  Use .5, not .1.
44949         * doc/posix-functions/strtod.texi (strtod): Mention these
44950         limitations.
44951         Reported by Jim Meyering.
44952
44953 2008-03-30  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44956         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44957
44958 2008-03-30  Bruno Haible  <bruno@clisp.org>
44959
44960         Avoid failure when attempting to return empty iconv results on some
44961         platforms.
44962         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44963         allocation, don't report ENOMEM when the resulting string is empty.
44964
44965 2008-03-30  Bruno Haible  <bruno@clisp.org>
44966
44967         Fix buffer overrun.
44968         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44969         Don't consider the width for tmp_length. Check count against tmp_length
44970         before doing the padding. Ensure enough allocation during padding.
44971
44972 2008-03-30  Eric Blake  <ebb9@byu.net>
44973
44974         strtod touchups.
44975         * lib/strtod.c (strtod): Avoid compiler warnings.
44976         Reported by Jim Meyering.
44977
44978 2008-03-30  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44981         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44982         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44983         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44984         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44985         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44986         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44987         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44988
44989         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44990         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44991         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44992         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44993         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44994         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44995         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44996         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44997
44998         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44999         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45000         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45001         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45002         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45003         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45004         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45005         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45006
45007         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45008         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45009
45010         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45011         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45012
45013         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45014         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45015
45016         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45018         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45019
45020         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45022         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45023
45024         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45026         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45027
45028         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45030         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45031
45032         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45033         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45035         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45036         (Depends-on): Add EOVERFLOW.
45037         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45038         (Depends-on): Add EOVERFLOW.
45039         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45040         (Depends-on): Add EOVERFLOW.
45041         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45042         (Depends-on): Add EOVERFLOW.
45043         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45044         (Depends-on): Add EOVERFLOW.
45045         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45046         (Depends-on): Add EOVERFLOW.
45047         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45048         (Depends-on): Add EOVERFLOW.
45049         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45050         (Depends-on): Add EOVERFLOW.
45051
45052         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45054         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45055
45056         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45058         * modules/snprintf (Depends-on): Add EOVERFLOW.
45059
45060         * lib/poll.c (EOVERFLOW): Remove fallback.
45061         * modules/poll (Depends-on): Add EOVERFLOW.
45062
45063         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45064         * modules/getugroups (Depends-on): Add EOVERFLOW.
45065
45066         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45067         * modules/getdelim (Depends-on): Add EOVERFLOW.
45068
45069         * lib/ftell.c (EOVERFLOW): Remove fallback.
45070         * modules/ftell (Depends-on): Add EOVERFLOW.
45071
45072         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45073         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45074         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45075
45076         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45077
45078         * modules/EOVERFLOW-tests: New file.
45079         * tests/test-EOVERFLOW.c: New file.
45080
45081         * modules/EOVERFLOW: New file.
45082         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45083
45084 2008-03-30  Bruno Haible  <bruno@clisp.org>
45085
45086         Fix bug introduced on 2007-06-10.
45087         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45088         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45089
45090 2008-03-30  Bruno Haible  <bruno@clisp.org>
45091
45092         Improve freadseek's efficiency after ungetc.
45093         * lib/freadseek.c: Include freadahead.h.
45094         (freadptrinc): New function, extracted from freadseek.
45095         (freadseek): Use it in a loop. Use freadahead to determine the number
45096         of loop iterations.
45097         * modules/freadseek (Depends-on): Add freadahead.
45098         (configure.ac): Require AC_C_INLINE.
45099
45100 2008-03-30  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/freadseek.c (freadseek): Don't ignore the return value of
45103         freadptr.
45104
45105 2008-03-29  Eric Blake  <ebb9@byu.net>
45106
45107         Add hex float support.
45108         * modules/strtod (Depends-on): Add c-ctype.
45109         (Link): Mention POW_LIB.
45110         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45111         whitespace between 'e' and exponent.
45112         * tests/test-strtod.c (main): Enable hex float tests.
45113         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45114         now provides.
45115
45116         Document various strtod bugs, with some fixes.
45117         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45118         "-0x", "inf", "nan", and hex constants.
45119         * doc/posix-functions/atof.texi (atof): Likewise.
45120         * modules/stdlib (Makefile.am): Support strtod.
45121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45122         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45123         detect additional strtod bugs.
45124         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45125         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45126         bool where appropriate.  Parse 'inf' and 'nan'.
45127         * tests/test-strtod.c: New file.
45128         * modules/strtod (Depends-on): Add stdbool, stdlib.
45129         (configure.ac): Turn on module indicator.
45130         * modules/strtod-tests: New module.
45131
45132 2008-03-29  Eric Blake  <ebb9@byu.net>
45133
45134         Fix ftell on mingw.
45135         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45136         * modules/ftell-tests (Depends-on): Add binary-io.
45137         * modules/ftello-tests (Depends-on): Likewise.
45138         * tests/test-ftell.c (main): Enhance test to cover behavior after
45139         ungetc.  Enforce binary mode.
45140         * tests/test-ftello.c (main): Likewise.
45141
45142         Pass test-freadseek on cygwin.
45143         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45144         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45145         ungetc buffer.
45146
45147         * tests/test-fflush2.c (main): Fix typo.
45148
45149 2008-03-29  Bruno Haible  <bruno@clisp.org>
45150
45151         * tests/test-fflush2.c (main): Temporarily disable the contents of
45152         this test.
45153         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45154         Reported by Eric Blake.
45155
45156 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45157
45158         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45159         (GC_SHA224_DIGEST_SIZE): Add.
45160
45161         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45162         (gc_hash_digest_length): Likewise.
45163         (gc_hash_buffer): Likewise.
45164
45165 2008-03-25  Bruno Haible  <bruno@clisp.org>
45166
45167         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45168         detail which gettext release to use.
45169         Reported by Simon Josefsson.
45170
45171 2008-03-26  Jim Meyering  <meyering@redhat.com>
45172
45173         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45174         * modules/gnumakefile (clean-GNUmakefile): Also, use
45175         test ... && ... || : syntax rather than if-then ... fi.
45176
45177         gnumakefile: Don't double-quote-expand $(VPATH) value.
45178         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45179
45180 2008-03-24  Eric Blake  <ebb9@byu.net>
45181
45182         Alter GNUmakefile to install into top directory.
45183         * modules/maintainer-makefile: Split, and add dependency...
45184         * modules/gnumakefile: to this new module.
45185         * build-aux/GNUmakefile: Move...
45186         * top/GNUmakefile: ...here.
45187         * build-aux/maint.mk: Move...
45188         * top/maint.mk: ...here.
45189         * MODULES.html.sh (Support for maintaining...): Document new
45190         module.
45191
45192 2008-03-23  Bruno Haible  <bruno@clisp.org>
45193
45194         * gnulib-tool: New options --vc-files, --no-vc-files.
45195         (func_usage): Document them.
45196         (vc_files): New variable.
45197         (func_import): Consider vc_files.
45198         (func_create_testdir): Set vc_files to empty.
45199         Suggested by Jim Meyering and Karl Berry.
45200
45201 2008-03-23  Bruno Haible  <bruno@clisp.org>
45202
45203         Fix regex compilation error on HP-UX 11.
45204         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45205         * modules/regex (Files): Add m4/mbstate_t.m4.
45206         Reported by Ton Voon <ton.voon@altinity.com>.
45207
45208 2008-03-23  Bruno Haible  <bruno@clisp.org>
45209
45210         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45211
45212 2008-03-23  Eric Blake  <ebb9@byu.net>
45213             Bruno Haible  <bruno@clisp.org>
45214
45215         Install files from top/ in the destination directory.
45216         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45217         augmentation also for the files from top/.
45218         (func_import, func_create_testdir): Rewrite file names:
45219         top/filename -> filename.
45220
45221 2008-03-23  Bruno Haible  <bruno@clisp.org>
45222
45223         Tweak "gnulib --version" output.
45224         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45225
45226 2008-03-23  Bruno Haible  <bruno@clisp.org>
45227
45228         Tweak "gnulib --version" output.
45229         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45230         rather than contents of ChangeLog, when possible.
45231
45232 2008-03-21  Eric Blake  <ebb9@byu.net>
45233
45234         More --version tweaks.
45235         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45236         date of last ChangeLog entry.
45237
45238 2008-03-21  Jim Meyering  <meyering@redhat.com>
45239
45240         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45241
45242 2008-03-20  Eric Blake  <ebb9@byu.net>
45243
45244         VPATH fix.
45245         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45246
45247 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45248
45249         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45250         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45251
45252 2008-03-20  Eric Blake  <ebb9@byu.net>
45253
45254         Sync GNUmakefile with coreutils.
45255         * build-aux/GNUmakefile (have-Makefile): Rename...
45256         (_have-Makefile): ...to this, for namespace consideration.
45257         (GNUmakefile.cfg): Include, if present.
45258         (_autoreconf): Define a default.
45259         (_is-dist-target): New rule for rebuilds to pick up intra-release
45260         version.
45261         (maint-cfg.mk): Rename...
45262         (cfg.mk): ...to this.
45263
45264 2008-03-18  Jim Meyering  <meyering@redhat.com>
45265
45266         New script and module: mktempd
45267         * MODULES.html.sh (maint+release support): Add mktempd.
45268         * build-aux/mktempd: New file.
45269         * modules/mktempd: New file.
45270
45271 2008-03-15  Jim Meyering  <meyering@redhat.com>
45272
45273         Undo last change.
45274         * lib/sha1.c, lib/md5.c: 63 != ~63.
45275         Reported by Andreas Schwab.
45276
45277         sha1.c, md5.c: Hoist a redundant expression.
45278         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45279         "ctx->buflen" only once, before calling *_process_block.
45280         * lib/md5.c (md5_process_bytes): Likewise.
45281
45282 2008-03-14  Eric Blake  <ebb9@byu.net>
45283
45284         Bump copyright year in files generated by gnulib-tool.
45285         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45286         gnulib-tool, rather than hard-coding it.
45287
45288         Fix 'gnulib-tool --version' output to work with git.
45289         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45290         (startup): ...here.
45291         (func_version): Use it to invoke git-version-gen, rather than
45292         relying on CVS keyword expansion.  Modernize wording.
45293         (cvsdatestamp, last_checkin_date, version): Kill unused
45294         variables.
45295
45296 2008-03-12  Jim Meyering  <meyering@redhat.com>
45297
45298         Recognize optional cast of the argument to free.
45299         * build-aux/useless-if-before-free: Update regexps.
45300
45301         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45302
45303 2008-03-11  Bruno Haible  <bruno@clisp.org>
45304
45305         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45306         by a single package.
45307         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45308         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45309         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45310         Reported by Sam Steingold <sds@gnu.org>.
45311
45312 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45313
45314         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45315         repositories.
45316
45317 2008-03-11  Bruno Haible  <bruno@clisp.org>
45318
45319         Avoid conflicts between local macro definitions.
45320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45321         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45322
45323 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45324             Bruno Haible  <bruno@clisp.org>
45325
45326         Make va_copy work with some version of xlc on AIX 5.1.
45327         * lib/stdarg.in.h: New file.
45328         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45329         On AIX, use a <stdarg.h> file substitute.
45330         * modules/stdarg (Files): Add lib/stdarg.in.h.
45331         (Depends-on): Add include_next.
45332         (Makefile.am): Build a stdarg.h substitute if requested.
45333         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45334
45335 2008-03-10  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45339         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45340
45341 2008-03-10  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/stdlib (Depends-on): Add include_next, remove
45344         absolute-header.
45345
45346 2008-03-09  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/freadahead.h (freadahead): Document more precisely.
45349         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45350         the sum of both buffer sizes.
45351         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45352         * NEWS: Document the change.
45353
45354 2008-03-09  Bruno Haible  <bruno@clisp.org>
45355
45356         Extend freadptr to return also the buffer size.
45357         * lib/freadptr.h (freadptr): Add sizep argument.
45358         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45359         (freadptr): Add sizep argument. Determine buffer size like freadahead
45360         does.
45361         * tests/test-freadptr.c: Don't include freadahead.h.
45362         (main): Adapt for new calling convention of freadptr.
45363         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45364         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45365         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45366         tests/test-freadptr2.sh.
45367         (Depends): Remove freadahead.
45368         (TESTS): Add test-freadptr2.sh.
45369         (check_PROGRAMS): Add test-freadptr2.
45370
45371 2008-03-09  Bruno Haible  <bruno@clisp.org>
45372
45373         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45374         Report and solution by Simon Josefsson.
45375
45376 2008-03-06  Bruno Haible  <bruno@clisp.org>
45377
45378         Make fflush after ungetc work on BSD platforms.
45379         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45380         * tests/test-fflush2.c: New file.
45381         * tests/test-fflush2.sh: New file.
45382         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45383         tests/test-fflush2.c.
45384         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45385         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45386
45387 2008-03-06  Eric Blake  <ebb9@byu.net>
45388
45389         Likewise for ftello.
45390         * modules/ftello (Dependencies): Add extensions.
45391         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45392
45393 2008-03-06  Bruno Haible  <bruno@clisp.org>
45394
45395         * modules/fseeko (Dependencies): Add extensions.
45396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45397         Needed on glibc systems.
45398
45399 2008-03-06  Bruno Haible  <bruno@clisp.org>
45400
45401         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45402         email address.
45403         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45404
45405 2008-03-06  Bruno Haible  <bruno@clisp.org>
45406
45407         * users.txt: Add libgnupdf.
45408
45409 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45410
45411         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45412         (Header File Substitutes, Function Substitutes,
45413         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45414         (Build robot for gnulib): Fix typo.
45415
45416 2008-03-06  Bruno Haible  <bruno@clisp.org>
45417
45418         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45419         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45420
45421 2008-03-06  Bruno Haible  <bruno@clisp.org>
45422
45423         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45424         * doc/gnulib.texi: Include it.
45425
45426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45427
45428         * modules/func (License): Change license to unlimited; there was
45429         no LGPL parts in the module anyway.
45430
45431 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45432
45433         * modules/__func__: Renamed to modules/func.
45434         * modules/__func__-tests: Renamed to modules/func-tests.
45435         * tests/test-__func__.c: Renamed to tests/test-func.c.
45436         * m4/__func__.m4: Renamed to m4/func.m4.
45437         * doc/gnulib.texi (__func__): Section renamed to func.
45438         Suggested by Eric Blake <ebb9@byu.net>.
45439
45440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45441
45442         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45443         about __func__.  Make example self-contained.  Suggested by Eric
45444         Blake <ebb9@byu.net>.
45445
45446         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45447         Suggested by Eric Blake <ebb9@byu.net>.
45448
45449 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45450
45451         * modules/__func__: New file.
45452         * modules/__func__-tests: New file.
45453         * tests/test-__func__.c: New file.
45454         * m4/__func__.m4: New file.
45455         * doc/gnulib.texi (__func__): Document __func__ module.
45456
45457 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45458
45459         * modules/byteswap (License): Re-license as LGPLv2+.
45460
45461 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45462
45463         * doc/Makefile: Add pdf target.
45464
45465 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45466
45467         * modules/inline (License): Use 'unlimited', since there are only
45468         *.m4 files in this module.
45469
45470 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45471             Bruno Haible  <bruno@clisp.org>
45472
45473         Add support for HP C 7.1 on OpenVMS 8.3.
45474         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45475
45476 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45477
45478         Update VMS specifics.
45479         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45480
45481 2008-03-02  Jim Meyering  <meyering@redhat.com>
45482
45483         Remove the last dependency on the "free" module.
45484         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45485         Reported by Bob Proulx.
45486
45487         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45488
45489         Remove useless "if" tests before free.  Deprecate "free" module.
45490         * doc/posix-functions/free.texi: Mention that this
45491         module is no longer useful.
45492         * modules/free (Notice): Say this module is obsolete.
45493         * modules/readutmp (Depends-on): Remove free.
45494         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45495         * lib/putenv.c (putenv): Likewise.
45496         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45497         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45498         * tests/test-c-strcasestr.c (main): Likewise.
45499         * tests/test-c-strstr.c (main): Likewise.
45500         * tests/test-mbscasestr1.c (main): Likewise.
45501         * tests/test-mbscasestr2.c (main): Likewise.
45502         * tests/test-mbsstr1.c (main): Likewise.
45503         * tests/test-mbsstr2.c (main): Likewise.
45504         * tests/test-memmem.c (main): Likewise.
45505         * tests/test-strcasestr.c (main): Likewise.
45506         * tests/test-striconv.c (main): Likewise.
45507         * tests/test-striconveh.c (main): Likewise.
45508         * tests/test-striconveha.c (main): Likewise.
45509         * tests/test-strstr.c (main): Likewise.
45510
45511         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45512
45513         bootstrap: sync from coreutils again
45514         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45515
45516 2008-03-01  Jim Meyering  <meyering@redhat.com>
45517
45518         bootstrap: sync from coreutils
45519         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45520         also when the target doesn't exist.
45521
45522 2008-03-01  Eric Blake  <ebb9@byu.net>
45523
45524         Fix bugs in last patch.
45525         * lib/memchr2.c (memchr2): Fix typo.
45526         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45527         extension.
45528         Reported by Bruce Korb.
45529
45530         New module 'memchr2'.
45531         * modules/memchr2: New file.
45532         * modules/memchr2-tests: Likewise.
45533         * lib/memchr2.h: Likewise.
45534         * lib/memchr2.c: Likewise, based on memchr.c.
45535         * tests/test-memchr2.c: New test.
45536         * MODULES.html.sh (String handling): Add memchr2.
45537
45538 2008-02-29  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/freadseek-tests: New file.
45541         * tests/test-freadseek.sh: New file.
45542         * tests/test-freadseek.c: New file.
45543
45544         New module 'freadseek'.
45545         * modules/freadseek: New file.
45546         * lib/freadseek.h: New file.
45547         * lib/freadseek.c: New file.
45548         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45549
45550 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45551
45552         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45553         wydawca.
45554
45555         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45556         program_invocation_name and program_invocation_short_name are
45557         present.
45558
45559 2008-02-28  Bruno Haible  <bruno@clisp.org>
45560
45561         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45562         * tests/test-freadptr.sh: Also test non-seekable stdin.
45563
45564 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45565
45566         * build-aux/bootstrap (source_base, m4_base)
45567         (doc_base, tests_base): New variables.
45568         (gnulib_tool_options): Do not hardcode base directories, use
45569         the above variables instead.
45570
45571 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45572
45573         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45574
45575 2008-02-28  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/freadptr-tests: New file.
45578         * tests/test-freadptr.sh: New file.
45579         * tests/test-freadptr.c: New file.
45580
45581         New module 'freadptr'.
45582         * modules/freadptr: New file.
45583         * lib/freadptr.h: New file.
45584         * lib/freadptr.c: New file.
45585         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45586
45587 2008-02-26  Karl Berry  <karl@freefriends.org>
45588
45589         Sync from Libtool:
45590         * libltdl/argz.c (argz_add, argz_count): New functions.
45591         * libltdl/argz.in.h: Declare them.
45592         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45593
45594 2008-02-22  Bruno Haible  <bruno@clisp.org>
45595
45596         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45597         is a pointer type.  Needed for HP-UX 10.
45598         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45599         * doc/posix-functions/gmtime_r.texi: Likewise.
45600         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45601
45602 2008-02-24  Bruno Haible  <bruno@clisp.org>
45603
45604         * modules/environ-tests: New file.
45605         * tests/test-environ.c: New file.
45606
45607         New module 'environ'.
45608         * modules/environ: New file.
45609         * lib/unistd.in.h (environ): New declaration.
45610         * m4/environ.m4: New file.
45611         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45612         after use.
45613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45614         HAVE_DECL_ENVIRON.
45615         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45616         HAVE_DECL_ENVIRON.
45617         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45618         wrong claim that 'environ' is missing on some systems.
45619         * modules/execute (Depends-on): Add environ.
45620         * lib/execute.c (environ): Remove fallback declaration.
45621         * modules/pipe (Depends-on): Add environ.
45622         * lib/pipe.c (environ): Remove fallback declaration.
45623         * modules/setenv (Depends-on): Add environ.
45624         * lib/setenv.c (environ): Remove fallback declaration.
45625         * modules/unsetenv (Depends-on): Add environ.
45626         * lib/unsetenv.c (environ): Remove fallback declaration.
45627         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45628         m4/environ.m4.
45629         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45630         (gl_PREREQ_UNSETENV): Likewise.
45631
45632 2008-02-24  Bruno Haible  <bruno@clisp.org>
45633
45634         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45635
45636 2008-02-20  Bob Proulx  <bob@proulx.com>
45637
45638         Enable use of older two part flavor 'git describe'.
45639         * build-aux/git-version-gen: If using the older two part flavor of
45640         git version then recreate the third part now present in the
45641         newer three part flavor of git describe.
45642
45643 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45644
45645         * lib/fts.c (fts_build): Typo correction to comment.
45646
45647 2008-02-17  Bruno Haible  <bruno@clisp.org>
45648
45649         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45650         generating no-op conflicts.
45651
45652 2008-02-17  Bruno Haible  <bruno@clisp.org>
45653
45654         Speed up by 10%.
45655         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45656         result_entries, rather than an index-based loop.
45657
45658 2008-02-17  Bruno Haible  <bruno@clisp.org>
45659
45660         Speed up by 25%.
45661         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45662         'hashcode_cached'.
45663         (entry_create): New function.
45664         (entry_hashcode): Use the cached hashcode if possible.
45665         (read_changelog_file, try_split_merged_entry): Use entry_create.
45666
45667 2008-02-17  Bruno Haible  <bruno@clisp.org>
45668
45669         Speed up from O(n^2) to O(n) for long ChangeLog files.
45670         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45671         (read_changelog_file): Change implementation of entries_reversed list
45672         to rbtreehash.
45673         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45674
45675 2008-02-17  Bruno Haible  <bruno@clisp.org>
45676
45677         New option --split-merged-entry.
45678         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45679         (find_paragraph_end, try_split_merged_entry): New functions.
45680         (long_options): Add option --split-merged-entry.
45681         (usage): Document option --split-merged-entry.
45682         (main): Implement option --split-merged-entry.
45683         Reported by Eric Blake.
45684
45685 2008-02-17  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/git-merge-changelog.c: Include c-strstr.h.
45688         (main): Support the "git pull --rebase" situation.
45689         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45690         Reported by Eric Blake.
45691
45692 2008-02-16  Eric Blake  <ebb9@byu.net>
45693
45694         Avoid doubling \ in common case of "c-maybe" quoting style.
45695         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45696         eliding outer quotes.
45697         * lib/quotearg.h: Document this.
45698         * tests/test-quotearg.c (result_strings, inputs, results_g)
45699         (flag_results, locale_results): Test it by adding a new string to
45700         each test group.
45701         (compare_strings): Test new string.
45702
45703 2008-02-13  Eric Blake  <ebb9@byu.net>
45704
45705         Avoid trigraph quoting in default output.
45706         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45707         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45708         unless explicitly requested.
45709         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45710
45711 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45712
45713         Don't rely on signed integer overflowing to negative value.
45714         * lib/getugroups.c (getugroups): Include <limits.h>.
45715         Instead, compare against INT_MAX, and increment only if the test passes.
45716
45717 2008-02-13  Jim Meyering  <meyering@redhat.com>
45718         and Eric Blake  <ebb9@byu.net>
45719
45720         Avoid shadowing warning and compile errors on Linux.
45721         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45722         forwarding macros on Linux.
45723         (dcgettext): Define a stub, for Linux.
45724         (results_g, main): Avoid warnings.
45725
45726 2008-02-12  Eric Blake  <ebb9@byu.net>
45727
45728         Silence warning in last patch.
45729         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45730
45731         Quotearg part 4: add tests, fix c-maybe colon quoting.
45732         * lib/quotearg.h: Improve documentation.
45733         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45734         escapes when adding outer quotes.  When quoting trigraphs, use
45735         valid C notation.  When quoting NUL, omit extra characters if next
45736         character is not digit.  Alter prototype.
45737         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45738         callers.
45739         * modules/quotearg-tests: New module.
45740         * tests/test-quotearg.c: New test.
45741
45742 2008-02-07  Eric Blake  <ebb9@byu.net>
45743
45744         Quotearg part 3: add flag to control outer quote elision.
45745         * lib/quotearg.h (c_maybe_quoting_style): New style.
45746         (enum quoting_flags): Better documentation of flags.
45747         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45748         c-maybe style.
45749         (quotearg_buffer_restyled): Handle new flag to elide outer
45750         quotes.
45751
45752         Quotearg part 2: add flag that can control NUL elision.
45753         * lib/quotearg.h (set_quoting_flags): New prototype.
45754         * lib/quotearg.c (struct quoting_options): Add flag field.
45755         (set_quoting_flags): New function.
45756         (quotearg_buffer_restyled): Add flags parameter.
45757         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45758         (quotearg_n_options): Set the flag, since length cannot be
45759         returned.
45760         (quoting_options_from_style): Default flags correctly.
45761
45762         Quotearg part 1: more wrappers, restore quotearg_char state.
45763         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45764         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45765         (quotearg_colon_mem): New wrappers.
45766         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45767         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45768         functions.
45769         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45770         (quotearg_colon_mem): New functions.
45771
45772 2008-02-11  Bruno Haible  <bruno@clisp.org>
45773
45774         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45775         library in the current directory: it does not work with parallel make.
45776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45777
45778 2008-02-11  Bruno Haible  <bruno@clisp.org>
45779
45780         * .gitattributes: New file.
45781
45782 2008-02-11  Jim Meyering  <meyering@redhat.com>
45783
45784         useless-if-before-free: Fix reversed exit values.
45785         * build-aux/useless-if-before-free: Use correct values
45786         for EXIT_MATCH and EXIT_NO_MATCH.
45787
45788         * build-aux/useless-if-before-free: Close stdout carefully.
45789
45790 2008-02-10  Bruno Haible  <bruno@clisp.org>
45791
45792         New module 'git-merge-changelog'.
45793         * modules/git-merge-changelog: New file.
45794         * lib/git-merge-changelog.c: New file.
45795
45796 2008-02-10  Jim Meyering  <meyering@redhat.com>
45797
45798         useless-if-before-free: New option: --list (-l).
45799
45800         useless-if-before-free: Don't exit immediately upon open failure.
45801         * build-aux/useless-if-before-free: Exit 2 for errors.
45802         Upon failure to open a file, don't exit immediately.
45803         Rather, just warn and continue with any remaining files.
45804
45805 2008-02-10  Bruno Haible  <bruno@clisp.org>
45806
45807         New abstract list operation 'node_set_value'.
45808         * lib/gl_list.h (gl_list_node_set_value): New function.
45809         (struct gl_list_implementation): New field node_set_value.
45810         * lib/gl_list.c (gl_list_node_set_value): New function.
45811         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45812         (gl_array_list_implementation): Update.
45813         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45814         (gl_carray_list_implementation): Update.
45815         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45816         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45817         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45818         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45819         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45820         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45821         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45822         Update.
45823         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45824         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45825         (gl_sublist_list_implementation): Update.
45826
45827 2008-02-10  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45830         Needed when ELEMENT is #defined to 'some_type *'.
45831
45832 2008-02-10  Jim Meyering  <meyering@redhat.com>
45833
45834         New script and module: useless-if-before-free
45835         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45836         * build-aux/useless-if-before-free: New file.
45837         * modules/useless-if-before-free: New file.
45838
45839         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45840
45841         xstrtol_error: Fix typo.
45842         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45843         s/exit_failure/exit_status/.
45844
45845 2008-02-09  Jim Meyering  <meyering@redhat.com>
45846
45847         New script and module: gitlog-to-changelog
45848         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45849         * modules/gitlog-to-changelog: New file.
45850         * build-aux/gitlog-to-changelog: New file.
45851
45852 2008-02-08  Jim Meyering  <meyering@redhat.com>
45853
45854         Avoid two "parameter unused" warnings.
45855         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45856         Mark "st" as used.
45857
45858         Use "git COMMAND", not "git-COMMAND".
45859         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45860         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45861         * build-aux/git-version-gen: Use "git status", not "git-status".
45862
45863 2008-02-07  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45866         Avoids a crash on Windows Vista.
45867         Reported by Adam Strzelecki <ono@java.pl> via
45868         Simon Josefsson <simon@josefsson.org>.
45869
45870 2008-02-06  Bruno Haible  <bruno@clisp.org>
45871
45872         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45873         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45874         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45876         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45878         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45879         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45887         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45888         left-adjust flag.
45889         * tests/test-snprintf-posix.h (test_function): Likewise.
45890         * tests/test-sprintf-posix.h (test_function): Likewise.
45891         * tests/test-vasprintf-posix.c (test_function): Likewise.
45892         * doc/posix-functions/fprintf.texi: Update.
45893         * doc/posix-functions/printf.texi: Update.
45894         * doc/posix-functions/snprintf.texi: Update.
45895         * doc/posix-functions/sprintf.texi: Update.
45896         * doc/posix-functions/vfprintf.texi: Update.
45897         * doc/posix-functions/vprintf.texi: Update.
45898         * doc/posix-functions/vsnprintf.texi: Update.
45899         * doc/posix-functions/vsprintf.texi: Update.
45900         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45901
45902 2008-02-06  Bruno Haible  <bruno@clisp.org>
45903
45904         Fix bug introduced on 2008-01-26.
45905         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45906
45907 2008-02-06  Bruno Haible  <bruno@clisp.org>
45908
45909         Fix bug introduced on 2007-06-10.
45910         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45911         !NEED_PRINTF_FLAG_ZERO.
45912
45913 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45914
45915         getloadavg: use libperfstat on AIX5
45916         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45917
45918 2008-02-03  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/diffseq.h: Add comments about required #includes.
45921         Reported by Michael Biggs <gnulib@doubleplum.net>.
45922
45923 2008-02-01  Bruno Haible  <bruno@clisp.org>
45924
45925         * users.txt: Add gnuit.
45926
45927 2008-01-31  Bruno Haible  <bruno@clisp.org>
45928
45929         * lib/md4.c (set_uint32): Mark as inline.
45930         * lib/md5.c (set_uint32): Likewise.
45931         * lib/sha1.c (set_uint32): Likewise.
45932         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45933         * m4/md5.m4 (gl_MD5): Likewise.
45934         * m4/sha1.m4 (gl_SHA1): Likewise.
45935
45936 2008-01-31  Jim Meyering  <meyering@redhat.com>
45937
45938         Use "sizeof VAR", rather than a literal "4".
45939         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45940         * lib/md4.c (md4_read_ctx): Likewise.
45941         * lib/sha1.c (sha1_read_ctx): Likewise.
45942
45943 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45944
45945         * tests/test-sha1.c: New file, based on test-md5.c.
45946
45947         * modules/crypto/sha1-tests: New file.
45948
45949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45950
45951         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45952
45953 2008-01-31  Jim Meyering  <meyering@redhat.com>
45954
45955         Prefer "sizeof v" over the equivalent "4".
45956         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45957         * lib/md5.c (set_uint32): Likewise.
45958         * lib/sha1.c (set_uint32): Likewise.
45959
45960 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45961
45962         * lib/sha1.c (set_uint32): Mark function as static.
45963
45964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45965
45966         md2: clarify comments to say that alignment is not required.
45967         * lib/md2.h: Remove warning about alignment in comment.
45968         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45969         never been required.
45970
45971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45972
45973         md4: adapt alignment constraint fix from sha1.
45974         * lib/md4.c (set_uint32): New function, from sha1.c
45975         (md4_read_ctx): Use it.
45976         (md4_finish_ctx): Doc fix.
45977         * lib/md4.h: Doc fix.
45978
45979 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45980
45981         md5: adapt alignment constraint fix from sha1.
45982         * lib/md5.c (set_uint32): New function, from sha1.c
45983         (md5_read_ctx): Use it.
45984         (md5_finish_ctx): Doc fix.
45985         * lib/md5.h: Doc fix.
45986
45987 2008-01-30  Peter Palfrader  <weasel@debian.org>
45988
45989         sha1: remove the result buffer alignment constraint
45990         * lib/sha1.c (set_uint32): New function.
45991         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45992         constraint.
45993         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45994         * lib/sha1.h: Likewise.
45995
45996 2008-01-30  Andreas Schwab  <schwab@suse.de>
45997             Bruno Haible  <bruno@clisp.org>
45998
45999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46000         correct definition of LDBL_MIN_EXP.
46001
46002 2008-01-30  Karl Berry  <karl@gnu.org>
46003
46004         * config/srclist-update: try to preserve x bit on updates.
46005         * config/srclistvars.sh: update for karl.
46006
46007 2008-01-29  Jim Meyering  <meyering@redhat.com>
46008
46009         vasnprintf.c: Avoid warning about unused label
46010         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46011         "overflow" label definition and associated code with the
46012         same cpp condition that guards the sole use of that label.
46013
46014 2008-01-26  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46017         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46018         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46019         * lib/isnanl-nolibm.h (isnanl): Likewise.
46020         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46021
46022 2008-01-26  Bruno Haible  <bruno@clisp.org>
46023
46024         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46025         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46026
46027 2008-01-26  Bruno Haible  <bruno@clisp.org>
46028
46029         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46030         GCC >= 4.0 built-in.
46031         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46032
46033 2008-01-26  Bruno Haible  <bruno@clisp.org>
46034
46035         Rename isnan, applicable to 'double' only, to isnand.
46036         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46037         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46038         (configure.ac): Update.
46039         (Include): Replace "isnan.h" with "isnand.h".
46040         * m4/isnand.m4: Renamed from m4/isnan.m4.
46041         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46042         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46043         instead of isnan.c.
46044         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46045         instead of HAVE_ISNAN_IN_LIBC.
46046         (isnand): Renamed from isnan.
46047         * lib/isnand.c: New file.
46048         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46049         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46050         (Makefile.am): Update.
46051         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46052         Include isnand.h instead of isnan.h.
46053         (main): Test isnand instead of isnan.
46054         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46055         isnan-nolibm.
46056         * modules/frexp (Depends-on): Likewise.
46057         * modules/frexp-tests (Depends-on): Likewise.
46058         * modules/frexp-nolibm (Depends-on): Likewise.
46059         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46060         * modules/isfinite (Depends-on): Likewise.
46061         * modules/round-tests (Depends-on): Likewise.
46062         * modules/signbit (Depends-on): Likewise.
46063         * modules/signbit-tests (Depends-on): Likewise.
46064         * modules/snprintf-posix (Depends-on): Likewise.
46065         * modules/sprintf-posix (Depends-on): Likewise.
46066         * modules/trunc-tests (Depends-on): Likewise.
46067         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46068         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46069         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46070         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46071         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46072         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46073         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46074         * modules/vasnprintf-posix (Depends-on): Likewise.
46075         * modules/vasprintf-posix (Depends-on): Likewise.
46076         * modules/vfprintf-posix (Depends-on): Likewise.
46077         * modules/vsnprintf-posix (Depends-on): Likewise.
46078         * modules/vsprintf-posix (Depends-on): Likewise.
46079         * lib/frexp.c: Include isnand.h instead of isnan.h.
46080         (ISNAN): Set to isnand instead of isnan.
46081         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46082         (gl_isfinited): Use isnand instead of isnan.
46083         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46084         (gl_signbitd): Use isnand instead of isnan.
46085         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46086         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46087         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46088         (main): Use isnand instead of isnan.
46089         * tests/test-round1.c: Include isnand.h.
46090         (main): Use isnand instead of isnan.
46091         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46092         (ISNAN): Set to isnand instead of isnan.
46093         * tests/test-trunc1.c: Include isnand.h.
46094         (main): Use isnand instead of isnan.
46095         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46096         (equal): Use isnand instead of isnan.
46097         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46098         isnand-nolibm.
46099         * NEWS: Mention the change.
46100
46101 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46102             Bruno Haible  <bruno@clisp.org>
46103
46104         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46105         the GCC builtins for signbits are present and set
46106         REPLACE_SIGNBIT_USING_GCC if so.
46107         * lib/math.in.h (signbit): Define using GCC builtins if
46108         REPLACE_SIGNBIT_USING_GCC is set.
46109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46110         REPLACE_SIGNBIT_USING_GCC.
46111         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46112
46113 2008-01-25  Jim Meyering  <meyering@redhat.com>
46114
46115         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46116         * lib/poll.c: Include <config.h>, not "config.h".
46117         * tests/test-getaddrinfo.c: Likewise.
46118
46119 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46120
46121         * modules/sockets-tests: New file.
46122
46123 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46124
46125         * modules/sockets: New module, can be used to call WSA_Startup and
46126         WSA_Cleanup when needed.
46127
46128         * lib/sockets.h, lib/sockets.c: New files.
46129
46130         * m4/sockets.m4: New file.
46131
46132         * tests/test-sockets.c: New file.
46133
46134 2008-01-19  Bruno Haible  <bruno@clisp.org>
46135
46136         * doc/posix-headers: Renamed from doc/headers.
46137         * doc/posix-functions: Renamed from doc/functions.
46138         * doc/gnulib.texi: Update.
46139
46140 2008-01-19  Bruno Haible  <bruno@clisp.org>
46141
46142         * doc/glibc-functions/strcasestr.texi: Include contents of
46143         doc/functions/strcasestr.texi, fixing the list of platforms.
46144         * doc/functions/strcasestr.texi: Remove file.
46145
46146 2008-01-19  Bruno Haible  <bruno@clisp.org>
46147
46148         * doc/glibc-functions/memmem.texi: Include contents of
46149         doc/functions/memmem.texi.
46150         * doc/functions/memmem.texi: Remove file.
46151
46152 2008-01-18  Bruno Haible  <bruno@clisp.org>
46153
46154         * doc/glibc-functions/*.texi: New files.
46155         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46156         to use the new files.
46157
46158 2008-01-17  Bruno Haible  <bruno@clisp.org>
46159
46160         * tests/test-gethostname.c (main): Fix printf statement.
46161
46162 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46163
46164         * modules/gethostname-tests: New file.
46165
46166         * tests/test-gethostname.c: New file.
46167
46168 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46169
46170         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46171         used by the UNAME case.  Reported by Bruno Haible
46172         <bruno@clisp.org>.
46173
46174 2008-01-17  Eric Blake  <ebb9@byu.net>
46175
46176         Convert c-strcasestr to be more efficient.
46177         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46178         (Depends-on): Add c-strcase, remove malloca, strnlen.
46179         * tests/test-c-strcasestr.c (main): Enhance test.
46180         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46181
46182 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46183
46184         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46185         Use it in creating po/Makevars.
46186
46187 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46188
46189         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46190         Applications that requires it should initialize libgcrypt
46191         manually.
46192
46193 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46194
46195         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46196
46197 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46198
46199         Fix problem with getdate on mingw32 reported by Simon Josefsson
46200         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46201         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46202         tzname", when deciding whether to declare tzname.
46203         * lib/strftime.c (tzname): Likewise.
46204
46205 2008-01-15  Bruno Haible  <bruno@clisp.org>
46206
46207         Work around a MacOS X 10.5 bug in frexpl().
46208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46209         * doc/functions/frexpl.texi: Document the bug.
46210         Reported by Elias Pipping <pipping@gentoo.org>.
46211
46212 2008-01-14  Eric Blake  <ebb9@byu.net>
46213
46214         Touch up previous patch.
46215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46216         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46217
46218         Convert strcasestr module to use Two-Way algorithm.
46219         * modules/strcasestr-simple: New module, based on the old
46220         strcasestr, but with Two-Way rather than KMP.
46221         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46222         * lib/string.in.h (rpl_strcasestr): Declare.
46223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46224         performance.
46225         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46226         * modules/string (Makefile.am): Support strcasestr.
46227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46228         * modules/strcasestr-tests (Depends-on): Check for alarm.
46229         * tests/test-strcasestr.c: Augment test.
46230         * lib/str-two-way.h: Clean up stray macro.
46231         * NEWS: Document new module.
46232         * MODULES.html.sh (string handling): Likewise.
46233         * doc/functions/strcasestr.texi: New file.
46234         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46235         here, since it is not a POSIX function.
46236
46237 2008-01-14  Colin Watson  <cjwatson@debian.org>
46238             Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46241         works fine; if not, set REPLACE_STRSIGNAL.
46242         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46244         REPLACE_STRSIGNAL.
46245         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46246         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46247         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46248
46249 2008-01-14  Bruno Haible  <bruno@clisp.org>
46250
46251         * modules/strsignal (Include): Change to <string.h>.
46252
46253 2008-01-14  Colin Watson  <cjwatson@debian.org>
46254
46255         * modules/argp (Notice): Add a notice recommending to change
46256         XGETTEXT_OPTIONS.
46257         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46258
46259 2008-01-13  Colin Watson  <cjwatson@debian.org>
46260
46261         * modules/strsignal-tests: New file.
46262         * tests/test-strsignal.c: New file.
46263
46264         * lib/strsignal.c: New file, from glibc with modifications.
46265         * lib/siglist.h: New file, from glibc with modifications.
46266         * lib/string.in.h (strsignal): New declaration.
46267         * m4/strsignal.m4: New file.
46268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46269         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46270         * modules/strsignal: New file.
46271         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46272         HAVE_DECL_STRSIGNAL.
46273
46274 2008-01-13  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46277         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46280
46281 2008-01-13  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46284         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46285         * lib/argp.h (__attribute__): Likewise.
46286         * lib/c-stack.c (__attribute__): Likewise.
46287         * lib/error.h (__attribute__): Likewise.
46288         * lib/fts.c (__attribute__): Likewise.
46289         * lib/openat.h (__attribute__): Likewise.
46290         * lib/stdio.in.h (__attribute__): Likewise.
46291         * lib/string.in.h (__attribute__): Likewise.
46292         * lib/utimens.c (__attribute__): Likewise.
46293         * lib/vasnprintf.h (__attribute__): Likewise.
46294         * lib/xalloc.h (__attribute__): Likewise.
46295         * lib/xprintf.h (__attribute__): Likewise.
46296         * lib/xstrtol.h (__attribute__): Likewise.
46297         * lib/xvasprintf.h (__attribute__): Likewise.
46298
46299 2008-01-12  Bruno Haible  <bruno@clisp.org>
46300
46301         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46302         * doc/glibc-headers/a.out.texi: New file.
46303         * doc/glibc-headers/aliases.texi: New file.
46304         * doc/glibc-headers/alloca.texi: New file.
46305         * doc/glibc-headers/ar.texi: New file.
46306         * doc/glibc-headers/argp.texi: New file.
46307         * doc/glibc-headers/argz.texi: New file.
46308         * doc/glibc-headers/byteswap.texi: New file.
46309         * doc/glibc-headers/crypt.texi: New file.
46310         * doc/glibc-headers/endian.texi: New file.
46311         * doc/glibc-headers/envz.texi: New file.
46312         * doc/glibc-headers/err.texi: New file.
46313         * doc/glibc-headers/error.texi: New file.
46314         * doc/glibc-headers/execinfo.texi: New file.
46315         * doc/glibc-headers/fpu_control.texi: New file.
46316         * doc/glibc-headers/fstab.texi: New file.
46317         * doc/glibc-headers/fts.texi: New file.
46318         * doc/glibc-headers/getopt.texi: New file.
46319         * doc/glibc-headers/ieee754.texi: New file.
46320         * doc/glibc-headers/ifaddrs.texi: New file.
46321         * doc/glibc-headers/libintl.texi: New file.
46322         * doc/glibc-headers/mcheck.texi: New file.
46323         * doc/glibc-headers/mntent.texi: New file.
46324         * doc/glibc-headers/obstack.texi: New file.
46325         * doc/glibc-headers/paths.texi: New file.
46326         * doc/glibc-headers/printf.texi: New file.
46327         * doc/glibc-headers/pty.texi: New file.
46328         * doc/glibc-headers/resolv.texi: New file.
46329         * doc/glibc-headers/shadow.texi: New file.
46330         * doc/glibc-headers/sysexits.texi: New file.
46331         * doc/glibc-headers/ttyent.texi: New file.
46332
46333 2008-01-12  Jim Meyering  <meyering@redhat.com>
46334
46335         announce-gen: emit Gnulib's git-based version string.
46336         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46337         New option --gnulib-version=V, where V is expected to be
46338         the output of running git describe in the gnulib directory.
46339         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46340         not useful, and plan to stop publishing an xdelta file with each
46341         coreutils release.
46342
46343         * build-aux/announce-gen: Also check for lzma-compressed files.
46344
46345 2008-01-11  Bruno Haible  <bruno@clisp.org>
46346
46347         * tests/test-memmem.c (main): Increase maximum allowed time.
46348         * tests/test-strstr.c (main): Likewise.
46349
46350 2008-01-11  Bruno Haible  <bruno@clisp.org>
46351
46352         * doc/functions/memmem.texi: Add more precisions about platforms.
46353         * doc/functions/strstr.texi: Likewise.
46354
46355 2008-01-10  Eric Blake  <ebb9@byu.net>
46356
46357         * m4/strstr.m4: Delete cruft from copy-n-paste.
46358         Reported by Bruno Haible.
46359
46360 2008-01-10  Bruno Haible  <bruno@clisp.org>
46361
46362         Make c-strstr rely on strstr.
46363         * lib/c-strstr.c: Don't include str-kmp.h.
46364         (c_strstr): Define in terms of strstr.
46365         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46366         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46367
46368 2008-01-10  Bruno Haible  <bruno@clisp.org>
46369
46370         * doc/gnulib.texi (String Functions in C Locale): New section.
46371         * doc/c-ctype.texi: New file.
46372         * doc/c-strcase.texi: New file.
46373         * doc/c-strcaseeq.texi: New file.
46374         * doc/c-strcasestr.texi: New file.
46375         * doc/c-strstr.texi: New file.
46376         * doc/c-strtod.texi: New file.
46377         * doc/c-strtold.texi: New file.
46378
46379 2008-01-10  Eric Blake  <ebb9@byu.net>
46380
46381         * lib/relocatable.h: Fix a comment.
46382
46383 2008-01-10  Eric Blake  <ebb9@byu.net>
46384
46385         Share two-way algorithm.
46386         * lib/str-two-way.h: New file, merged from...
46387         * lib/memmem.c: ...here...
46388         * lib/strstr.c: ...and here.
46389         * modules/memmem (Files): Use it.
46390         * modules/strstr (Files): Likewise.
46391
46392         Avoid quadratic strstr implementations.
46393         * lib/strstr.c: New file.
46394         * m4/strstr.m4: Likewise.
46395         * modules/strstr: Likewise.
46396         * modules/strstr-tests: Likewise.
46397         * tests/test-strstr.c: Likewise.
46398         * lib/string.in.h (rpl_strstr): Declare.
46399         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46401         * modules/string (Makefile.am): Likewise.
46402         * MODULES.html.sh (string handling): Mention new module.
46403         * doc/functions/strstr.texi (strstr): Document the bug.
46404
46405 2008-01-10  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/relocatable.h (relocate): State whether result is freshly
46408         allocated or not.
46409         * lib/relocatable.c (relocate): Return a freshly allocated string
46410         instead of a pointer to a privately held string.
46411         Reported by Sylvain Beucler <beuc@gnu.org>.
46412
46413 2008-01-10  Colin Watson  <cjwatson@debian.org>
46414
46415         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46416         s/S_ISNLK/S_ISLNK/.
46417
46418 2008-01-09  Bruno Haible  <bruno@clisp.org>
46419
46420         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46421         and other files.
46422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46423         if it's only a guess.
46424         * modules/memmem: Simplify by depending on memmem-simple.
46425
46426 2008-01-09  Bruno Haible  <bruno@clisp.org>
46427
46428         Work around OpenBSD 4.0 tdelete() bug.
46429         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46430         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46431         macros and don't redefine the enum values.
46432         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46433         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46434         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46435
46436 2008-01-09  Bruno Haible  <bruno@clisp.org>
46437
46438         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46439         (main): Don't perform the tests if setlocale did not install a UTF-8
46440         locale. Needed on OpenBSD 4.0.
46441         * modules/wcwidth-tests (Depends-on): Add localcharset.
46442
46443 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46444
46445         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46446         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46447         * NEWS: announce this.
46448         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46449
46450 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46451         and Eric Blake  <ebb9@byu.net>
46452
46453         Add memmem-simple module.
46454         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46455         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46456         * modules/memmem-simple: New file.
46457         * modules/memmem (Description): Tweak.
46458         * MODULES.html.sh (string handling): Mention new module.
46459         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46460         addressed by memmem-simple.
46461         * NEWS: Document the difference.
46462
46463 2008-01-09  Eric Blake  <ebb9@byu.net>
46464
46465         Give gcc some memmem optimization hints.
46466         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46467         (strcasestr): Declare as pure.
46468         * modules/memmem (Maintainer): Claim my implementation.
46469
46470 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46471
46472         Support AIX 6.1 and higher.
46473         * build-aux/config.libpath: Likewise.
46474         * build-aux/config.rpath: Likewise.
46475
46476 2008-01-08  Jim Meyering  <meyering@redhat.com>
46477             Bruno Haible  <bruno@clisp.org>
46478
46479         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46480         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46481         Reported by Peter Fales in
46482         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46483
46484 2008-01-08  Bruno Haible  <bruno@clisp.org>
46485
46486         * modules/unictype/category-of (Depends-on): Add
46487         unictype/category-none.
46488         * modules/unictype/category-and-tests (Depends-on): Add
46489         unictype/category-{L,N,Lu,Nd}.
46490         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46491         * modules/unictype/category-or-tests (Depends-on): Add
46492         unictype/category-{L,N}.
46493         * modules/unictype/category-name-tests (Depends-on): Add
46494         unictype/category-{Z,Nl}.
46495         Reported by Simon Josefsson.
46496
46497 2008-01-08  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46500         convention better.
46501         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46502         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46503         Reported by Peter Miller <millerp@canb.auug.org.au>.
46504
46505 2008-01-08  Eric Blake  <ebb9@byu.net>
46506
46507         Rewrite memmem to guarantee linear complexity without malloc.
46508         * lib/memmem.c (memmem): Use Two-Way rather than
46509         Knuth-Morris-Pratt, to allow O(1) space usage.
46510         (critical_factorization, two_way_short_needle)
46511         (two_way_long_needle): New functions.
46512         (knuth_morris_pratt): Delete.
46513         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46514         Add stdint.
46515         * tests/test-memmem.c (main): Add tests for periodic needle and
46516         sublinear performance.
46517         * doc/functions/memmem.texi (memmem): Document other deficiencies
46518         in cygwin and older glibc.
46519
46520 2008-01-08  Bruno Haible  <bruno@clisp.org>
46521
46522         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46523         augmentation.
46524
46525 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46526
46527         Add a configure time option: --disable-acl.
46528         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46529         AC_ARG_ENABLE(acl).
46530
46531 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46532
46533         * tests/test-localename.c: Don't include obsolete "setenv.h".
46534
46535         * modules/localename-tests (Depends-on): Need unsetenv.
46536
46537 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46538
46539         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46540
46541 2008-01-06  Colin Watson  <cjwatson@debian.org>
46542
46543         * users.txt: Add man-db.
46544
46545 2008-01-07  Bruno Haible  <bruno@clisp.org>
46546
46547         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46548         previous section name.
46549
46550 2008-01-07  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/progname.c (set_program_name): Don't strip off a leading
46553         "lt-" prefix outside a .libs directory.
46554         Suggested by Paul Eggert.
46555
46556 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46557             Bruno Haible  <bruno@clisp.org>
46558
46559         Improve memory cleanup in 'relocatable' module.
46560         * lib/relocatable.h (compute_curr_prefix): Change return type to
46561         'char *'.
46562         * lib/relocatable.c (compute_curr_prefix): Change return type to
46563         'char *'. Free curr_installdir after use.
46564         (relocate): Free curr_prefix_better after use.
46565         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46566
46567 2008-01-01  Bruno Haible  <bruno@clisp.org>
46568
46569         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46570         failure on older glibc systems.
46571         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46572
46573 2008-01-05  Eric Blake  <ebb9@byu.net>
46574
46575         Avoid quadratic system memmem.
46576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46577         Reported by Ralf Wildenhues.
46578
46579         Fix memmem test for mingw.
46580         * modules/memmem-tests (configure.ac): Check for alarm.
46581         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46582         it.
46583         * doc/functions/memmem.texi: New file.
46584         * doc/gnulib.texi (Function Substitutes): Add memmem.
46585         Reported by Bruno Haible.
46586
46587 2008-01-04  Bruno Haible  <bruno@clisp.org>
46588
46589         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46590         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46591         gl_HEADER_STRING_H_DEFAULTS.
46592
46593 2008-01-04  Eric Blake  <ebb9@byu.net>
46594
46595         Shorten duration of memmem test.
46596         * tests/test-memmem.c (main): Use alarm to declare failure if test
46597         is taking too long.
46598         Reported by Ralf Wildenhues.
46599
46600 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46601
46602         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46603         string, needed by strerror.
46604
46605 2008-01-03  Colin Watson  <cjwatson@debian.org>
46606             Bruno Haible  <bruno@clisp.org>
46607
46608         * doc/gnulib-tool.texi (Localization): New section.
46609
46610 2008-01-02  Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46613         variables to 'unsigned char *' type.
46614         Reported by Paul Eggert.
46615
46616 2008-01-02  Jim Meyering  <jim@meyering.net>
46617
46618         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46619
46620 2007-12-31  Jim Meyering  <jim@meyering.net>
46621
46622         Avoid use of private FTS type name.
46623         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46624
46625 2007-12-30  Karl Berry  <karl@gnu.org>
46626
46627         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46628         work around defect in Texinfo and/or the standalone Info browser.
46629
46630 2007-12-30  Bruno Haible  <bruno@clisp.org>
46631
46632         Unify 5 copies of the KMP code.
46633         * lib/str-kmp.h: New file.
46634         * lib/c-strcasestr.c: Include str-kmp.h.
46635         (knuth_morris_pratt): Remove function.
46636         (c_strcasestr): Update.
46637         * lib/c-strstr.c: Include str-kmp.h.
46638         (knuth_morris_pratt): Remove function.
46639         (c_strcasestr): Update.
46640         * lib/mbscasestr.c: Include str-kmp.h.
46641         (knuth_morris_pratt_unibyte): Remove function.
46642         * lib/mbsstr.c: Include str-kmp.h.
46643         (knuth_morris_pratt_unibyte): Remove function.
46644         * lib/strcasestr.c: Include str-kmp.h.
46645         (knuth_morris_pratt): Remove function.
46646         (strcasestr): Update.
46647         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46648         * modules/c-strstr (Files): Likewise.
46649         * modules/mbscasestr (Files): Likewise.
46650         * modules/mbsstr (Files): Likewise.
46651         * modules/strcasestr (Files): Likewise.
46652         Suggested by Paul Eggert.
46653
46654 2007-12-30  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46657         defined.
46658
46659 2007-12-30  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/xmalloca.h: Include xalloc.h.
46662         (xnmalloca): New macro.
46663
46664 2007-12-30  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/malloca.h (nmalloca): New macro.
46667         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46668         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46669         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46670         knuth_morris_pratt_multibyte): Likewise.
46671         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46672         knuth_morris_pratt_multibyte): Likewise.
46673         * lib/memmem.c (knuth_morris_pratt): Likewise.
46674         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46675
46676 2007-12-25  Bruno Haible  <bruno@clisp.org>
46677
46678         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46679         * lib/glob.c: Don't include openat.h.
46680         (link_exists2_p): Add back the code that deals with the
46681         !GLOB_ALTDIRFUNC case.
46682         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46683         let it do the filename concatenation.
46684         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46685         * modules/glob (Depends-on): Remove openat.
46686
46687 2007-12-31  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/dirfd (License): Change to LGPLv2+.
46690         Approved by Jim Meyering.
46691
46692 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46695         when multiplying M by sizeof (size_t).
46696
46697 2007-12-10  Martin Lambers  <marlam@marlam.de>
46698
46699         Override getpagesize on mingw.
46700         * lib/getpagesize.c: New file.
46701         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46702         * modules/getpagesize (Files): Add lib/getpagesize.c.
46703         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46705         REPLACE_GETPAGESIZE.
46706         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46707
46708 2007-12-25  Bruno Haible  <bruno@clisp.org>
46709
46710         * modules/localcharset (Notice): New field.
46711         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46712         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46713
46714 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46715             Bruno Haible  <bruno@clisp.org>
46716
46717         Avoid using the syntax symbol() in formatted documentation.
46718         * MODULES.html.sh (func_module): When replacing symbol() with a
46719         hyperlink, remove the parentheses. Show an error if some remain.
46720         Recognize and render the '...' syntax.
46721         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46722         Rework. Add paragraph about GCC's inlining.
46723         * doc/alloca.texi: Likewise.
46724         * doc/error.texi: Remove parentheses from symbol reference.
46725         * doc/gnulib-intro.texi: Likewise.
46726         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46727         * modules/fnmatch (Description): Reword to say "the ... function".
46728         * modules/full-read (Description): Likewise.
46729         * modules/full-write (Description): Likewise.
46730         * modules/safe-read (Description): Likewise.
46731         * modules/safe-write (Description): Likewise.
46732         * modules/strchrnul (Description): Likewise.
46733         * modules/trim (Description): Likewise.
46734         * modules/error (Description): Remove parentheses from symbol
46735         references.
46736         * modules/verror (Description): Likewise.
46737         Reported by Karl Berry.
46738
46739 2007-12-25  Bruno Haible  <bruno@clisp.org>
46740
46741         Fixup after 2007-10-16 commit.
46742         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46743
46744 2007-12-24  Bruno Haible  <bruno@clisp.org>
46745
46746         Make --enable-relocatable work with DESTDIR.
46747         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46748         to compute installdir from destprog.
46749         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46750         also set the RELOC_DESTDIR variable.
46751         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46752
46753 2007-12-24  Bruno Haible  <bruno@clisp.org>
46754
46755         Fix link error due to xalloc_die().
46756         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46757         of xreadlink.
46758         * lib/relocwrapper.c: Update comments.
46759         * build-aux/install-reloc: Remove xreadlink.c from file list.
46760         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46761         xreadlink.c.
46762         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46763
46764 2007-12-24  Bruno Haible  <bruno@clisp.org>
46765
46766         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46767         * lib/setenv.h: Remove file.
46768         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46769         lib/setenv.h.
46770         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46771         (Depends-on): Add stdlib.
46772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46773         gl_FUNC_UNSETENV.
46774         (Include): Replace setenv.h with <stdlib.h>.
46775         * modules/unsetenv: New file.
46776         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46777         * lib/unsetenv.c: Include <stdlib.h> first.
46778         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46779         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46780         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46781         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46782         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46783         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46785         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46786         * doc/functions/unsetenv.texi: Update.
46787         * modules/xsetenv (Depends-on): Add unsetenv.
46788         * modules/getdate (Depends-on): Likewise.
46789         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46790         * lib/xsetenv.c: Don't include setenv.h.
46791         * lib/getdate.y: Likewise.
46792         * lib/relocwrapper.c: Likewise.
46793         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46794         (Depends-on): Add stdlib.
46795         * NEWS: Mention the changes.
46796         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46797
46798 2007-12-23  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46801         indentation.
46802
46803 2007-12-23  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/c-strcasestr.c: Add more comments.
46806         * lib/c-strstr.c: Likewise.
46807         * lib/mbscasestr.c: Likewise.
46808         * lib/mbsstr.c: Likewise.
46809         * lib/strcasestr.c: Likewise.
46810         * lib/memmem.c: Likewise.
46811
46812 2007-12-23  Bruno Haible  <bruno@clisp.org>
46813
46814         * tests/test-memmem.c: Include <string.h> first.
46815
46816 2007-12-22  Bruno Haible  <bruno@clisp.org>
46817
46818         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46819         the contents of $testsbase.
46820         Reported by Ralf Wildenhues.
46821
46822 2007-12-22  Bruno Haible  <bruno@clisp.org>
46823
46824         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46825         two variables local_ldadd_before, local_ldadd_last.
46826
46827 2007-12-20  Eric Blake  <ebb9@byu.net>
46828
46829         Work around circular library issue when cross-compiling.
46830         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46831         that progname.o does not need to pull in rpl_memcmp.
46832
46833 2007-12-19  Eric Blake  <ebb9@byu.net>
46834
46835         Fix memmem to avoid O(n^2) worst-case complexity.
46836         * lib/memmem.c (knuth_morris_pratt): New function.
46837         (memmem): Use it if first few naive iterations fail.
46838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46839         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46840         * modules/memchr (License): Likewise.
46841         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46842         malloca.
46843         * tests/test-memmem.c: Rewrite, borrowing ideas from
46844         test-mbsstr1.c; the old version wouldn't even compile!
46845         * modules/memmem-tests: New file.
46846         * lib/string.in.h (rpl_memmem): Add declaration.
46847         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46849         REPLACE_MEMMEM.
46850
46851 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46852
46853         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46854         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46855         before any system include files, and undef after them all.  This
46856         should fix a problem on VMS reported by John E. Malmberg in
46857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46858
46859 2007-12-17  Eric Blake  <ebb9@byu.net>
46860
46861         Revert addition of verify, for BSD/OS.
46862         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46863         can't handle large files, for the sake of obsolete platforms.
46864         * modules/fseeko (Depends-on): Remove verify.
46865         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46866         * doc/functions/ftello.texi (ftello): Likewise.
46867         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46868         Reported by Larry Jones.
46869
46870 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46871
46872         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46873         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46874
46875 2007-12-17  Jim Meyering  <meyering@redhat.com>
46876
46877         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46878         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46879         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46880         * modules/getcwd (Depends-on): Add openat.
46881         Reported by Petr Salinger.
46882
46883 2007-12-17  Bruno Haible  <bruno@clisp.org>
46884
46885         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46886         avoid a segmentation fault of the configure test on x86_64 systems.
46887
46888 2007-12-15  Jim Meyering  <meyering@redhat.com>
46889
46890         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46891
46892 2007-12-13  Eric Blake  <ebb9@byu.net>
46893
46894         Another fseek test.
46895         * tests/test-fseek.c (main): Also test ungetc handling.
46896         * tests/test-fseeko.c (main): Likewise.
46897         * modules/fseeko (Depends-on): Add verify.
46898         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46899         large.
46900         Reported by Larry Jones.
46901
46902         Fix fseeko on mingw.
46903         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46904         seek.
46905
46906         Beef up fseek tests.
46907         * tests/test-fseek.c (main): Also test eof handling.
46908         * tests/test-fseeko.c (main): Likewise.
46909         Reported by Larry Jones.
46910
46911 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46912
46913         Fix fseeko on BSD-based platforms.
46914         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46915         successful seek.
46916
46917 2007-12-12  Eric Blake  <ebb9@byu.net>
46918
46919         Allow circular dependency of separate libtests.a
46920         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46921         when use_libtests.
46922
46923 2007-12-11  Eric Blake  <ebb9@byu.net>
46924
46925         Fix bug with -0.0L in previous patch.
46926         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46927         * tests/test-isnan.c (main): Also test on zeroes.
46928         * tests/test-isnanf.c (main): Likewise.
46929         * tests/test-isnanl.h (main): Likewise.
46930
46931         Detect pseudo-denormals on x86 even when cross-compiling.
46932         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46933         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46934         invalid bit patterns that happen to satisfy ==.
46935
46936         Avoid link failures with separate libtests.a.
46937         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46938         last, to satisfy circular dependencies.
46939
46940 2007-12-11  Eric Blake  <ebb9@byu.net>
46941         and Bruno Haible  <bruno@clisp.org>
46942
46943         Fix OpenBSD 4.0 <float.h> handling of long double.
46944         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46945         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46946         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46947
46948 2007-12-11  Jim Meyering  <meyering@redhat.com>
46949
46950         * users.txt: Add libvirt.
46951
46952         Support versions of autoconf prior to 2.59c.
46953         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46954         if it is not already defined.
46955
46956 2007-12-09  Bruno Haible  <bruno@clisp.org>
46957
46958         Let 'gnulib-tool --import' collect sources needed for the tests in
46959         tests/ rather than in lib/.
46960         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46961         argument. If true, add rules to generate libtests.a, and put libtests.a
46962         into $(LDADD). Consider source files in subdirectories and set
46963         uses_subdirs.
46964         (func_emit_initmacro_start, func_emit_initmacro_end,
46965         func_emit_initmacro_done): Pass all arguments explicitly.
46966         (func_import): Determine two module lists main_modules,
46967         testsrelated_modules. Determine use_libtests. Determine two variables
46968         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46969         instead of just sed_transform_lib_file. Determine two variables
46970         main_files and testsrelated_files. Compute 'files' as the union of
46971         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46972         func_add_or_update. In the generated gnulib-comp.m4, collect the
46973         object files for tests/ in different variables than those for lib/.
46974         Substitute LIBTESTS_LIBDEPS.
46975         (func_create_testdir): Combine the uses_subdirs results from
46976         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46977
46978 2007-12-09  Bruno Haible  <bruno@clisp.org>
46979
46980         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46981         the build-aux directory.
46982
46983 2007-12-09  Bruno Haible  <bruno@clisp.org>
46984
46985         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46986         introduced on 2006-09-09.
46987
46988 2007-12-07  Jim Meyering  <meyering@redhat.com>
46989
46990         Let these macros work also with autoconf-2.59.
46991         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46992         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46993         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46994
46995 2007-12-06  Jim Meyering  <meyering@redhat.com>
46996
46997         Avoid a configure-time syntax error in gl_FUNC_ACL.
46998         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46999         function in each branch, before testing the cache variable.
47000
47001 2007-12-04  Eric Blake  <ebb9@byu.net>
47002
47003         Make scripts executable.
47004         * build-aux/config.guess: Add execute permissions.
47005         * build-aux/config.sub: Likewise.
47006         * build-aux/gendocs.sh: Likewise.
47007
47008         Fix frexp on mingw.
47009         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47010         cross-compiling.
47011         * doc/functions/frexp.texi (frexp): Document the bug.
47012
47013         Make cygwin fseeko check more reliable.
47014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47015         version numbers, rather than unrelated feature check.
47016         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47017         * doc/functions/ftello.texi (ftello): Likewise.
47018         Reported by Bruno Haible.
47019
47020         * m4/strerror.m4: Bump version number.
47021
47022 2007-12-03  Bruno Haible  <bruno@clisp.org>
47023
47024         * doc/functions/mprotect.texi: Mention the mingw problem.
47025
47026 2007-12-03  Eric Blake  <ebb9@byu.net>
47027
47028         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47029         REPLACE_STRERROR is initialized before this macro.
47030
47031 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47032
47033         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47034         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47035         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47036         put -lsec in even for programs other than 'ls'.  This fixes a problem
47037         for gettext reported by Bruno Haible in
47038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47039         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47040         Add support for Solaris 10.  This isn't efficient, but should get the
47041         job done for now.
47042
47043 2007-12-03  James Youngman  <jay@gnu.org>
47044
47045         * doc/regexprops-generic.texi: change "an close-group" to "a
47046         close-group" and "illegal" to "not allowed".
47047
47048 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47049
47050         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47051         pr_byname.h. Needed for the rare case when the maintainer has done
47052         "make maintainer-clean" in the source directory and then attempts a
47053         build outside the source directory.
47054         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47055         scripts_byname.h.
47056
47057 2007-12-02  Martin Lambers <marlam@marlam.de>
47058             Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/getpagesize.h: Remove file.
47061         * lib/unistd.in.h: Include declaration of getpagesize here.
47062         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47063         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47064         HAVE_SYS_PARAM_H.
47065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47066         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47067         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47068         (Depends-on): Add unistd.
47069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47070         (Include): Use <unistd.h> instead of getpagesize.h.
47071         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47072         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47073         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47074         gl_GETPAGESIZE invocation, already handled by module dependency.
47075         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47076
47077 2007-12-02  Bruno Haible  <bruno@clisp.org>
47078
47079         * modules/strings-tests: New file.
47080         * tests/test-strings.c: New file.
47081
47082         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47083         * lib/strings.in.h: New file.
47084         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47085         * m4/strings_h.m4: New file.
47086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47087         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47088         * modules/strings: New file.
47089         * modules/string (Makefile.am): Update.
47090         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47091         Reported by Karl Berry.
47092
47093 2007-12-01  Eric Blake  <ebb9@byu.net>
47094
47095         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47096         accomodate fix in cygwin 1.5.25.
47097
47098 2007-12-01  Jim Meyering  <meyering@redhat.com>
47099
47100         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47101         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47102         that would inhibit utf8-optimization of a regexp containing line-
47103         or buffer-anchors, e.g., `^', `$'.
47104
47105 2007-11-30  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47108         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47109         glthread_recursive_lock_init.
47110         * lib/lock.c (glthread_recursive_lock_init)
47111         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47113
47114 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47115
47116         New function qset_acl, like set_acl but with syscall semantics.
47117         * lib/acl.h (qset_acl): New decl.
47118         * lib/acl.c (qset_acl): New function.
47119         (set_acl): Use new function.  Use more-consistent diagnostics.
47120
47121 2007-11-28  Jim Meyering  <meyering@redhat.com>
47122
47123         * modules/physmem (License): Change from GPL to LGPLv2+.
47124
47125 2007-11-26  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47128         'long double' type has excess precision.
47129         Reported by Jim Meyering in
47130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47131
47132 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47133
47134         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47135         Sync from <http://gnu.org/licenses>.
47136         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47137         with license text from same location.
47138         * doc/maintain.texi, doc/standards.texi:  Sync from
47139         <http://savannah.gnu.org/projects/gnustandards>.
47140
47141 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47142         and Jim Meyering  <meyering@redhat.com>
47143
47144         Adjust getdate' grammar to accept a slightly more regular language.
47145         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47146         Before, the former was rejected.
47147         * lib/getdate.y (digits_to_date_time): New function, factored
47148         out of ...
47149         (number): ...here.  Just call digits_to_date_time.
47150         (hybrid): New non-terminal to handle an <unsigned number,
47151         signed relative offset> sequence consistently.
47152
47153 2007-11-18  Jim Meyering  <meyering@redhat.com>
47154
47155         Pull my changes from coreutils:
47156         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47157         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47158         use of $gnulib_tool_option_extras, so that it's separated from the
47159         preceding argument.
47160
47161         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47162         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47163         parent destination directories before copying a file into place.
47164
47165 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47166
47167         bootstrap: work also with 4-argument variant of AC_INIT
47168         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47169
47170 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47171
47172         Port test-getaddrinfo to Solaris.
47173         Problem reported by Bruno Haible in
47174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47175         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47176         explanation of setting 'hints'.
47177         Don't reject an implementation merely because it returns EAI_SERVICE.
47178         (EAI_SERVICE): Define to 0 if not defined.
47179
47180 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47181
47182         The license of gnu-make and posix-shell is now "GPLed build tool".
47183         * modules/gnu-make (License): Likewise.
47184         * modules/posix-shell (License): Likewise.
47185
47186         New module posix-shell, for determining a POSIX shell
47187         or perhaps something that is close enough to a POSIX shell.
47188         * m4/posix-shell.m4: New file.
47189         * modules/posix-shell: New file.
47190
47191         * MODULES.html.sh: Mention new module.
47192
47193         New module gnu-make, for determining whether we're using GNU Make.
47194         * m4/gnu-make.m4: New file.
47195         * modules/gnu-make: New file.
47196         * MODULES.html.sh: Mention new module.
47197
47198 2007-11-14  Jim Meyering  <meyering@redhat.com>
47199
47200         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47201         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47202         use this macro to create a function _definition_.
47203         Remove useless "#undef ARGMATCH_DIE".
47204
47205 2007-11-14  Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/config.charset: Update for OpenBSD 4.1.
47208         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47209
47210 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47211
47212         Document 64-bit #if problems in stdint.texi.
47213         * doc/headers/stdint.texi (stdint.h): Mention problems with
47214         64-bit-#if, and how to work around them.
47215
47216         Don't insist on 'long long int' support in the preprocessor.  It
47217         breaks too many things.  For example, PRIdMAX still uses a 'long
47218         long int' format with the latest Sun compiler, even though
47219         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47220         preprocessor problem.  This causes the latest coreutils to dump
47221         core on Solaris 10 sparc with the Sun C compiler.
47222         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47223         the troublesome expressions at configure-time, not at #if-time.
47224         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47225         preprocessor.
47226         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47227         compile-time C checks, done at 'configure'-time.
47228         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47229         * modules/inttypes (Makefile): Substitute the new symbols that
47230         gl_INTTYPES_H now generates.
47231         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47232
47233 2007-11-12  Bruno Haible  <bruno@clisp.org>
47234
47235         Tests for Unicode character classification functions.
47236
47237         * modules/unictype/bidicategory-byname-tests: New file.
47238         * modules/unictype/bidicategory-name-tests: New file.
47239         * modules/unictype/bidicategory-of-tests: New file.
47240         * modules/unictype/bidicategory-test-tests: New file.
47241         * modules/unictype/block-list-tests: New file.
47242         * modules/unictype/block-of-tests: New file.
47243         * modules/unictype/block-test-tests: New file.
47244         * modules/unictype/category-C-tests: New file.
47245         * modules/unictype/category-Cc-tests: New file.
47246         * modules/unictype/category-Cf-tests: New file.
47247         * modules/unictype/category-Cn-tests: New file.
47248         * modules/unictype/category-Co-tests: New file.
47249         * modules/unictype/category-Cs-tests: New file.
47250         * modules/unictype/category-L-tests: New file.
47251         * modules/unictype/category-Ll-tests: New file.
47252         * modules/unictype/category-Lm-tests: New file.
47253         * modules/unictype/category-Lo-tests: New file.
47254         * modules/unictype/category-Lt-tests: New file.
47255         * modules/unictype/category-Lu-tests: New file.
47256         * modules/unictype/category-M-tests: New file.
47257         * modules/unictype/category-Mc-tests: New file.
47258         * modules/unictype/category-Me-tests: New file.
47259         * modules/unictype/category-Mn-tests: New file.
47260         * modules/unictype/category-N-tests: New file.
47261         * modules/unictype/category-Nd-tests: New file.
47262         * modules/unictype/category-Nl-tests: New file.
47263         * modules/unictype/category-No-tests: New file.
47264         * modules/unictype/category-P-tests: New file.
47265         * modules/unictype/category-Pc-tests: New file.
47266         * modules/unictype/category-Pd-tests: New file.
47267         * modules/unictype/category-Pe-tests: New file.
47268         * modules/unictype/category-Pf-tests: New file.
47269         * modules/unictype/category-Pi-tests: New file.
47270         * modules/unictype/category-Po-tests: New file.
47271         * modules/unictype/category-Ps-tests: New file.
47272         * modules/unictype/category-S-tests: New file.
47273         * modules/unictype/category-Sc-tests: New file.
47274         * modules/unictype/category-Sk-tests: New file.
47275         * modules/unictype/category-Sm-tests: New file.
47276         * modules/unictype/category-So-tests: New file.
47277         * modules/unictype/category-Z-tests: New file.
47278         * modules/unictype/category-Zl-tests: New file.
47279         * modules/unictype/category-Zp-tests: New file.
47280         * modules/unictype/category-Zs-tests: New file.
47281         * modules/unictype/category-and-not-tests: New file.
47282         * modules/unictype/category-and-tests: New file.
47283         * modules/unictype/category-byname-tests: New file.
47284         * modules/unictype/category-name-tests: New file.
47285         * modules/unictype/category-none-tests: New file.
47286         * modules/unictype/category-of-tests: New file.
47287         * modules/unictype/category-or-tests: New file.
47288         * modules/unictype/category-test-withtable-tests: New file.
47289         * modules/unictype/combining-class-tests: New file.
47290         * modules/unictype/ctype-alnum-tests: New file.
47291         * modules/unictype/ctype-alpha-tests: New file.
47292         * modules/unictype/ctype-blank-tests: New file.
47293         * modules/unictype/ctype-cntrl-tests: New file.
47294         * modules/unictype/ctype-digit-tests: New file.
47295         * modules/unictype/ctype-graph-tests: New file.
47296         * modules/unictype/ctype-lower-tests: New file.
47297         * modules/unictype/ctype-print-tests: New file.
47298         * modules/unictype/ctype-punct-tests: New file.
47299         * modules/unictype/ctype-space-tests: New file.
47300         * modules/unictype/ctype-upper-tests: New file.
47301         * modules/unictype/ctype-xdigit-tests: New file.
47302         * modules/unictype/decimal-digit-tests: New file.
47303         * modules/unictype/digit-tests: New file.
47304         * modules/unictype/mirror-tests: New file.
47305         * modules/unictype/numeric-tests: New file.
47306         * modules/unictype/property-alphabetic-tests: New file.
47307         * modules/unictype/property-ascii-hex-digit-tests: New file.
47308         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47309         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47310         * modules/unictype/property-bidi-block-separator-tests: New file.
47311         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47312         * modules/unictype/property-bidi-common-separator-tests: New file.
47313         * modules/unictype/property-bidi-control-tests: New file.
47314         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47315         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47316         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47317         * modules/unictype/property-bidi-european-digit-tests: New file.
47318         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47319         * modules/unictype/property-bidi-left-to-right-tests: New file.
47320         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47321         * modules/unictype/property-bidi-other-neutral-tests: New file.
47322         * modules/unictype/property-bidi-pdf-tests: New file.
47323         * modules/unictype/property-bidi-segment-separator-tests: New file.
47324         * modules/unictype/property-bidi-whitespace-tests: New file.
47325         * modules/unictype/property-byname-tests: New file.
47326         * modules/unictype/property-combining-tests: New file.
47327         * modules/unictype/property-composite-tests: New file.
47328         * modules/unictype/property-currency-symbol-tests: New file.
47329         * modules/unictype/property-dash-tests: New file.
47330         * modules/unictype/property-decimal-digit-tests: New file.
47331         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47332         * modules/unictype/property-deprecated-tests: New file.
47333         * modules/unictype/property-diacritic-tests: New file.
47334         * modules/unictype/property-extender-tests: New file.
47335         * modules/unictype/property-format-control-tests: New file.
47336         * modules/unictype/property-grapheme-base-tests: New file.
47337         * modules/unictype/property-grapheme-extend-tests: New file.
47338         * modules/unictype/property-grapheme-link-tests: New file.
47339         * modules/unictype/property-hex-digit-tests: New file.
47340         * modules/unictype/property-hyphen-tests: New file.
47341         * modules/unictype/property-id-continue-tests: New file.
47342         * modules/unictype/property-id-start-tests: New file.
47343         * modules/unictype/property-ideographic-tests: New file.
47344         * modules/unictype/property-ids-binary-operator-tests: New file.
47345         * modules/unictype/property-ids-trinary-operator-tests: New file.
47346         * modules/unictype/property-ignorable-control-tests: New file.
47347         * modules/unictype/property-iso-control-tests: New file.
47348         * modules/unictype/property-join-control-tests: New file.
47349         * modules/unictype/property-left-of-pair-tests: New file.
47350         * modules/unictype/property-line-separator-tests: New file.
47351         * modules/unictype/property-logical-order-exception-tests: New file.
47352         * modules/unictype/property-lowercase-tests: New file.
47353         * modules/unictype/property-math-tests: New file.
47354         * modules/unictype/property-non-break-tests: New file.
47355         * modules/unictype/property-not-a-character-tests: New file.
47356         * modules/unictype/property-numeric-tests: New file.
47357         * modules/unictype/property-other-alphabetic-tests: New file.
47358         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47359         * modules/unictype/property-other-grapheme-extend-tests: New file.
47360         * modules/unictype/property-other-id-continue-tests: New file.
47361         * modules/unictype/property-other-id-start-tests: New file.
47362         * modules/unictype/property-other-lowercase-tests: New file.
47363         * modules/unictype/property-other-math-tests: New file.
47364         * modules/unictype/property-other-uppercase-tests: New file.
47365         * modules/unictype/property-paired-punctuation-tests: New file.
47366         * modules/unictype/property-paragraph-separator-tests: New file.
47367         * modules/unictype/property-pattern-syntax-tests: New file.
47368         * modules/unictype/property-pattern-white-space-tests: New file.
47369         * modules/unictype/property-private-use-tests: New file.
47370         * modules/unictype/property-punctuation-tests: New file.
47371         * modules/unictype/property-quotation-mark-tests: New file.
47372         * modules/unictype/property-radical-tests: New file.
47373         * modules/unictype/property-sentence-terminal-tests: New file.
47374         * modules/unictype/property-soft-dotted-tests: New file.
47375         * modules/unictype/property-space-tests: New file.
47376         * modules/unictype/property-terminal-punctuation-tests: New file.
47377         * modules/unictype/property-test-tests: New file.
47378         * modules/unictype/property-titlecase-tests: New file.
47379         * modules/unictype/property-unassigned-code-value-tests: New file.
47380         * modules/unictype/property-unified-ideograph-tests: New file.
47381         * modules/unictype/property-uppercase-tests: New file.
47382         * modules/unictype/property-variation-selector-tests: New file.
47383         * modules/unictype/property-white-space-tests: New file.
47384         * modules/unictype/property-xid-continue-tests: New file.
47385         * modules/unictype/property-xid-start-tests: New file.
47386         * modules/unictype/property-zero-width-tests: New file.
47387         * modules/unictype/scripts-tests: New file.
47388         * modules/unictype/syntax-c-ident-tests: New file.
47389         * modules/unictype/syntax-c-whitespace-tests: New file.
47390         * modules/unictype/syntax-java-ident-tests: New file.
47391         * modules/unictype/syntax-java-whitespace-tests: New file.
47392         * tests/unictype/test-bidi_byname.c: New file.
47393         * tests/unictype/test-bidi_name.c: New file.
47394         * tests/unictype/test-bidi_of.c: New file.
47395         * tests/unictype/test-bidi_test.c: New file.
47396         * tests/unictype/test-block_list.c: New file.
47397         * tests/unictype/test-block_of.c: New file.
47398         * tests/unictype/test-block_test.c: New file.
47399         * tests/unictype/test-categ_and.c: New file.
47400         * tests/unictype/test-categ_and_not.c: New file.
47401         * tests/unictype/test-categ_byname.c: New file.
47402         * tests/unictype/test-categ_name.c: New file.
47403         * tests/unictype/test-categ_none.c: New file.
47404         * tests/unictype/test-categ_of.c: New file.
47405         * tests/unictype/test-categ_or.c: New file.
47406         * tests/unictype/test-categ_test_withtable.c: New file.
47407         * tests/unictype/test-combining.c: New file.
47408         * tests/unictype/test-decdigit.c: New file.
47409         * tests/unictype/test-digit.c: New file.
47410         * tests/unictype/test-mirror.c: New file.
47411         * tests/unictype/test-numeric.c: New file.
47412         * tests/unictype/test-pr_byname.c: New file.
47413         * tests/unictype/test-pr_test.c: New file.
47414         * tests/unictype/test-predicate-part1.h: New file.
47415         * tests/unictype/test-predicate-part2.h: New file.
47416         * tests/unictype/test-scripts.c: New file.
47417         * tests/unictype/test-sy_c_ident.c: New file.
47418         * tests/unictype/test-sy_java_ident.c: New file.
47419
47420         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47421         for Unicode 5.0.0.
47422         * tests/unictype/test-categ_Cc.c: Likewise.
47423         * tests/unictype/test-categ_Cf.c: Likewise.
47424         * tests/unictype/test-categ_Cn.c: Likewise.
47425         * tests/unictype/test-categ_Co.c: Likewise.
47426         * tests/unictype/test-categ_Cs.c: Likewise.
47427         * tests/unictype/test-categ_L.c: Likewise.
47428         * tests/unictype/test-categ_Ll.c: Likewise.
47429         * tests/unictype/test-categ_Lm.c: Likewise.
47430         * tests/unictype/test-categ_Lo.c: Likewise.
47431         * tests/unictype/test-categ_Lt.c: Likewise.
47432         * tests/unictype/test-categ_Lu.c: Likewise.
47433         * tests/unictype/test-categ_M.c: Likewise.
47434         * tests/unictype/test-categ_Mc.c: Likewise.
47435         * tests/unictype/test-categ_Me.c: Likewise.
47436         * tests/unictype/test-categ_Mn.c: Likewise.
47437         * tests/unictype/test-categ_N.c: Likewise.
47438         * tests/unictype/test-categ_Nd.c: Likewise.
47439         * tests/unictype/test-categ_Nl.c: Likewise.
47440         * tests/unictype/test-categ_No.c: Likewise.
47441         * tests/unictype/test-categ_P.c: Likewise.
47442         * tests/unictype/test-categ_Pc.c: Likewise.
47443         * tests/unictype/test-categ_Pd.c: Likewise.
47444         * tests/unictype/test-categ_Pe.c: Likewise.
47445         * tests/unictype/test-categ_Pf.c: Likewise.
47446         * tests/unictype/test-categ_Pi.c: Likewise.
47447         * tests/unictype/test-categ_Po.c: Likewise.
47448         * tests/unictype/test-categ_Ps.c: Likewise.
47449         * tests/unictype/test-categ_S.c: Likewise.
47450         * tests/unictype/test-categ_Sc.c: Likewise.
47451         * tests/unictype/test-categ_Sk.c: Likewise.
47452         * tests/unictype/test-categ_Sm.c: Likewise.
47453         * tests/unictype/test-categ_So.c: Likewise.
47454         * tests/unictype/test-categ_Z.c: Likewise.
47455         * tests/unictype/test-categ_Zl.c: Likewise.
47456         * tests/unictype/test-categ_Zp.c: Likewise.
47457         * tests/unictype/test-categ_Zs.c: Likewise.
47458         * tests/unictype/test-ctype_alnum.c: Likewise.
47459         * tests/unictype/test-ctype_alpha.c: Likewise.
47460         * tests/unictype/test-ctype_blank.c: Likewise.
47461         * tests/unictype/test-ctype_cntrl.c: Likewise.
47462         * tests/unictype/test-ctype_digit.c: Likewise.
47463         * tests/unictype/test-ctype_graph.c: Likewise.
47464         * tests/unictype/test-ctype_lower.c: Likewise.
47465         * tests/unictype/test-ctype_print.c: Likewise.
47466         * tests/unictype/test-ctype_punct.c: Likewise.
47467         * tests/unictype/test-ctype_space.c: Likewise.
47468         * tests/unictype/test-ctype_upper.c: Likewise.
47469         * tests/unictype/test-ctype_xdigit.c: Likewise.
47470         * tests/unictype/test-decdigit.h: Likewise.
47471         * tests/unictype/test-digit.h: Likewise.
47472         * tests/unictype/test-numeric.h: Likewise.
47473         * tests/unictype/test-pr_alphabetic.c: Likewise.
47474         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47475         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47476         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47477         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47478         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47479         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47480         * tests/unictype/test-pr_bidi_control.c: Likewise.
47481         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47482         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47483         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47484         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47485         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47486         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47487         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47488         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47489         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47490         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47491         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47492         * tests/unictype/test-pr_combining.c: Likewise.
47493         * tests/unictype/test-pr_composite.c: Likewise.
47494         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47495         * tests/unictype/test-pr_dash.c: Likewise.
47496         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47497         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47498         * tests/unictype/test-pr_deprecated.c: Likewise.
47499         * tests/unictype/test-pr_diacritic.c: Likewise.
47500         * tests/unictype/test-pr_extender.c: Likewise.
47501         * tests/unictype/test-pr_format_control.c: Likewise.
47502         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47503         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47504         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47505         * tests/unictype/test-pr_hex_digit.c: Likewise.
47506         * tests/unictype/test-pr_hyphen.c: Likewise.
47507         * tests/unictype/test-pr_id_continue.c: Likewise.
47508         * tests/unictype/test-pr_id_start.c: Likewise.
47509         * tests/unictype/test-pr_ideographic.c: Likewise.
47510         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47511         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47512         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47513         * tests/unictype/test-pr_iso_control.c: Likewise.
47514         * tests/unictype/test-pr_join_control.c: Likewise.
47515         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47516         * tests/unictype/test-pr_line_separator.c: Likewise.
47517         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47518         * tests/unictype/test-pr_lowercase.c: Likewise.
47519         * tests/unictype/test-pr_math.c: Likewise.
47520         * tests/unictype/test-pr_non_break.c: Likewise.
47521         * tests/unictype/test-pr_not_a_character.c: Likewise.
47522         * tests/unictype/test-pr_numeric.c: Likewise.
47523         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47524         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47525         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47526         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47527         * tests/unictype/test-pr_other_id_start.c: Likewise.
47528         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47529         * tests/unictype/test-pr_other_math.c: Likewise.
47530         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47531         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47532         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47533         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47534         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47535         * tests/unictype/test-pr_private_use.c: Likewise.
47536         * tests/unictype/test-pr_punctuation.c: Likewise.
47537         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47538         * tests/unictype/test-pr_radical.c: Likewise.
47539         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47540         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47541         * tests/unictype/test-pr_space.c: Likewise.
47542         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47543         * tests/unictype/test-pr_titlecase.c: Likewise.
47544         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47545         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47546         * tests/unictype/test-pr_uppercase.c: Likewise.
47547         * tests/unictype/test-pr_variation_selector.c: Likewise.
47548         * tests/unictype/test-pr_white_space.c: Likewise.
47549         * tests/unictype/test-pr_xid_continue.c: Likewise.
47550         * tests/unictype/test-pr_xid_start.c: Likewise.
47551         * tests/unictype/test-pr_zero_width.c: Likewise.
47552         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47553         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47554
47555 2007-11-12  Bruno Haible  <bruno@clisp.org>
47556
47557         Unicode character classification functions.
47558         * lib/unictype.h: New file.
47559         * modules/unictype/base: New file.
47560         * modules/unictype/category-L: New file.
47561         * modules/unictype/category-Lu: New file.
47562         * modules/unictype/category-Ll: New file.
47563         * modules/unictype/category-Lt: New file.
47564         * modules/unictype/category-Lm: New file.
47565         * modules/unictype/category-Lo: New file.
47566         * modules/unictype/category-M: New file.
47567         * modules/unictype/category-Mn: New file.
47568         * modules/unictype/category-Mc: New file.
47569         * modules/unictype/category-Me: New file.
47570         * modules/unictype/category-N: New file.
47571         * modules/unictype/category-Nd: New file.
47572         * modules/unictype/category-Nl: New file.
47573         * modules/unictype/category-No: New file.
47574         * modules/unictype/category-P: New file.
47575         * modules/unictype/category-Pc: New file.
47576         * modules/unictype/category-Pd: New file.
47577         * modules/unictype/category-Ps: New file.
47578         * modules/unictype/category-Pe: New file.
47579         * modules/unictype/category-Pi: New file.
47580         * modules/unictype/category-Pf: New file.
47581         * modules/unictype/category-Po: New file.
47582         * modules/unictype/category-S: New file.
47583         * modules/unictype/category-Sm: New file.
47584         * modules/unictype/category-Sc: New file.
47585         * modules/unictype/category-Sk: New file.
47586         * modules/unictype/category-So: New file.
47587         * modules/unictype/category-Z: New file.
47588         * modules/unictype/category-Zs: New file.
47589         * modules/unictype/category-Zl: New file.
47590         * modules/unictype/category-Zp: New file.
47591         * modules/unictype/category-C: New file.
47592         * modules/unictype/category-Cc: New file.
47593         * modules/unictype/category-Cf: New file.
47594         * modules/unictype/category-Cs: New file.
47595         * modules/unictype/category-Co: New file.
47596         * modules/unictype/category-Cn: New file.
47597         * modules/unictype/category-or: New file.
47598         * modules/unictype/category-of: New file.
47599         * modules/unictype/category-test: New file.
47600         * modules/unictype/category-test-withtable: New file.
47601         * modules/unictype/category-byname: New file.
47602         * modules/unictype/category-none: New file.
47603         * modules/unictype/category-and: New file.
47604         * modules/unictype/category-and-not: New file.
47605         * modules/unictype/category-name: New file.
47606         * modules/unictype/combining-class: New file.
47607         * modules/unictype/category-all: New file.
47608         * modules/unictype/bidicategory-all: New file.
47609         * modules/unictype/bidicategory-byname: New file.
47610         * modules/unictype/bidicategory-name: New file.
47611         * modules/unictype/bidicategory-of: New file.
47612         * modules/unictype/bidicategory-test: New file.
47613         * modules/unictype/decimal-digit: New file.
47614         * modules/unictype/digit: New file.
47615         * modules/unictype/numeric: New file.
47616         * modules/unictype/mirror: New file.
47617         * modules/unictype/property-white-space: New file.
47618         * modules/unictype/property-alphabetic: New file.
47619         * modules/unictype/property-other-alphabetic: New file.
47620         * modules/unictype/property-not-a-character: New file.
47621         * modules/unictype/property-default-ignorable-code-point: New file.
47622         * modules/unictype/property-other-default-ignorable-code-point: New
47623         file.
47624         * modules/unictype/property-deprecated: New file.
47625         * modules/unictype/property-logical-order-exception: New file.
47626         * modules/unictype/property-variation-selector: New file.
47627         * modules/unictype/property-private-use: New file.
47628         * modules/unictype/property-unassigned-code-value: New file.
47629         * modules/unictype/property-uppercase: New file.
47630         * modules/unictype/property-other-uppercase: New file.
47631         * modules/unictype/property-lowercase: New file.
47632         * modules/unictype/property-other-lowercase: New file.
47633         * modules/unictype/property-titlecase: New file.
47634         * modules/unictype/property-soft-dotted: New file.
47635         * modules/unictype/property-id-start: New file.
47636         * modules/unictype/property-other-id-start: New file.
47637         * modules/unictype/property-id-continue: New file.
47638         * modules/unictype/property-other-id-continue: New file.
47639         * modules/unictype/property-xid-start: New file.
47640         * modules/unictype/property-xid-continue: New file.
47641         * modules/unictype/property-pattern-white-space: New file.
47642         * modules/unictype/property-pattern-syntax: New file.
47643         * modules/unictype/property-join-control: New file.
47644         * modules/unictype/property-grapheme-base: New file.
47645         * modules/unictype/property-grapheme-extend: New file.
47646         * modules/unictype/property-other-grapheme-extend: New file.
47647         * modules/unictype/property-grapheme-link: New file.
47648         * modules/unictype/property-bidi-control: New file.
47649         * modules/unictype/property-bidi-left-to-right: New file.
47650         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47651         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47652         * modules/unictype/property-bidi-european-digit: New file.
47653         * modules/unictype/property-bidi-eur-num-separator: New file.
47654         * modules/unictype/property-bidi-eur-num-terminator: New file.
47655         * modules/unictype/property-bidi-arabic-digit: New file.
47656         * modules/unictype/property-bidi-common-separator: New file.
47657         * modules/unictype/property-bidi-block-separator: New file.
47658         * modules/unictype/property-bidi-segment-separator: New file.
47659         * modules/unictype/property-bidi-whitespace: New file.
47660         * modules/unictype/property-bidi-non-spacing-mark: New file.
47661         * modules/unictype/property-bidi-boundary-neutral: New file.
47662         * modules/unictype/property-bidi-pdf: New file.
47663         * modules/unictype/property-bidi-embedding-or-override: New file.
47664         * modules/unictype/property-bidi-other-neutral: New file.
47665         * modules/unictype/property-hex-digit: New file.
47666         * modules/unictype/property-ascii-hex-digit: New file.
47667         * modules/unictype/property-ideographic: New file.
47668         * modules/unictype/property-unified-ideograph: New file.
47669         * modules/unictype/property-radical: New file.
47670         * modules/unictype/property-ids-binary-operator: New file.
47671         * modules/unictype/property-ids-trinary-operator: New file.
47672         * modules/unictype/property-zero-width: New file.
47673         * modules/unictype/property-space: New file.
47674         * modules/unictype/property-non-break: New file.
47675         * modules/unictype/property-iso-control: New file.
47676         * modules/unictype/property-format-control: New file.
47677         * modules/unictype/property-dash: New file.
47678         * modules/unictype/property-hyphen: New file.
47679         * modules/unictype/property-punctuation: New file.
47680         * modules/unictype/property-line-separator: New file.
47681         * modules/unictype/property-paragraph-separator: New file.
47682         * modules/unictype/property-quotation-mark: New file.
47683         * modules/unictype/property-sentence-terminal: New file.
47684         * modules/unictype/property-terminal-punctuation: New file.
47685         * modules/unictype/property-currency-symbol: New file.
47686         * modules/unictype/property-math: New file.
47687         * modules/unictype/property-other-math: New file.
47688         * modules/unictype/property-paired-punctuation: New file.
47689         * modules/unictype/property-left-of-pair: New file.
47690         * modules/unictype/property-combining: New file.
47691         * modules/unictype/property-composite: New file.
47692         * modules/unictype/property-decimal-digit: New file.
47693         * modules/unictype/property-numeric: New file.
47694         * modules/unictype/property-diacritic: New file.
47695         * modules/unictype/property-extender: New file.
47696         * modules/unictype/property-ignorable-control: New file.
47697         * modules/unictype/property-test: New file.
47698         * modules/unictype/property-byname: New file.
47699         * modules/unictype/property-all: New file.
47700         * modules/unictype/scripts: New file.
47701         * modules/unictype/scripts-all: New file.
47702         * modules/unictype/block-of: New file.
47703         * modules/unictype/block-test: New file.
47704         * modules/unictype/block-list: New file.
47705         * modules/unictype/block-all: New file.
47706         * modules/unictype/syntax-c-whitespace: New file.
47707         * modules/unictype/syntax-java-whitespace: New file.
47708         * modules/unictype/syntax-c-ident: New file.
47709         * modules/unictype/syntax-java-ident: New file.
47710         * modules/unictype/ctype-alnum: New file.
47711         * modules/unictype/ctype-alpha: New file.
47712         * modules/unictype/ctype-cntrl: New file.
47713         * modules/unictype/ctype-digit: New file.
47714         * modules/unictype/ctype-graph: New file.
47715         * modules/unictype/ctype-lower: New file.
47716         * modules/unictype/ctype-print: New file.
47717         * modules/unictype/ctype-punct: New file.
47718         * modules/unictype/ctype-space: New file.
47719         * modules/unictype/ctype-upper: New file.
47720         * modules/unictype/ctype-xdigit: New file.
47721         * modules/unictype/ctype-blank: New file.
47722         * lib/unictype/bidi_byname.c: New file.
47723         * lib/unictype/bidi_name.c: New file.
47724         * lib/unictype/bidi_of.c: New file.
47725         * lib/unictype/bidi_test.c: New file.
47726         * lib/unictype/bitmap.h: New file.
47727         * lib/unictype/block_test.c: New file.
47728         * lib/unictype/blocks.c: New file.
47729         * lib/unictype/categ_C.c: New file.
47730         * lib/unictype/categ_Cc.c: New file.
47731         * lib/unictype/categ_Cf.c: New file.
47732         * lib/unictype/categ_Cn.c: New file.
47733         * lib/unictype/categ_Co.c: New file.
47734         * lib/unictype/categ_Cs.c: New file.
47735         * lib/unictype/categ_L.c: New file.
47736         * lib/unictype/categ_Ll.c: New file.
47737         * lib/unictype/categ_Lm.c: New file.
47738         * lib/unictype/categ_Lo.c: New file.
47739         * lib/unictype/categ_Lt.c: New file.
47740         * lib/unictype/categ_Lu.c: New file.
47741         * lib/unictype/categ_M.c: New file.
47742         * lib/unictype/categ_Mc.c: New file.
47743         * lib/unictype/categ_Me.c: New file.
47744         * lib/unictype/categ_Mn.c: New file.
47745         * lib/unictype/categ_N.c: New file.
47746         * lib/unictype/categ_Nd.c: New file.
47747         * lib/unictype/categ_Nl.c: New file.
47748         * lib/unictype/categ_No.c: New file.
47749         * lib/unictype/categ_P.c: New file.
47750         * lib/unictype/categ_Pc.c: New file.
47751         * lib/unictype/categ_Pd.c: New file.
47752         * lib/unictype/categ_Pe.c: New file.
47753         * lib/unictype/categ_Pf.c: New file.
47754         * lib/unictype/categ_Pi.c: New file.
47755         * lib/unictype/categ_Po.c: New file.
47756         * lib/unictype/categ_Ps.c: New file.
47757         * lib/unictype/categ_S.c: New file.
47758         * lib/unictype/categ_Sc.c: New file.
47759         * lib/unictype/categ_Sk.c: New file.
47760         * lib/unictype/categ_Sm.c: New file.
47761         * lib/unictype/categ_So.c: New file.
47762         * lib/unictype/categ_Z.c: New file.
47763         * lib/unictype/categ_Zl.c: New file.
47764         * lib/unictype/categ_Zp.c: New file.
47765         * lib/unictype/categ_Zs.c: New file.
47766         * lib/unictype/categ_and.c: New file.
47767         * lib/unictype/categ_and_not.c: New file.
47768         * lib/unictype/categ_byname.c: New file.
47769         * lib/unictype/categ_name.c: New file.
47770         * lib/unictype/categ_none.c: New file.
47771         * lib/unictype/categ_of.c: New file.
47772         * lib/unictype/categ_or.c: New file.
47773         * lib/unictype/categ_test.c: New file.
47774         * lib/unictype/combining.c: New file.
47775         * lib/unictype/ctype_alnum.c: New file.
47776         * lib/unictype/ctype_alpha.c: New file.
47777         * lib/unictype/ctype_blank.c: New file.
47778         * lib/unictype/ctype_cntrl.c: New file.
47779         * lib/unictype/ctype_digit.c: New file.
47780         * lib/unictype/ctype_graph.c: New file.
47781         * lib/unictype/ctype_lower.c: New file.
47782         * lib/unictype/ctype_print.c: New file.
47783         * lib/unictype/ctype_punct.c: New file.
47784         * lib/unictype/ctype_space.c: New file.
47785         * lib/unictype/ctype_upper.c: New file.
47786         * lib/unictype/ctype_xdigit.c: New file.
47787         * lib/unictype/decdigit.c: New file.
47788         * lib/unictype/digit.c: New file.
47789         * lib/unictype/identsyntaxmap.h: New file.
47790         * lib/unictype/mirror.c: New file.
47791         * lib/unictype/numeric.c: New file.
47792         * lib/unictype/pr_alphabetic.c: New file.
47793         * lib/unictype/pr_ascii_hex_digit.c: New file.
47794         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47795         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47796         * lib/unictype/pr_bidi_block_separator.c: New file.
47797         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47798         * lib/unictype/pr_bidi_common_separator.c: New file.
47799         * lib/unictype/pr_bidi_control.c: New file.
47800         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47801         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47802         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47803         * lib/unictype/pr_bidi_european_digit.c: New file.
47804         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47805         * lib/unictype/pr_bidi_left_to_right.c: New file.
47806         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47807         * lib/unictype/pr_bidi_other_neutral.c: New file.
47808         * lib/unictype/pr_bidi_pdf.c: New file.
47809         * lib/unictype/pr_bidi_segment_separator.c: New file.
47810         * lib/unictype/pr_bidi_whitespace.c: New file.
47811         * lib/unictype/pr_byname.c: New file.
47812         * lib/unictype/pr_byname.gperf: New file.
47813         * lib/unictype/pr_combining.c: New file.
47814         * lib/unictype/pr_composite.c: New file.
47815         * lib/unictype/pr_currency_symbol.c: New file.
47816         * lib/unictype/pr_dash.c: New file.
47817         * lib/unictype/pr_decimal_digit.c: New file.
47818         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47819         * lib/unictype/pr_deprecated.c: New file.
47820         * lib/unictype/pr_diacritic.c: New file.
47821         * lib/unictype/pr_extender.c: New file.
47822         * lib/unictype/pr_format_control.c: New file.
47823         * lib/unictype/pr_grapheme_base.c: New file.
47824         * lib/unictype/pr_grapheme_extend.c: New file.
47825         * lib/unictype/pr_grapheme_link.c: New file.
47826         * lib/unictype/pr_hex_digit.c: New file.
47827         * lib/unictype/pr_hyphen.c: New file.
47828         * lib/unictype/pr_id_continue.c: New file.
47829         * lib/unictype/pr_id_start.c: New file.
47830         * lib/unictype/pr_ideographic.c: New file.
47831         * lib/unictype/pr_ids_binary_operator.c: New file.
47832         * lib/unictype/pr_ids_trinary_operator.c: New file.
47833         * lib/unictype/pr_ignorable_control.c: New file.
47834         * lib/unictype/pr_iso_control.c: New file.
47835         * lib/unictype/pr_join_control.c: New file.
47836         * lib/unictype/pr_left_of_pair.c: New file.
47837         * lib/unictype/pr_line_separator.c: New file.
47838         * lib/unictype/pr_logical_order_exception.c: New file.
47839         * lib/unictype/pr_lowercase.c: New file.
47840         * lib/unictype/pr_math.c: New file.
47841         * lib/unictype/pr_non_break.c: New file.
47842         * lib/unictype/pr_not_a_character.c: New file.
47843         * lib/unictype/pr_numeric.c: New file.
47844         * lib/unictype/pr_other_alphabetic.c: New file.
47845         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47846         * lib/unictype/pr_other_grapheme_extend.c: New file.
47847         * lib/unictype/pr_other_id_continue.c: New file.
47848         * lib/unictype/pr_other_id_start.c: New file.
47849         * lib/unictype/pr_other_lowercase.c: New file.
47850         * lib/unictype/pr_other_math.c: New file.
47851         * lib/unictype/pr_other_uppercase.c: New file.
47852         * lib/unictype/pr_paired_punctuation.c: New file.
47853         * lib/unictype/pr_paragraph_separator.c: New file.
47854         * lib/unictype/pr_pattern_syntax.c: New file.
47855         * lib/unictype/pr_pattern_white_space.c: New file.
47856         * lib/unictype/pr_private_use.c: New file.
47857         * lib/unictype/pr_punctuation.c: New file.
47858         * lib/unictype/pr_quotation_mark.c: New file.
47859         * lib/unictype/pr_radical.c: New file.
47860         * lib/unictype/pr_sentence_terminal.c: New file.
47861         * lib/unictype/pr_soft_dotted.c: New file.
47862         * lib/unictype/pr_space.c: New file.
47863         * lib/unictype/pr_terminal_punctuation.c: New file.
47864         * lib/unictype/pr_test.c: New file.
47865         * lib/unictype/pr_titlecase.c: New file.
47866         * lib/unictype/pr_unassigned_code_value.c: New file.
47867         * lib/unictype/pr_unified_ideograph.c: New file.
47868         * lib/unictype/pr_uppercase.c: New file.
47869         * lib/unictype/pr_variation_selector.c: New file.
47870         * lib/unictype/pr_white_space.c: New file.
47871         * lib/unictype/pr_xid_continue.c: New file.
47872         * lib/unictype/pr_xid_start.c: New file.
47873         * lib/unictype/pr_zero_width.c: New file.
47874         * lib/unictype/scripts.c: New file.
47875         * lib/unictype/sy_c_ident.c: New file.
47876         * lib/unictype/sy_c_whitespace.c: New file.
47877         * lib/unictype/sy_java_ident.c: New file.
47878         * lib/unictype/sy_java_whitespace.c: New file.
47879
47880         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47881         Unicode 5.0.0.
47882         * lib/unictype/blocks.h: Likewise.
47883         * lib/unictype/categ_C.h: Likewise.
47884         * lib/unictype/categ_Cc.h: Likewise.
47885         * lib/unictype/categ_Cf.h: Likewise.
47886         * lib/unictype/categ_Cn.h: Likewise.
47887         * lib/unictype/categ_Co.h: Likewise.
47888         * lib/unictype/categ_Cs.h: Likewise.
47889         * lib/unictype/categ_L.h: Likewise.
47890         * lib/unictype/categ_Ll.h: Likewise.
47891         * lib/unictype/categ_Lm.h: Likewise.
47892         * lib/unictype/categ_Lo.h: Likewise.
47893         * lib/unictype/categ_Lt.h: Likewise.
47894         * lib/unictype/categ_Lu.h: Likewise.
47895         * lib/unictype/categ_M.h: Likewise.
47896         * lib/unictype/categ_Mc.h: Likewise.
47897         * lib/unictype/categ_Me.h: Likewise.
47898         * lib/unictype/categ_Mn.h: Likewise.
47899         * lib/unictype/categ_N.h: Likewise.
47900         * lib/unictype/categ_Nd.h: Likewise.
47901         * lib/unictype/categ_Nl.h: Likewise.
47902         * lib/unictype/categ_No.h: Likewise.
47903         * lib/unictype/categ_P.h: Likewise.
47904         * lib/unictype/categ_Pc.h: Likewise.
47905         * lib/unictype/categ_Pd.h: Likewise.
47906         * lib/unictype/categ_Pe.h: Likewise.
47907         * lib/unictype/categ_Pf.h: Likewise.
47908         * lib/unictype/categ_Pi.h: Likewise.
47909         * lib/unictype/categ_Po.h: Likewise.
47910         * lib/unictype/categ_Ps.h: Likewise.
47911         * lib/unictype/categ_S.h: Likewise.
47912         * lib/unictype/categ_Sc.h: Likewise.
47913         * lib/unictype/categ_Sk.h: Likewise.
47914         * lib/unictype/categ_Sm.h: Likewise.
47915         * lib/unictype/categ_So.h: Likewise.
47916         * lib/unictype/categ_Z.h: Likewise.
47917         * lib/unictype/categ_Zl.h: Likewise.
47918         * lib/unictype/categ_Zp.h: Likewise.
47919         * lib/unictype/categ_Zs.h: Likewise.
47920         * lib/unictype/categ_of.h: Likewise.
47921         * lib/unictype/combining.h: Likewise.
47922         * lib/unictype/ctype_alnum.h: Likewise.
47923         * lib/unictype/ctype_alpha.h: Likewise.
47924         * lib/unictype/ctype_blank.h: Likewise.
47925         * lib/unictype/ctype_cntrl.h: Likewise.
47926         * lib/unictype/ctype_digit.h: Likewise.
47927         * lib/unictype/ctype_graph.h: Likewise.
47928         * lib/unictype/ctype_lower.h: Likewise.
47929         * lib/unictype/ctype_print.h: Likewise.
47930         * lib/unictype/ctype_punct.h: Likewise.
47931         * lib/unictype/ctype_space.h: Likewise.
47932         * lib/unictype/ctype_upper.h: Likewise.
47933         * lib/unictype/ctype_xdigit.h: Likewise.
47934         * lib/unictype/decdigit.h: Likewise.
47935         * lib/unictype/digit.h: Likewise.
47936         * lib/unictype/mirror.h: Likewise.
47937         * lib/unictype/numeric.h: Likewise.
47938         * lib/unictype/pr_alphabetic.h: Likewise.
47939         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47940         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47941         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47942         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47943         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47944         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47945         * lib/unictype/pr_bidi_control.h: Likewise.
47946         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47947         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47948         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47949         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47950         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47951         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47952         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47953         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47954         * lib/unictype/pr_bidi_pdf.h: Likewise.
47955         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47956         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47957         * lib/unictype/pr_combining.h: Likewise.
47958         * lib/unictype/pr_composite.h: Likewise.
47959         * lib/unictype/pr_currency_symbol.h: Likewise.
47960         * lib/unictype/pr_dash.h: Likewise.
47961         * lib/unictype/pr_decimal_digit.h: Likewise.
47962         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47963         * lib/unictype/pr_deprecated.h: Likewise.
47964         * lib/unictype/pr_diacritic.h: Likewise.
47965         * lib/unictype/pr_extender.h: Likewise.
47966         * lib/unictype/pr_format_control.h: Likewise.
47967         * lib/unictype/pr_grapheme_base.h: Likewise.
47968         * lib/unictype/pr_grapheme_extend.h: Likewise.
47969         * lib/unictype/pr_grapheme_link.h: Likewise.
47970         * lib/unictype/pr_hex_digit.h: Likewise.
47971         * lib/unictype/pr_hyphen.h: Likewise.
47972         * lib/unictype/pr_id_continue.h: Likewise.
47973         * lib/unictype/pr_id_start.h: Likewise.
47974         * lib/unictype/pr_ideographic.h: Likewise.
47975         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47976         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47977         * lib/unictype/pr_ignorable_control.h: Likewise.
47978         * lib/unictype/pr_iso_control.h: Likewise.
47979         * lib/unictype/pr_join_control.h: Likewise.
47980         * lib/unictype/pr_left_of_pair.h: Likewise.
47981         * lib/unictype/pr_line_separator.h: Likewise.
47982         * lib/unictype/pr_logical_order_exception.h: Likewise.
47983         * lib/unictype/pr_lowercase.h: Likewise.
47984         * lib/unictype/pr_math.h: Likewise.
47985         * lib/unictype/pr_non_break.h: Likewise.
47986         * lib/unictype/pr_not_a_character.h: Likewise.
47987         * lib/unictype/pr_numeric.h: Likewise.
47988         * lib/unictype/pr_other_alphabetic.h: Likewise.
47989         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47990         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47991         * lib/unictype/pr_other_id_continue.h: Likewise.
47992         * lib/unictype/pr_other_id_start.h: Likewise.
47993         * lib/unictype/pr_other_lowercase.h: Likewise.
47994         * lib/unictype/pr_other_math.h: Likewise.
47995         * lib/unictype/pr_other_uppercase.h: Likewise.
47996         * lib/unictype/pr_paired_punctuation.h: Likewise.
47997         * lib/unictype/pr_paragraph_separator.h: Likewise.
47998         * lib/unictype/pr_pattern_syntax.h: Likewise.
47999         * lib/unictype/pr_pattern_white_space.h: Likewise.
48000         * lib/unictype/pr_private_use.h: Likewise.
48001         * lib/unictype/pr_punctuation.h: Likewise.
48002         * lib/unictype/pr_quotation_mark.h: Likewise.
48003         * lib/unictype/pr_radical.h: Likewise.
48004         * lib/unictype/pr_sentence_terminal.h: Likewise.
48005         * lib/unictype/pr_soft_dotted.h: Likewise.
48006         * lib/unictype/pr_space.h: Likewise.
48007         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48008         * lib/unictype/pr_titlecase.h: Likewise.
48009         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48010         * lib/unictype/pr_unified_ideograph.h: Likewise.
48011         * lib/unictype/pr_uppercase.h: Likewise.
48012         * lib/unictype/pr_variation_selector.h: Likewise.
48013         * lib/unictype/pr_white_space.h: Likewise.
48014         * lib/unictype/pr_xid_continue.h: Likewise.
48015         * lib/unictype/pr_xid_start.h: Likewise.
48016         * lib/unictype/pr_zero_width.h: Likewise.
48017         * lib/unictype/scripts.h: Likewise.
48018         * lib/unictype/scripts_byname.gperf: Likewise.
48019         * lib/unictype/sy_c_ident.h: Likewise.
48020         * lib/unictype/sy_c_whitespace.h: Likewise.
48021         * lib/unictype/sy_java_ident.h: Likewise.
48022         * lib/unictype/sy_java_whitespace.h: Likewise.
48023
48024         * lib/unictype/Makefile: New file.
48025         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48026         glibc.
48027         * lib/unictype/3level.h: New file, copied from glibc.
48028         * lib/unictype/3levelbit.h: New file.
48029
48030 2007-11-11  Bruno Haible  <bruno@clisp.org>
48031
48032         * modules/gperf: New file.
48033         * modules/iconv_open (Depends-on): Add it.
48034         (Makefile.am): Remove the GPERF definition.
48035
48036 2007-11-11  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48039         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48040
48041 2007-11-11  Bruno Haible  <bruno@clisp.org>
48042
48043         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48044         (usage): Remove function.
48045
48046 2007-11-11  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48049         gl_FUNC_CEILF_LIBS.
48050         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48051         gl_FUNC_CEIL_LIBS.
48052         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48053         gl_FUNC_CEILL_LIBS.
48054         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48055         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48056         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48057
48058 2007-11-11  Bruno Haible  <bruno@clisp.org>
48059
48060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48061         roundf were declared but do not exist on functions.
48062         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48063         roundl were declared but do not exist on functions.
48064         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48065         HAVE_FLOORL_AND_CEILL, respectively.
48066         Needed for Sun C on Solaris 10.
48067
48068 2007-11-11  Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48071         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48072         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48073         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48075         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48076         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48077         HAVE_DECL_ROUNDF.
48078         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48079         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48081         of HAVE_DECL_ROUND*.
48082         * modules/math (Makefile.am): Update.
48083
48084 2007-11-10  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48087         ptrdiff_t as m4/intl.m4.
48088
48089 2007-11-10  Jim Meyering  <meyering@redhat.com>
48090
48091         Avoid link failure for the argmatch test.
48092         * tests/test-argmatch.c (usage): Define function to avoid a link
48093         failure: argmatch_die requires a usage function.
48094
48095 2007-11-09  Bruno Haible  <bruno@clisp.org>
48096
48097         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48098         * doc/functions/vsnprintf.texi: Likewise.
48099         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48100         with a size argument < 2.
48101
48102 2007-11-09  Bruno Haible  <bruno@clisp.org>
48103
48104         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48105         buffer. Fixes an inefficiency introduced on 2007-11-03.
48106
48107 2007-11-09  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48110         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48111
48112 2007-11-08  Jim Meyering  <meyering@redhat.com>
48113
48114         Change cache variable name prefix "jm_" to "gl_" everywhere.
48115         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48116         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48117         * m4/uptime.m4: s/gl_/jm_/
48118
48119 2007-11-07  Bruno Haible  <bruno@clisp.org>
48120
48121         Update to GNU gettext 0.17.
48122         * m4/intl.m4: Update to GNU gettext 0.17.
48123         * m4/po.m4: Likewise.
48124         * modules/gettext (Files): Remove m4/ulonglong.m4.
48125         (configure.ac): Require gettext infrastructure from version 0.17.
48126
48127 2007-11-06  Bruno Haible  <bruno@clisp.org>
48128
48129         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48130         symbolic values are not defined in a public header.
48131         * lib/freadable.c (freadable) [QNX]: Likewise.
48132         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48133         * lib/freading.c (freading) [QNX]: Likewise.
48134         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48135         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48136         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48137         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48138         Reported by Alain Magloire.
48139
48140         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48141
48142 2007-11-05  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48145         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48146         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48147         Reported by Eric Blake.
48148
48149 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48150             Bruno Haible  <bruno@clisp.org>
48151
48152         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48153         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48154         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48155         (malloc): Undefine also before including <stdlib.h>.
48156         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48157         Needed on OSF/1 4.0.
48158
48159 2007-11-05  Jim Meyering  <meyering@redhat.com>
48160
48161         git-version-gen: sync from coreutils.
48162         * build-aux/git-version-gen: Add comments.
48163         Change the first '-' to '.' in the snapshot version string,
48164         e.g., 6.9-377-08144 -> 6.9.377-08144
48165         Remove first parameter.
48166         Don't declare a version "-dirty" merely because a time
48167         stamp has changed.
48168
48169 2007-11-04  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/lock.h: Protect all macro definitions containing an 'if'
48172         statement through a "do { ... } while (0)".
48173         * lib/tls.h: Likewise.
48174
48175 2007-11-04  Bruno Haible  <bruno@clisp.org>
48176
48177         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48178
48179 2007-11-04  Bruno Haible  <bruno@clisp.org>
48180
48181         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48182         * modules/fprintf-posix (Depends-on): Add nocrash.
48183         * modules/snprintf-posix (Depends-on): Likewise.
48184         * modules/sprintf-posix (Depends-on): Likewise.
48185         * modules/vasnprintf-posix (Depends-on): Likewise.
48186         * modules/vasprintf-posix (Depends-on): Likewise.
48187         * modules/vfprintf-posix (Depends-on): Likewise.
48188         * modules/vsnprintf-posix (Depends-on): Likewise.
48189         * modules/vsprintf-posix (Depends-on): Likewise.
48190         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48191         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48192         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48193         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48194         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48195         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48196         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48197
48198 2007-11-04  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/nocrash: New file.
48201         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48202         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48203
48204 2007-11-04  Bruno Haible  <bruno@clisp.org>
48205
48206         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48207         precision handling.
48208         * tests/test-vasprintf-posix.c (test_function): Likewise.
48209         * tests/test-snprintf-posix.h (test_function): Likewise.
48210         * tests/test-sprintf-posix.h (test_function): Likewise.
48211
48212         Fix *printf behaviour for large precisions on mingw and BeOS.
48213         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48214         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48216         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48217         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48218         gl_PRINTF_PRECISION and test its result. Invoke
48219         gl_PREREQ_VASNPRINTF_PRECISION.
48220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48227         * doc/functions/fprintf.texi: Update.
48228         * doc/functions/printf.texi: Update.
48229         * doc/functions/snprintf.texi: Update.
48230         * doc/functions/sprintf.texi: Update.
48231         * doc/functions/vfprintf.texi: Update.
48232         * doc/functions/vprintf.texi: Update.
48233         * doc/functions/vsnprintf.texi: Update.
48234         * doc/functions/vsprintf.texi: Update.
48235
48236 2007-11-04  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48239
48240 2007-11-04  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48243         Reported by Sylvain Beucler <beuc@gnu.org>.
48244
48245 2007-11-03  Bruno Haible  <bruno@clisp.org>
48246
48247         * tests/test-fprintf-posix2.sh: New file.
48248         * tests/test-fprintf-posix2.c: New file.
48249         * modules/fprintf-posix-tests (Files): Add them.
48250         (TESTS): Add test-fprintf-posix2.sh.
48251         (configure.ac): Check for getrlimit and setrlimit.
48252         (check_PROGRAMS): Add test-fprintf-posix2.
48253
48254         * tests/test-printf-posix2.sh: New file.
48255         * tests/test-printf-posix2.c: New file.
48256         * modules/printf-posix-tests (Files): Add them.
48257         (TESTS): Add test-printf-posix2.sh.
48258         (configure.ac): Check for getrlimit and setrlimit.
48259         (check_PROGRAMS): Add test-printf-posix2.
48260
48261         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48262         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48263         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48264         (decode_double): New function, copied from decode_long_double.
48265         (scale10_round_decimal_decoded): New function, extracted from
48266         scale10_round_decimal_long_double.
48267         (scale10_round_decimal_long_double): Use it.
48268         (scale10_round_decimal_double): New function.
48269         (floorlog10): New function.
48270         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48272         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48274         gl_PRINTF_ENOMEM and test its result. Invoke
48275         gl_PREREQ_VASNPRINTF_ENOMEM.
48276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48283         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48284         * modules/snprintf-posix (Depends-on): Likewise.
48285         * modules/sprintf-posix (Depends-on): Likewise.
48286         * modules/vasnprintf-posix (Depends-on): Likewise.
48287         * modules/vasprintf-posix (Depends-on): Likewise.
48288         * modules/vfprintf-posix (Depends-on): Likewise.
48289         * modules/vsnprintf-posix (Depends-on): Likewise.
48290         * modules/vsprintf-posix (Depends-on): Likewise.
48291         * doc/functions/fprintf.texi: Update.
48292         * doc/functions/printf.texi: Update.
48293         * doc/functions/snprintf.texi: Update.
48294         * doc/functions/sprintf.texi: Update.
48295         * doc/functions/vfprintf.texi: Update.
48296         * doc/functions/vprintf.texi: Update.
48297         * doc/functions/vsnprintf.texi: Update.
48298         * doc/functions/vsprintf.texi: Update.
48299
48300 2007-11-03  Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/frexp-nolibm-tests: New file.
48303
48304         * modules/frexp-nolibm: New file.
48305         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48306
48307 2007-11-03  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48310         value is C99 compliant.
48311         Needed for OSF/1 5.1.
48312
48313 2007-11-03  Bruno Haible  <bruno@clisp.org>
48314
48315         Fix out-of-memory handling of vasnprintf.
48316         * lib/printf-parse.c: Include <errno.h>.
48317         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48318         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48319         is already set.
48320
48321 2007-11-02  Eric Blake  <ebb9@byu.net>
48322
48323         Fix tests on cygwin.
48324         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48325
48326 2007-11-01  Bruno Haible  <bruno@clisp.org>
48327
48328         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48329         warning.
48330         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48331         needed for POSIX compatibility.
48332
48333 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48334
48335         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48336         for compatibility with GNU.
48337
48338 2007-11-01  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48341         (putenv): Renamed from rpl_putenv. Change argument type from
48342         'const char *' to 'char *'.
48343         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48344         of defining putenv in config.h, just set REPLACE_PUTENV.
48345         * modules/putenv (Depends-on): Add stdlib.
48346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48347         (Include): Use <stdlib.h>.
48348         * lib/stdlib.in.h (putenv): New declaration.
48349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48350         REPLACE_PUTENV.
48351         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48352         REPLACE_PUTENV.
48353         Needed for MacOS X 10.5.0.
48354         Reported by Peter O'Gorman <peter@pogma.com>.
48355
48356 2007-11-01  Jim Meyering  <meyering@redhat.com>
48357
48358         Treat an empty date string exactly like "0".
48359         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48360         if the remaining date string (to be parsed) is empty, use "0".
48361         Reported by Mischa Molhoek and discussed in this thread:
48362         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48363
48364 2007-10-31  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48367         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48368         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48369         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48370         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48371         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48372
48373 2007-10-31  Bruno Haible  <bruno@clisp.org>
48374
48375         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48376         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48377         (AC_TYPE_LONG_LONG_INT): Use it.
48378         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48379         it as well.
48380         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48381         to m4/longlong.m4.
48382         * modules/stdint (Files): Remove m4/ulonglong.m4.
48383         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48384         m4/ulonglong.m4.
48385         * modules/strtoumax (Files): Likewise.
48386
48387 2007-10-30  Bruno Haible  <bruno@clisp.org>
48388
48389         * modules/xvasprintf-posix: New file.
48390         Suggested by Eric Blake.
48391
48392 2007-10-30  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/xprintf-posix-tests: New file.
48395         * tests/test-xprintf-posix.sh: New file.
48396         * tests/test-xprintf-posix.c: New file.
48397         * tests/test-xfprintf-posix.c: New file.
48398
48399         * modules/xprintf-posix: New file.
48400
48401 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48402
48403         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48404         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48405         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48406
48407 2007-10-29  Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48410         contain the special marker '_cv_'.
48411         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48412         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48413         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48414         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48415         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48416         Reported by Ralf Wildenhues.
48417
48418 2007-10-29  Bruno Haible  <bruno@clisp.org>
48419
48420         * gnulib-tool (func_import): When --lgpl is not specified, set
48421         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48422         GPLv3.
48423         Reported by Simon Josefsson.
48424
48425 2007-10-28  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48428         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48429         HAVE_DECL_ISFINITE.
48430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48431         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48432         HAVE_DECL_ISFINITE.
48433
48434 2007-10-28  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48437         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48438
48439 2007-10-28  Bruno Haible  <bruno@clisp.org>
48440
48441         Fix link errors with Sun C 5.0 on Solaris 10.
48442         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48443         function is declared but not present in the compiler's libm.
48444         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48445         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48446         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48447         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48448         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48449         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48450         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48452         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48453         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48454         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48455         HAVE_DECL_FLOORL.
48456
48457 2007-10-28  Bruno Haible  <bruno@clisp.org>
48458
48459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48460         gl_FUNC_FLOORL. Cache the result.
48461         (gl_FUNC_FLOORL): Use it.
48462         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48463         gl_FUNC_CEILL. Cache the result.
48464         (gl_FUNC_CEILL): Use it.
48465
48466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48467         gl_FUNC_FLOOR. Cache the result.
48468         (gl_FUNC_FLOOR): Use it.
48469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48470         gl_FUNC_CEIL. Cache the result.
48471         (gl_FUNC_CEIL): Use it.
48472
48473         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48474         gl_FUNC_FLOORF. Cache the result.
48475         (gl_FUNC_FLOORF): Use it.
48476         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48477         gl_FUNC_CEILF. Cache the result.
48478         (gl_FUNC_CEILF): Use it.
48479
48480 2007-10-28  Bruno Haible  <bruno@clisp.org>
48481
48482         * gnulib-tool: Allow specifying the LGPL version number through
48483         --lgpl=2 or --lgpl=3.
48484         (func_usage): Document --lgpl with argument.
48485         Handle --lgpl=... arguments.
48486         (func_import): Recognize also gl_LGPL calls with an argument. When
48487         --lgpl=2 is used and the module's license is just LGPL, report an
48488         error. Set sed_transform_lib_file according to the lgpl variable. In
48489         the generated files, use --lgpl or gl_LGPL invocations with argument,
48490         if necessary.
48491         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48492         an LGPv2+ license.
48493         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48494         gl_LGPL macro.
48495
48496 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48497             Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48500         (u16_uctomb_aux): Likewise.
48501         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48502         !HAVE_INLINE.
48503         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48504
48505 2007-10-28  Bruno Haible  <bruno@clisp.org>
48506
48507         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48508         Invoke AM_GETTEXT_OPTION if it exists.
48509         * modules/vasprintf: Likewise.
48510         * modules/verror: Likewise.
48511         * modules/xprintf: Likewise.
48512         * modules/xvasprintf: Likewise.
48513
48514 2007-10-27  Ben Pfaff  <blp@gnu.org>
48515
48516         * lib/math.in.h: Define isfinite macro and prototypes for
48517         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48518         implementations.
48519         * m4/math_h.m4: New substitutions for isfinite module.
48520         * lib/isfinite.c: New file.
48521         * m4/isfinite.m4: New file.
48522         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48523         * modules/isfinite: New file.
48524         * modules/isfinite-tests: New file.
48525         * tests/tests-isfinite.c: New file.
48526         * doc/functions/isfinite.texi: Mention isfinite module.
48527         * MODULES.html.sh: Mention new module.
48528
48529 2007-10-27  Ben Pfaff  <blp@gnu.org>
48530
48531         Ralf Wildenhues reported that Tru64 4.0D declares the round
48532         functions but does not have definitions.
48533         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48534         cannot be found in any library, set the output variable to
48535         "missing" instead of "".
48536         * m4/round.m4: Also use our substitute if we cannot find round in
48537         any library, even if it is declared.
48538         * m4/roundf.m4: Likewise for roundf.
48539         * m4/roundl.m4: Likewise for roundl.
48540         * lib/math.in.h: Undefine roundf, round, roundl before defining
48541         their replacements, to allow for hypothetical systems where these
48542         may be defined as macros but not available in libraries.
48543
48544 2007-10-27  Bruno Haible  <bruno@clisp.org>
48545
48546         * doc/gnulib.texi: Invoke @firstparagraphindent.
48547         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48548         changes in gnulib.
48549         (Source changes): New section.
48550
48551 2007-10-26  Bruno Haible  <bruno@clisp.org>
48552
48553         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48554         borrowed from autoconf.
48555
48556 2007-10-26  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48559         strerror returned the empty string. Needed on HP-UX 11.00.
48560
48561 2007-10-24  Micah Cowan  <micah@cowan.name>
48562
48563         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48564         * build-aux/bootstrap: Remove support for now-unnecessary option,
48565         --cvs-user, and envvars CVS_USER, CVS_RSH.
48566
48567 2007-10-24  Jim Meyering  <meyering@redhat.com>
48568
48569         Avoid diagnostics from sha1sum when there is no cached checksum.
48570         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48571         if the po.s1 file hasn't been created yet.
48572
48573         * build-aux/bootstrap: Sync from coreutils:
48574         2007-10-24  Jim Meyering  <meyering@redhat.com>
48575         Get gnulib from the git repository, not from an obsolete cvs one.
48576         * build-aux/bootstrap: Suggestion from Micah Cowan.
48577         2007-10-04  Jim Meyering  <jim@meyering.net>
48578         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48579         (update_po_files): Work also when there are no .po files in po/.
48580
48581 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * README: Append ".git" to git and cg examples.
48584         Problem reported by Benoit Sigoure.
48585
48586 2007-10-23  Micah Cowan  <micah@cowan.name>
48587
48588         * users.txt: Add wget.
48589
48590 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48591
48592         Fix linking of some unistdio tests on FreeBSD.
48593         * modules/unistdio/u16-vsnprintf-tests
48594         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48595         * modules/unistdio/u16-vsprintf-tests
48596         (test_u16_vsnprintf1_LDADD): Likewise.
48597         * modules/unistdio/u32-vsnprintf-tests
48598         (test_u32_vsnprintf1_LDADD): Likewise.
48599         * modules/unistdio/u32-vsprintf-tests
48600         (test_u32_vsprintf1_LDADD): Likewise.
48601         * modules/unistdio/u8-vsnprintf-tests
48602         (test_u8_vsnprintf1_LDADD): Likewise.
48603         * modules/unistdio/u8-vsprintf-tests
48604         (test_u8_vsprintf1_LDADD): Likewise.
48605         * modules/unistdio/ulc-vsnprintf-tests
48606         (test_ulc_vsnprintf1_LDADD): Likewise.
48607         * modules/unistdio/ulc-vsprintf-tests
48608         (test_ulc_vsprintf1_LDADD): Likewise.
48609
48610         Fix linking of some uniconv tests on FreeBSD.
48611         * modules/uniconv/u16-conv-from-enc-tests
48612         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48613         * modules/uniconv/u16-conv-to-enc-tests
48614         (test_u16_conv_to_enc_LDADD): Likewise.
48615         * modules/uniconv/u16-strconv-from-enc-tests
48616         (test_u16_strconv_from_enc_LDADD): Likewise.
48617         * modules/uniconv/u16-strconv-to-enc-tests
48618         (test_u16_strconv_to_enc_LDADD): Likewise.
48619         * modules/uniconv/u32-conv-from-enc-tests
48620         (test_u32_conv_from_enc_LDADD): Likewise.
48621         * modules/uniconv/u32-conv-to-enc-tests
48622         (test_u32_conv_to_enc_LDADD): Likewise.
48623         * modules/uniconv/u32-strconv-from-enc-tests
48624         (test_u32_strconv_from_enc_LDADD): Likewise.
48625         * modules/uniconv/u32-strconv-to-enc-tests
48626         (test_u32_strconv_to_enc_LDADD): Likewise.
48627         * modules/uniconv/u8-conv-from-enc-tests
48628         (test_u8_conv_from_enc_LDADD): Likewise.
48629         * modules/uniconv/u8-conv-to-enc-tests
48630         (test_u8_conv_to_enc_LDADD): Likewise.
48631         * modules/uniconv/u8-strconv-from-enc-tests
48632         (test_u8_strconv_from_enc_LDADD): Likewise.
48633         * modules/uniconv/u8-strconv-to-enc-tests
48634         (test_u8_strconv_to_enc_LDADD): Likewise.
48635
48636 2007-10-22  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48639         size.
48640
48641 2007-10-22  Eric Blake  <ebb9@byu.net>
48642
48643         Tweak x*printf documentation.
48644         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48645         variable name and comments.
48646         Suggested by Bruno Haible.
48647
48648 2007-10-22  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/acl.c (copy_acl): Fix file name in comment.
48651
48652 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         Fix Tru64 problem with stdbool.h.
48655         * lib/stdbool.in.h (false, true):
48656         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48657         Don't declare as an enum in this situation; it runs afoul of Tru64.
48658         Problem reported by Steven M. Schweda in
48659         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48660
48661 2007-10-22  Eric Blake  <ebb9@byu.net>
48662
48663         Also wrap vf?printf.
48664         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48665         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48666         (xvprintf, xvfprintf): New functions.
48667
48668 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48669
48670         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48671         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48672
48673         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48674         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48675
48676 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48677
48678         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48679         by Bruno Haible.
48680
48681 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48682
48683         * lib/getloadavg.c
48684         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48685         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48686
48687         * tests/test-i-ring.c: Work for C89.
48688
48689 2007-10-22  Bruno Haible  <bruno@clisp.org>
48690
48691         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48692         -1u, in preprocessor expression, so that we don't test for the bug
48693         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48694         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48695
48696 2007-10-22  Eric Blake  <ebb9@byu.net>
48697
48698         * tests/test-yesno.sh: Silence stderr during test.
48699
48700 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48701
48702         * modules/crypto/gc-camellia: New file.
48703
48704         * m4/gc-camellia.m4: New file.
48705
48706         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48707
48708         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48709
48710 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48711
48712         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48713         --help to stdout.  Reported by sms@antinode.org (Steven
48714         M. Schweda).
48715
48716 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48717
48718         * users.txt: Fix link to libksba.
48719
48720 2007-10-21  Ben Pfaff  <blp@gnu.org>
48721
48722         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48723         round.c roundf implementation that depends on floorf and ceilf to
48724         be tested unconditionally.
48725
48726 2007-10-21  Ben Pfaff  <blp@gnu.org>
48727
48728         * m4/check-libm-func.m4: Removed.
48729         * m4/check-math-lib.m4: New file.
48730         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48731         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48732         definition and lack of AC_LIBOBJ([roundf]).
48733         * m4/roundl.m4: Ditto, and similarly for roundl.
48734         * modules/round: Reference new m4 file.
48735         * modules/roundf: Ditto.
48736         * modules/roundl: Ditto.
48737         * tests/test-round2.c (main): Use ROUND instead of round.
48738         Bug report from Bruno Haible.
48739
48740 2007-10-21  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48743         context.
48744
48745 2007-10-21  Bruno Haible  <bruno@clisp.org>
48746
48747         * tests/test-wcwidth.c (main): Allow negative result for some control
48748         characters.
48749
48750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48751         Needed on OSF/1 5.1.
48752
48753 2007-10-21  Bruno Haible  <bruno@clisp.org>
48754
48755         * tests/test-floorf1.c: Include isnanf.h.
48756         (main): Use isnanf() instead of isnan().
48757         * tests/test-ceilf1.c: Include isnanf.h.
48758         (main): Use isnanf() instead of isnan().
48759         * tests/test-truncf1.c: Include isnanf.h.
48760         (main): Use isnanf() instead of isnan().
48761         * tests/test-roundf1.c: Include isnanf.h.
48762         (main): Use isnanf() instead of isnan().
48763
48764 2007-10-21  Eric Blake  <ebb9@byu.net>
48765
48766         * users.txt: Update URL for m4.
48767
48768 2007-10-21  Bruno Haible  <bruno@clisp.org>
48769
48770         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48771
48772 2007-10-21  Bruno Haible  <bruno@clisp.org>
48773
48774         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48775         Git's management files if the CVS files are not present.
48776
48777 2007-10-20  Bruno Haible  <bruno@clisp.org>
48778
48779         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48780         gcc-3.4.x.
48781
48782 2007-10-20  Ben Pfaff  <blp@gnu.org>
48783
48784         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48785         implementations.
48786         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48787         * lib/round.c: New file.
48788         * lib/roundf.c: New file.
48789         * lib/roundl.c: New file.
48790         * m4/round.m4: New file.
48791         * m4/roundf.m4: New file.
48792         * m4/roundl.m4: New file.
48793         * m4/check-libm-func-m4: New file.
48794         * modules/math: Replace round, roundf, roundl related @VARS@ in
48795         math.in.h.
48796         * modules/round: New file.
48797         * modules/round-tests: New file.
48798         * modules/roundf: New file.
48799         * modules/roundf-tests: New file.
48800         * modules/roundl: New file.
48801         * modules/roundl-tests: New file.
48802         * tests/test-round1.c: New file.
48803         * tests/test-round2.c: New file.
48804         * tests/test-roundf1.c: New file.
48805         * tests/test-roundf2.c: New file.
48806         * tests/test-roundl.c: New file.
48807         * doc/functions/round.texi: Mention round module.
48808         * doc/functions/roundf.texi: Mention roundf module.
48809         * doc/functions/roundl.texi: Mention roundl module.
48810         * MODULES.html.sh: Mention new modules.
48811         Thanks to Bruno Haible for suggestions.
48812
48813 2007-10-20  Jim Meyering  <meyering@redhat.com>
48814
48815         * lib/xprintf.c: Include <config.h> unconditionally.
48816
48817         Change xprintf's license to GPL.
48818         * modules/xprintf (License): s/LGPL/GPL/, since this module
48819         depends on modules (exit and exitfail) which are GPL.
48820         Suggestion from Bruno Haible.
48821
48822         xprintf fixes.
48823         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48824         Use a clearer diagnostic.
48825         Patch from Bruno Haible.
48826
48827 2007-10-20  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48830         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48832
48833 2007-10-20  Bruno Haible  <bruno@clisp.org>
48834
48835         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48836         precision in the comparison result > x - 1 or similar.
48837         * tests/test-ceilf2.c (correct_result_p): Likewise.
48838         * tests/test-truncf2.c (correct_result_p): Likewise.
48839         * tests/test-trunc2.c (correct_result_p): Likewise.
48840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48841
48842 2007-10-20  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/ceil: New file.
48845         * m4/ceil.m4: New file.
48846         * doc/functions/ceil.texi: Mention the 'ceil' module.
48847
48848 2007-10-20  Bruno Haible  <bruno@clisp.org>
48849
48850         * modules/floor: New file.
48851         * m4/floor.m4: New file.
48852         * doc/functions/floor.texi: Mention the 'floor' module.
48853
48854 2007-10-20  Bruno Haible  <bruno@clisp.org>
48855
48856         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48857         of %a.
48858         * modules/floorf-tests (Depends-on): Likewise.
48859         * modules/truncf-tests (Depends-on): Likewise.
48860         * modules/trunc-tests (Depends-on): Likewise.
48861         Reported by Ben Pfaff.
48862
48863 2007-10-19  Jim Meyering  <meyering@redhat.com>
48864
48865         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48866         Don't bother testing specific errno values.  Just test ferror.
48867
48868         New module: xprintf
48869         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48870
48871 2007-10-19  Bruno Haible  <bruno@clisp.org>
48872
48873         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48874         syntax.
48875         * modules/javaexec (Makefile.am): Likewise.
48876         * modules/relocatable-prog (Makefile.am): Likewise.
48877         Suggested by Jim Meyering.
48878
48879 2007-10-18  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48882         Reported by Jim Meyering.
48883
48884 2007-10-18  Eric Blake  <ebb9@byu.net>
48885
48886         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48887
48888 2007-10-18  Bruno Haible  <bruno@clisp.org>
48889
48890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48891         the format string into writable memory. Needed in Fortify conditions.
48892
48893 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48894             Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48897         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48898         * modules/trim (Depends-on): Add mbchar.
48899         (configure.ac): Add gl_FUNC_MBRTOWC.
48900         (Makefile.am): Augment lib_SOURCES.
48901
48902 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48903
48904         Modify glob.c to use fstatat and dirfd, to simplify it.
48905         Suggested by Eric Blake.
48906         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48907         Don't include <stdbool.h>; not used.
48908         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48909         (link_exists_p): Simplify implementation, since we can now assume
48910         dirfd and fstatat.
48911         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48912
48913 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48914
48915         * gnulib-tool (func_get_dependencies): Fix sed script to
48916         match only tests.
48917
48918 2007-10-17  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48921         allow locale names without encoding suffix.
48922         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48923         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48924
48925 2007-10-16  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48928         * lib/getgroups.c (getgroups): Likewise.
48929         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48930
48931 2007-10-16  Bruno Haible  <bruno@clisp.org>
48932
48933         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48934         * modules/malloc-posix (License): Likewise.
48935         * modules/realloc-posix (License): Likewise.
48936         * modules/calloc-posix (License): Likewise.
48937         * modules/intprops (License): Change from GPL to LGPL, with
48938         Paul Eggert's approval.
48939
48940 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         Merge glibc changes into lib/glob.c.
48943
48944         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48945         2007-10-15 04:59:03 UTC.  Here are the changes:
48946
48947         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48948
48949         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48950
48951         * lib/glob.c: Add some branch prediction throughout.
48952
48953         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48954
48955         [BZ #5103]
48956         * lib/glob.c (glob): Recognize patterns starting \/.
48957
48958         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48959
48960         [BZ #3996]
48961         * lib/glob.c (attribute_hidden): Define if not defined.
48962         (glob): Unescape dirname, filename or username when needed and not
48963         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48964         is NULL.  Handle unescaped [ in pattern without closing ].
48965         Don't pass GLOB_CHECK down to recursive glob for directories.
48966         (__glob_pattern_type): New function.
48967         (__glob_pattern_p): Implement using __glob_pattern_type.
48968         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48969         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48970         Remove unreachable code.
48971
48972         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48973
48974         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48975         explain why there are no leaks.
48976
48977         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48978
48979         [BZ #3253]
48980         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48981         time, rather allocate increasingly bigger arrays of pointers, if
48982         possible with alloca, if too large with malloc.
48983
48984 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48987         Problem reported by H.Merijn Brand in
48988         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48989         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48990         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48991
48992 2007-10-15  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48995         with explicit rpl_ prefix.
48996         * lib/fopen.c (fopen): Likewise.
48997         * lib/freopen.c (freopen): Likewise.
48998         * lib/iconv.c (iconv): Likewise.
48999         * lib/iconv_close.c (iconv_close): Likewise.
49000
49001 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49002
49003         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49004
49005 2007-10-15  Bruno Haible  <bruno@clisp.org>
49006
49007         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49008         <stddef.h> instead of <stdlib.h> since we only need NULL.
49009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49010
49011 2007-10-15  Bruno Haible  <bruno@clisp.org>
49012
49013         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49014         Replace paragraph talking about LIBOBJS.
49015         Reported by Colin Watson <cjwatson@debian.org>.
49016
49017 2007-10-15  Bruno Haible  <bruno@clisp.org>
49018
49019         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49020         <stdlib.h> before using NULL.
49021
49022 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49023
49024         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49025         Reported by Albert Chin <china@thewrittenword.com>.
49026
49027 2007-10-14  Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/iconv_open-utf-tests: New file.
49030         * tests/test-iconv-utf.c: New file.
49031
49032         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49033         * modules/iconv_open-utf: New file.
49034         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49035         (iconv, iconv_close): New declarations.
49036         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49037         be defined.
49038         (iconv_open): Add special handling of conversion between UTF-8 and
49039         UTF-{16,32}{BE,LE}.
49040         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49041         * lib/iconv_close.c: New file.
49042         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49043         gl_FUNC_ICONV_OPEN.
49044         (gl_FUNC_ICONV_OPEN): Use it.
49045         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49046         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49047         and REPLACE_ICONV_UTF.
49048         * modules/iconv_open (Depends-on): Add c-strcase.
49049         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49050         ICONV_CONST.
49051         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49052
49053 2007-10-13  Albert Chin  <china@thewrittenword.com>
49054             Bruno Haible  <bruno@clisp.org>
49055
49056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49057         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49058
49059 2007-10-13  Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49062         defined, use the ISO C99 inline semantics.
49063         * lib/argp.h (ARGP_EI): Likewise.
49064
49065 2007-10-13  Bruno Haible  <bruno@clisp.org>
49066
49067         Handle 'inline' change in gcc 4.3.0.
49068         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49069         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49070         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49071         argp_fmtstream_point): Disable 'extern' declaration if the function
49072         definition is going to be provided inline.
49073         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49074         semantics, not the ISO C99 inline semantics.
49075         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49076         'extern' declaration if the function definition is going to be provided
49077         inline.
49078         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49079         the GNU C inline semantics, not the ISO C99 inline semantics. With
49080         GCC 4.2, avoid a warning.
49081
49082 2007-10-13  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/freading.h (freading): Enable the use of __freading for
49085         glibc >= 2.7.
49086         * lib/freading.c (freading): Likewise.
49087
49088 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49091         "warning: C99 inline functions are not supported; using GNU89".
49092
49093 2007-10-12  Bruno Haible  <bruno@clisp.org>
49094
49095         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49096         of 2.
49097         * tests/test-ceilf2.c: New file.
49098         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49099
49100         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49101         * modules/ceilf-tests: Update.
49102
49103 2007-10-12  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49106         of 2.
49107         * tests/test-floorf2.c: New file.
49108         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49109
49110         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49111         * modules/floorf-tests: Update.
49112
49113 2007-10-12  Bruno Haible  <bruno@clisp.org>
49114
49115         * tests/test-trunc2.c: New file.
49116         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49117
49118         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49119         * modules/trunc-tests: Update.
49120
49121 2007-10-12  Bruno Haible  <bruno@clisp.org>
49122
49123         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49124         of 2.
49125         * tests/test-truncf2.c: New file.
49126         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49127
49128         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49129         * modules/truncf-tests: Update.
49130
49131 2007-10-11  Eric Blake  <ebb9@byu.net>
49132
49133         Don't claim strerror is broken on Interix.
49134         * doc/functions/strerror.texi (strerror): Known broken systems are
49135         now Solaris 8, and not Interix.
49136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49137         Interix on cross-compile.
49138         Reported by Martin Koeppe in
49139         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49140
49141 2007-10-11  Bruno Haible  <bruno@clisp.org>
49142
49143         * modules/i-ring-tests: New file.
49144         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49145         instead of assert.
49146
49147 2007-10-11  Bruno Haible  <bruno@clisp.org>
49148
49149         * modules/filenamecat-tests: New file.
49150         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49151         * lib/filenamecat.c: Remove test code.
49152
49153 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49154
49155         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49156
49157         * lib/strerror.c: Include <string.h> always, to test interface,
49158         and to remove the need for the dummy.
49159         Include intprops.h to compute width instead of doing it ourselves
49160         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49161         (strerror): Define it to return NULL if there's no system strerror.
49162         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49163         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49164         ancient pre-strerror Unix systems well any more.  Saying "unknown
49165         system error" is enough.
49166         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49167         simpler strerror.c implementation.
49168         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49169         Simplify the tests to reflect the simpler strerror implementation.
49170         * modules/strerror (Depends-on): Add intprops.
49171
49172 2007-10-09  Eric Blake  <ebb9@byu.net>
49173
49174         Silence test-fpending.
49175         * modules/fpending-tests (Files): Add wrapper script.
49176         * tests/test-fpending.sh: New file.
49177
49178 2007-10-09  Bruno Haible  <bruno@clisp.org>
49179
49180         * MODULES.html.sh (func_module): Don't create a hyperlink for
49181         function names like 'printf_frexp'.
49182         (Misc): Add crc, memxor.
49183         (Characteristics of floating types): New section.
49184         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49185         isnanf-nolibm, signbit, trunc, truncf, truncl.
49186         (Enhancements for ISO C 99 functions): New subsection Input/output.
49187         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49188         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49189         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49190         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49191         (Enhancements for POSIX:2001 functions): Add chdir-long.
49192         (File system functions): Add areadlink, chdir-safer, read-file.
49193         Remove cycle-check.
49194         (File system as inode set): New section.
49195         (Date and time): Add gethrxtime.
49196         (Multithreading): Add openmp.
49197         (Internationalization functions): Add localename.
49198         (Unicode string functions): Add unistr/u*-mbsnlen.
49199         (Support for maintaining and releasing projects): Add git-version-gen.
49200         (Lone files): Remove directories.
49201
49202 2007-10-08  Ben Pfaff  <blp@gnu.org>
49203
49204         * lib/xmalloca.h: Fix typo in comment.
49205
49206 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49209         when avoiding problems with integer overflow.  Use a portable test
49210         instead.
49211
49212 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49213
49214         * modules/dummy (License): Change to LGPLv2+.
49215         * modules/float (License): Likewise
49216         * modules/realloc (License): Likewise
49217         * modules/stdlib (License): Likewise
49218
49219 2007-10-07  Bruno Haible  <bruno@clisp.org>
49220
49221         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49222         * floor.c (TWO_MANT_DIG): Likewise.
49223         * ceil.c (TWO_MANT_DIG): Likewise.
49224         Reported by Ben Pfaff.
49225
49226 2007-10-07  Bruno Haible  <bruno@clisp.org>
49227
49228         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49229         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49230         * lib/frexp.c (FUNC): Likewise.
49231         * lib/printf-frexp.h (printf_frexp): Likewise.
49232         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49233         * lib/printf-frexp.c (FUNC): Likewise.
49234         Suggested by Jim Meyering.
49235
49236 2007-10-07  Jim Meyering  <meyering@redhat.com>
49237
49238         Make xnanosleep's integer overflow test more robust.
49239         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49240         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49241
49242 2007-10-07  Bruno Haible  <bruno@clisp.org>
49243
49244         * NEWS: Mention the license change.
49245
49246         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49247         abbreviations in the modules files.
49248
49249         Change copyright notice from GPLv2+ to GPLv3+.
49250         * README: Change copyright notice.
49251         * MODULES.html.sh: Likewise.
49252         * build-aux/bootstrap.conf: Likewise.
49253         * build-aux/config.libpath: Likewise.
49254         * build-aux/csharpcomp.sh.in: Likewise.
49255         * build-aux/csharpexec.sh.in: Likewise.
49256         * build-aux/install-reloc: Likewise.
49257         * build-aux/javacomp.sh.in: Likewise.
49258         * build-aux/javaexec.sh.in: Likewise.
49259         * build-aux/ldd.sh.in: Likewise.
49260         * build-aux/reloc-ldflags: Likewise.
49261         * build-aux/relocatable.sh.in: Likewise.
49262         * build-aux/x-to-1.in: Likewise.
49263         * check-module: Likewise.
49264         * config/srclistvars.sh: Likewise.
49265         * gnulib-tool: Likewise.
49266         * lib/acl-internal.h: Likewise.
49267         * lib/acl.c: Likewise.
49268         * lib/acl.h: Likewise.
49269         * lib/acl_entries.c: Likewise.
49270         * lib/areadlink-with-size.c: Likewise.
49271         * lib/areadlink.c: Likewise.
49272         * lib/areadlink.h: Likewise.
49273         * lib/argmatch.c: Likewise.
49274         * lib/argmatch.h: Likewise.
49275         * lib/argp-ba.c: Likewise.
49276         * lib/argp-eexst.c: Likewise.
49277         * lib/argp-fmtstream.c: Likewise.
49278         * lib/argp-fmtstream.h: Likewise.
49279         * lib/argp-fs-xinl.c: Likewise.
49280         * lib/argp-help.c: Likewise.
49281         * lib/argp-namefrob.h: Likewise.
49282         * lib/argp-parse.c: Likewise.
49283         * lib/argp-pin.c: Likewise.
49284         * lib/argp-pv.c: Likewise.
49285         * lib/argp-pvh.c: Likewise.
49286         * lib/argp-xinl.c: Likewise.
49287         * lib/argp.h: Likewise.
49288         * lib/at-func.c: Likewise.
49289         * lib/atanl.c: Likewise.
49290         * lib/backupfile.c: Likewise.
49291         * lib/backupfile.h: Likewise.
49292         * lib/basename.c: Likewise.
49293         * lib/binary-io.h: Likewise.
49294         * lib/byteswap.in.h: Likewise.
49295         * lib/c-stack.c: Likewise.
49296         * lib/c-stack.h: Likewise.
49297         * lib/c-strcasestr.c: Likewise.
49298         * lib/c-strcasestr.h: Likewise.
49299         * lib/c-strstr.c: Likewise.
49300         * lib/c-strstr.h: Likewise.
49301         * lib/c-strtod.c: Likewise.
49302         * lib/calloc.c: Likewise.
49303         * lib/canon-host.c: Likewise.
49304         * lib/canon-host.h: Likewise.
49305         * lib/canonicalize-lgpl.c: Likewise.
49306         * lib/canonicalize.c: Likewise.
49307         * lib/canonicalize.h: Likewise.
49308         * lib/ceil.c: Likewise.
49309         * lib/ceilf.c: Likewise.
49310         * lib/ceill.c: Likewise.
49311         * lib/chdir-long.c: Likewise.
49312         * lib/chdir-long.h: Likewise.
49313         * lib/chdir-safer.c: Likewise.
49314         * lib/chdir-safer.h: Likewise.
49315         * lib/chown.c: Likewise.
49316         * lib/classpath.c: Likewise.
49317         * lib/classpath.h: Likewise.
49318         * lib/clean-temp.c: Likewise.
49319         * lib/clean-temp.h: Likewise.
49320         * lib/cloexec.c: Likewise.
49321         * lib/close-stream.c: Likewise.
49322         * lib/closein.c: Likewise.
49323         * lib/closein.h: Likewise.
49324         * lib/closeout.c: Likewise.
49325         * lib/closeout.h: Likewise.
49326         * lib/concat-filename.c: Likewise.
49327         * lib/copy-file.c: Likewise.
49328         * lib/copy-file.h: Likewise.
49329         * lib/count-one-bits.h: Likewise.
49330         * lib/crc.c: Likewise.
49331         * lib/crc.h: Likewise.
49332         * lib/creat-safer.c: Likewise.
49333         * lib/csharpcomp.c: Likewise.
49334         * lib/csharpcomp.h: Likewise.
49335         * lib/csharpexec.c: Likewise.
49336         * lib/csharpexec.h: Likewise.
49337         * lib/cycle-check.c: Likewise.
49338         * lib/cycle-check.h: Likewise.
49339         * lib/diacrit.c: Likewise.
49340         * lib/diacrit.h: Likewise.
49341         * lib/diffseq.h: Likewise.
49342         * lib/dirchownmod.c: Likewise.
49343         * lib/dirent.in.h: Likewise.
49344         * lib/dirfd.c: Likewise.
49345         * lib/dirfd.h: Likewise.
49346         * lib/dirname.c: Likewise.
49347         * lib/dirname.h: Likewise.
49348         * lib/dummy.c: Likewise.
49349         * lib/dup-safer.c: Likewise.
49350         * lib/dup2.c: Likewise.
49351         * lib/eealloc.h: Likewise.
49352         * lib/error.c: Likewise.
49353         * lib/error.h: Likewise.
49354         * lib/euidaccess.c: Likewise.
49355         * lib/exclude.c: Likewise.
49356         * lib/exclude.h: Likewise.
49357         * lib/execute.c: Likewise.
49358         * lib/execute.h: Likewise.
49359         * lib/exitfail.c: Likewise.
49360         * lib/exitfail.h: Likewise.
49361         * lib/expl.c: Likewise.
49362         * lib/fatal-signal.c: Likewise.
49363         * lib/fatal-signal.h: Likewise.
49364         * lib/fbufmode.c: Likewise.
49365         * lib/fbufmode.h: Likewise.
49366         * lib/fchdir.c: Likewise.
49367         * lib/fchmodat.c: Likewise.
49368         * lib/fchownat.c: Likewise.
49369         * lib/fcntl--.h: Likewise.
49370         * lib/fcntl-safer.h: Likewise.
49371         * lib/fcntl.in.h: Likewise.
49372         * lib/fd-safer.c: Likewise.
49373         * lib/fflush.c: Likewise.
49374         * lib/file-has-acl.c: Likewise.
49375         * lib/file-set.c: Likewise.
49376         * lib/file-type.c: Likewise.
49377         * lib/file-type.h: Likewise.
49378         * lib/fileblocks.c: Likewise.
49379         * lib/filemode.c: Likewise.
49380         * lib/filemode.h: Likewise.
49381         * lib/filename.h: Likewise.
49382         * lib/filenamecat.c: Likewise.
49383         * lib/filenamecat.h: Likewise.
49384         * lib/findprog.c: Likewise.
49385         * lib/findprog.h: Likewise.
49386         * lib/float.in.h: Likewise.
49387         * lib/floor.c: Likewise.
49388         * lib/floorf.c: Likewise.
49389         * lib/floorl.c: Likewise.
49390         * lib/fopen-safer.c: Likewise.
49391         * lib/fopen.c: Likewise.
49392         * lib/fpending.c: Likewise.
49393         * lib/fpending.h: Likewise.
49394         * lib/fprintf.c: Likewise.
49395         * lib/fprintftime.h: Likewise.
49396         * lib/fpucw.h: Likewise.
49397         * lib/fpurge.c: Likewise.
49398         * lib/fpurge.h: Likewise.
49399         * lib/freadable.c: Likewise.
49400         * lib/freadable.h: Likewise.
49401         * lib/freadahead.c: Likewise.
49402         * lib/freadahead.h: Likewise.
49403         * lib/freading.c: Likewise.
49404         * lib/freading.h: Likewise.
49405         * lib/free.c: Likewise.
49406         * lib/freopen.c: Likewise.
49407         * lib/frexp.c: Likewise.
49408         * lib/frexpl.c: Likewise.
49409         * lib/fseek.c: Likewise.
49410         * lib/fseterr.c: Likewise.
49411         * lib/fseterr.h: Likewise.
49412         * lib/fstatat.c: Likewise.
49413         * lib/fstrcmp.c: Likewise.
49414         * lib/fstrcmp.h: Likewise.
49415         * lib/fsusage.c: Likewise.
49416         * lib/fsusage.h: Likewise.
49417         * lib/ftell.c: Likewise.
49418         * lib/ftello.c: Likewise.
49419         * lib/fts-cycle.c: Likewise.
49420         * lib/fts.c: Likewise.
49421         * lib/fts_.h: Likewise.
49422         * lib/full-read.c: Likewise.
49423         * lib/full-read.h: Likewise.
49424         * lib/full-write.c: Likewise.
49425         * lib/full-write.h: Likewise.
49426         * lib/fwritable.c: Likewise.
49427         * lib/fwritable.h: Likewise.
49428         * lib/fwriteerror.c: Likewise.
49429         * lib/fwriteerror.h: Likewise.
49430         * lib/fwriting.c: Likewise.
49431         * lib/fwriting.h: Likewise.
49432         * lib/gcd.c: Likewise.
49433         * lib/gcd.h: Likewise.
49434         * lib/getcwd.c: Likewise.
49435         * lib/getdate.h: Likewise.
49436         * lib/getdate.y: Likewise.
49437         * lib/getdomainname.c: Likewise.
49438         * lib/getdomainname.h: Likewise.
49439         * lib/getgroups.c: Likewise.
49440         * lib/gethostname.c: Likewise.
49441         * lib/gethrxtime.c: Likewise.
49442         * lib/gethrxtime.h: Likewise.
49443         * lib/getloadavg.c: Likewise.
49444         * lib/getndelim2.c: Likewise.
49445         * lib/getndelim2.h: Likewise.
49446         * lib/getnline.c: Likewise.
49447         * lib/getnline.h: Likewise.
49448         * lib/getopt.c: Likewise.
49449         * lib/getopt.in.h: Likewise.
49450         * lib/getopt1.c: Likewise.
49451         * lib/getopt_int.h: Likewise.
49452         * lib/getpagesize.h: Likewise.
49453         * lib/getsubopt.c: Likewise.
49454         * lib/gettime.c: Likewise.
49455         * lib/getugroups.c: Likewise.
49456         * lib/getugroups.h: Likewise.
49457         * lib/getusershell.c: Likewise.
49458         * lib/gl_anyavltree_list1.h: Likewise.
49459         * lib/gl_anyavltree_list2.h: Likewise.
49460         * lib/gl_anyhash_list1.h: Likewise.
49461         * lib/gl_anyhash_list2.h: Likewise.
49462         * lib/gl_anylinked_list1.h: Likewise.
49463         * lib/gl_anylinked_list2.h: Likewise.
49464         * lib/gl_anyrbtree_list1.h: Likewise.
49465         * lib/gl_anyrbtree_list2.h: Likewise.
49466         * lib/gl_anytree_list1.h: Likewise.
49467         * lib/gl_anytree_list2.h: Likewise.
49468         * lib/gl_anytree_oset.h: Likewise.
49469         * lib/gl_anytreehash_list1.h: Likewise.
49470         * lib/gl_anytreehash_list2.h: Likewise.
49471         * lib/gl_array_list.c: Likewise.
49472         * lib/gl_array_list.h: Likewise.
49473         * lib/gl_array_oset.c: Likewise.
49474         * lib/gl_array_oset.h: Likewise.
49475         * lib/gl_avltree_list.c: Likewise.
49476         * lib/gl_avltree_list.h: Likewise.
49477         * lib/gl_avltree_oset.c: Likewise.
49478         * lib/gl_avltree_oset.h: Likewise.
49479         * lib/gl_avltreehash_list.c: Likewise.
49480         * lib/gl_avltreehash_list.h: Likewise.
49481         * lib/gl_carray_list.c: Likewise.
49482         * lib/gl_carray_list.h: Likewise.
49483         * lib/gl_linked_list.c: Likewise.
49484         * lib/gl_linked_list.h: Likewise.
49485         * lib/gl_linkedhash_list.c: Likewise.
49486         * lib/gl_linkedhash_list.h: Likewise.
49487         * lib/gl_list.c: Likewise.
49488         * lib/gl_list.h: Likewise.
49489         * lib/gl_oset.c: Likewise.
49490         * lib/gl_oset.h: Likewise.
49491         * lib/gl_rbtree_list.c: Likewise.
49492         * lib/gl_rbtree_list.h: Likewise.
49493         * lib/gl_rbtree_oset.c: Likewise.
49494         * lib/gl_rbtree_oset.h: Likewise.
49495         * lib/gl_rbtreehash_list.c: Likewise.
49496         * lib/gl_rbtreehash_list.h: Likewise.
49497         * lib/gl_sublist.c: Likewise.
49498         * lib/gl_sublist.h: Likewise.
49499         * lib/group-member.c: Likewise.
49500         * lib/group-member.h: Likewise.
49501         * lib/hard-locale.c: Likewise.
49502         * lib/hard-locale.h: Likewise.
49503         * lib/hash-pjw.c: Likewise.
49504         * lib/hash-pjw.h: Likewise.
49505         * lib/hash-triple.c: Likewise.
49506         * lib/hash.c: Likewise.
49507         * lib/hash.h: Likewise.
49508         * lib/human.c: Likewise.
49509         * lib/human.h: Likewise.
49510         * lib/i-ring.c: Likewise.
49511         * lib/i-ring.h: Likewise.
49512         * lib/idcache.c: Likewise.
49513         * lib/imaxabs.c: Likewise.
49514         * lib/imaxdiv.c: Likewise.
49515         * lib/inet_pton.c: Likewise.
49516         * lib/inet_pton.h: Likewise.
49517         * lib/intprops.h: Likewise.
49518         * lib/inttostr.c: Likewise.
49519         * lib/inttostr.h: Likewise.
49520         * lib/inttypes.in.h: Likewise.
49521         * lib/isapipe.c: Likewise.
49522         * lib/isdir.c: Likewise.
49523         * lib/isnan.c: Likewise.
49524         * lib/isnan.h: Likewise.
49525         * lib/isnanf.c: Likewise.
49526         * lib/isnanf.h: Likewise.
49527         * lib/isnanl-nolibm.h: Likewise.
49528         * lib/isnanl.c: Likewise.
49529         * lib/isnanl.h: Likewise.
49530         * lib/javacomp.c: Likewise.
49531         * lib/javacomp.h: Likewise.
49532         * lib/javaexec.c: Likewise.
49533         * lib/javaexec.h: Likewise.
49534         * lib/javaversion.c: Likewise.
49535         * lib/javaversion.h: Likewise.
49536         * lib/javaversion.java: Likewise.
49537         * lib/lbrkprop.h: Likewise.
49538         * lib/lchmod.h: Likewise.
49539         * lib/lchown.c: Likewise.
49540         * lib/ldexpl.c: Likewise.
49541         * lib/linebreak.c: Likewise.
49542         * lib/linebreak.h: Likewise.
49543         * lib/linebuffer.c: Likewise.
49544         * lib/linebuffer.h: Likewise.
49545         * lib/locale.in.h: Likewise.
49546         * lib/logl.c: Likewise.
49547         * lib/long-options.c: Likewise.
49548         * lib/long-options.h: Likewise.
49549         * lib/lstat.c: Likewise.
49550         * lib/lstat.h: Likewise.
49551         * lib/math.in.h: Likewise.
49552         * lib/mbchar.c: Likewise.
49553         * lib/mbchar.h: Likewise.
49554         * lib/mbfile.h: Likewise.
49555         * lib/mbiter.h: Likewise.
49556         * lib/mbscasecmp.c: Likewise.
49557         * lib/mbscasestr.c: Likewise.
49558         * lib/mbschr.c: Likewise.
49559         * lib/mbscspn.c: Likewise.
49560         * lib/mbslen.c: Likewise.
49561         * lib/mbsncasecmp.c: Likewise.
49562         * lib/mbsnlen.c: Likewise.
49563         * lib/mbspbrk.c: Likewise.
49564         * lib/mbspcasecmp.c: Likewise.
49565         * lib/mbsrchr.c: Likewise.
49566         * lib/mbssep.c: Likewise.
49567         * lib/mbsspn.c: Likewise.
49568         * lib/mbsstr.c: Likewise.
49569         * lib/mbstok_r.c: Likewise.
49570         * lib/mbswidth.c: Likewise.
49571         * lib/mbswidth.h: Likewise.
49572         * lib/mbuiter.h: Likewise.
49573         * lib/memcasecmp.c: Likewise.
49574         * lib/memcasecmp.h: Likewise.
49575         * lib/memchr.c: Likewise.
49576         * lib/memcmp.c: Likewise.
49577         * lib/memcoll.c: Likewise.
49578         * lib/memcoll.h: Likewise.
49579         * lib/memcpy.c: Likewise.
49580         * lib/memrchr.c: Likewise.
49581         * lib/mkancesdirs.c: Likewise.
49582         * lib/mkdir-p.c: Likewise.
49583         * lib/mkdir-p.h: Likewise.
49584         * lib/mkdir.c: Likewise.
49585         * lib/mkdirat.c: Likewise.
49586         * lib/mkdtemp.c: Likewise.
49587         * lib/mkstemp-safer.c: Likewise.
49588         * lib/mkstemp.c: Likewise.
49589         * lib/modechange.c: Likewise.
49590         * lib/modechange.h: Likewise.
49591         * lib/mountlist.c: Likewise.
49592         * lib/mountlist.h: Likewise.
49593         * lib/mpsort.c: Likewise.
49594         * lib/nanosleep.c: Likewise.
49595         * lib/obstack.c: Likewise.
49596         * lib/obstack.h: Likewise.
49597         * lib/open-safer.c: Likewise.
49598         * lib/open.c: Likewise.
49599         * lib/openat-die.c: Likewise.
49600         * lib/openat-priv.h: Likewise.
49601         * lib/openat-proc.c: Likewise.
49602         * lib/openat.c: Likewise.
49603         * lib/openat.h: Likewise.
49604         * lib/pagealign_alloc.c: Likewise.
49605         * lib/pagealign_alloc.h: Likewise.
49606         * lib/physmem.c: Likewise.
49607         * lib/physmem.h: Likewise.
49608         * lib/pipe-safer.c: Likewise.
49609         * lib/pipe.c: Likewise.
49610         * lib/pipe.h: Likewise.
49611         * lib/posixtm.c: Likewise.
49612         * lib/posixtm.h: Likewise.
49613         * lib/posixver.c: Likewise.
49614         * lib/printf-frexp.c: Likewise.
49615         * lib/printf-frexp.h: Likewise.
49616         * lib/printf-frexpl.c: Likewise.
49617         * lib/printf-frexpl.h: Likewise.
49618         * lib/printf.c: Likewise.
49619         * lib/progname.c: Likewise.
49620         * lib/progname.h: Likewise.
49621         * lib/progreloc.c: Likewise.
49622         * lib/putenv.c: Likewise.
49623         * lib/quote.c: Likewise.
49624         * lib/quote.h: Likewise.
49625         * lib/quotearg.c: Likewise.
49626         * lib/quotearg.h: Likewise.
49627         * lib/raise.c: Likewise.
49628         * lib/readline.c: Likewise.
49629         * lib/readline.h: Likewise.
49630         * lib/readlink.c: Likewise.
49631         * lib/readtokens.c: Likewise.
49632         * lib/readtokens.h: Likewise.
49633         * lib/readtokens0.c: Likewise.
49634         * lib/readtokens0.h: Likewise.
49635         * lib/readutmp.c: Likewise.
49636         * lib/readutmp.h: Likewise.
49637         * lib/realloc.c: Likewise.
49638         * lib/relocwrapper.c: Likewise.
49639         * lib/rename-dest-slash.c: Likewise.
49640         * lib/rename.c: Likewise.
49641         * lib/rmdir.c: Likewise.
49642         * lib/rpmatch.c: Likewise.
49643         * lib/safe-read.c: Likewise.
49644         * lib/safe-read.h: Likewise.
49645         * lib/safe-write.c: Likewise.
49646         * lib/safe-write.h: Likewise.
49647         * lib/same-inode.h: Likewise.
49648         * lib/same.c: Likewise.
49649         * lib/same.h: Likewise.
49650         * lib/save-cwd.c: Likewise.
49651         * lib/save-cwd.h: Likewise.
49652         * lib/savedir.c: Likewise.
49653         * lib/savedir.h: Likewise.
49654         * lib/savewd.c: Likewise.
49655         * lib/savewd.h: Likewise.
49656         * lib/search.in.h: Likewise.
49657         * lib/setenv.c: Likewise.
49658         * lib/setenv.h: Likewise.
49659         * lib/settime.c: Likewise.
49660         * lib/sh-quote.c: Likewise.
49661         * lib/sh-quote.h: Likewise.
49662         * lib/sig2str.c: Likewise.
49663         * lib/sig2str.h: Likewise.
49664         * lib/signal.in.h: Likewise.
49665         * lib/signbitd.c: Likewise.
49666         * lib/signbitf.c: Likewise.
49667         * lib/signbitl.c: Likewise.
49668         * lib/sigprocmask.c: Likewise.
49669         * lib/sincosl.c: Likewise.
49670         * lib/sleep.c: Likewise.
49671         * lib/sprintf.c: Likewise.
49672         * lib/sqrtl.c: Likewise.
49673         * lib/stat-time.h: Likewise.
49674         * lib/stdio--.h: Likewise.
49675         * lib/stdio-safer.h: Likewise.
49676         * lib/stdlib--.h: Likewise.
49677         * lib/stdlib-safer.h: Likewise.
49678         * lib/stdlib.in.h: Likewise.
49679         * lib/stpcpy.c: Likewise.
49680         * lib/stpncpy.c: Likewise.
49681         * lib/strchrnul.c: Likewise.
49682         * lib/strcspn.c: Likewise.
49683         * lib/strerror.c: Likewise.
49684         * lib/strftime.c: Likewise.
49685         * lib/strftime.h: Likewise.
49686         * lib/striconveh.c: Likewise.
49687         * lib/striconveh.h: Likewise.
49688         * lib/striconveha.c: Likewise.
49689         * lib/striconveha.h: Likewise.
49690         * lib/stripslash.c: Likewise.
49691         * lib/strnlen1.c: Likewise.
49692         * lib/strnlen1.h: Likewise.
49693         * lib/strtod.c: Likewise.
49694         * lib/strtoimax.c: Likewise.
49695         * lib/strtok_r.c: Likewise.
49696         * lib/strtol.c: Likewise.
49697         * lib/strtoll.c: Likewise.
49698         * lib/strtoul.c: Likewise.
49699         * lib/strtoull.c: Likewise.
49700         * lib/sysexits.in.h: Likewise.
49701         * lib/tempname.c: Likewise.
49702         * lib/tempname.h: Likewise.
49703         * lib/timespec.h: Likewise.
49704         * lib/tls.c: Likewise.
49705         * lib/tls.h: Likewise.
49706         * lib/tmpdir.c: Likewise.
49707         * lib/tmpdir.h: Likewise.
49708         * lib/tmpfile-safer.c: Likewise.
49709         * lib/tmpfile.c: Likewise.
49710         * lib/trigl.c: Likewise.
49711         * lib/trigl.h: Likewise.
49712         * lib/trim.c: Likewise.
49713         * lib/trim.h: Likewise.
49714         * lib/trunc.c: Likewise.
49715         * lib/truncf.c: Likewise.
49716         * lib/truncl.c: Likewise.
49717         * lib/tsearch.c: Likewise.
49718         * lib/unicodeio.c: Likewise.
49719         * lib/unicodeio.h: Likewise.
49720         * lib/unistd--.h: Likewise.
49721         * lib/unistd-safer.h: Likewise.
49722         * lib/unistdio/ulc-fprintf.c: Likewise.
49723         * lib/unistdio/ulc-vfprintf.c: Likewise.
49724         * lib/unlinkdir.c: Likewise.
49725         * lib/unlinkdir.h: Likewise.
49726         * lib/unlocked-io.h: Likewise.
49727         * lib/unsetenv.c: Likewise.
49728         * lib/userspec.c: Likewise.
49729         * lib/utime.c: Likewise.
49730         * lib/utimecmp.c: Likewise.
49731         * lib/utimecmp.h: Likewise.
49732         * lib/utimens.c: Likewise.
49733         * lib/verify.h: Likewise.
49734         * lib/verror.c: Likewise.
49735         * lib/verror.h: Likewise.
49736         * lib/version-etc-fsf.c: Likewise.
49737         * lib/version-etc.c: Likewise.
49738         * lib/version-etc.h: Likewise.
49739         * lib/vfprintf.c: Likewise.
49740         * lib/vprintf.c: Likewise.
49741         * lib/vsprintf.c: Likewise.
49742         * lib/w32spawn.h: Likewise.
49743         * lib/wait-process.c: Likewise.
49744         * lib/wait-process.h: Likewise.
49745         * lib/wcwidth.c: Likewise.
49746         * lib/write-any-file.c: Likewise.
49747         * lib/xalloc-die.c: Likewise.
49748         * lib/xalloc.h: Likewise.
49749         * lib/xasprintf.c: Likewise.
49750         * lib/xgetcwd.c: Likewise.
49751         * lib/xgetcwd.h: Likewise.
49752         * lib/xgetdomainname.c: Likewise.
49753         * lib/xgetdomainname.h: Likewise.
49754         * lib/xgethostname.c: Likewise.
49755         * lib/xmalloc.c: Likewise.
49756         * lib/xmalloca.c: Likewise.
49757         * lib/xmalloca.h: Likewise.
49758         * lib/xmemcoll.c: Likewise.
49759         * lib/xnanosleep.c: Likewise.
49760         * lib/xreadlink.c: Likewise.
49761         * lib/xreadlink.h: Likewise.
49762         * lib/xsetenv.c: Likewise.
49763         * lib/xsetenv.h: Likewise.
49764         * lib/xstriconv.c: Likewise.
49765         * lib/xstriconv.h: Likewise.
49766         * lib/xstrndup.c: Likewise.
49767         * lib/xstrndup.h: Likewise.
49768         * lib/xstrtod.c: Likewise.
49769         * lib/xstrtod.h: Likewise.
49770         * lib/xstrtol-error.c: Likewise.
49771         * lib/xstrtol.c: Likewise.
49772         * lib/xstrtol.h: Likewise.
49773         * lib/xtime.h: Likewise.
49774         * lib/xvasprintf.c: Likewise.
49775         * lib/xvasprintf.h: Likewise.
49776         * lib/yesno.c: Likewise.
49777         * lib/yesno.h: Likewise.
49778         * posix-modules: Likewise.
49779         * tests/test-alloca-opt.c: Likewise.
49780         * tests/test-arcfour.c: Likewise.
49781         * tests/test-arctwo.c: Likewise.
49782         * tests/test-argmatch.c: Likewise.
49783         * tests/test-argp-2.sh: Likewise.
49784         * tests/test-argp.c: Likewise.
49785         * tests/test-arpa_inet.c: Likewise.
49786         * tests/test-array_list.c: Likewise.
49787         * tests/test-array_oset.c: Likewise.
49788         * tests/test-atexit.c: Likewise.
49789         * tests/test-avltree_list.c: Likewise.
49790         * tests/test-avltree_oset.c: Likewise.
49791         * tests/test-avltreehash_list.c: Likewise.
49792         * tests/test-base64.c: Likewise.
49793         * tests/test-binary-io.c: Likewise.
49794         * tests/test-byteswap.c: Likewise.
49795         * tests/test-c-ctype.c: Likewise.
49796         * tests/test-c-strcasecmp.c: Likewise.
49797         * tests/test-c-strcasestr.c: Likewise.
49798         * tests/test-c-strncasecmp.c: Likewise.
49799         * tests/test-c-strstr.c: Likewise.
49800         * tests/test-canonicalize-lgpl.c: Likewise.
49801         * tests/test-canonicalize.c: Likewise.
49802         * tests/test-carray_list.c: Likewise.
49803         * tests/test-ceilf.c: Likewise.
49804         * tests/test-ceill.c: Likewise.
49805         * tests/test-count-one-bits.c: Likewise.
49806         * tests/test-crc.c: Likewise.
49807         * tests/test-dirname.c: Likewise.
49808         * tests/test-fbufmode.c: Likewise.
49809         * tests/test-fcntl.c: Likewise.
49810         * tests/test-fflush.c: Likewise.
49811         * tests/test-floorf.c: Likewise.
49812         * tests/test-floorl.c: Likewise.
49813         * tests/test-fopen.c: Likewise.
49814         * tests/test-fprintf-posix.c: Likewise.
49815         * tests/test-fprintf-posix.h: Likewise.
49816         * tests/test-fpurge.c: Likewise.
49817         * tests/test-freadable.c: Likewise.
49818         * tests/test-freadahead.c: Likewise.
49819         * tests/test-freading.c: Likewise.
49820         * tests/test-freopen.c: Likewise.
49821         * tests/test-frexp.c: Likewise.
49822         * tests/test-frexpl.c: Likewise.
49823         * tests/test-fseek.c: Likewise.
49824         * tests/test-fseeko.c: Likewise.
49825         * tests/test-fseterr.c: Likewise.
49826         * tests/test-fstrcmp.c: Likewise.
49827         * tests/test-ftell.c: Likewise.
49828         * tests/test-ftello.c: Likewise.
49829         * tests/test-fwritable.c: Likewise.
49830         * tests/test-fwriting.c: Likewise.
49831         * tests/test-getaddrinfo.c: Likewise.
49832         * tests/test-getpass.c: Likewise.
49833         * tests/test-gettimeofday.c: Likewise.
49834         * tests/test-hmac-md5.c: Likewise.
49835         * tests/test-hmac-sha1.c: Likewise.
49836         * tests/test-iconv.c: Likewise.
49837         * tests/test-iconvme.c: Likewise.
49838         * tests/test-inttypes.c: Likewise.
49839         * tests/test-isnan.c: Likewise.
49840         * tests/test-isnanf.c: Likewise.
49841         * tests/test-isnanl-nolibm.c: Likewise.
49842         * tests/test-isnanl.c: Likewise.
49843         * tests/test-isnanl.h: Likewise.
49844         * tests/test-ldexpl.c: Likewise.
49845         * tests/test-linked_list.c: Likewise.
49846         * tests/test-linkedhash_list.c: Likewise.
49847         * tests/test-locale.c: Likewise.
49848         * tests/test-localename.c: Likewise.
49849         * tests/test-lock.c: Likewise.
49850         * tests/test-lseek.c: Likewise.
49851         * tests/test-malloca.c: Likewise.
49852         * tests/test-math.c: Likewise.
49853         * tests/test-mbscasecmp.c: Likewise.
49854         * tests/test-mbscasestr1.c: Likewise.
49855         * tests/test-mbscasestr2.c: Likewise.
49856         * tests/test-mbscasestr3.c: Likewise.
49857         * tests/test-mbscasestr4.c: Likewise.
49858         * tests/test-mbschr.c: Likewise.
49859         * tests/test-mbscspn.c: Likewise.
49860         * tests/test-mbsncasecmp.c: Likewise.
49861         * tests/test-mbspbrk.c: Likewise.
49862         * tests/test-mbspcasecmp.c: Likewise.
49863         * tests/test-mbsrchr.c: Likewise.
49864         * tests/test-mbsspn.c: Likewise.
49865         * tests/test-mbsstr1.c: Likewise.
49866         * tests/test-mbsstr2.c: Likewise.
49867         * tests/test-mbsstr3.c: Likewise.
49868         * tests/test-md5.c: Likewise.
49869         * tests/test-memmem.c: Likewise.
49870         * tests/test-netinet_in.c: Likewise.
49871         * tests/test-open.c: Likewise.
49872         * tests/test-printf-frexp.c: Likewise.
49873         * tests/test-printf-frexpl.c: Likewise.
49874         * tests/test-printf-posix.c: Likewise.
49875         * tests/test-printf-posix.h: Likewise.
49876         * tests/test-rbtree_list.c: Likewise.
49877         * tests/test-rbtree_oset.c: Likewise.
49878         * tests/test-rbtreehash_list.c: Likewise.
49879         * tests/test-read-file.c: Likewise.
49880         * tests/test-rijndael.c: Likewise.
49881         * tests/test-search.c: Likewise.
49882         * tests/test-signbit.c: Likewise.
49883         * tests/test-sleep.c: Likewise.
49884         * tests/test-snprintf-posix.c: Likewise.
49885         * tests/test-snprintf-posix.h: Likewise.
49886         * tests/test-snprintf.c: Likewise.
49887         * tests/test-sprintf-posix.c: Likewise.
49888         * tests/test-sprintf-posix.h: Likewise.
49889         * tests/test-stat-time.c: Likewise.
49890         * tests/test-stdbool.c: Likewise.
49891         * tests/test-stdint.c: Likewise.
49892         * tests/test-stdio.c: Likewise.
49893         * tests/test-stdlib.c: Likewise.
49894         * tests/test-stpncpy.c: Likewise.
49895         * tests/test-strcasestr.c: Likewise.
49896         * tests/test-striconv.c: Likewise.
49897         * tests/test-striconveh.c: Likewise.
49898         * tests/test-striconveha.c: Likewise.
49899         * tests/test-string.c: Likewise.
49900         * tests/test-sys_select.c: Likewise.
49901         * tests/test-sys_socket.c: Likewise.
49902         * tests/test-sys_stat.c: Likewise.
49903         * tests/test-sys_time.c: Likewise.
49904         * tests/test-sysexits.c: Likewise.
49905         * tests/test-time.c: Likewise.
49906         * tests/test-tls.c: Likewise.
49907         * tests/test-trunc.c: Likewise.
49908         * tests/test-truncf.c: Likewise.
49909         * tests/test-truncl.c: Likewise.
49910         * tests/test-unistd.c: Likewise.
49911         * tests/test-vasnprintf-posix.c: Likewise.
49912         * tests/test-vasnprintf-posix2.c: Likewise.
49913         * tests/test-vasnprintf.c: Likewise.
49914         * tests/test-vasprintf-posix.c: Likewise.
49915         * tests/test-vasprintf.c: Likewise.
49916         * tests/test-verify.c: Likewise.
49917         * tests/test-vfprintf-posix.c: Likewise.
49918         * tests/test-vprintf-posix.c: Likewise.
49919         * tests/test-vsnprintf-posix.c: Likewise.
49920         * tests/test-vsnprintf.c: Likewise.
49921         * tests/test-vsprintf-posix.c: Likewise.
49922         * tests/test-wchar.c: Likewise.
49923         * tests/test-wctype.c: Likewise.
49924         * tests/test-wcwidth.c: Likewise.
49925         * tests/test-xstrtol.c: Likewise.
49926         * tests/test-xvasprintf.c: Likewise.
49927         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49928         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49929         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49930         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49931         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49932         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49933         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49934         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49935         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49936         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49937         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49938         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49939         * tests/uniname/test-uninames.c: Likewise.
49940         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49941         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49942         * tests/unistdio/test-u16-printf1.h: Likewise.
49943         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49944         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49945         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49946         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49947         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49948         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49949         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49950         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49951         * tests/unistdio/test-u32-printf1.h: Likewise.
49952         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49953         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49954         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49955         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49956         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49957         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49958         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49959         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49960         * tests/unistdio/test-u8-printf1.h: Likewise.
49961         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49962         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49963         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49964         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49965         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49966         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49967         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49968         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49969         * tests/unistdio/test-ulc-printf1.h: Likewise.
49970         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49971         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49972         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49973         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49974         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49975         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49976         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49977         * tests/uniwidth/test-u16-width.c: Likewise.
49978         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49979         * tests/uniwidth/test-u32-width.c: Likewise.
49980         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49981         * tests/uniwidth/test-u8-width.c: Likewise.
49982         * tests/uniwidth/test-uc_width.c: Likewise.
49983         * config/srclist-update: Likewise.
49984         (fixlicense): Update to GPLv3+.
49985
49986         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49987         * tests/test-tsearch.c: Change copyright notice.
49988
49989         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49990         * lib/c-strcaseeq.h: Change copyright notice.
49991         * lib/streq.h: Likewise.
49992         * lib/uniconv.h: Likewise.
49993         * lib/uniconv/u-conv-from-enc.h: Likewise.
49994         * lib/uniconv/u-conv-to-enc.h: Likewise.
49995         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49996         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49997         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49998         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49999         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50000         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50001         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50002         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50003         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50004         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50005         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50006         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50007         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50008         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50009         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50010         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50011         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50012         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50013         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50014         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50015         * lib/uniname.h: Likewise.
50016         * lib/uniname/uniname.c: Likewise.
50017         * lib/unistdio.h: Likewise.
50018         * lib/unistdio/u-asnprintf.h: Likewise.
50019         * lib/unistdio/u-asprintf.h: Likewise.
50020         * lib/unistdio/u-printf-args.c: Likewise.
50021         * lib/unistdio/u-printf-args.h: Likewise.
50022         * lib/unistdio/u-printf-parse.h: Likewise.
50023         * lib/unistdio/u-snprintf.h: Likewise.
50024         * lib/unistdio/u-sprintf.h: Likewise.
50025         * lib/unistdio/u-vasprintf.h: Likewise.
50026         * lib/unistdio/u-vsnprintf.h: Likewise.
50027         * lib/unistdio/u-vsprintf.h: Likewise.
50028         * lib/unistdio/u16-asnprintf.c: Likewise.
50029         * lib/unistdio/u16-asprintf.c: Likewise.
50030         * lib/unistdio/u16-printf-parse.c: Likewise.
50031         * lib/unistdio/u16-snprintf.c: Likewise.
50032         * lib/unistdio/u16-sprintf.c: Likewise.
50033         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50034         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50035         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50036         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50037         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50038         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50039         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50040         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50041         * lib/unistdio/u16-vasnprintf.c: Likewise.
50042         * lib/unistdio/u16-vasprintf.c: Likewise.
50043         * lib/unistdio/u16-vsnprintf.c: Likewise.
50044         * lib/unistdio/u16-vsprintf.c: Likewise.
50045         * lib/unistdio/u32-asnprintf.c: Likewise.
50046         * lib/unistdio/u32-asprintf.c: Likewise.
50047         * lib/unistdio/u32-printf-parse.c: Likewise.
50048         * lib/unistdio/u32-snprintf.c: Likewise.
50049         * lib/unistdio/u32-sprintf.c: Likewise.
50050         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50051         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50052         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50053         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50054         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50055         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50056         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50057         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50058         * lib/unistdio/u32-vasnprintf.c: Likewise.
50059         * lib/unistdio/u32-vasprintf.c: Likewise.
50060         * lib/unistdio/u32-vsnprintf.c: Likewise.
50061         * lib/unistdio/u32-vsprintf.c: Likewise.
50062         * lib/unistdio/u8-asnprintf.c: Likewise.
50063         * lib/unistdio/u8-asprintf.c: Likewise.
50064         * lib/unistdio/u8-printf-parse.c: Likewise.
50065         * lib/unistdio/u8-snprintf.c: Likewise.
50066         * lib/unistdio/u8-sprintf.c: Likewise.
50067         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50068         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50069         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50070         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50071         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50072         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50073         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50074         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50075         * lib/unistdio/u8-vasnprintf.c: Likewise.
50076         * lib/unistdio/u8-vasprintf.c: Likewise.
50077         * lib/unistdio/u8-vsnprintf.c: Likewise.
50078         * lib/unistdio/u8-vsprintf.c: Likewise.
50079         * lib/unistdio/ulc-asnprintf.c: Likewise.
50080         * lib/unistdio/ulc-asprintf.c: Likewise.
50081         * lib/unistdio/ulc-printf-parse.c: Likewise.
50082         * lib/unistdio/ulc-snprintf.c: Likewise.
50083         * lib/unistdio/ulc-sprintf.c: Likewise.
50084         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50085         * lib/unistdio/ulc-vasprintf.c: Likewise.
50086         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50087         * lib/unistdio/ulc-vsprintf.c: Likewise.
50088         * lib/unistr.h: Likewise.
50089         * lib/unistr/u-cpy-alloc.h: Likewise.
50090         * lib/unistr/u-cpy.h: Likewise.
50091         * lib/unistr/u-endswith.h: Likewise.
50092         * lib/unistr/u-move.h: Likewise.
50093         * lib/unistr/u-set.h: Likewise.
50094         * lib/unistr/u-startswith.h: Likewise.
50095         * lib/unistr/u-stpcpy.h: Likewise.
50096         * lib/unistr/u-stpncpy.h: Likewise.
50097         * lib/unistr/u-strcat.h: Likewise.
50098         * lib/unistr/u-strcpy.h: Likewise.
50099         * lib/unistr/u-strcspn.h: Likewise.
50100         * lib/unistr/u-strdup.h: Likewise.
50101         * lib/unistr/u-strlen.h: Likewise.
50102         * lib/unistr/u-strncat.h: Likewise.
50103         * lib/unistr/u-strncpy.h: Likewise.
50104         * lib/unistr/u-strnlen.h: Likewise.
50105         * lib/unistr/u-strpbrk.h: Likewise.
50106         * lib/unistr/u-strspn.h: Likewise.
50107         * lib/unistr/u-strstr.h: Likewise.
50108         * lib/unistr/u-strtok.h: Likewise.
50109         * lib/unistr/u16-check.c: Likewise.
50110         * lib/unistr/u16-chr.c: Likewise.
50111         * lib/unistr/u16-cmp.c: Likewise.
50112         * lib/unistr/u16-cpy-alloc.c: Likewise.
50113         * lib/unistr/u16-cpy.c: Likewise.
50114         * lib/unistr/u16-endswith.c: Likewise.
50115         * lib/unistr/u16-mblen.c: Likewise.
50116         * lib/unistr/u16-mbsnlen.c: Likewise.
50117         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50118         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50119         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50120         * lib/unistr/u16-mbtouc.c: Likewise.
50121         * lib/unistr/u16-mbtoucr.c: Likewise.
50122         * lib/unistr/u16-move.c: Likewise.
50123         * lib/unistr/u16-next.c: Likewise.
50124         * lib/unistr/u16-prev.c: Likewise.
50125         * lib/unistr/u16-set.c: Likewise.
50126         * lib/unistr/u16-startswith.c: Likewise.
50127         * lib/unistr/u16-stpcpy.c: Likewise.
50128         * lib/unistr/u16-stpncpy.c: Likewise.
50129         * lib/unistr/u16-strcat.c: Likewise.
50130         * lib/unistr/u16-strchr.c: Likewise.
50131         * lib/unistr/u16-strcmp.c: Likewise.
50132         * lib/unistr/u16-strcpy.c: Likewise.
50133         * lib/unistr/u16-strcspn.c: Likewise.
50134         * lib/unistr/u16-strdup.c: Likewise.
50135         * lib/unistr/u16-strlen.c: Likewise.
50136         * lib/unistr/u16-strmblen.c: Likewise.
50137         * lib/unistr/u16-strmbtouc.c: Likewise.
50138         * lib/unistr/u16-strncat.c: Likewise.
50139         * lib/unistr/u16-strncmp.c: Likewise.
50140         * lib/unistr/u16-strncpy.c: Likewise.
50141         * lib/unistr/u16-strnlen.c: Likewise.
50142         * lib/unistr/u16-strpbrk.c: Likewise.
50143         * lib/unistr/u16-strrchr.c: Likewise.
50144         * lib/unistr/u16-strspn.c: Likewise.
50145         * lib/unistr/u16-strstr.c: Likewise.
50146         * lib/unistr/u16-strtok.c: Likewise.
50147         * lib/unistr/u16-to-u32.c: Likewise.
50148         * lib/unistr/u16-to-u8.c: Likewise.
50149         * lib/unistr/u16-uctomb-aux.c: Likewise.
50150         * lib/unistr/u16-uctomb.c: Likewise.
50151         * lib/unistr/u32-check.c: Likewise.
50152         * lib/unistr/u32-chr.c: Likewise.
50153         * lib/unistr/u32-cmp.c: Likewise.
50154         * lib/unistr/u32-cpy-alloc.c: Likewise.
50155         * lib/unistr/u32-cpy.c: Likewise.
50156         * lib/unistr/u32-endswith.c: Likewise.
50157         * lib/unistr/u32-mblen.c: Likewise.
50158         * lib/unistr/u32-mbsnlen.c: Likewise.
50159         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50160         * lib/unistr/u32-mbtouc.c: Likewise.
50161         * lib/unistr/u32-mbtoucr.c: Likewise.
50162         * lib/unistr/u32-move.c: Likewise.
50163         * lib/unistr/u32-next.c: Likewise.
50164         * lib/unistr/u32-prev.c: Likewise.
50165         * lib/unistr/u32-set.c: Likewise.
50166         * lib/unistr/u32-startswith.c: Likewise.
50167         * lib/unistr/u32-stpcpy.c: Likewise.
50168         * lib/unistr/u32-stpncpy.c: Likewise.
50169         * lib/unistr/u32-strcat.c: Likewise.
50170         * lib/unistr/u32-strchr.c: Likewise.
50171         * lib/unistr/u32-strcmp.c: Likewise.
50172         * lib/unistr/u32-strcpy.c: Likewise.
50173         * lib/unistr/u32-strcspn.c: Likewise.
50174         * lib/unistr/u32-strdup.c: Likewise.
50175         * lib/unistr/u32-strlen.c: Likewise.
50176         * lib/unistr/u32-strmblen.c: Likewise.
50177         * lib/unistr/u32-strmbtouc.c: Likewise.
50178         * lib/unistr/u32-strncat.c: Likewise.
50179         * lib/unistr/u32-strncmp.c: Likewise.
50180         * lib/unistr/u32-strncpy.c: Likewise.
50181         * lib/unistr/u32-strnlen.c: Likewise.
50182         * lib/unistr/u32-strpbrk.c: Likewise.
50183         * lib/unistr/u32-strrchr.c: Likewise.
50184         * lib/unistr/u32-strspn.c: Likewise.
50185         * lib/unistr/u32-strstr.c: Likewise.
50186         * lib/unistr/u32-strtok.c: Likewise.
50187         * lib/unistr/u32-to-u16.c: Likewise.
50188         * lib/unistr/u32-to-u8.c: Likewise.
50189         * lib/unistr/u32-uctomb.c: Likewise.
50190         * lib/unistr/u8-check.c: Likewise.
50191         * lib/unistr/u8-chr.c: Likewise.
50192         * lib/unistr/u8-cmp.c: Likewise.
50193         * lib/unistr/u8-cpy-alloc.c: Likewise.
50194         * lib/unistr/u8-cpy.c: Likewise.
50195         * lib/unistr/u8-endswith.c: Likewise.
50196         * lib/unistr/u8-mblen.c: Likewise.
50197         * lib/unistr/u8-mbsnlen.c: Likewise.
50198         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50199         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50200         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50201         * lib/unistr/u8-mbtouc.c: Likewise.
50202         * lib/unistr/u8-mbtoucr.c: Likewise.
50203         * lib/unistr/u8-move.c: Likewise.
50204         * lib/unistr/u8-next.c: Likewise.
50205         * lib/unistr/u8-prev.c: Likewise.
50206         * lib/unistr/u8-set.c: Likewise.
50207         * lib/unistr/u8-startswith.c: Likewise.
50208         * lib/unistr/u8-stpcpy.c: Likewise.
50209         * lib/unistr/u8-stpncpy.c: Likewise.
50210         * lib/unistr/u8-strcat.c: Likewise.
50211         * lib/unistr/u8-strchr.c: Likewise.
50212         * lib/unistr/u8-strcmp.c: Likewise.
50213         * lib/unistr/u8-strcpy.c: Likewise.
50214         * lib/unistr/u8-strcspn.c: Likewise.
50215         * lib/unistr/u8-strdup.c: Likewise.
50216         * lib/unistr/u8-strlen.c: Likewise.
50217         * lib/unistr/u8-strmblen.c: Likewise.
50218         * lib/unistr/u8-strmbtouc.c: Likewise.
50219         * lib/unistr/u8-strncat.c: Likewise.
50220         * lib/unistr/u8-strncmp.c: Likewise.
50221         * lib/unistr/u8-strncpy.c: Likewise.
50222         * lib/unistr/u8-strnlen.c: Likewise.
50223         * lib/unistr/u8-strpbrk.c: Likewise.
50224         * lib/unistr/u8-strrchr.c: Likewise.
50225         * lib/unistr/u8-strspn.c: Likewise.
50226         * lib/unistr/u8-strstr.c: Likewise.
50227         * lib/unistr/u8-strtok.c: Likewise.
50228         * lib/unistr/u8-to-u16.c: Likewise.
50229         * lib/unistr/u8-to-u32.c: Likewise.
50230         * lib/unistr/u8-uctomb-aux.c: Likewise.
50231         * lib/unistr/u8-uctomb.c: Likewise.
50232         * lib/unitypes.h: Likewise.
50233         * lib/uniwidth.h: Likewise.
50234         * lib/uniwidth/cjk.h: Likewise.
50235         * lib/uniwidth/u16-strwidth.c: Likewise.
50236         * lib/uniwidth/u16-width.c: Likewise.
50237         * lib/uniwidth/u32-strwidth.c: Likewise.
50238         * lib/uniwidth/u32-width.c: Likewise.
50239         * lib/uniwidth/u8-strwidth.c: Likewise.
50240         * lib/uniwidth/u8-width.c: Likewise.
50241         * lib/uniwidth/width.c: Likewise.
50242
50243 2007-10-07  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50246         The file is still under LGPL (see modules/inttypes).
50247
50248 2007-10-06  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/trunc (Dependencies): Add 'extensions'.
50251         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50252         Reported by Ben Pfaff <blp@gnu.org>.
50253
50254 2007-10-06  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/freopen-tests: New file.
50257         * tests/test-freopen.c: New file.
50258
50259         * modules/fopen-tests: New file.
50260         * tests/test-fopen.c: New file.
50261
50262         * modules/fopen: New file.
50263         * lib/fopen.c: New file.
50264         * m4/fopen.m4: New file.
50265         * modules/freopen: New file.
50266         * lib/freopen.c: New file.
50267         * m4/freopen.m4: New file.
50268         * lib/stdio.in.h (fopen, freopen): New declarations.
50269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50270         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50271         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50272         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50273         * doc/functions/fopen.texi: Mention the 'fopen' module.
50274         * doc/functions/freopen.texi: Mention the 'freopen' module.
50275
50276 2007-10-06  Bruno Haible  <bruno@clisp.org>
50277
50278         * modules/open-tests: New file.
50279         * tests/test-open.c: New file.
50280
50281         * modules/open: New file.
50282         * lib/open.c: New file.
50283         * m4/open.m4: New file.
50284         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50285         lib/open.c does.
50286         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50287         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50288         macros.
50289         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50290         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50291         REPLACE_OPEN.
50292         * doc/functions/open.texi: Mention the 'open' module.
50293
50294 2007-10-04  Bruno Haible  <bruno@clisp.org>
50295
50296         * modules/ceill-tests: New file.
50297         * tests/test-ceill.c: New file.
50298
50299         * modules/ceill: New file.
50300         * lib/ceill.c: Replace entire file.
50301         * m4/ceill.m4: New file.
50302         * lib/math.in.h (ceill): Replace declaration.
50303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50304         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50305         * doc/functions/ceill.texi: Mention the 'ceill' module.
50306         * modules/mathl (Files): Remove lib/ceill.c.
50307         (Depends-on): Add ceill.
50308
50309 2007-10-04  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/ceilf-tests: New file.
50312         * tests/test-ceilf.c: New file.
50313
50314         * modules/ceilf: New file.
50315         * lib/ceil.c: New file.
50316         * lib/ceilf.c: New file.
50317         * m4/ceilf.m4: New file.
50318         * lib/math.in.h (ceilf): New declaration.
50319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50320         HAVE_DECL_CEILF.
50321         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50322         HAVE_DECL_CEILF.
50323         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50324
50325 2007-10-04  Bruno Haible  <bruno@clisp.org>
50326
50327         * modules/floorl-tests: New file.
50328         * tests/test-floorl.c: New file.
50329
50330         * modules/floorl: New file.
50331         * lib/floorl.c: Replace entire file.
50332         * m4/floorl.m4: New file.
50333         * lib/math.in.h (floorl): Replace declaration.
50334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50335         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50336         * doc/functions/floorl.texi: Mention the 'floorl' module.
50337         * modules/mathl (Files): Remove lib/floorl.c.
50338         (Depends-on): Add floorl.
50339
50340 2007-10-04  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/floorf-tests: New file.
50343         * tests/test-floorf.c: New file.
50344
50345         * modules/floorf: New file.
50346         * lib/floor.c: New file.
50347         * lib/floorf.c: New file.
50348         * m4/floorf.m4: New file.
50349         * lib/math.in.h (floorf): New declaration.
50350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50351         HAVE_DECL_FLOORF.
50352         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50353         HAVE_DECL_FLOORF.
50354         * doc/functions/floorf.texi: Mention the 'floorf' module.
50355
50356 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50357             Bruno Haible  <bruno@clisp.org>
50358
50359         Advertise for the Git server instead of the CVS server.
50360         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50361         repository instead of the CVS one.
50362         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50363         about all VCS systems generically.
50364         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50365
50366 2007-10-04  Bruno Haible  <bruno@clisp.org>
50367
50368         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50369         means.
50370         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50371
50372 2007-10-04  Bruno Haible  <bruno@clisp.org>
50373
50374         * modules/truncl-tests: New file.
50375         * tests/test-truncl.c: New file.
50376
50377         * modules/truncl: New file.
50378         * lib/truncl.c: New file.
50379         * m4/truncl.m4: New file.
50380         * lib/math.in.h (truncl): New declaration.
50381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50382         HAVE_DECL_TRUNCL.
50383         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50384         HAVE_DECL_TRUNCL.
50385         * doc/functions/truncl.texi: Mention the 'truncl' module.
50386
50387 2007-10-04  Bruno Haible  <bruno@clisp.org>
50388
50389         * modules/truncf-tests: New file.
50390         * tests/test-truncf.c: New file.
50391
50392         * modules/truncf: New file.
50393         * lib/trunc.c: Make paramerizable through USE_* macros.
50394         * lib/truncf.c: New file.
50395         * m4/truncf.m4: New file.
50396         * lib/math.in.h (truncf): New declaration.
50397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50398         HAVE_DECL_TRUNCF.
50399         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50400         HAVE_DECL_TRUNCF.
50401         * doc/functions/truncf.texi: Mention the 'truncf' module.
50402
50403 2007-10-03  Bruno Haible  <bruno@clisp.org>
50404
50405         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50406         augmentation also for tests modules.
50407         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50408         * modules/atexit-tests (Makefile.am): Likewise.
50409         * modules/binary-io-tests (Makefile.am): Likewise.
50410         * modules/c-strcase-tests (Makefile.am): Likewise.
50411         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50412         * modules/canonicalize-tests (Makefile.am): Likewise.
50413         * modules/closein-tests (Makefile.am): Likewise.
50414         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50415         * modules/freadahead-tests (Makefile.am): Likewise.
50416         * modules/fseek-tests (Makefile.am): Likewise.
50417         * modules/fseeko-tests (Makefile.am): Likewise.
50418         * modules/ftell-tests (Makefile.am): Likewise.
50419         * modules/ftello-tests (Makefile.am): Likewise.
50420         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50421         * modules/isnanl-tests (Makefile.am): Likewise.
50422         * modules/lseek-tests (Makefile.am): Likewise.
50423         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50424         * modules/mbscasestr-tests (Makefile.am): Likewise.
50425         * modules/mbschr-tests (Makefile.am): Likewise.
50426         * modules/mbscspn-tests (Makefile.am): Likewise.
50427         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50428         * modules/mbspbrk-tests (Makefile.am): Likewise.
50429         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50430         * modules/mbsrchr-tests (Makefile.am): Likewise.
50431         * modules/mbsspn-tests (Makefile.am): Likewise.
50432         * modules/mbsstr-tests (Makefile.am): Likewise.
50433         * modules/printf-posix-tests (Makefile.am): Likewise.
50434         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50435         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50436         * modules/tsearch-tests (Makefile.am): Likewise.
50437         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50438         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50439         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50440         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50441         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50442         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50443         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50444         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50445         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50446         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50447         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50448         * modules/xstrtol-tests (Makefile.am): Likewise.
50449         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50450         * modules/yesno-tests (Makefile.am): Likewise.
50451
50452 2007-10-03  Bruno Haible  <bruno@clisp.org>
50453
50454         * modules/trunc-tests: New file.
50455         * tests/test-trunc.c: New file.
50456
50457         * modules/trunc: New file.
50458         * lib/trunc.c: New file.
50459         * m4/trunc.m4: New file.
50460         * lib/math.in.h (trunc): New declaration.
50461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50462         HAVE_DECL_TRUNC.
50463         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50464         HAVE_DECL_TRUNC.
50465         * doc/functions/trunc.texi: Mention the 'trunc' module.
50466
50467 2007-10-03  Bruno Haible  <bruno@clisp.org>
50468
50469         * tests/test-fpending.c: New file, mostly copied
50470         from coreutils/lib/t-fpending.c.
50471         * modules/fpending-tests: New file.
50472
50473 2007-10-03  Bruno Haible  <bruno@clisp.org>
50474
50475         Port the stdio extensions to QNX (untested).
50476         * lib/fseterr.c (fseterr): Add support for QNX.
50477         * lib/fbufmode.c (fbufmode): Likewise.
50478         * lib/freadable.c (freadable): Likewise.
50479         * lib/fwritable.c (fwritable): Likewise.
50480         * lib/freading.c (freading): Likewise.
50481         * lib/fwriting.c (fwriting): Likewise.
50482         * lib/freadahead.c (freadahed): Likewise.
50483         * lib/fpurge.c (fpurge): Likewise.
50484         * lib/fseeko.c (rpl_fseeko): Likewise.
50485
50486 2007-10-03  Bruno Haible  <bruno@clisp.org>
50487             Jim Meyering  <jim@meyering.net>
50488             Eric Blake  <ebb9@byu.net>
50489
50490         * doc/relocatable.texi: Use @command instead of @program.
50491
50492 2007-10-02  Jim Meyering  <jim@meyering.net>
50493
50494         Perform one more "_.h" -> ".in.h" substitution.
50495         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50496         instead of unistd_.h here, too.
50497
50498 2007-10-01  Bruno Haible  <bruno@clisp.org>
50499
50500         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50501         Needed for the alloca-opt module.
50502
50503 2007-09-30  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50506         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50507         alloca_.h.
50508         * lib/argz.in.h: Renamed from lib/argz_.h.
50509         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50510         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50511         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50512         byteswap_.h.
50513         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50514         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50515         dirent_.h.
50516         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50517         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50518         fcntl_.h.
50519         * lib/float.in.h: Renamed from lib/float_.h.
50520         * modules/float (Files, Makefile.am): Use float.in.h instead of
50521         float_.h.
50522         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50523         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50524         fnmatch_.h.
50525         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50526         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50527         getopt_.h.
50528         * lib/glob.in.h: Renamed from lib/glob_.h.
50529         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50530         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50531         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50532         iconv_.h.
50533         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50534         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50535         inttypes_.h.
50536         * lib/locale.in.h: Renamed from lib/locale_.h.
50537         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50538         locale_.h.
50539         * lib/math.in.h: Renamed from lib/math_.h.
50540         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50541         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50542         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50543         of netinet_in_.h. Add dependency.
50544         * lib/poll.in.h: Renamed from lib/poll_.h.
50545         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50546         * lib/search.in.h: Renamed from lib/search_.h.
50547         * modules/search (Files, Makefile.am): Use search.in.h instead of
50548         search_.h.
50549         * lib/signal.in.h: Renamed from lib/signal_.h.
50550         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50551         _signal.h.
50552         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50553         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50554         stdbool_.h.
50555         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50556         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50557         stdint_.h.
50558         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50559         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50560         stdio_.h.
50561         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50562         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50563         stdlib_.h.
50564         * lib/string.in.h: Renamed from lib/string_.h.
50565         * modules/string (Files, Makefile.am): Use string.in.h instead of
50566         string_.h.
50567         * doc/gnulib-tool.texi (Initial import): Update.
50568         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50569         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50570         of sys_select_.h. Add dependency.
50571         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50572         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50573         of sys_socket_.h.
50574         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50575         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50576         sys_stat_.h.
50577         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50578         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50579         sys_time_.h.
50580         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50581         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50582         sysexits_.h.
50583         * lib/time.in.h: Renamed from lib/time_.h.
50584         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50585         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50586         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50587         unistd_.h.
50588         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50589         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50590         wchar_.h.
50591         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50592         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50593         wctype_.h.
50594         * build-aux/bootstrap (slurp): Update.
50595         * lib/.cppi-disable: Update.
50596
50597 2007-09-30  Bruno Haible  <bruno@clisp.org>
50598
50599         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50600         Needed on BeOS.
50601
50602 2007-09-30  Bruno Haible  <bruno@clisp.org>
50603
50604         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50605
50606 2007-09-29  Bruno Haible  <bruno@clisp.org>
50607
50608         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50609
50610 2007-09-29  Bruno Haible  <bruno@clisp.org>
50611
50612         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50613         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50614         * build-aux/install-reloc: Compile also areadlink.c.
50615         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50616
50617 2007-09-29  Bruno Haible  <bruno@clisp.org>
50618
50619         * gnulib-tool (func_emit_initmacro_done): Indentation.
50620
50621 2007-09-29  Bruno Haible  <bruno@clisp.org>
50622
50623         * README: Add CVS checkout update instructions.
50624         Info from Bob Proulx <bob@proulx.com>.
50625
50626 2007-09-28  Eric Blake  <ebb9@byu.net>
50627
50628         Provide move-if-change.
50629         * build-aux/move-if-change: New file, based on best practice
50630         rather than any canonical upstream location.
50631
50632 2007-09-28  Jim Meyering  <jim@meyering.net>
50633
50634         Fix canonicalize loop-detection corner case.
50635         Do not attempt to stat the symlink values stored via seen_triple.
50636         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50637         on linux-2.6.18, (but not 2.6.22).
50638         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50639         triple_compare.  The former compares dev,ino,filename, while the latter
50640         would actually stat dirname(filename) when dev and ino were equal.
50641         * lib/hash-triple.c: Install <string.h>.
50642         (STREQ): Define.
50643         (triple_compare_ino_str): New function.
50644         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50645
50646 2007-09-28  Eric Blake  <ebb9@byu.net>
50647
50648         Enforce that AC_REPLACE_FUNCS files exist.
50649         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50650         override check for typos.
50651
50652         Fix test-closein on Solaris 10.
50653         * tests/test-closein.c (main): Don't assume stdin can be inherited
50654         closed on all systems.
50655         * tests/test-closein.sh: Likewise.
50656         Reported by Piotr Tarnowski.
50657
50658 2007-09-28  Jim Meyering  <jim@meyering.net>
50659
50660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50661
50662 2007-09-27  Jim Meyering  <jim@meyering.net>
50663
50664         canonicalize: Avoid a false-positive cycle failure.
50665         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50666         Sort.  Remove cycle-check.
50667         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50668         not cycle-check.h.
50669         (seen_triple): New function.
50670         (canonicalize_filename_mode): Use it instead of cycle-check.
50671         * tests/test-canonicalize.c: Add a test for this bug.
50672         * tests/test-canonicalize.sh: Set up and run the test.
50673
50674         New module, file-set, from coreutils.
50675         * modules/file-set: Define it.
50676         * lib/file-set.c, lib/file-set.h: Implement.
50677
50678         New module, hash-triple, from coreutils.
50679         * modules/hash-triple: Define it.
50680         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50681
50682 2007-09-25  Eric Blake  <ebb9@byu.net>
50683
50684         Fix strerror on Interix.
50685         * lib/string_.h (strerror): Declare replacement.
50686         * doc/functions/strerror.texi (strerror): Document the Interix
50687         shortcoming.
50688         * modules/string (Makefile.am): Support new hooks.
50689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50690         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50691         gl_FUNC_STRERROR_SEPARATE.
50692         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50693         * lib/strerror.c (rpl_strerror): Provide replacement.
50694         * modules/strerror (Depends-on): Add string.
50695         (configure.ac): Detect use of module.
50696         * tests/test-strerror.c: New file.
50697         * modules/strerror-tests: New test module.
50698         * modules/argp (Depends-on): Add strerror.
50699         * modules/error (Depends-on): Likewise.
50700         Reported by Martin Koeppe.
50701
50702 2007-09-24  Bruno Haible  <bruno@clisp.org>
50703
50704         * README: Update git instructions.
50705
50706 2007-09-24  Eric Blake  <ebb9@byu.net>
50707
50708         Revert fpending breakage from 2007-09-08.
50709         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50710         __fpending.c.
50711
50712 2007-09-24  Jim Meyering  <jim@meyering.net>
50713
50714         filenamecat.c: Add a test.
50715         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50716         showing how the function works when DIR is the empty string.
50717
50718 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50719
50720         * tests/test-canonicalize.sh: Turn on executable bit.
50721
50722 2007-09-19  Eric Blake  <ebb9@byu.net>
50723
50724         * README: Update CVS instructions.
50725
50726 2007-09-18  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/areadlink: New file.
50729         * lib/areadlink.h (areadlink): New declaration.
50730         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50731
50732 2007-09-17  Jim Meyering  <jim@meyering.net>
50733
50734         * lib/savewd.c (ESTALE) [!defined]: Define.
50735         Reported to be required on Interix by Martin Koeppe.
50736
50737 2007-09-17  Bruno Haible  <bruno@clisp.org>
50738
50739         * gnulib-tool (func_version): Use $version.
50740
50741 2007-09-16  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50744         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50745         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50746         Reported by Greg Schafer <gschafer@zip.com.au>.
50747
50748 2007-09-15  Bruno Haible  <bruno@clisp.org>
50749
50750         * gnulib-tool (sed): Try a little harder to make bash understand the
50751         alias.
50752         Reported by Bruce Korb <bruce.korb@gmail.com>.
50753
50754 2007-09-13  Eric Blake  <ebb9@byu.net>
50755
50756         * ChangeLog: Remove conflict markers.
50757
50758 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50759
50760         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50761         Reported by Bruno Haible <bruno@clisp.org>.
50762
50763 2007-09-12  Bruno Haible  <bruno@clisp.org>
50764
50765         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50766         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50767         is not defined.
50768
50769 2007-09-12  Eric Blake  <ebb9@byu.net>
50770
50771         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50772         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50773         Autoconf definition.
50774         * modules/euidaccess (Depends-on): Add extensions, for
50775         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50776         * modules/fnmatch (Depends-on): Likewise.
50777         * modules/getaddrinfo (Depends-on): Likewise.
50778         * modules/getdelim (Depends-on): Likewise.
50779         * modules/getline (Depends-on): Likewise.
50780         * modules/getsubopt (Depends-on): Likewise.
50781         * modules/gettext (Depends-on): Likewise.
50782         * modules/group-member (Depends-on): Likewise.
50783         * modules/mbchar (Depends-on): Likewise.
50784         * modules/memmem (Depends-on): Likewise.
50785         * modules/mempcpy (Depends-on): Likewise.
50786         * modules/memrchr (Depends-on): Likewise.
50787         * modules/pagealign_alloc (Depends-on): Likewise.
50788         * modules/readutmp (Depends-on): Likewise.
50789         * modules/stpcpy (Depends-on): Likewise.
50790         * modules/stpncpy (Depends-on): Likewise.
50791         * modules/strchrnul (Depends-on): Likewise.
50792         * modules/strndup (Depends-on): Likewise.
50793         * modules/strsep (Depends-on): Likewise.
50794         * modules/strverscmp (Depends-on): Likewise.
50795         * modules/vasprintf (Depends-on): Likewise.
50796         * modules/wcwidth (Depends-on): Likewise.
50797         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50798         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50799         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50801         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50802         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50803         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50804         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50806         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50807         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50808         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50811         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50812         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50813         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50814         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50815         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50819         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50820         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50821         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50823         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50824         so that lock.m4 can be used in gettext without extensions module.
50825
50826 2007-09-11  Bruno Haible  <bruno@clisp.org>
50827
50828         * m4/isc-posix.m4: Remove file.
50829         Suggested by Eric Blake.
50830
50831 2007-09-11  Eric Blake  <ebb9@byu.net>
50832
50833         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50834
50835 2007-09-10  Bruno Haible  <bruno@clisp.org>
50836
50837         * posix-modules: Fix typo in error message.
50838         Reported by Matt <mkraai@beckman.com>.
50839
50840 2007-09-09  Bruno Haible  <bruno@clisp.org>
50841
50842         * doc/functions/getdelim.texi: Update list of platforms lacking the
50843         function.
50844         * doc/functions/getline.texi: Likewise.
50845
50846 2007-09-09  Jim Meyering  <jim@meyering.net>
50847
50848         * lib/hash.c (hash_initialize): Detect calloc failure.
50849         Reported by Bruno Haible.
50850
50851 2007-09-09  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50854         malloc or realloc fails.
50855
50856 2007-09-09  Bruno Haible  <bruno@clisp.org>
50857
50858         * modules/getcwd (Depends-on): Add malloc-posix.
50859         * modules/glob (Depends-on): Likewise.
50860         * modules/putenv (Depends-on): Likewise.
50861         * modules/strdup (Depends-on): Likewise.
50862         * modules/getdelim (Depends-on): Add realloc-posix.
50863         * modules/read-file (Depends-on): Likewise.
50864
50865 2007-09-09  Bruno Haible  <bruno@clisp.org>
50866
50867         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50868         (gl_FUNC_MALLOC_POSIX): Require it.
50869         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50870         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50871         * modules/realloc (Files): Add m4/malloc.m4.
50872         * modules/calloc (Files): Likewise.
50873
50874 2007-09-09  Bruno Haible  <bruno@clisp.org>
50875
50876         * modules/malloc-posix: New file.
50877         * modules/malloc (Depends-on): Add malloc-posix.
50878         * lib/malloc.c: Include errno.h.
50879         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50880         and a POSIX-compatible malloc into a single function. Set ENOMEM
50881         when returning NULL.
50882         * m4/malloc.m4: New file.
50883         * doc/functions/malloc.texi: Mention the malloc-posix module.
50884         * lib/stdlib_.h (malloc): New declaration.
50885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50886         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50887         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50888         and HAVE_MALLOC_POSIX.
50889
50890 2007-09-09  Bruno Haible  <bruno@clisp.org>
50891
50892         * modules/realloc-posix: New file.
50893         * modules/realloc (Depends-on): Add realloc-posix.
50894         * lib/realloc.c: Include errno.h.
50895         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50896         and a POSIX-compatible realloc into a single function. Set ENOMEM
50897         when returning NULL.
50898         * m4/realloc.m4: New file.
50899         * doc/functions/realloc.texi: Mention the realloc-posix module.
50900         * lib/stdlib_.h (realloc): New declaration.
50901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50902         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50903         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50904         and HAVE_REALLOC_POSIX.
50905
50906 2007-09-09  Bruno Haible  <bruno@clisp.org>
50907
50908         * modules/calloc-posix: New file.
50909         * modules/calloc (Depends-on): Add calloc-posix.
50910         * lib/calloc.c: Include errno.h.
50911         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50912         and a POSIX-compatible calloc into a single function. Set ENOMEM
50913         when returning NULL.
50914         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50915         * doc/functions/calloc.texi: Mention the calloc-posix module.
50916         * lib/stdlib_.h (calloc): New declaration.
50917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50918         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50919         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50920         and HAVE_CALLOC_POSIX.
50921
50922 2007-09-09  Bruno Haible  <bruno@clisp.org>
50923
50924         Allow for modules to show an arbitrary notice.
50925         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50926         * gnulib-tool: New option --extract-notice.
50927         (func_usage): Document it.
50928         (sed_extract_prog): Update.
50929         (func_get_notice): New function.
50930         (func_modules_notice): New function.
50931         (func_import, func_create_testdir): Invoke it.
50932         Suggested by Jim Meyering.
50933
50934 2007-09-09  Bruno Haible  <bruno@clisp.org>
50935
50936         * gnulib-tool: New options --verbose, --quiet.
50937         (func_usage): Document them.
50938         (verbose): New variable.
50939         (func_execute_command): New function.
50940         (func_import): Don't show the module list and the file list if
50941         $verbose < 0.
50942         (func_create_testdir): Likewise. Use func_execute_command.
50943         (func_create_megatestdir): Use func_execute_command.
50944
50945 2007-09-08  Bruno Haible  <bruno@clisp.org>
50946
50947         * gnulib-tool (func_import): Prefer rsync over wget when available,
50948         for fetching the PO files.
50949
50950 2007-09-08  Bruno Haible  <bruno@clisp.org>
50951
50952         * posix-modules: New file. Portions copied from gnulib-tool.
50953         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50954
50955 2007-09-08  Jim Meyering  <jim@meyering.net>
50956
50957         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50958         * lib/fpending.h: Rename from __fpending.h.
50959         * lib/fpending.c: Rename from __fpending.c.
50960         Include "fpending.h", not "__fpending.h".
50961         * lib/__fpending.h, lib/__fpending.c: Remove files.
50962         * modules/fpending (Files): Reflect new file names.
50963         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50964
50965 2007-09-08  Bruno Haible  <bruno@clisp.org>
50966
50967         * m4/inttypes-h.m4: Remove stub file.
50968
50969 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50970
50971         * doc/headers/stdint.texi: Discuss #include_next issue.
50972
50973 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50976
50977 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50978
50979         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50980         in variable name.
50981
50982 2007-09-03  Jim Meyering  <jim@meyering.net>
50983
50984         New module: git-version-gen.
50985         * modules/git-version-gen: New file.
50986
50987         Import changes from coreutils for bootstrap script.
50988
50989         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50990
50991         bootstrap: uses rsync to download the .po files
50992         * build-aux/bootstrap (po_download_command_format): New global.
50993         (download_po_files): Use rsync.
50994         (update_po_files): Don't remove .po files after download,
50995         so future rsync runs can take advantage of the copies.
50996
50997         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50998
50999         Solve the unnecessary-.po-file-regeneration problem once and for all.
51000         * build-aux/bootstrap (download_po_files): New function, renamed from
51001         get_translations.  Now, downloads, but doesn't update LINGUAS.
51002         (update_po_files): New function.
51003
51004         bootstrap: Ignore more.
51005         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51006         uniwidth to e.g., lib/.gitignore.
51007         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51008
51009         * build-aux/bootstrap: New setting: vc_ignore.
51010         (insert_sorted_if_absent): Create $file if absent.
51011         Adapt to new, possibly empty, list: $vc_ignore.
51012
51013         bootstrap: generate more ignorable names
51014         * build-aux/bootstrap (slurp): When generating ignorable names,
51015         also map .sin to .sed, .gperf to .c, and .y to .c.
51016
51017 2007-09-03  Jim Meyering  <jim@meyering.net>
51018
51019         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51020         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51021
51022 2007-09-02  Bruno Haible  <bruno@clisp.org>
51023
51024         Fix mis-recognition of 'mcs' on QNX 6.
51025         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51026         output contains the string "Mono".
51027         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51028         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51029
51030 2007-09-01  Bruno Haible  <bruno@clisp.org>
51031
51032         Fix collision between uniwidth/* and linebreak modules.
51033         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51034         u32_width): Remove declarations.
51035         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51036         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51037         streq3, streq2, streq1, streq0): Remove functions.
51038         (STREQ): Remove macro.
51039         (is_cjk_encoding): Remove function.
51040         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51041         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51042         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51043         * NEWS: Document the change.
51044
51045 2007-09-01  Bruno Haible  <bruno@clisp.org>
51046
51047         * lib/streq.h: Add double-inclusion guard.
51048
51049 2007-09-01  Karl Berry  <karl@gnu.org>
51050
51051         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51052
51053 2007-08-28  Jim Meyering  <jim@meyering.net>
51054
51055         Rename mreadlink_with_size to areadlink_with_size.
51056         * NEWS: Document the change.
51057         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51058         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51059         * lib/mreadlink.h: Rename this to...
51060         * lib/areadlink.h: ...this.
51061         * modules/mreadlink-with-size: Rename this to...
51062         * modules/areadlink-with-size: ...this.
51063         * lib/canonicalize.c: Reflect the renaming.
51064         * modules/canonicalize: Likewise.
51065
51066 2007-08-26  Bruno Haible  <bruno@clisp.org>
51067
51068         * gnulib-tool (func_import): When deciding which files to remove,
51069         consider also dangling symbolic links.
51070         Reported by Eric Blake.
51071
51072 2007-08-26  Bruno Haible  <bruno@clisp.org>
51073
51074         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51075
51076 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51077
51078         * lib/readline.c: Don't include getline.h, the prototype is now
51079         found in stdio.h.
51080
51081 2007-08-23  Jim Meyering  <jim@meyering.net>
51082
51083         Getdelim touchup.
51084         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51085         around the funlockfile call, since funlockfile never sets errno.
51086         Don't set errno upon failed realloc.
51087
51088 2007-08-22  Eric Blake  <ebb9@byu.net>
51089
51090         Getline touchups.
51091         * lib/getdelim.c (getdelim): Revert regression that required *n to
51092         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51094         getdelim, rather than whether implementation is missing.
51095         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51096         * lib/stdio_.h (getline): Also declare if replacement is
51097         required.
51098         * doc/functions/getdelim.texi: New file.
51099         * doc/functions/getline.texi: Likewise.
51100         * doc/gnulib.texi (Function Substitutes): Add new files.
51101         Reported by Bruno Haible.
51102
51103 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51104
51105         * users.txt: Add Guile.
51106
51107 2007-08-22  Eric Blake  <ebb9@byu.net>
51108
51109         * tests/test-getdelim.c (main): Use remove, not unlink.
51110         * tests/test-getline.c (main): Likewise.
51111
51112         Move getline and getdelim into stdio.h, per POSIX 200x.
51113         * modules/getline (Files): Remove getline.h.
51114         (Depends-on): Add stdio.
51115         (configure.ac): Add module indicator.
51116         * modules/getdelim (Files): Remove getdelim.h.
51117         (Depends-on): Add stdio.
51118         (configure.ac): Add module indicator.
51119         * modules/stdio (Makefile.am): Work with new indicators.
51120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51122         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51123         * lib/getdelim.h: Delete.
51124         * lib/getline.h: Delete.
51125         * lib/stdio_.h (getdelim, getline): Declare.
51126         * modules/getdelim-tests: New module.
51127         * modules/getline-tests: Likewise.
51128         * tests/test-getdelim.c: New file.
51129         * tests/test-getline.c: Likewise.
51130         * NEWS: Document the change.
51131         * lib/getline.c: Update choice of header.
51132         * lib/csharpcomp.c: Likewise.
51133         * lib/getpass.c: Likewise.
51134         * lib/javacomp.c: Likewise.
51135         * lib/javaversion.c: Likewise.
51136         * lib/yesno.c: Likewise.
51137         * lib/getdelim.c: Likewise.
51138         (getdelim): Set errno on failure, and avoid memory leak.
51139
51140 2007-08-19  Bruno Haible  <bruno@clisp.org>
51141
51142         * modules/closein (Depends-on): Add freadahead.
51143         * lib/closein.c: Include freadahead.h.
51144         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51145         is zero.
51146
51147 2007-08-19  Bruno Haible  <bruno@clisp.org>
51148
51149         * modules/freadahead-tests: New file.
51150         * tests/test-freadahead.sh: New file.
51151         * tests/test-freadahead.c: New file.
51152
51153         * modules/freadahead: New file.
51154         * lib/freadahead.h: New file.
51155         * lib/freadahead.c: New file.
51156         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51157         fbufmode, fpurge, freadable, fwritable.
51158
51159 2007-08-19  Eric Blake  <ebb9@byu.net>
51160
51161         Test yesno in combination with closein.
51162         * lib/yesno.c (yesno): Document use of stdin.
51163         * modules/yesno-tests (Files): New module.
51164         * tests/test-yesno.c (main): New file.
51165         * tests/test-yesno.sh: Likewise.
51166
51167 2007-08-19  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51170         * lib/fseeko.c (rpl_fseeko): Likewise.
51171         * lib/fseterr.c (fseterr): Likewise.
51172
51173 2007-08-19  Bruno Haible  <bruno@clisp.org>
51174
51175         * tests/test-lseek.c (main): Disable a test for BeOS.
51176         * doc/functions/lseek.texi: Document the BeOS bug.
51177
51178 2007-08-19  Bruno Haible  <bruno@clisp.org>
51179             Eric Blake  <ebb9@byu.net>
51180
51181         * lib/lseek.c: Include <sys/stat.h>.
51182         (rpl_lseek): Add workaround code also for Unix platforms.
51183         Needed for BeOS.
51184         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51185         * doc/functions/lseek.texi: Document BeOS definiency.
51186
51187 2007-08-18  Bruno Haible  <bruno@clisp.org>
51188
51189         * modules/fstrcmp-tests: New file.
51190         * tests/test-fstrcmp.c: New file.
51191
51192 2007-08-18  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/fstrcmp: New file, from GNU gettext with modifications.
51195         * lib/fstrcmp.h: New file, from GNU gettext.
51196         * lib/fstrcmp.c: New file, from GNU gettext.
51197         * MODULES.html.sh (String handling): Add fstrcmp.
51198
51199 2007-08-18  Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51202         'bool'.
51203         (diag, compareseq): Remove const from the ctxt argument.
51204         (USE_HEURISTIC): Undefine at the end.
51205
51206 2007-08-18  Jim Meyering  <jim@meyering.net>
51207
51208         New file: lib/idcache.h
51209         * NEWS: Mention the addition.
51210         * modules/idcache (Files): Add lib/idcache.h
51211         * lib/idcache.c: Include "idcache.h".
51212         Don't include <sys/types.h>.
51213         Add a FIXME comment.
51214         Move file-scoped "static" declarations to the top.
51215         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51216
51217 2007-08-17  Bruno Haible  <bruno@clisp.org>
51218         and Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * MODULES.html.sh: Add diffseq.
51221         * modules/diffseq: New file.
51222         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51223         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51224
51225 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51226
51227         Import changes from coreutils for bootstrap script.
51228
51229         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * build-aux/bootstrap (slurp): Work even in environments where
51232         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51233         current code does not slurp files whose names start with ".", and
51234         this looks like it might be a troublesome area.
51235
51236         2007-07-11  Jim Meyering  <jim@meyering.net>
51237
51238         If there's a GPL vN copyright comment, require that N == 3.
51239
51240         2007-07-08  Jim Meyering  <jim@meyering.net>
51241
51242         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51243         * build-aux/bootstrap (mam_template): Move definition out of loop.
51244
51245         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51246
51247         * build-aux/bootstrap (symlink_to_dir): Rename function from
51248         symlink_to_gnulib.  Add a directory parameter.  Update all
51249         callers.
51250         (cp_mark_as_generated): Also check for -- and link to -- files in
51251         gl/.
51252
51253         2007-07-08  Jim Meyering  <jim@meyering.net>
51254
51255         Adapt to deeper hierarchy in gnulib.
51256         * build-aux/bootstrap (symlink_to_dir): If the destination
51257         directory doesn't exist, create it. This is required at least for
51258         "lib/uniwidth/cjk.h".
51259
51260         2007-05-15  Jim Meyering  <jim@meyering.net>
51261
51262         * build-aux/bootstrap: Now that generated Makefile.am files
51263         are no longer under version control, they must be created at
51264         bootstrap time.
51265
51266 2007-08-14  Ben Pfaff  <blp@gnu.org>
51267
51268         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51269
51270 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51273         given the changes below.
51274         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51275         even on hosts that have padding bits beyond the supported 64.
51276
51277 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51278
51279         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51280         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51281         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51282         depends on it.
51283         (xstrtol_error): Remove.
51284         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51285         but with a different signature.
51286         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51287         * lib/xstrtol-error.c: Include exitfail.h.
51288         (xstrtol_fatal): New function, with a different signature from the
51289         old xstrtol_error, so that the caller need not worry about passing
51290         in an exit status, or about storage management of the option argument.
51291         (xstrtol_error): Now a static function.  Redo signature to
51292         implement xstrtol_fatal.  Output the correct number of hyphens in
51293         front of the option so that the caller need not worry about
51294         storage management.
51295         (N_): New macro.
51296         (_): Remove; not used now.
51297         * modules/xstrtol: Depend on getopt.
51298         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51299         of old STRTOL_FATAL_ERROR macro.
51300         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51301         of test program.
51302         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51303         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51304
51305 2007-08-08  Eric Blake  <ebb9@byu.net>
51306
51307         * lib/xstrtol-error.c: Add missing include.
51308
51309         Move xstrtol messages into gnulib domain, when --pobase is used.
51310         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51311         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51312         * modules/xstrtol (Files): Distribute new file.
51313         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51314         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51315         * tests/test-xstrtol.c: ...into new file.
51316         * tests/test-xstrtoul.c: Also test xstrtoul.
51317         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51318         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51319         * tests/test-xstrtol.sh: Drive the tests.
51320         * tests/test-xstrtoimax.sh: Likewise.
51321         * tests/test-xstrtoumax.sh: Likewise.
51322         * modules/xstrtol-tests: New module.
51323         * modules/xstrtoimax-tests: Likewise.
51324         * modules/xstrtoumax-tests: Likewise.
51325
51326 2007-08-08  Jim Meyering  <jim@meyering.net>
51327
51328         New function: mfile_name_concat.
51329         * lib/filenamecat.c (mfile_name_concat): New function, just like
51330         file_name_concat, but return NULL upon failure rather than exiting
51331         with a diagnostic.
51332         * lib/filenamecat.h: Declare it.
51333
51334 2007-08-07  Bruno Haible  <bruno@clisp.org>
51335
51336         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51337         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51338         warning from gcc.
51339         Reported by Eric Blake.
51340
51341 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51342
51343         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51344         * modules/crypto/arcfour (License): Likewise.
51345         * modules/crypto/des-tests (License): Likewise.
51346         * modules/crypto/gc-arctwo-tests (License): Likewise.
51347         * modules/crypto/gc-des-tests (License): Likewise.
51348         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51349         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51350         * modules/crypto/gc-md2-tests (License): Likewise.
51351         * modules/crypto/gc-md4-tests (License): Likewise.
51352         * modules/crypto/gc-md5-tests (License): Likewise.
51353         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51354         * modules/crypto/gc-rijndael-tests (License): Likewise.
51355         * modules/crypto/gc-sha1-tests (License): Likewise.
51356         * modules/crypto/gc-tests (License): Likewise.
51357         * modules/crypto/hmac-md5 (License): Likewise.
51358         * modules/crypto/hmac-sha1 (License): Likewise.
51359         * modules/crypto/md2-tests (License): Likewise.
51360         * modules/crypto/md4-tests (License): Likewise.
51361         * modules/crypto/md5 (License): Likewise.
51362         * modules/crypto/rijndael (License): Likewise.
51363         * modules/crypto/sha1 (License): Likewise.
51364         * modules/memxor (License): Likewise.
51365
51366 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51367         and Bruno Haible  <bruno@clisp.org>
51368
51369         * NEWS: Describe interface changes to human, xstrtol.
51370         * lib/human.h: Include <xstrtol.h>.
51371         (human_options): Return enum strtol_error, not int.  Remove
51372         bool arg; take int * instead.
51373         * lib/human.c: Don't include "gettext.h".
51374         (_): Remove; no longer used.
51375         Don't include <xstrtol.h>, since human.h does it.
51376         (human_options): Adjust to abovementioned interface changes.
51377         Do not report error to stderr; that's now the caller's
51378         responsibility.
51379         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51380         interface change.
51381         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51382         Str, Argument_type_string.  All uses changed.  Put " argument"
51383         in diagnostics to make them clearer.  Change wording of suffix
51384         message for clarity.
51385         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51386         Argument_type_string.
51387         (STRTOL_FATAL_WARN): Remove; no longer used.
51388         * modules/human (Depends-on): Remove gettext-h.
51389
51390 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51391
51392         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51393
51394 2007-07-31  Bruno Haible  <bruno@clisp.org>
51395
51396         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51397         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51398         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51399
51400 2007-07-31  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51403         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51404
51405 2007-07-30  Bruno Haible  <bruno@clisp.org>
51406
51407         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51408         * modules/c-ctype (License): Likewise.
51409         * modules/c-strcase (License): Likewise.
51410         * modules/check-version (License): Likewise.
51411         * modules/iconv (License): Likewise.
51412         * modules/iconv_open (License): Likewise.
51413         * modules/read-file (License): Likewise.
51414         * modules/striconv (License): Likewise.
51415         * modules/strverscmp (License): Likewise.
51416         * modules/vasprintf (License): Likewise.
51417         * modules/crypto/des (License): Likewise.
51418         * modules/crypto/gc (License): Likewise.
51419         * modules/crypto/gc-arcfour (License): Likewise.
51420         * modules/crypto/gc-arctwo (License): Likewise.
51421         * modules/crypto/gc-des (License): Likewise.
51422         * modules/crypto/gc-hmac-md5 (License): Likewise.
51423         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51424         * modules/crypto/gc-md2 (License): Likewise.
51425         * modules/crypto/gc-md4 (License): Likewise.
51426         * modules/crypto/gc-md5 (License): Likewise.
51427         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51428         * modules/crypto/gc-random (License): Likewise.
51429         * modules/crypto/gc-rijndael (License): Likewise.
51430         * modules/crypto/gc-sha1 (License): Likewise.
51431         * modules/crypto/md2 (License): Likewise.
51432         * modules/crypto/md4 (License): Likewise.
51433
51434 2007-07-30  Jim Meyering  <jim@meyering.net>
51435
51436         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51437         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51438         it has valid stat data.  This bug would cause du not to count the
51439         sizes of inaccessible directories.
51440         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51441         in <http://bugzilla.redhat.com/250077>.
51442
51443 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51444             Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51447         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51448         #include_next, gives a diagnostic about it, but reports no error in
51449         the exit code.
51450         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51451
51452 2007-07-24  Ben Pfaff  <blp@gnu.org>
51453
51454         Improve name: "count-one-bits" is better than "popcount".
51455         * MODULES.html.sh: Update name.
51456         * lib/popcount.h: Renamed lib/count-one-bits.h.
51457         (popcount): Renamed count_one_bits.
51458         (popcountl): Renamed count_one_bits_l.
51459         (popcountll): Renamed count_one_bits_ll.
51460         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51461         * modules/popcount: Renamed module/count-one-bits.
51462         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51463         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51464
51465 2007-07-23  Ben Pfaff  <blp@gnu.org>
51466
51467         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51468         better code generation, and add U to large constants to avoid
51469         warnings, in non-GCC case.
51470         Suggested by Bruno Haible.
51471
51472 2007-07-23  Ben Pfaff  <blp@gnu.org>
51473
51474         * lib/popcount.h: Use verify_true instead of if...abort.
51475         * modules/popcount: Depend on verify module.
51476         Suggested by Jim Meyering.
51477
51478 2007-07-23  Bruno Haible  <bruno@clisp.org>
51479
51480         * gnulib-tool (func_import): Create a .cvsignore file also when the
51481         directory is not yet in CVS but the toplevel directory is. When
51482         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51483         Reported by Karl Berry.
51484
51485 2007-07-22  Ben Pfaff  <blp@gnu.org>
51486
51487         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51488         case.
51489         Suggested by Eric Blake.
51490
51491 2007-07-22  Ben Pfaff  <blp@gnu.org>
51492
51493         New module: popcount.
51494         * MODULES.html.sh: Add popcount.
51495         * modules/popcount: New file.
51496         * modules/popcount-tests: New file.
51497         * tests/test-popcount.c: New file.
51498         * lib/popcount.h: New file.
51499         * m4/popcount.m4: New file.
51500
51501 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51502
51503         * build-aux/announce-gen: Update to GPLv3.
51504
51505         * build-aux/config.guess: Update from config.
51506
51507 2007-07-21  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51510         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51511
51512 2007-07-20  Jim Meyering  <jim@meyering.net>
51513
51514         * check-module: Diagnose a self-dependency.
51515
51516 2007-07-19  Bruno Haible  <bruno@clisp.org>
51517
51518         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51519         empty.
51520         Reported by Eric Blake.
51521
51522 2007-07-18  Bruno Haible  <bruno@clisp.org>
51523
51524         * gnulib-tool: New options --po-base, --po-domain.
51525         (func_usage): Document them.
51526         (pobase, po_domain): New variables.
51527         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51528         DEFAULT_TEXT_DOMAIN.
51529         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51530         (func_import): Consider pobase and po_domain. Create a po/ directory.
51531         (func_create_testdir): Set pobase and po_domain to empty.
51532         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51533         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51534
51535 2007-07-18  Bruno Haible  <bruno@clisp.org>
51536
51537         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51538         EXTRA_DIST augmentation for files in build-aux/.
51539
51540 2007-07-16  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51543         * modules/getdelim (License): Likewise.
51544
51545 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51546
51547         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51548         * modules/d-type (License): Likewise.
51549         * modules/extensions (License): Likewise.
51550         * modules/fnmatch (License): Likewise.
51551         * modules/fseeko (License): Likewise.
51552         * modules/getaddrinfo (License): Likewise.
51553         * modules/getline (License): Likewise.
51554         * modules/getlogin_r (License): Likewise.
51555         * modules/getpass (License): Likewise.
51556         * modules/gettimeofday (License): Likewise.
51557         * modules/glob (License): Likewise.
51558         * modules/inet_ntop (License): Likewise.
51559         * modules/malloc (License): Likewise.
51560         * modules/malloca (License): Likewise.
51561         * modules/memmem (License): Likewise.
51562         * modules/mempcpy (License): Likewise.
51563         * modules/memset (License): Likewise.
51564         * modules/minmax (License): Likewise.
51565         * modules/mktime (License): Likewise.
51566         * modules/netinet_in (License): Likewise.
51567         * modules/pathmax (License): Likewise.
51568         * modules/poll (License): Likewise.
51569         * modules/regex (License): Likewise.
51570         * modules/snprintf (License): Likewise.
51571         * modules/stdbool (License): Likewise.
51572         * modules/stdint (License): Likewise.
51573         * modules/stdio (License): Likewise.
51574         * modules/strcase (License): Likewise.
51575         * modules/strcasestr (License): Likewise.
51576         * modules/strdup (License): Likewise.
51577         * modules/string (License): Likewise.
51578         * modules/strndup (License): Likewise.
51579         * modules/strnlen (License): Likewise.
51580         * modules/strpbrk (License): Likewise.
51581         * modules/strptime (License): Likewise.
51582         * modules/strsep (License): Likewise.
51583         * modules/sys_select (License): Likewise.
51584         * modules/sys_socket (License): Likewise.
51585         * modules/sys_stat (License): Likewise.
51586         * modules/sys_time (License): Likewise.
51587         * modules/time (License): Likewise.
51588         * modules/time_r (License): Likewise.
51589         * modules/timegm (License): Likewise.
51590         * modules/unistd (License): Likewise.
51591         * modules/vsnprintf (License): Likewise.
51592         * modules/wctype (License): Likewise.
51593
51594 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51595
51596         * modules/argz (License): LGPLv2+.
51597
51598 2007-07-15  Karl Berry  <karl@gnu.org>
51599
51600         * doc/gnulib.texi: revise node structure per new fdl.texi.
51601
51602 2007-07-14  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51605         the output file.
51606         * lib/uniname/uninames.h: Regenerated.
51607
51608 2007-07-14  Karl Berry  <karl@gnu.org>
51609
51610         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51611         omitting sectioning and index commands.
51612
51613 2007-07-13  Bruno Haible  <bruno@clisp.org>
51614
51615         New gnulib-tool option --more-symlinks.
51616         * gnulib-tool (func_usage): Document --more-symlinks.
51617         (do_copyrights): New variable.
51618         Recognize option --more-symlinks.
51619         (func_import): Don't add a copyright notice transform to
51620         sed_transform_lib_file if do_copyrights is empty.
51621
51622 2007-07-13  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/vasnprintf.c (decimal_point_char): Define also if
51625         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51626         && !NEED_PRINTF_DIRECTIVE_A.
51627         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51628         Gary V. Vaughan <gary@gnu.org>.
51629
51630 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         * lib/inttypes_.h: Undo previous change, since it was fixed
51633         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51634
51635 2007-07-13  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51638         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51639
51640 2007-07-13  Jim Meyering  <jim@meyering.net>
51641
51642         df: Don't fail for Tru64's "file-on-file mount".
51643         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51644         so we fall through and use statfs instead.  Details here:
51645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51646         Reported by Albert Chin.
51647
51648 2007-07-13  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51651         * modules/configmake (License): Likewise.
51652         * modules/gettext (License): Likewise.
51653         * modules/gettext-h (License): Likewise.
51654         * modules/include_next (License): Likewise.
51655         * modules/link-warning (License): Likewise.
51656         * modules/localcharset (License): Likewise.
51657         * modules/localename (License): Likewise.
51658         * modules/lock (License): Likewise.
51659         * modules/relocatable-lib-lgpl (License): Likewise.
51660         * modules/size_max (License): Likewise.
51661         * modules/vasnprintf (License): Likewise.
51662         * modules/wchar (License): Likewise.
51663         * modules/xsize (License): Likewise.
51664
51665 2007-07-13  Bruno Haible  <bruno@clisp.org>
51666
51667         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51668         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51669
51670 2007-07-12  Bruno Haible  <bruno@clisp.org>
51671
51672         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51673         in the modules files.
51674
51675 2007-07-11  Karl Berry  <karl@gnu.org>
51676
51677         * MODULES.html.sh (func_module): use
51678          sed -e '\|^'"${includefile}"'$|d'
51679          instead of /.../d, to avoid errors on $includefile's containing /.
51680
51681 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51682
51683         * gnulib-tool (func_import): Avoid duplication of --avoid
51684         statements
51685         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51686         names to `_' in variable names.
51687
51688 2007-07-10  Eric Blake  <ebb9@byu.net>
51689
51690         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51691         * NEWS: Document this change.
51692
51693 2007-07-08  Bruno Haible  <bruno@clisp.org>
51694
51695         Update to Unicode 5.0.
51696         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51697         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51698         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51699         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51700         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51701         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51702         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51703         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51704         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51705         U+10A3F, U+1D242..U+1D244.
51706         (nonspacing_table_ind): Update.
51707         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51708         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51709
51710 2007-07-08  Bruno Haible  <bruno@clisp.org>
51711
51712         Update to Unicode 5.0.
51713         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51714         code transform. Extend the name index field of unicode_name_to_code and
51715         unicode_code_to_name from 16 to 24 bits.
51716         * lib/uniname/uniname.c (unicode_character_name,
51717         unicode_name_character): Add the range 0x12xxx to the code transform.
51718         * lib/uniname/uninames.h: Regenerated.
51719         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51720
51721 2007-07-07  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/wcwidth-tests: New file.
51724         * tests/test-wcwidth.c: New file.
51725
51726         Work around MacOS X wcwidth() bug.
51727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51728         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51729         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51730         original wcwidth in non-UTF-8 locales.
51731         * modules/wcwidth (Depends-on): Add localcharset, streq,
51732         uniwidth/width.
51733         * doc/functions/wcwidth.texi: Update.
51734
51735 2007-07-07  Bruno Haible  <bruno@clisp.org>
51736
51737         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51738         (wcwidth): New declaration.
51739         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51740         macros.
51741         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51742         here. Prepare for creating <wchar.h> unconditionally.
51743         * modules/wchar (Depends-on): Add link-warning.
51744         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51745         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51746         * lib/wcwidth.h: Remove file.
51747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51748         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51749         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51750         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51751         (Include): Replace wcwidth.h with <wchar.h>.
51752         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51753         * lib/mbchar.h: Don't include wcwidth.h.
51754         * lib/mbswidth.c: Likewise.
51755         * NEWS: Mention the change.
51756
51757 2007-07-07  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51760         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51761         definition with an external declaration.
51762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51763         defined as a function. Remove AC_C_INLINE requirement.
51764         * modules/wcwidth (Files): Add lib/wcwidth.c.
51765         (Makefile.am): Remove redundant statement.
51766
51767 2007-07-07  Bruno Haible  <bruno@clisp.org>
51768
51769         * MODULES.html.sh (Unicode string functions): Add the new modules.
51770
51771         * tests/uniwidth/test-u32-strwidth.c: New file.
51772         * modules/uniwidth/u32-strwidth-tests: New file.
51773
51774         * lib/uniwidth/u32-strwidth.c: New file.
51775         * modules/uniwidth/u32-strwidth: New file.
51776
51777         * tests/uniwidth/test-u16-strwidth.c: New file.
51778         * modules/uniwidth/u16-strwidth-tests: New file.
51779
51780         * lib/uniwidth/u16-strwidth.c: New file.
51781         * modules/uniwidth/u16-strwidth: New file.
51782
51783         * tests/uniwidth/test-u8-strwidth.c: New file.
51784         * modules/uniwidth/u8-strwidth-tests: New file.
51785
51786         * lib/uniwidth/u8-strwidth.c: New file.
51787         * modules/uniwidth/u8-strwidth: New file.
51788
51789         * tests/uniwidth/test-u32-width.c: New file.
51790         * modules/uniwidth/u32-width-tests: New file.
51791
51792         * lib/uniwidth/u32-width.c: New file.
51793         * modules/uniwidth/u32-width: New file.
51794
51795         * tests/uniwidth/test-u16-width.c: New file.
51796         * modules/uniwidth/u16-width-tests: New file.
51797
51798         * lib/uniwidth/u16-width.c: New file.
51799         * modules/uniwidth/u16-width: New file.
51800
51801         * tests/uniwidth/test-u8-width.c: New file.
51802         * modules/uniwidth/u8-width-tests: New file.
51803
51804         * lib/uniwidth/u8-width.c: New file.
51805         * modules/uniwidth/u8-width: New file.
51806
51807         * tests/uniwidth/test-uc_width.c: New file.
51808         * modules/uniwidth/width-tests: New file.
51809
51810         * lib/uniwidth/width.c: New file, from GNU libiconv.
51811         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51812         * modules/uniwidth/width: New file.
51813
51814         * lib/uniwidth.h: New file, from GNU libiconv.
51815         * modules/uniwidth/base: New file.
51816
51817 2007-07-07  Bruno Haible  <bruno@clisp.org>
51818
51819         * lib/uniname.h: New file, from GNU gettext.
51820         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51821         * lib/uniname/uninames.h: New file, from GNU gettext.
51822         * lib/uniname/uniname.c: New file, from GNU gettext.
51823         * tests/uniname/test-uninames.sh: New file.
51824         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51825         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51826         * modules/uniname/base: New file.
51827         * modules/uniname/uniname: New file.
51828         * modules/uniname/uniname-tests: New file.
51829         * MODULES.html.sh (Unicode string functions): Add the new modules.
51830
51831 2007-07-06  Bruno Haible  <bruno@clisp.org>
51832
51833         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51834
51835 2007-07-06  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51838         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51839         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51840         include <sys/time.h>.
51841         Reported by Eric Blake.
51842
51843 2007-07-06  Eric Blake  <ebb9@byu.net>
51844
51845         Fix testing canonicalize on cygwin.
51846         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51847         Revert patch from 2007-06-19.
51848         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51849         canonicalize module is also in use.
51850         * tests/test-canonicalize.c: New file.
51851         * tests/test-canonicalize.sh: Likewise.
51852         * modules/canonicalize-tests: Likewise.
51853
51854 2007-07-06  Jim Meyering  <jim@meyering.net>
51855
51856         * lib/getugroups.c (getugroups): Detect getgrent failure.
51857         Adjust comment to reflect reality: this function may return -1.
51858
51859 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51860
51861         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51862         the new TP address.
51863         (usage): Fix typo
51864         (gnulib_mk): New variable.
51865
51866 2007-07-05  Jim Meyering  <jim@meyering.net>
51867
51868         Don't let endgrent clobber errno, no matter how improbable.
51869         * lib/getugroups.c (getugroups): Save and restore errno around
51870         endgrent call.
51871
51872         Close the group DB even when failing with 2^31 or more members.
51873         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51874
51875 2007-07-04  Jim Meyering  <jim@meyering.net>
51876
51877         * lib/getugroups.h: New file.
51878         * lib/getugroups.c: Include "getugroups.h".
51879         Remove uses of "register" keyword.
51880         Move local variable, "cp", down into scope where used.
51881         Give "username" parameter the "const" attribute.
51882         * modules/getugroups (Files): Add lib/getugroups.h
51883
51884 2007-07-04  Karl Berry  <karl@gnu.org>
51885
51886         * MODULES.html.sh (func_all_modules): Complete rename of
51887         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51888
51889 2007-07-02  Bruno Haible  <bruno@clisp.org>
51890
51891         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51892         mode, when inttypes.h comes from gnulib.
51893         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51894
51895 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51896
51897         * NEWS: Mention lgpl module name change.
51898
51899         * modules/lgpl-2.1: Renamed from lgpl.
51900
51901         * NEWS: Mention gpl module name change.
51902
51903         * modules/gpl-3.0: New file, based on gpl-2.0.
51904
51905         * modules/gpl-2.0: Renamed from gpl.
51906
51907         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51908         doc/gpl-2.0.texi.
51909
51910 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51911
51912         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51913         #define __STDC_LIMIT_MACROS temporarily while including
51914         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51915         Problem reported by Joel E. Denny in
51916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51917
51918 2007-07-01  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/unistdio.h: New file.
51921         * lib/unistdio/u-asnprintf.h: New file.
51922         * lib/unistdio/u-asprintf.h: New file.
51923         * lib/unistdio/u-printf-args.c: New file.
51924         * lib/unistdio/u-printf-args.h: New file.
51925         * lib/unistdio/u-printf-parse.h: New file.
51926         * lib/unistdio/u-snprintf.h: New file.
51927         * lib/unistdio/u-sprintf.h: New file.
51928         * lib/unistdio/u-vasprintf.h: New file.
51929         * lib/unistdio/u-vsnprintf.h: New file.
51930         * lib/unistdio/u-vsprintf.h: New file.
51931         * lib/unistdio/ulc-asnprintf.c: New file.
51932         * lib/unistdio/ulc-asprintf.c: New file.
51933         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51934         * lib/unistdio/ulc-printf-parse.c: New file.
51935         * lib/unistdio/ulc-snprintf.c: New file.
51936         * lib/unistdio/ulc-sprintf.c: New file.
51937         * lib/unistdio/ulc-vasnprintf.c: New file.
51938         * lib/unistdio/ulc-vasprintf.c: New file.
51939         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51940         * lib/unistdio/ulc-vsnprintf.c: New file.
51941         * lib/unistdio/ulc-vsprintf.c: New file.
51942         * lib/unistdio/u8-asnprintf.c: New file.
51943         * lib/unistdio/u8-asprintf.c: New file.
51944         * lib/unistdio/u8-printf-parse.c: New file.
51945         * lib/unistdio/u8-snprintf.c: New file.
51946         * lib/unistdio/u8-sprintf.c: New file.
51947         * lib/unistdio/u8-vasnprintf.c: New file.
51948         * lib/unistdio/u8-vasprintf.c: New file.
51949         * lib/unistdio/u8-vsnprintf.c: New file.
51950         * lib/unistdio/u8-vsprintf.c: New file.
51951         * lib/unistdio/u8-u8-asnprintf.c: New file.
51952         * lib/unistdio/u8-u8-asprintf.c: New file.
51953         * lib/unistdio/u8-u8-snprintf.c: New file.
51954         * lib/unistdio/u8-u8-sprintf.c: New file.
51955         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51956         * lib/unistdio/u8-u8-vasprintf.c: New file.
51957         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51958         * lib/unistdio/u8-u8-vsprintf.c: New file.
51959         * lib/unistdio/u16-asnprintf.c: New file.
51960         * lib/unistdio/u16-asprintf.c: New file.
51961         * lib/unistdio/u16-printf-parse.c: New file.
51962         * lib/unistdio/u16-snprintf.c: New file.
51963         * lib/unistdio/u16-sprintf.c: New file.
51964         * lib/unistdio/u16-vasnprintf.c: New file.
51965         * lib/unistdio/u16-vasprintf.c: New file.
51966         * lib/unistdio/u16-vsnprintf.c: New file.
51967         * lib/unistdio/u16-vsprintf.c: New file.
51968         * lib/unistdio/u16-u16-asnprintf.c: New file.
51969         * lib/unistdio/u16-u16-asprintf.c: New file.
51970         * lib/unistdio/u16-u16-snprintf.c: New file.
51971         * lib/unistdio/u16-u16-sprintf.c: New file.
51972         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51973         * lib/unistdio/u16-u16-vasprintf.c: New file.
51974         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51975         * lib/unistdio/u16-u16-vsprintf.c: New file.
51976         * lib/unistdio/u32-asnprintf.c: New file.
51977         * lib/unistdio/u32-asprintf.c: New file.
51978         * lib/unistdio/u32-printf-parse.c: New file.
51979         * lib/unistdio/u32-snprintf.c: New file.
51980         * lib/unistdio/u32-sprintf.c: New file.
51981         * lib/unistdio/u32-vasnprintf.c: New file.
51982         * lib/unistdio/u32-vasprintf.c: New file.
51983         * lib/unistdio/u32-vsnprintf.c: New file.
51984         * lib/unistdio/u32-vsprintf.c: New file.
51985         * lib/unistdio/u32-u32-asnprintf.c: New file.
51986         * lib/unistdio/u32-u32-asprintf.c: New file.
51987         * lib/unistdio/u32-u32-snprintf.c: New file.
51988         * lib/unistdio/u32-u32-sprintf.c: New file.
51989         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51990         * lib/unistdio/u32-u32-vasprintf.c: New file.
51991         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51992         * lib/unistdio/u32-u32-vsprintf.c: New file.
51993         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51994         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51995         * tests/unistdio/test-ulc-printf1.h: New file.
51996         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51997         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51998         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51999         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52000         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52001         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52002         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52003         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52004         * tests/unistdio/test-u8-asnprintf1.c: New file.
52005         * tests/unistdio/test-u8-asnprintf1.h: New file.
52006         * tests/unistdio/test-u8-printf1.h: New file.
52007         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52008         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52009         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52010         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52011         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52012         * tests/unistdio/test-u8-vasprintf1.c: New file.
52013         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52014         * tests/unistdio/test-u8-vsprintf1.c: New file.
52015         * tests/unistdio/test-u16-asnprintf1.c: New file.
52016         * tests/unistdio/test-u16-asnprintf1.h: New file.
52017         * tests/unistdio/test-u16-printf1.h: New file.
52018         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52019         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52020         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52021         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52022         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52023         * tests/unistdio/test-u16-vasprintf1.c: New file.
52024         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52025         * tests/unistdio/test-u16-vsprintf1.c: New file.
52026         * tests/unistdio/test-u32-asnprintf1.c: New file.
52027         * tests/unistdio/test-u32-asnprintf1.h: New file.
52028         * tests/unistdio/test-u32-printf1.h: New file.
52029         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52030         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52031         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52032         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52033         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52034         * tests/unistdio/test-u32-vasprintf1.c: New file.
52035         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52036         * tests/unistdio/test-u32-vsprintf1.c: New file.
52037         * modules/unistdio/base: New file.
52038         * modules/unistdio/u-printf-args: New file.
52039         * modules/unistdio/ulc-asnprintf: New file.
52040         * modules/unistdio/ulc-asprintf: New file.
52041         * modules/unistdio/ulc-fprintf: New file.
52042         * modules/unistdio/ulc-printf-parse: New file.
52043         * modules/unistdio/ulc-snprintf: New file.
52044         * modules/unistdio/ulc-sprintf: New file.
52045         * modules/unistdio/ulc-vasnprintf: New file.
52046         * modules/unistdio/ulc-vasprintf: New file.
52047         * modules/unistdio/ulc-vfprintf: New file.
52048         * modules/unistdio/ulc-vsnprintf: New file.
52049         * modules/unistdio/ulc-vsprintf: New file.
52050         * modules/unistdio/u8-asnprintf: New file.
52051         * modules/unistdio/u8-asprintf: New file.
52052         * modules/unistdio/u8-printf-parse: New file.
52053         * modules/unistdio/u8-snprintf: New file.
52054         * modules/unistdio/u8-sprintf: New file.
52055         * modules/unistdio/u8-vasnprintf: New file.
52056         * modules/unistdio/u8-vasprintf: New file.
52057         * modules/unistdio/u8-vsnprintf: New file.
52058         * modules/unistdio/u8-vsprintf: New file.
52059         * modules/unistdio/u8-u8-asnprintf: New file.
52060         * modules/unistdio/u8-u8-asprintf: New file.
52061         * modules/unistdio/u8-u8-snprintf: New file.
52062         * modules/unistdio/u8-u8-sprintf: New file.
52063         * modules/unistdio/u8-u8-vasnprintf: New file.
52064         * modules/unistdio/u8-u8-vasprintf: New file.
52065         * modules/unistdio/u8-u8-vsnprintf: New file.
52066         * modules/unistdio/u8-u8-vsprintf: New file.
52067         * modules/unistdio/u16-asnprintf: New file.
52068         * modules/unistdio/u16-asprintf: New file.
52069         * modules/unistdio/u16-printf-parse: New file.
52070         * modules/unistdio/u16-snprintf: New file.
52071         * modules/unistdio/u16-sprintf: New file.
52072         * modules/unistdio/u16-vasnprintf: New file.
52073         * modules/unistdio/u16-vasprintf: New file.
52074         * modules/unistdio/u16-vsnprintf: New file.
52075         * modules/unistdio/u16-vsprintf: New file.
52076         * modules/unistdio/u16-u16-asnprintf: New file.
52077         * modules/unistdio/u16-u16-asprintf: New file.
52078         * modules/unistdio/u16-u16-snprintf: New file.
52079         * modules/unistdio/u16-u16-sprintf: New file.
52080         * modules/unistdio/u16-u16-vasnprintf: New file.
52081         * modules/unistdio/u16-u16-vasprintf: New file.
52082         * modules/unistdio/u16-u16-vsnprintf: New file.
52083         * modules/unistdio/u16-u16-vsprintf: New file.
52084         * modules/unistdio/u32-asnprintf: New file.
52085         * modules/unistdio/u32-asprintf: New file.
52086         * modules/unistdio/u32-printf-parse: New file.
52087         * modules/unistdio/u32-snprintf: New file.
52088         * modules/unistdio/u32-sprintf: New file.
52089         * modules/unistdio/u32-vasnprintf: New file.
52090         * modules/unistdio/u32-vasprintf: New file.
52091         * modules/unistdio/u32-vsnprintf: New file.
52092         * modules/unistdio/u32-vsprintf: New file.
52093         * modules/unistdio/u32-u32-asnprintf: New file.
52094         * modules/unistdio/u32-u32-asprintf: New file.
52095         * modules/unistdio/u32-u32-snprintf: New file.
52096         * modules/unistdio/u32-u32-sprintf: New file.
52097         * modules/unistdio/u32-u32-vasnprintf: New file.
52098         * modules/unistdio/u32-u32-vasprintf: New file.
52099         * modules/unistdio/u32-u32-vsnprintf: New file.
52100         * modules/unistdio/u32-u32-vsprintf: New file.
52101         * modules/unistdio/ulc-asnprintf-tests: New file.
52102         * modules/unistdio/ulc-vasnprintf-tests: New file.
52103         * modules/unistdio/ulc-vasprintf-tests: New file.
52104         * modules/unistdio/ulc-vsnprintf-tests: New file.
52105         * modules/unistdio/ulc-vsprintf-tests: New file.
52106         * modules/unistdio/u8-asnprintf-tests: New file.
52107         * modules/unistdio/u8-vasnprintf-tests: New file.
52108         * modules/unistdio/u8-vasprintf-tests: New file.
52109         * modules/unistdio/u8-vsnprintf-tests: New file.
52110         * modules/unistdio/u8-vsprintf-tests: New file.
52111         * modules/unistdio/u16-asnprintf-tests: New file.
52112         * modules/unistdio/u16-vasnprintf-tests: New file.
52113         * modules/unistdio/u16-vasprintf-tests: New file.
52114         * modules/unistdio/u16-vsnprintf-tests: New file.
52115         * modules/unistdio/u16-vsprintf-tests: New file.
52116         * modules/unistdio/u32-asnprintf-tests: New file.
52117         * modules/unistdio/u32-vasnprintf-tests: New file.
52118         * modules/unistdio/u32-vasprintf-tests: New file.
52119         * modules/unistdio/u32-vsnprintf-tests: New file.
52120         * modules/unistdio/u32-vsprintf-tests: New file.
52121         * MODULES.html.sh (Unicode string functions): Add the new modules.
52122
52123 2007-07-01  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/sprintf.c (sprintf): Limit the available length estimation,
52126         to avoid address wraparound.
52127         * lib/vsprintf.c (vsprintf): Likewise.
52128         * modules/sprintf-posix (Dependencies): Add stdint.
52129         * modules/vsprintf-posix (Dependencies): Likewise.
52130
52131 2007-07-01  Bruno Haible  <bruno@clisp.org>
52132
52133         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52134         Windows PATH as well. Conservative double-quoting. Comments.
52135
52136 2007-07-01  Bruno Haible  <bruno@clisp.org>
52137             Eric Blake  <ebb9@byu.net>
52138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52139
52140         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52141         empty components in $PATH, denoting '.'.
52142
52143 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52144
52145         * gnulib-tool: Fix indentation.
52146         (func_create_megatestdir): Likewise.
52147         Report by Bruno Haible.
52148
52149 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52150
52151         Sync from Automake.
52152         * build-aux/gnupload: Fix shell portability issues with for loops.
52153         Report by Karl Berry.
52154
52155 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52156
52157         * build-aux/maint.mk (POURL): Use translationproject.org.
52158
52159 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52160             Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52163         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52164         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52165         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52166         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52167
52168 2007-06-27  Bruno Haible  <bruno@clisp.org>
52169
52170         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52171         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52172
52173 2007-06-26  Karl Berry  <karl@gnu.org>
52174
52175         * MODULES.html.sh: remove xreadlink-with-size.
52176
52177 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52178
52179         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52180         method that I hope also handles the double-include problem noted
52181         by Bruno Haible in
52182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52183
52184 2007-06-23  Bruno Haible  <bruno@clisp.org>
52185
52186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52187         Don't let the 'mostlyclean' target fail if the last subdirectory could
52188         not be removed.
52189         Reported by Karl Berry.
52190
52191 2007-06-23  Bruno Haible  <bruno@clisp.org>
52192
52193         * gnulib-tool (echo): Add a speedier workaround for ksh.
52194         * tests/test-echo.sh: Likewise.
52195
52196 2007-06-23  Bruno Haible  <bruno@clisp.org>
52197
52198         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52199         * tests/test-echo.sh: Likewise.
52200
52201 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52202
52203         * gnulib-tool (IFS): Initialize early, so we don't set it to
52204         empty later.
52205         (self_abspathname): Rewrite algorithm to set it, reindent.
52206         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52207         (func_create_megatestdir): Merge some sed scripts.
52208
52209 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52210
52211         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52212         exposed by Sun Studio 11 cc on Solaris 8.
52213
52214 2007-06-22  Bruno Haible  <bruno@clisp.org>
52215
52216         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52217         backslashes.
52218         * tests/test-echo.sh: New file.
52219
52220 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52221
52222         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52223         simplify `sed_replace_build_aux' scripts, they are portable but
52224         echoing them with `echo' is not.
52225         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52226
52227 2007-06-21  Karl Berry  <karl@gnu.org>
52228
52229         * config/srclist.txt: guess we can't handle the licenses via
52230         srclist at the moment.
52231
52232 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52233
52234         * MODULES.html.sh: Add include_next.
52235         * modules/include_next: New file.
52236
52237 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52238
52239         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52240         INCLUDE_NEXT.
52241         (gl_CHECK_NEXT_HEADERS): New macro.
52242         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52243         the obsolescent gl_ABSOLUTE_HEADER.
52244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52245         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52246         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52248         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52249         * m4/math_h.m4 (gl_MATH_H): Likewise.
52250         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52251         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52252         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52253         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52254         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52255         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52256         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52261         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52262         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52265         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52266         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52267         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52268         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52269         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52270         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52271         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52272         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52273         * lib/float_.h: Likewise.
52274         * lib/inttypes_.h: Likewise.
52275         * lib/math_.h: Likewise.
52276         * lib/search_.h: Likewise.
52277         * lib/signal_.h: Likewise.
52278         * lib/stdint_.h: Likewise.
52279         * lib/stdio_.h: Likewise.
52280         * lib/stdlib_.h: Likewise.
52281         * lib/string_.h: Likewise.
52282         * lib/sys_stat_.h: Likewise.
52283         * lib/sys_time_.h: Likewise.
52284         * lib/time_.h: Likewise.
52285         * lib/unistd_.h: Likewise.
52286         * lib/wchar_.h: Likewise.
52287         * lib/wctype_.h: Likewise.
52288         * lib/dirent_.h: Likewise.
52289         * lib/iconv_.h: Likewise.
52290         * lib/locale_.h: Likewise.
52291         * lib/netinet_in_.h: Likewise.
52292         * lib/sys_select_.h: Likewise.
52293         * lib/sys_socket_.h: Likewise.
52294         * lib/sysexits_.h: Likewise.
52295         * modules/fcntl (Depends-on): Depend on include_next, not
52296         absolute_header.
52297         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52298         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52299         * modules/fchdir: Likewise.
52300         * modules/float: Likewise.
52301         * modules/iconv_open: Likewise.
52302         * modules/inttypes: Likewise.
52303         * modules/locale: Likewise.
52304         * modules/math: Likewise.
52305         * modules/netinet_in: Likewise.
52306         * modules/search: Likewise.
52307         * modules/signal: Likewise.
52308         * modules/stdint: Likewise.
52309         * modules/stdio: Likewise.
52310         * modules/stdlib: Likewise.
52311         * modules/string: Likewise.
52312         * modules/sys_select: Likewise.
52313         * modules/sys_socket: Likewise.
52314         * modules/sys_stat: Likewise.
52315         * modules/sys_time: Likewise.
52316         * modules/sysexits: Likewise.
52317         * modules/time: Likewise.
52318         * modules/unistd: Likewise.
52319         * modules/wchar: Likewise.
52320         * modules/wctype: Likewise.
52321         * modules/sys_stat: Change maintainer to "all".
52322         * modules/unistd: Likewise.
52323
52324 2007-06-20  Karl Berry  <karl@gnu.org>
52325
52326         * config/srclist.txt: track www changes in license files.
52327
52328 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52329
52330         * build-aux/bootstrap: Remove stray dot.
52331         Make sure build_aux settings are honored when linking
52332         gnulib_extra_files.
52333
52334 2007-06-19  Eric Blake  <ebb9@byu.net>
52335
52336         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52337         Allow compilation on cygwin.
52338
52339 2007-06-19  Jim Meyering  <jim@meyering.net>
52340
52341         xreadlink-with-size: Remove module.  No longer used.
52342         Ex-callers now use xreadlink or mreadlink-with-size.
52343         * modules/xreadlink-with-size: Remove module.
52344         * lib/xreadlink-with-size.c: Remove file.
52345         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52346         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52347         just before the function definition *is* accurate.
52348
52349         Eliminate one way canonicalize_filename_mode could exit.
52350         * lib/canonicalize.c (canonicalize_filename_mode):
52351         Use mreadlink_with_size, not xreadlink_with_size.
52352
52353 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         Detect porting problems to FreeBSD/arm, which has time_t wider than
52356         long int.  Original problem reported for GNU diff by Xin Li in
52357         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52358         * modules/getdate (Depends-on): Add intprops, verify.
52359         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52360         is an integer type no wider than long int.
52361
52362 2007-06-18  Jim Meyering  <jim@meyering.net>
52363
52364         New module: mreadlink-with-size.
52365         * MODULES.html.sh: Add mreadlink-with-size.
52366         * modules/mreadlink-with-size: New module
52367         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52368         not xreadlink-with-size.
52369         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52370
52371 2007-06-16  Bruno Haible  <bruno@clisp.org>
52372
52373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52374         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52375         Reported by Gary V. Vaughan <gary@gnu.org>.
52376
52377 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52378
52379         Revamp lchown so that it lives in unistd.h where it belongs.
52380         * lib/lchown.h: Remove.
52381         * lib/dirchownmod.c: Don't include lib/lchown.h.
52382         * lib/fchownat.c: Likewise.
52383         * lib/openat.c: Likewise.
52384         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52385         does not follow symlinks.
52386         (EOPNOTSUPP): Define if not defined.
52387         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52388         is defined to 0.
52389         (lchown): New decl.
52390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52391         Do not check for lchown decl.
52392         Set REPLACE_LCHOWN.
52393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52394         REPLACE_LCHOWN.
52395         * modules/chown: Make it clear it follows symlinks.
52396         * modules/lchown: Make it clear it doesn't follow symlinks.
52397         (Files): Remove lib/lchown.h
52398         (Depends-on): Add unistd.
52399         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52400         (Include): Include <unistd.h>, not "lchown.h".
52401         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52402         REPLACE_LCHOWN.
52403
52404 2007-06-15  Jim Meyering  <jim@meyering.net>
52405
52406         Change license (GPL to LGPL) of fsusage and dependents.
52407         * modules/fsusage (License): Change to LGPL.
52408         * modules/full-read (License): Likewise.
52409         * modules/full-write (License): Likewise.
52410         * modules/safe-read (License): Likewise.
52411         * modules/safe-write (License): Likewise.
52412
52413 2007-06-14  Ben Pfaff  <blp@gnu.org>
52414
52415         Missing part of allocsa -> malloca transition.
52416         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52417         gl_MALLOCA.
52418
52419 2007-06-12  Bruno Haible  <bruno@clisp.org>
52420
52421         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52422         to ia64, x86_64, i386.
52423         Reported by Eric Blake.
52424
52425 2007-06-12  Bruno Haible  <bruno@clisp.org>
52426
52427         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52428         cross-compiling to x86_64.
52429
52430 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52431
52432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52433         glitch reported by Ralf Wildenhues in
52434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52435
52436         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52437         Vin Shelton.
52438
52439 2007-06-11  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52442         replacement string.
52443         Reported by Eric Blake.
52444
52445 2007-06-10  Bruno Haible  <bruno@clisp.org>
52446
52447         Prepare vasnprintf code for use with Unicode strings.
52448         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52449         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52450         TYPE_U32_STRING.
52451         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52452         a_u32_string variants.
52453         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52454         * lib/printf-args.c: Don't include config.h and the specification
52455         header if PRINTF_FETCHARGS is already defined.
52456         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52457         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52458         TYPE_U16_STRING, TYPE_U32_STRING.
52459         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52460         u16_directive, u16_directives, u32_directive, u32_directives): New
52461         types.
52462         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52463         New declarations.
52464         * lib/printf-parse.c: Don't include config.h and the specification
52465         header if PRINTF_PARSE is already defined. Eliminate the set of
52466         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52467         them now. Include c-ctype.h.
52468         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52469         directive and CHAR_T_ONLY_ASCII.
52470         * lib/vasnprintf.c: Don't include config.h and the specification header
52471         if VASNPRINTF is already defined.
52472         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52473         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52474         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52475         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52476         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52477         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52478         code accordingly.
52479         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52480         pad_ourselves also in this case, with the 'c' and 's' directives, and
52481         with a different notion of "width".
52482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52483
52484 2007-06-10  Bruno Haible  <bruno@clisp.org>
52485
52486         * modules/unistr/u32-mbsnlen: New file.
52487         * lib/unistr/u32-mbsnlen.c: New file.
52488
52489         * modules/unistr/u16-mbsnlen: New file.
52490         * lib/unistr/u16-mbsnlen.c: New file.
52491
52492         * modules/unistr/u8-mbsnlen: New file.
52493         * lib/unistr/u8-mbsnlen.c: New file.
52494
52495         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52496         declarations.
52497
52498 2007-06-10  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/string_.h (mbsnlen): New declaration.
52501         * lib/mbsnlen.c: New file.
52502         * m4/mbsnlen.m4: New file.
52503         * modules/mbsnlen: New file.
52504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52505         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52506         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52507
52508 2007-06-10  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52511
52512 2007-06-10  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52515         * lib/mbuiter.h: Likewise.
52516
52517 2007-06-10  Bruno Haible  <bruno@clisp.org>
52518
52519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52520         declaration.
52521
52522 2007-06-10  Karl Berry  <karl@gnu.org>
52523
52524         * config/srclist.txt: remove gettext entries, Bruno prefers
52525         to update individually.
52526
52527 2007-06-10  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52530         'maxlen'. Ensure only length + width bytes are allocated, not
52531         length + 1 + width.
52532
52533 2007-06-09  Bruno Haible  <bruno@clisp.org>
52534
52535         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52536         (CHAR_T): Remove macro.
52537         (VASNPRINTF): Update.
52538
52539 2007-06-09  Bruno Haible  <bruno@clisp.org>
52540
52541         * MODULES.html.sh (Unicode string functions): Add the new modules.
52542
52543         * modules/uniconv/u32-conv-to-enc: New file.
52544         * lib/uniconv/u32-conv-to-enc.c: New file.
52545         * modules/uniconv/u32-conv-to-enc-tests: New file.
52546         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52547
52548         * modules/uniconv/u16-conv-to-enc: New file.
52549         * lib/uniconv/u16-conv-to-enc.c: New file.
52550         * lib/uniconv/u-conv-to-enc.h: New file.
52551         * modules/uniconv/u16-conv-to-enc-tests: New file.
52552         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52553
52554         * modules/uniconv/u8-conv-to-enc: New file.
52555         * lib/uniconv/u8-conv-to-enc.c: New file.
52556         * modules/uniconv/u8-conv-to-enc-tests: New file.
52557         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52558
52559         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52560         u32_conv_to_encoding): New declarations.
52561
52562 2007-06-09  Bruno Haible  <bruno@clisp.org>
52563
52564         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52565
52566 2007-06-09  Bruno Haible  <bruno@clisp.org>
52567
52568         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52569         * modules/malloca: Renamed from modules/allocsa, updated.
52570         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52571         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52572         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52573         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52574         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52575         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52576         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52577         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52578         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52579         * modules/c-strcasestr (Depends-on): Update.
52580         * lib/c-strcasestr.c: Update.
52581         * modules/c-strstr (Depends-on): Update.
52582         * lib/c-strstr.c: Update.
52583         * modules/canonicalize-lgpl (Depends-on): Update.
52584         * lib/canonicalize-lgpl.c: Update.
52585         * modules/clean-temp (Depends-on): Update.
52586         * lib/clean-temp.c: Update.
52587         * modules/csharpcomp (Depends-on): Update.
52588         * lib/csharpcomp.c: Update.
52589         * modules/csharpexec (Depends-on): Update.
52590         * lib/csharpexec.c: Update.
52591         * modules/javacomp (Depends-on): Update.
52592         * lib/javacomp.c: Update.
52593         * modules/javaexec (Depends-on): Update.
52594         * lib/javaexec.c: Update.
52595         * modules/mbscasestr (Depends-on): Update.
52596         * lib/mbscasestr.c: Update.
52597         * modules/mbsstr (Depends-on): Update.
52598         * lib/mbsstr.c: Update.
52599         * modules/setenv (Depends-on): Update.
52600         * lib/setenv.c: Update.
52601         * modules/strcasestr (Depends-on): Update.
52602         * lib/strcasestr.c: Update.
52603         * modules/striconveha (Depends-on): Update.
52604         * lib/striconveha.c: Update.
52605         * modules/relocatable-prog-wrapper (Files): Update.
52606         * lib/relocwrapper.c: Update.
52607         * build-aux/install-reloc: Update.
52608         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52609
52610 2007-06-08  Bruno Haible  <bruno@clisp.org>
52611
52612         Port to uClibc.
52613         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52614         * lib/fpurge.c (fpurge): Likewise.
52615         * lib/freading.c (freading): Likewise.
52616         * lib/fseeko.c (rpl_fseeko): Likewise.
52617         * lib/fseterr.c (fseterr): Likewise.
52618         * lib/fwriting.c (fwriting): Likewise.
52619         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52620
52621 2007-06-08  Bruno Haible  <bruno@clisp.org>
52622
52623         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52624         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52625         * modules/gettext (Files): Add m4/intlmacosx.m4.
52626
52627 2007-06-07  Bruno Haible  <bruno@clisp.org>
52628
52629         * modules/localename-tests: New file.
52630         * tests/test-localename.c: New file.
52631
52632         New module 'localename'.
52633         * lib/localename.h: New file.
52634         * lib/localename.c: New file, from GNU gettext.
52635         * m4/localename.m4: New file.
52636         * modules/localename: New file.
52637
52638 2007-06-07  Bruno Haible  <bruno@clisp.org>
52639
52640         Work around the lack of <wchar.h> on some builds of uClibc.
52641         * doc/headers/wchar.texi: Update.
52642         * lib/wchar_.h: Include <wchar.h> only if it exists.
52643         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52644         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52645         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52646         doesn't exist.
52647         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52648         * modules/mbfile (Depends-on): Add wchar.
52649         * modules/mbiter (Depends-on): Likewise.
52650         * modules/mbuiter (Depends-on): Likewise.
52651         Reported by Simon Josefsson.
52652
52653 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         Work around problem reported by Steven M. Schweda in
52656         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52657         Tru64 5.1B with the Compaq compiler environment installed declares
52658         an 'isblank' function but does not define it in the C library.
52659         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52660         * lib/regex_internal.h (isblank): Likewise.
52661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52662         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52663
52664 2007-06-05  Bruno Haible  <bruno@clisp.org>
52665
52666         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52667         ia64.
52668         * modules/printf-safe: New file.
52669         * modules/fprintf-posix (Depends-on): Add printf-safe.
52670         * modules/printf-posix (Depends-on): Likewise.
52671         * modules/snprintf-posix (Depends-on): Likewise.
52672         * modules/sprintf-posix (Depends-on): Likewise.
52673         * modules/vasnprintf-posix (Depends-on): Likewise.
52674         * modules/vasprintf-posix (Depends-on): Likewise.
52675         * modules/vfprintf-posix (Depends-on): Likewise.
52676         * modules/vprintf-posix (Depends-on): Likewise.
52677         * modules/vsnprintf-posix (Depends-on): Likewise.
52678         * modules/vsprintf-posix (Depends-on): Likewise.
52679         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52680         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52681         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52682         "no" on i386, x86_64, ia64.
52683         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52684         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52685         on i386, x86_64, ia64.
52686         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52687         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52688         on i386, x86_64, ia64.
52689         * tests/test-vasnprintf-posix.c: Include float.h.
52690         (LDBL80_WORDS): New macro.
52691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52692         on i386, x86_64, ia64.
52693         * tests/test-vasprintf-posix.c: Include float.h.
52694         (LDBL80_WORDS): New macro.
52695         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52696         on i386, x86_64, ia64.
52697         * tests/test-snprintf-posix.c: Include float.h.
52698         * tests/test-sprintf-posix.c: Likewise.
52699         * tests/test-vsnprintf-posix.c: Likewise.
52700         * tests/test-vsprintf-posix.c: Likewise.
52701
52702 2007-06-05  Bruno Haible  <bruno@clisp.org>
52703
52704         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52705         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52706         non-IEEE numbers on i386, x86_64, ia64.
52707         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52708         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52709         * tests/test-isnanl.h: Include float.h.
52710         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52711
52712 2007-06-05  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52715         also the %a / %A. Handle the %a / %A code before this extra handling.
52716
52717 2007-06-05  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52720         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52721
52722 2007-06-05  Bruno Haible  <bruno@clisp.org>
52723
52724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52725         typo in variable name.
52726
52727 2007-06-05  Eric Blake  <ebb9@byu.net>
52728
52729         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52730         Reported by Simon Josefsson.
52731
52732 2007-06-04  Bruno Haible  <bruno@clisp.org>
52733
52734         Avoid test failures on some PowerPC platforms.
52735         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52736         Define differently for PowerPC.
52737         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52738         Reported by Gary V. Vaughan <gary@gnu.org>.
52739
52740 2007-06-02  Bruno Haible  <bruno@clisp.org>
52741
52742         Fix test-stdint failure on FreeBSD/ia64.
52743         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52744         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52745         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52746         * doc/headers/stdint.texi: Update.
52747
52748 2007-06-01  Bruno Haible  <bruno@clisp.org>
52749
52750         * tests/test-binary-io.c (main): Pass a third argument to open().
52751         Reported by Gary V. Vaughan <gary@gnu.org>.
52752
52753 2007-06-01  Bruno Haible  <bruno@clisp.org>
52754
52755         * doc/functions/frexpl.texi: Update for mingw.
52756
52757 2007-06-01  Bruno Haible  <bruno@clisp.org>
52758
52759         * tests/test-lseek.c (main): Disable test of errno for invalid third
52760         argument.
52761         * doc/functions/lseek.texi: Update.
52762         Reported by Gary V. Vaughan <gary@gnu.org>.
52763
52764 2007-05-28  Bruno Haible  <bruno@clisp.org>
52765
52766         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52767
52768 2007-05-31  Eric Blake  <ebb9@byu.net>
52769
52770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52771         cross compiling.
52772
52773 2007-05-30  Eric Blake  <ebb9@byu.net>
52774         and Bruno Haible  <bruno@clisp.org>
52775
52776         Work around mingw test failures exposed by m4-1.4.9b.
52777         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52778         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52779         moment.
52780
52781 2007-05-30  Bruno Haible  <bruno@clisp.org>
52782
52783         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52784         assuming that they are closed. Needed on HP-UX 11.
52785
52786 2007-05-29  Bruno Haible  <bruno@clisp.org>
52787
52788         Fix a problem with #include_next.
52789         * lib/dirent_.h: Split the double-inclusion guard.
52790         * lib/fcntl_.h: Likewise.
52791         * lib/float_.h: Likewise.
52792         * lib/iconv_.h: Likewise.
52793         * lib/inttypes_.h: Likewise.
52794         * lib/locale_.h: Likewise.
52795         * lib/math_.h: Likewise.
52796         * lib/netinet_in_.h: Likewise.
52797         * lib/search_.h: Likewise.
52798         * lib/signal_.h: Likewise.
52799         * lib/stdint_.h: Likewise.
52800         * lib/stdio_.h: Likewise.
52801         * lib/stdlib_.h: Likewise.
52802         * lib/string_.h: Likewise.
52803         * lib/sys_select_.h: Likewise.
52804         * lib/sys_socket_.h: Likewise.
52805         * lib/sys_stat_.h: Likewise.
52806         * lib/sys_time_.h: Likewise.
52807         * lib/sysexits_.h: Likewise.
52808         * lib/time_.h: Likewise.
52809         * lib/unistd_.h: Likewise.
52810         * lib/wchar_.h: Likewise.
52811         * lib/wctype_.h: Likewise.
52812
52813 2007-05-29  Bruno Haible  <bruno@clisp.org>
52814
52815         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52816         for the moment.
52817
52818 2007-05-29  Bruno Haible  <bruno@clisp.org>
52819
52820         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52821         invocation.
52822         Reported by Eric Blake.
52823
52824 2007-05-29  Bruno Haible  <bruno@clisp.org>
52825
52826         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52827         compiling case.
52828
52829 2007-05-29  Eric Blake  <ebb9@byu.net>
52830             Bruno Haible  <bruno@clisp.org>
52831
52832         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52833         cross compiles.
52834
52835 2007-05-28  Eric Blake  <ebb9@byu.net>
52836
52837         * modules/closein-tests (test_closein_LDADD): Support test on
52838         cygwin with libtool.
52839
52840 2007-05-28  Bruno Haible  <bruno@clisp.org>
52841
52842         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52843         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52844         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52845         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52846         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52847         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52848         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52849         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52850         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52851
52852 2007-05-28  Eric Blake  <ebb9@byu.net>
52853
52854         Unconditionally include <config.h> in unit tests.
52855         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52856         * tests/test-allocsa.c, tests/test-arcfour.c,
52857         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52858         tests/test-array_list.c, tests/test-array_oset.c,
52859         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52860         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52861         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52862         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52863         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52864         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52865         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52866         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52867         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52868         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52869         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52870         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52871         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52872         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52873         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52874         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52875         test-md5.c, test-memmem.c, test-printf-posix.c,
52876         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52877         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52878         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52879         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52880         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52881         test-vasnprintf-posix2.c, test-vasnprintf.c,
52882         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52883         test-vfprintf-posix.c, test-vprintf-posix.c,
52884         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52885         test-xvasprintf.c: Likewise.
52886
52887 2007-05-28  Bruno Haible  <bruno@clisp.org>
52888
52889         * gnulib-tool (func_import): Remember the --with-tests command-line
52890         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52891         Reported by Eric Blake.
52892
52893 2007-05-28  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/ftell-tests: New file.
52896         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52897         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52898
52899         * lib/ftell.c: New file.
52900         * modules/ftell: New file.
52901         * m4/ftell.m4: New file.
52902         * doc/functions/ftell.texi: Update.
52903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52904         REPLACE_FTELL.
52905         * lib/stdio_.h (rpl_ftell): New declaration.
52906         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52907         REPLACE_FTELL.
52908
52909 2007-05-28  Eric Blake  <ebb9@byu.net>
52910
52911         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52912
52913 2007-05-28  Bruno Haible  <bruno@clisp.org>
52914
52915         * modules/fseek-tests: New file.
52916         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52917         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52918
52919         * lib/fseek.c: New file.
52920         * modules/fseek: New file.
52921         * m4/fseek.m4: New file.
52922         * doc/functions/fseek.texi: Update.
52923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52924         REPLACE_FSEEK.
52925         * lib/stdio_.h (rpl_fseek): New declaration.
52926         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52927         REPLACE_FSEEK.
52928
52929 2007-05-28  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/stdio_.h (fflush): More comments.
52932
52933 2007-05-28  Bruno Haible  <bruno@clisp.org>
52934
52935         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52936         runtime test.
52937
52938 2007-05-28  Eric Blake  <ebb9@byu.net>
52939
52940         Improve lseek module.
52941         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52942         * lib/unistd_.h (lseek): Scale back link warning message.
52943         * tests/test-lseek.c: Beef up test.
52944         * tests/test-lseek.sh: Exercise more facets of lseek.
52945         Reported by Bruno Haible.
52946
52947 2007-05-28  Bruno Haible  <bruno@clisp.org>
52948
52949         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52950         to define.
52951
52952 2007-05-27  Bruno Haible  <bruno@clisp.org>
52953
52954         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52955
52956 2007-05-27  Bruno Haible  <bruno@clisp.org>
52957
52958         * modules/openmp: New file.
52959         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52960         Noah Misch.
52961
52962 2007-05-26  Bruno Haible  <bruno@clisp.org>
52963
52964         * modules/chdir-long (Depends-on): Add fchdir.
52965         * modules/chdir-safer (Depends-on): Likewise.
52966         * modules/fts (Depends-on): Likewise.
52967         * modules/fts-lgpl (Depends-on): Likewise.
52968         * modules/openat (Depends-on): Likewise.
52969         * modules/savewd (Depends-on): Likewise.
52970
52971 2007-05-24  Eric Blake  <ebb9@byu.net>
52972
52973         Fix lseek on mingw.
52974         * modules/lseek: New module.
52975         * m4/lseek.m4: New file.
52976         * lib/lseek.c: New file.
52977         * modules/lseek-tests: New file.
52978         * tests/test-lseek.c: New file.
52979         * tests/test-lseek.sh: New file.
52980         * MODULES.html.sh: Document lseek module.
52981         * modules/fflush (Depends-on): Add lseek, fseeko.
52982         * modules/fseeko (Depends-on): Likewise.
52983         * modules/ftello (Depends-on): Likewise.
52984         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52985         broken.
52986         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52987         broken.
52988         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52989         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52990         * lib/ftello.c (rpl_ftello): Likewise.
52991         * tests/test-fseeko.c (main): Test this.
52992         * tests/test-fseeko.sh: Likewise.
52993         * tests/test-ftello.c (main): Likewise.
52994         * tests/test-ftello.sh: Likewise.
52995         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52996         implies replacing fseek.
52997         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52998         HAVE_FTELLO.
52999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53000         * modules/unistd (Makefile.am): Likewise.
53001         * lib/unistd_.h (lseek): Declare a replacement.
53002         * doc/functions/lseek.texi (lseek): Document this fix.
53003         * doc/functions/fseek.texi (fseek): Likewise.
53004         * doc/functions/ftell.texi (ftell): Likewise.
53005
53006 2007-05-24  Bruno Haible  <bruno@clisp.org>
53007
53008         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53009         in the printed representation of a NaN.
53010         * tests/test-vasprintf-posix.c (test_function): Likewise.
53011         * tests/test-snprintf-posix.h (test_function): Likewise.
53012         * tests/test-sprintf-posix.h (test_function): Likewise.
53013         Reported by Eric Blake.
53014
53015 2007-05-23  Eric Blake  <ebb9@byu.net>
53016
53017         Fix fseeko/ftello on cygwin 1.5.24.
53018         * doc/functions/fseeko.texi (fseeko): Document the fix.
53019         * doc/functions/ftello.texi (ftello): Document the fix.
53020         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53021         * doc/functions/stdout.text (stdout): New file.
53022         * doc/functions/stderr.text (stderr): New file.
53023         * doc/gnulib.texi (Function Substitutes): Use new files.
53024         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53025         prior to 1.7.0.
53026         * tests/test-ftello.c (main): Likewise for ftello.
53027         * tests/test-fseeko.sh: New file.
53028         * tests/test-ftello.sh: New file.
53029         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53030         with seekable stdin.
53031         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53033         (gl_REPLACE_FSEEKO): New macro.
53034         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53035         * modules/fseeko (Files): Distribute fseeko.c.
53036         * modules/ftello (Files): Distribute ftello.c.
53037         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53038         mode.
53039         * lib/ftello.c (rpl_ftello): New file.
53040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53041         fseeko, ftello.
53042         (gl_STDIN_LARGE_OFFSET): New macro.
53043         * modules/stdio (Makefile.am): Perform the replacement.
53044         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53045
53046 2007-05-23  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53049         GNULIB_POSIXCHECK is defined.
53050
53051 2007-05-21  Bruno Haible  <bruno@clisp.org>
53052
53053         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53054         Check also the output for NaN arguments. When cross-compiling, guess
53055         no on IRIX.
53056         * lib/vasnprintf.c: Update comments.
53057         * tests/test-vasnprintf-posix.c (strisnan): New function.
53058         (test_function): Use it.
53059         * tests/test-vasprintf-posix.c (strisnan): New function.
53060         (test_function): Use it.
53061         * tests/test-snprintf-posix.h (strisnan): New function.
53062         (test_function): Use it.
53063         * tests/test-sprintf-posix.h (strisnan): New function.
53064         (test_function): Use it.
53065         Reported by Eric Blake.
53066
53067 2007-05-20  Bruno Haible  <bruno@clisp.org>
53068
53069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53070         numbers that fails on BeOS.
53071         * doc/functions/frexpl.texi: Update.
53072
53073 2007-05-20  Jim Meyering  <jim@meyering.net>
53074
53075         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53076         forced upon us by glibc-2.6.
53077
53078 2007-05-20  Bruno Haible  <bruno@clisp.org>
53079
53080         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53081         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53082         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53083         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53084         NEED_PRINTF_INFINITE.
53085         (is_infinitel): New function.
53086         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53088         gl_PREREQ_VASNPRINTF_INFINITE.
53089         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53091         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53092         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53093         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53094         gl_PREREQ_VASNPRINTF_INFINITE.
53095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53102         * doc/functions/fprintf.texi: Update.
53103         * doc/functions/printf.texi: Update.
53104         * doc/functions/snprintf.texi: Update.
53105         * doc/functions/sprintf.texi: Update.
53106         * doc/functions/vfprintf.texi: Update.
53107         * doc/functions/vprintf.texi: Update.
53108         * doc/functions/vsnprintf.texi: Update.
53109         * doc/functions/vsprintf.texi: Update.
53110
53111 2007-05-20  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53114         was not found in libc.
53115         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53116
53117 2007-05-20  Bruno Haible  <bruno@clisp.org>
53118
53119         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53120         printed as "-nan" instead of "nan".
53121         * tests/test-vasprintf-posix.c (test_function): Likewise.
53122         * tests/test-snprintf-posix.h (test_function): Likewise.
53123         * tests/test-sprintf-posix.h (test_function): Likewise.
53124         Needed for HP-UX 11.
53125
53126 2007-05-20  Jim Meyering  <jim@meyering.net>
53127
53128         Fix buggy test for the fchownat-deref bug.
53129         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53130         symlink required for the run-test.  Without it, this test would
53131         always declare that fchownat doesn't work, and client code would
53132         unnecessarily use the replacement function with fixed libc.
53133         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53134         Reported by Greg Schafer.
53135
53136 2007-05-19  Bruno Haible  <bruno@clisp.org>
53137
53138         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53139         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53140         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53141         Needed for IRIX 6.5 and Solaris 2.5.1.
53142
53143 2007-05-19  Bruno Haible  <bruno@clisp.org>
53144
53145         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53146         (test_function): Skip tests involving -0.0 on platforms where
53147         -0.0 = 0.0.
53148         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53149         (test_function): Skip tests involving -0.0 on platforms where
53150         -0.0 = 0.0.
53151         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53152         (test_function): Skip tests involving -0.0 on platforms where
53153         -0.0 = 0.0.
53154         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53155         (test_function): Skip tests involving -0.0 on platforms where
53156         -0.0 = 0.0.
53157         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53158         tests.
53159         * tests/test-printf-posix.h (test_function): Likewise.
53160         * tests/test-printf-posix.output: Remove all -0.0 related results.
53161         Needed for IRIX 6.5.
53162
53163 2007-05-19  Bruno Haible  <bruno@clisp.org>
53164
53165         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53166         printed as "nan0x7fffffff" instead of "nan".
53167         * tests/test-vasprintf-posix.c (test_function): Likewise.
53168         * tests/test-snprintf-posix.h (test_function): Likewise.
53169         * tests/test-sprintf-posix.h (test_function): Likewise.
53170         * tests/test-fprintf-posix.h (NaN): Remove macro.
53171         (test_function): Remove all NaN related tests.
53172         * tests/test-printf-posix.h (NaN): Remove macro.
53173         (test_function): Remove all NaN related tests.
53174         * tests/test-printf-posix.output: Remove all NaN related results.
53175         Needed for IRIX 6.5.
53176
53177 2007-05-19  Bruno Haible  <bruno@clisp.org>
53178
53179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53181
53182 2007-05-19  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/float_.h: New file.
53185         * m4/float_h.m4: New file.
53186         * modules/float: New file.
53187         * modules/isnanl (Dependencies): Add float.
53188         * modules/isnanl-nolibm (Dependencies): Likewise.
53189         * modules/mathl (Dependencies): Likewise.
53190         * modules/printf-frexpl (Dependencies): Likewise.
53191         * modules/signbit (Dependencies): Likewise.
53192         * modules/vasnprintf (Dependencies): Likewise.
53193         * doc/headers/float.texi: Update.
53194
53195 2007-05-19  Jim Meyering  <jim@meyering.net>
53196
53197         * lib/utimens.c (gl_futimens): Rename from futimens,
53198         now that glibc-2.6 declares futimens.
53199         * lib/utimens.h: Likewise.
53200
53201 2007-05-19  Bruno Haible  <bruno@clisp.org>
53202
53203         Avoid test failures on mingw.
53204         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53205         * tests/test-printf-posix.sh: Likewise.
53206         * tests/test-vfprintf-posix.sh: Likewise.
53207         * tests/test-vprintf-posix.sh: Likewise.
53208
53209 2007-05-19  Bruno Haible  <bruno@clisp.org>
53210
53211         Fix *printf result for NaN, Inf, -0.0 on mingw.
53212         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53213         * lib/vasnprintf.c: Include math.h and isnan.h.
53214         (is_infinite_or_zero): New function.
53215         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53216         values in the %f, %F, %e, %E, %g, %G directives.
53217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53219         gl_PRINTF_INFINITE and test its result. Invoke
53220         gl_PREREQ_VASNPRINTF_INFINITE.
53221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53228         * doc/functions/fprintf.texi: Update.
53229         * doc/functions/printf.texi: Update.
53230         * doc/functions/snprintf.texi: Update.
53231         * doc/functions/sprintf.texi: Update.
53232         * doc/functions/vfprintf.texi: Update.
53233         * doc/functions/vprintf.texi: Update.
53234         * doc/functions/vsnprintf.texi: Update.
53235         * doc/functions/vsprintf.texi: Update.
53236
53237 2007-05-19  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53240         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53241         Instead of multiplying with 10^k, set extra_zeroes to k.
53242         (scale10_round_long_double): Remove function.
53243
53244 2007-05-18  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53247         introduced on 2007-05-06.
53248
53249 2007-05-18  Bruno Haible  <bruno@clisp.org>
53250
53251         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53252         %g directives.
53253         * tests/test-vasprintf-posix.c (test_function): Likewise.
53254         * tests/test-snprintf-posix.h (test_function): Likewise.
53255         * tests/test-sprintf-posix.h (test_function): Likewise.
53256
53257 2007-05-18  Bruno Haible  <bruno@clisp.org>
53258
53259         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53260         (strmatch): New function.
53261         (test_function): Test the %f directive on numbers of various exponents.
53262         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53263         (strmatch): New function.
53264         (test_function): Test the %f directive on numbers of various exponents.
53265         * tests/test-snprintf-posix.h (strmatch): New function.
53266         (test_function): Test the %f directive on numbers of various exponents.
53267         * tests/test-sprintf-posix.h (strmatch): New function.
53268         (test_function): Test the %f directive on numbers of various exponents.
53269         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53270         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53271         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53272         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53273
53274 2007-05-18  Bruno Haible  <bruno@clisp.org>
53275
53276         Add support for 'long double' number output.
53277         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53278         * lib/vasnprintf.c: Include math.h and float+.h.
53279         (mp_limb_t): New type.
53280         (GMP_LIMB_BITS): New macro.
53281         (mp_twolimb_t): New type.
53282         (GMP_TWOLIMB_BITS): New macro.
53283         (mpn_t): New type.
53284         (multiply, divide, convert_to_decimal, decode_long_double,
53285         scale10_round_long_double, scale10_round_decimal_long_double,
53286         floorlog10l): New functions.
53287         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53288         for the %f, %F, %e, %E, %g, %G directives.
53289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53291         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53292         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53300         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53301         * modules/snprintf-posix (Depends-on): Likewise.
53302         * modules/sprintf-posix (Depends-on): Likewise.
53303         * modules/vasnprintf-posix (Depends-on): Likewise.
53304         * modules/vasprintf-posix (Depends-on): Likewise.
53305         * modules/vfprintf-posix (Depends-on): Likewise.
53306         * modules/vsnprintf-posix (Depends-on): Likewise.
53307         * modules/vsprintf-posix (Depends-on): Likewise.
53308         * modules/vasnprintf (Files): Add lib/float+.h.
53309         * doc/functions/fprintf.texi: Update.
53310         * doc/functions/printf.texi: Update.
53311         * doc/functions/snprintf.texi: Update.
53312         * doc/functions/sprintf.texi: Update.
53313         * doc/functions/vfprintf.texi: Update.
53314         * doc/functions/vprintf.texi: Update.
53315         * doc/functions/vsnprintf.texi: Update.
53316         * doc/functions/vsprintf.texi: Update.
53317
53318 2007-05-18  Bruno Haible  <bruno@clisp.org>
53319
53320         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53321
53322 2007-05-18  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53325         for printing 64-bit integers. Needed for mingw.
53326
53327 2007-05-18  Bruno Haible  <bruno@clisp.org>
53328
53329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53330         gl_FUNC_FREXPL_WORKS.
53331         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53332
53333 2007-05-18  Bruno Haible  <bruno@clisp.org>
53334
53335         * modules/frexpl-nolibm-tests: New file.
53336
53337         * modules/frexpl-nolibm: New file.
53338         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53339
53340 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53343         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53344         GCC 4.2, which otherwise issues a lot of warnings.
53345         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53346         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53347         Likewise.
53348         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53349         * modules/iconv_open (iconv.h): Likewise.
53350         * modules/locale (locale.h): Likewise.
53351         * modules/netinet_in (netinet/in.h): Likewise.
53352         * modules/sys_select (sys_select.h): Likewise.
53353         * modules/sys_socket (sys/socket.h): Likewise.
53354         * modules/sys_stat (sys/stat.h): Likewise.
53355         * modules/sysexits (sysexits.h): Likewise.
53356         * modules/unistd (unistd.h): Likewise.
53357
53358 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53359
53360         * modules/closein-tests (Makefile.am): Distribute
53361         `test-closein.sh'.
53362
53363 2007-05-17  Bruno Haible  <bruno@clisp.org>
53364
53365         * tests/test-printf-posix.output: Renamed from
53366         tests/test-fprintf-posix.out.
53367         * modules/fprintf-posix-tests: Update.
53368         * modules/printf-posix-tests: Update.
53369         * modules/vfprintf-posix-tests: Update.
53370         * modules/vprintf-posix-tests: Update.
53371         * tests/test-fprintf-posix.sh: Update.
53372         * tests/test-printf-posix.sh: Update.
53373         * tests/test-vfprintf-posix.sh: Update.
53374         * tests/test-vprintf-posix.sh: Update.
53375         Reported by Ralf Wildenhues.
53376
53377 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53378
53379         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53380         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53381         GCC 4.2, which otherwise issues a lot of warnings.
53382         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53383         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53384         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53385         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53386         it should no longer be needed.
53387         * lib/string_.h: Likewise.
53388         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53389         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53390         * modules/inttypes (inttypes.h): Likewise.
53391         * modules/math (math.h): Likewise.
53392         * modules/search (search.h): Likewise.
53393         * modules/signal (signal.h): Likewise.
53394         * modules/stdint (stdint.h): Likewise.
53395         * modules/stdio (stdio.h): Likewise.
53396         * modules/stdlib (stdlib.h): Likewise.
53397         * modules/string (string.h): Likewise.
53398         * modules/sys_time (sys/time.h): Likewise.
53399         * modules/time (time.h): Likewise.
53400         * modules/wchar (wchar.h): Likewise.
53401         * modules/wctype (wtype.h): Likewise.
53402
53403 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53404
53405         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53406
53407 2007-05-13  Bruno Haible  <bruno@clisp.org>
53408
53409         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53410         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53411         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53412         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53413         (gl_PREREQ_STRTOK_R): Don't require it here.
53414
53415 2007-05-13  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53418         when used in C++ mode.
53419
53420 2007-05-12  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/linebuffer.h: Tweak doc.
53423         * lib/linebuffer.c: Likewise.
53424
53425 2007-05-12  James Youngman  <jay@gnu.org>
53426
53427         * lib/linebuffer.c (readlinebuffer_delim): New function,
53428         like readlinebuffer, but use a caller-specified delimiter.
53429         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53430         as the delimiter.
53431         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53432
53433 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53434
53435         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53436         * modules/openat (Files): Remove openat-die.c.
53437         (Depends-on): Add openat-die.
53438         * modules/openat-die: New module.
53439
53440 2007-05-06  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53443         Update with info about Cygwin.
53444         * doc/functions/fprintf.texi: Update.
53445         * doc/functions/printf.texi: Update.
53446         * doc/functions/snprintf.texi: Update.
53447         * doc/functions/sprintf.texi: Update.
53448         * doc/functions/vfprintf.texi: Update.
53449         * doc/functions/vprintf.texi: Update.
53450         * doc/functions/vsnprintf.texi: Update.
53451         * doc/functions/vsprintf.texi: Update.
53452         Reported by Eric Blake.
53453
53454 2007-05-06  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53457         padding ourselves for the floating-point directives.
53458         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53461         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53462         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53470         * tests/test-snprintf-posix.h (test_function): Also check the width
53471         and some flags in the %f directive.
53472         * tests/test-sprintf-posix.h (test_function): Likewise.
53473         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53474         * tests/test-vasprintf-posix.c (test_function): Likewise.
53475         * doc/functions/fprintf.texi: Update.
53476         * doc/functions/printf.texi: Update.
53477         * doc/functions/snprintf.texi: Update.
53478         * doc/functions/sprintf.texi: Update.
53479         * doc/functions/vfprintf.texi: Update.
53480         * doc/functions/vprintf.texi: Update.
53481         * doc/functions/vsnprintf.texi: Update.
53482         * doc/functions/vsprintf.texi: Update.
53483
53484 2007-05-06  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53487         pass the ' flag character to sprintf or snprintf.
53488         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53491         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53492         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53499         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53500         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53501         flag.
53502         * tests/test-sprintf-posix.h (test_function): Likewise.
53503         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53504         * tests/test-vasprintf-posix.c (test_function): Likewise.
53505         * doc/functions/fprintf.texi: Update.
53506         * doc/functions/printf.texi: Update.
53507         * doc/functions/snprintf.texi: Update.
53508         * doc/functions/sprintf.texi: Update.
53509         * doc/functions/vfprintf.texi: Update.
53510         * doc/functions/vprintf.texi: Update.
53511         * doc/functions/vsnprintf.texi: Update.
53512         * doc/functions/vsprintf.texi: Update.
53513
53514 2007-05-01  Bruno Haible  <bruno@clisp.org>
53515
53516         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53517
53518 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53521         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53522
53523 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53526         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53528
53529 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53530
53531         * lib/argp-help.c (struct hol_entry): New member `ord'.
53532         (HOL_ENTRY_PTRCMP): Use ord for comparison
53533         (hol_sort): Initialize ord.
53534
53535 2007-05-01  Bruno Haible  <bruno@clisp.org>
53536
53537         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53538         Reported by Eric Blake.
53539         * doc/gnulib.texi (Function Substitutes): Update.
53540
53541 2007-05-01  Bruno Haible  <bruno@clisp.org>
53542
53543         * doc/functions.texi: Remove file, now redundant through
53544         doc/functions/*.texi.
53545
53546 2007-05-01  Bruno Haible  <bruno@clisp.org>
53547
53548         * modules/argp (Depends-on): Add sleep.
53549
53550 2007-05-01  Bruno Haible  <bruno@clisp.org>
53551
53552         * modules/sleep-tests: New file.
53553         * tests/test-sleep.c: New file.
53554
53555         * modules/sleep: New file.
53556         * lib/sleep.c: New file.
53557         * m4/sleep.m4: New file.
53558         * lib/unistd_.h (sleep): New declaration.
53559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53560         HAVE_SLEEP.
53561         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53562         * doc/functions/sleep.texi: Document the sleep module.
53563
53564 2007-05-01  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/sigprocmask.h: Remove file.
53567         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53568         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53570         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53571         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53572         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53573         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53574         HAVE_SIGSET_T as a shell variable.
53575         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53576         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53577         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53578         (Depends-on): Add signal. Remove verify.
53579         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53580         (Include): Mention <signal.h> instead of sigprocmask.h.
53581         * NEWS: Mention the change.
53582         * lib/fatal-signal.c: Don't include sigprocmask.h.
53583
53584 2007-05-01  Bruno Haible  <bruno@clisp.org>
53585
53586         * modules/signal: New file.
53587         * lib/signal_.h: New file.
53588         * m4/signal_h.m4: New file.
53589
53590 2007-05-01  Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53593         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53594         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53595         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53596
53597 2007-05-01  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53600         configure time.
53601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53602         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53603         * modules/sys_stat (Makefile.am): Substitute their values into
53604         sys/stat.h.
53605
53606 2007-05-01  Bruno Haible  <bruno@clisp.org>
53607
53608         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53609         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53610         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53611
53612 2007-05-01  Bruno Haible  <bruno@clisp.org>
53613
53614         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53615         'assert' module here.
53616
53617 2007-05-01  Bruno Haible  <bruno@clisp.org>
53618
53619         * doc/functions/*.texi: New files.
53620         * doc/functions/google-ranking.txt: New file.
53621         * doc/gnulib.texi (Function Substitutes): New chapter.
53622         (ctime, inet_ntoa): Remove sections.
53623         * doc/ctime.texi: Remove file.
53624         * doc/inet_ntoa.texi: Remove file.
53625         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53626         dependencies.
53627         (%.info): New rule, specifying a --reference-limit.
53628
53629 2007-05-01  Bruno Haible  <bruno@clisp.org>
53630
53631         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53632
53633 2007-05-01  Bruno Haible  <bruno@clisp.org>
53634
53635         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53636         the portability of 'mkdir' to mingw systems.
53637
53638 2007-05-01  Bruno Haible  <bruno@clisp.org>
53639
53640         * doc/headers/google-ranking.txt: New file.
53641
53642 2007-04-30  Eric Blake  <ebb9@byu.net>
53643
53644         Prefer fseeko to fseek.
53645         * modules/getpass (Depends-on): Add fseeko.
53646         * lib/getpass.c (getpass): Use fseeko, not fseek.
53647
53648 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53649
53650         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53651         assumes the sorting is stable, while most qsort implementations
53652         are not.  Use argument addresses to ensure they never compare as
53653         equal.
53654
53655         * tests/test-argp-2.sh (usage-indent test): Fix output
53656         (func_compare): Restore diff options
53657         * tests/test-argp.c: Restore #include "progname.h"
53658
53659 2007-04-29  Bruno Haible  <bruno@clisp.org>
53660
53661         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53663         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53665         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53666         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53667         (TESTS, check_PROGRAMS): Add test-snprintf.
53668         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53669         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53670         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53671         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53672         assertions that fail on HP-UX, OSF/1, or IRIX.
53673         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53674
53675 2007-04-29  Bruno Haible  <bruno@clisp.org>
53676
53677         * MODULES.html.sh (posix_functions): Remove 'contents'.
53678
53679 2007-04-29  Karl Berry  <karl@gnu.org>
53680
53681         * config/srclist.txt (gendocs_template_min): new entry.
53682
53683 2007-04-29  Bruno Haible  <bruno@clisp.org>
53684
53685         Work around fpurge bug on BSD systems.
53686         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53688         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53689         fpurge to rpl_fpurge if the system already has this function.
53690         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53691         the case where the system already has this function. Correct invariants
53692         on BSD systems.
53693         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53694         BSD systems.
53695
53696 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53697
53698         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53699         proposed by Sven Verdoolaege.
53700
53701         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53702         options.
53703         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53704         (usage and help tests): Update
53705
53706 2007-04-29  Bruno Haible  <bruno@clisp.org>
53707
53708         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53709         Print more information in case of failure. Disable a test on BeOS.
53710
53711 2007-04-29  Bruno Haible  <bruno@clisp.org>
53712
53713         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53714         This helps debugging on systems on which no gdb is available.
53715
53716 2007-04-29  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/freading.h: Improve comments.
53719         * lib/fwriting.h: Likewise.
53720         * tests/test-freading.c (main): Don't check freading immediately after
53721         repositioning. Needed for glibc.
53722
53723 2007-04-29  Bruno Haible  <bruno@clisp.org>
53724
53725         * lib/freading.c (freading): Trivial simplification.
53726
53727 2007-04-28  Bruno Haible  <bruno@clisp.org>
53728
53729         * tests/test-fwriting.c (main): Also test the interaction between
53730         fflush and fwriting.
53731         * modules/fwriting-tests (Depends-on): Add fflush.
53732
53733         * tests/test-freading.c (main): Also test the interaction between
53734         fflush and freading.
53735         * modules/freading-tests (Depends-on): Add fflush.
53736
53737 2007-04-28  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53740         fseeko and ftello.
53741         Suggested by Eric Blake.
53742
53743 2007-04-28  Jim Meyering  <jim@meyering.net>
53744
53745         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53746         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53747         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53748
53749 2007-04-27  Eric Blake  <ebb9@byu.net>
53750
53751         * doc/headers/assert.texi (assert.h): Document assert module use.
53752
53753 2007-04-27  Bruno Haible  <bruno@clisp.org>
53754
53755         * doc/headers/*.texi: New files.
53756         * doc/gnulib.texi (Header File Substitutes): New chapter.
53757         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53758         dependencies.
53759         (standards.info ,standards.html, standards.dvi): Update dependencies.
53760         (mostlyclean, clean): New targets.
53761
53762 2007-04-27  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53765         * modules/sysexits (Files, Makefile.am): Update.
53766
53767         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53768         * modules/sys_socket (Files, Makefile.am): Update.
53769
53770         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53771         * modules/sys_stat (Files, Makefile.am): Update.
53772
53773 2007-04-27  Eric Blake  <ebb9@byu.net>
53774
53775         * lib/freading.h: Improve comments.
53776         * lib/fwriting.h: Likewise.
53777         * lib/fflush.c: Likewise.
53778
53779         Fix closein for mingw.
53780         * modules/closein-tests: Add tests for closein.
53781         * tests/test-closein.c: New file.
53782         * tests/test-closein.sh: Likewise.
53783         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53784         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53785
53786 2007-04-27  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53789         version is < 6.
53790         * lib/math_.h [__DECC]: Likewise.
53791         * lib/stdio_.h [__DECC]: Likewise.
53792         * lib/stdlib_.h [__DECC]: Likewise.
53793         * lib/string_.h [__DECC]: Likewise.
53794         * lib/time_.h [__DECC]: Likewise.
53795         * lib/wchar_.h [__DECC]: Likewise.
53796         * lib/wctype_.h [__DECC]: Likewise.
53797
53798 2007-04-27  Bruno Haible  <bruno@clisp.org>
53799
53800         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53801
53802 2007-04-27  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/fflush.c: Add comments.
53805         * modules/fpurge-tests (Depends-on): Add fflush.
53806         * modules/freadable-tests (Depends-on): Likewise.
53807         * modules/fwritable-tests (Depends-on): Likewise.
53808
53809 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53810
53811         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53812         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53813         Report by Bruno Haible <bruno@clisp.org>.
53814
53815 2007-04-26  Eric Blake  <ebb9@byu.net>
53816
53817         Fix fflush on mingw.
53818         * modules/fflush (Depends-on): Add freading.
53819         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53820         but unread data.
53821
53822 2007-04-26  Eric Blake  <ebb9@byu.net>
53823         and Bruno Haible  <bruno@clisp.org>
53824
53825         Implement freading and fwriting.
53826         * lib/freading.c: New file.
53827         * lib/freading.h: Likewise.
53828         * m4/freading.m4: Likewise.
53829         * modules/freading: Likewise.
53830         * modules/freading-tests: Likewise.
53831         * tests/test-freading.c: Likewise.
53832         * lib/fwriting.c: New file.
53833         * lib/fwriting.h: Likewise.
53834         * m4/fwriting.m4: Likewise.
53835         * modules/fwriting: Likewise.
53836         * modules/fwriting-tests: Likewise.
53837         * tests/test-fwriting.c: Likewise.
53838         * MODULES.html.sh (File stream based Input/Output): Mention them.
53839
53840 2007-04-26  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53843         'long' when we assume it.
53844         Suggested by Eric Blake.
53845
53846 2007-04-26  Bruno Haible  <bruno@clisp.org>
53847
53848         Ensure fseeko, ftello are declared on glibc systems.
53849         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53850         * modules/fseeko (configure.ac-early): Likewise.
53851         * modules/ftello (configure.ac-early): Likewise.
53852         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53853         AC_FUNC_FSEEKO for this.
53854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53855         (gl_CHECK_FSEEKO): Remove macro.
53856
53857 2007-04-26  Bruno Haible  <bruno@clisp.org>
53858
53859         * tests/test-fflush.c (main): Also check the ftell result after
53860         fflush and fseek/fseeko.
53861         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53862         file descriptor position cache in the stream.
53863         * lib/fseeko.c (rpl_fseeko): Likewise.
53864
53865 2007-04-26  Bruno Haible  <bruno@clisp.org>
53866
53867         * modules/fflush-tests (Depends-on): Add fseeko.
53868
53869 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53870             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53871
53872         * lib/argz_.h: ensure error_t definition is obtained in same
53873         mechanism system argz.h would have.
53874         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53875         argz facilities are known bad.  Err on the side of caution if
53876         cross-compiling.
53877
53878 2007-04-25  Eric Blake  <ebb9@byu.net>
53879
53880         * lib/fpurge.c (includes): Use stdlib.h for free.
53881         * tests/test-fflush.c (main): Also test fflush-fseeko.
53882
53883 2007-04-25  Bruno Haible  <bruno@clisp.org>
53884
53885         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53886         * lib/fseeko.c: New file.
53887         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53888         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53889         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53890         gl_FUNC_FSEEKO.
53891         (gl_FUNC_FSEEKO): Invoke it.
53892         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53893         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53894         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53895
53896 2007-04-25  Bruno Haible  <bruno@clisp.org>
53897
53898         * modules/fflush (Depends-on): Add ftello.
53899
53900 2007-04-25  Bruno Haible  <bruno@clisp.org>
53901
53902         * modules/ftello-tests: New file.
53903         * tests/test-ftello.c: New file.
53904
53905         * modules/ftello: New file.
53906         * m4/ftello.m4: New file.
53907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53908         HAVE_FTELLO.
53909         * lib/stdio_.h (ftello): New declaration.
53910         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53911         HAVE_FTELLO.
53912
53913 2007-04-25  Bruno Haible  <bruno@clisp.org>
53914
53915         * modules/fseeko-tests: New file.
53916         * tests/test-fseeko.c: New file.
53917
53918         * modules/fseeko: New file.
53919         * m4/fseeko.m4: New file.
53920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53921         HAVE_FSEEKO.
53922         * lib/stdio_.h (fseeko): New declaration.
53923         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53924         HAVE_FSEEKO.
53925
53926 2007-04-25  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53929
53930 2007-04-25  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53933         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53934         * tests/test-unistd.c: Likewise.
53935         * tests/test-fcntl.c: Likewise.
53936
53937 2007-04-23  Eric Blake  <ebb9@byu.net>
53938
53939         * lib/fflush.c: Fix missing include.
53940         Reported by Bruno Haible.
53941
53942 2007-04-23  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53945         Reported by Eric Blake.
53946
53947 2007-04-23  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53950
53951 2007-04-23  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53954
53955 2007-04-23  Bruno Haible  <bruno@clisp.org>
53956
53957         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53958         Needed on HP-UX 11.
53959
53960 2007-04-16  Eric Blake  <ebb9@byu.net>
53961
53962         Make fflush rely on fpurge.
53963         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53964         open coding all variants.
53965         * modules/fflush (Depends-on): Add fpurge and unistd.
53966         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53967         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53968
53969         Fix --with-tests compilation on cygwin.
53970         * modules/argmatch-tests (Makefile.am): List gnulib library first
53971         in LDADD.
53972         * modules/argp-tests (Makefile.am): Likewise.
53973         * modules/array-list-tests (Makefile.am): Likewise.
53974         * modules/array-oset-tests (Makefile.am): Likewise.
53975         * modules/avltree-list-tests (Makefile.am): Likewise.
53976         * modules/avltree-oset-tests (Makefile.am): Likewise.
53977         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53978         * modules/carray-list-tests (Makefile.am): Likewise.
53979         * modules/dirname-tests (Makefile.am): Likewise.
53980         * modules/frexp-tests (Makefile.am): Likewise.
53981         * modules/isnanl-tests (Makefile.am): Likewise.
53982         * modules/linked-list-tests (Makefile.am): Likewise.
53983         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53984         * modules/lock-tests (Makefile.am): Likewise.
53985         * modules/rbtree-list-tests (Makefile.am): Likewise.
53986         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53987         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53988         * modules/tls-tests (Makefile.am): Likewise.
53989         * modules/tsearch-tests (Makefile.am): Likewise.
53990         * modules/xvasprintf-tests (Makefile.am): Likewise.
53991
53992         Fix fpurge for cygwin.
53993         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53994         value.
53995         * modules/fpurge-tests (Depends-on): Clean up trash.
53996
53997 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53998
53999         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54000
54001         * m4/autobuild.m4: Re-indent.
54002
54003 2007-04-13  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/fpurge-tests: New file.
54006         * tests/test-fpurge.c: New file.
54007
54008         * modules/fpurge: New file.
54009         * lib/fpurge.h: New file.
54010         * lib/fpurge.c: New file.
54011         * m4/fpurge.m4: New file.
54012
54013 2007-04-13  Bruno Haible  <bruno@clisp.org>
54014
54015         * modules/fbufmode-tests: New file.
54016         * tests/test-fbufmode.c: New file.
54017
54018         * modules/fbufmode: New file.
54019         * lib/fbufmode.h: New file.
54020         * lib/fbufmode.c: New file.
54021         * m4/fbufmode.m4: New file.
54022
54023 2007-04-13  Bruno Haible  <bruno@clisp.org>
54024
54025         * modules/fwritable-tests: New file.
54026         * tests/test-fwritable.c: New file.
54027
54028         * modules/fwritable: New file.
54029         * lib/fwritable.h: New file.
54030         * lib/fwritable.c: New file.
54031         * m4/fwritable.m4: New file.
54032
54033 2007-04-13  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/freadable-tests: New file.
54036         * tests/test-freadable.c: New file.
54037
54038         * modules/freadable: New file.
54039         * lib/freadable.h: New file.
54040         * lib/freadable.c: New file.
54041         * m4/freadable.m4: New file.
54042
54043 2007-04-13  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54046         MOSTLYCLEANFILES.
54047
54048 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54049
54050         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54051         gzip bootstrap.conf to avoid dragging in i18n machinery.
54052         (gnulib_tool_option): Use it.
54053
54054 2007-04-13  Bruno Haible  <bruno@clisp.org>
54055
54056         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54057         %F directives.
54058         * tests/test-vasprintf-posix.c (test_function): Likewise.
54059         * tests/test-snprintf-posix.h (test_function): Likewise.
54060         * tests/test-sprintf-posix.h (test_function): Likewise.
54061         * tests/test-fprintf-posix.h (test_function): Likewise.
54062         * tests/test-printf-posix.h (test_function): Likewise.
54063         * tests/test-fprintf-posix.out: Likewise.
54064
54065 2007-04-13  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54068         * modules/tls-tests (configure.ac): Likewise.
54069         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54070
54071 2007-04-13  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/tls.c (glthread_tls_get): Fix return type.
54074         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54075
54076 2007-04-12  Eric Blake  <ebb9@byu.net>
54077
54078         * modules/gettime (Depends-on): Remove gettime.
54079         Reported by Dmitry V. Levin.
54080
54081 2007-04-12  Bruno Haible  <bruno@clisp.org>
54082
54083         * modules/fflush (Include): Mention <stdio.h>.
54084         * modules/strtoimax (Include): Mention <inttypes.h>.
54085         * modules/strtoumax (Include): Likewise.
54086
54087 2007-04-12  Eric Blake  <ebb9@byu.net>
54088
54089         * .cvsignore: New file.
54090         * .gitignore: Likewise.
54091
54092 2007-04-12  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54095         not before, since $(LDADD) often contains libgnu.a.
54096         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54097         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54098         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54099         Needed on Cygwin.
54100
54101 2007-04-12  Eric Blake  <ebb9@byu.net>
54102
54103         Work around glibc's failure to flush stdin on fclose.
54104         * lib/closein.c (close_stdin): Flush stdin before closing.
54105
54106         Work around glibc's failure to reset seekable stdin on exit.
54107         * modules/closein: New module.
54108         * lib/closein.c: New file.
54109         * lib/closein.h: Likewise.
54110         * m4/closein.m4: Likewise.
54111         * MODULES.html.sh (File stream based Input/Output): Document it.
54112
54113 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54114
54115         * gnulib-tool: Rename generated 'autobuild' script to
54116         'do-autobuild' in --create-megatestdir output.
54117
54118         * doc/gnulib.texi (Build robot for gnulib): Fix.
54119
54120 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54121
54122         * modules/sysexits (Depends-on): Add absolute-header.
54123
54124 2007-04-12  Eric Blake  <ebb9@byu.net>
54125
54126         No need to preserve errno on success.
54127         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54128         Reported by Bruno Haible.
54129
54130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54131
54132         * MODULES.html.sh (Support for maintaining and releasing
54133         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54134
54135 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54136
54137         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54138
54139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54140
54141         * modules/autobuild: New module.
54142
54143         * m4/autobuild.m4: New file.
54144
54145 2007-04-11  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54148         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54157         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54166         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54175         Reported by Eric Blake.
54176
54177 2007-04-11  Bruno Haible  <bruno@clisp.org>
54178
54179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54180
54181 2007-04-10  Bruno Haible  <bruno@clisp.org>
54182
54183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54184         for NaN and Infinity. Needed on FreeBSD 6.1.
54185         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54186         regarding results for "%010a" of Infinity and NaN.
54187         * tests/test-vasprintf-posix.c (test_function): Likewise.
54188         * tests/test-snprintf-posix.h (test_function): Likewise.
54189         * tests/test-sprintf-posix.h (test_function): Likewise.
54190         * tests/test-fprintf-posix.h (test_function): Likewise.
54191         * tests/test-printf-posix.h (test_function): Likewise.
54192         * tests/test-fprintf-posix.out: Likewise.
54193
54194 2007-04-10  Bruno Haible  <bruno@clisp.org>
54195
54196         * modules/locale-tests: New file.
54197         * tests/test-locale.c: New file.
54198
54199         * modules/locale: New file.
54200         * lib/locale_.h: New file.
54201         * m4/locale_h.m4: New file.
54202
54203 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54204             Bruno Haible  <bruno@clisp.org>
54205
54206         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54207         be determined, test for availability of the copysignf, copysign,
54208         copysignl functions.
54209         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54210         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54211         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54212
54213 2007-04-09  Eric Blake  <ebb9@byu.net>
54214
54215         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54216         * modules/stdio (Makefile.am): Support fflush.
54217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54218         * modules/fflush: New file.
54219         * lib/fflush.c: Likewise.
54220         * m4/fflush.m4: Likewise.
54221         * modules/fflush-tests: New test.
54222         * tests/test-fflush.c: Likewise.
54223         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54224
54225 2007-04-06  Bruno Haible  <bruno@clisp.org>
54226
54227         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54228         (VASNPRINTF): Use signbit for faster determination whether to print a
54229         minus sign.
54230         * modules/vasnprintf (Files): Remove lib/float+.h.
54231         * modules/fprintf-posix (Depends-on): Add signbit.
54232         * modules/snprintf-posix (Depends-on): Likewise.
54233         * modules/sprintf-posix (Depends-on): Likewise.
54234         * modules/vasnprintf-posix (Depends-on): Likewise.
54235         * modules/vasprintf-posix (Depends-on): Likewise.
54236         * modules/vfprintf-posix (Depends-on): Likewise.
54237         * modules/vsnprintf-posix (Depends-on): Likewise.
54238         * modules/vsprintf-posix (Depends-on): Likewise.
54239
54240 2007-04-06  Bruno Haible  <bruno@clisp.org>
54241
54242         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54243         * tests/test-frexpl.c (main): Likewise.
54244         * tests/test-ldexpl.c (main): Likewise.
54245         * modules/frexp-tests (Depends-on): Add signbit.
54246         * modules/frexpl-tests (Depdends-on): Likewise.
54247         * modules/ldexpl-tests (Depdends-on): Likewise.
54248
54249 2007-04-06  Bruno Haible  <bruno@clisp.org>
54250
54251         * modules/signbit-tests: New file.
54252         * tests/test-signbit.c: New file.
54253
54254         * modules/signbit: New file.
54255         * lib/signbitf.c: New file.
54256         * lib/signbitd.c: New file.
54257         * lib/signbitl.c: New file.
54258         * m4/signbit.m4: New file.
54259         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54260         (signbit): New macro.
54261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54262         REPLACE_SIGNBIT.
54263         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54264         REPLACE_FREXPL into math.h.
54265
54266 2007-04-06  Bruno Haible  <bruno@clisp.org>
54267
54268         * modules/isnanf-nolibm-tests: New file.
54269         * tests/test-isnanf.c: New file.
54270
54271         * modules/isnanf-nolibm: New file.
54272         * lib/isnanf.h: New file.
54273         * lib/isnanf.c: New file.
54274         * lib/isnan.c: Consider the USE_FLOAT macro.
54275         * m4/isnanf.m4: New file.
54276
54277 2007-04-06  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54280         (Link): New section.
54281
54282         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54283
54284 2007-04-06  Bruno Haible  <bruno@clisp.org>
54285
54286         Assume the 'long double' type.
54287         * m4/longdouble.m4: Remove file.
54288         * config/srclist.txt: Don't mention longdouble.m4.
54289         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54290         * lib/float+.h: Likewise.
54291         * lib/frexp.c: Likewise.
54292         * lib/printf-args.h: Likewise.
54293         * lib/printf-args.c: Likewise.
54294         * lib/printf-frexp.c: Likewise.
54295         * lib/printf-parse.c: Likewise.
54296         * lib/vasnprintf.c: Likewise.
54297         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54298         * m4/intl.m4: Likewise.
54299         * m4/isnanl.m4: Likewise.
54300         * m4/printf.m4: Likewise.
54301         * m4/printf-frexpl.m4: Likewise.
54302         * m4/vasnprintf.m4: Likewise.
54303         * modules/allocsa (Files): Remove m4/longdouble.m4.
54304         * modules/gettext (Files): Likewise.
54305         * modules/relocatable-prog-wrapper (Files): Likewise.
54306         * modules/vasnprintf (Files): Likewise.
54307         * modules/isnanl (Files): Likewise.
54308         (Include): Simplify.
54309         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54310         (Include): Simplify.
54311         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54312         (Include): Simplify.
54313         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54315         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54317         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54319         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54321         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54323         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54325         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54326         * tests/test-isnanl.c: Likewise.
54327         * tests/test-snprintf-posix.h: Likewise.
54328         * tests/test-sprintf-posix.h: Likewise.
54329         * tests/test-vasnprintf-posix.c: Likewise.
54330         * tests/test-vasnprintf-posix2.c: Likewise.
54331         * tests/test-vasprintf-posix.c: Likewise.
54332
54333 2007-04-06  Bruno Haible  <bruno@clisp.org>
54334
54335         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54336         * lib/math_.h [__DECC]: Include the overridden include file through
54337         #include_next, outside the double-inclusion guard.
54338         * lib/stdio_.h [__DECC]: Likewise.
54339         * lib/stdlib_.h [__DECC]: Likewise.
54340         * lib/string_.h [__DECC]: Likewise.
54341         * lib/time_.h [__DECC]: Likewise.
54342         * lib/wchar_.h [__DECC]: Likewise.
54343         * lib/wctype_.h [__DECC]: Likewise.
54344         * lib/inttypes_.h [__DECC]: Likewise.
54345         Reported by Albert Chin <china@thewrittenword.com> in
54346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54347
54348 2007-04-04  Eric Blake  <ebb9@byu.net>
54349
54350         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54351         1.5.x.
54352
54353 2007-04-04  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54356         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54357
54358 2007-04-04  Bruno Haible  <bruno@clisp.org>
54359
54360         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54361         results for "%010a" of Infinity and NaN.
54362         * tests/test-vasprintf-posix.c (test_function): Likewise.
54363         * tests/test-snprintf-posix.h (test_function): Likewise.
54364         * tests/test-sprintf-posix.h (test_function): Likewise.
54365         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54366         * tests/test-printf-posix.h (test_function): Likewise.
54367         * tests/test-fprintf-posix.out: Update.
54368         Needed for FreeBSD 6.1.
54369
54370 2007-04-04  Bruno Haible  <bruno@clisp.org>
54371
54372         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54373         directly used by the gnulib modules nor by gnulib-tool.
54374
54375 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         * DEPENDENCIES: Give overall description of version dependency
54378         desirability.  Use more-typical names for apps.
54379         Add shell, coreutils, diffutils, grep, tar, gzip.
54380
54381 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54382
54383         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54384
54385 2007-04-04  Karl Berry  <karl@gnu.org>
54386
54387         * MODULES.html.sh (func_module): missing '.
54388
54389 2007-04-03  Bruno Haible  <bruno@clisp.org>
54390
54391         * modules/argmatch-tests (Makefile.am): New variable
54392         test_argmatch_LDADD.
54393         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54394         * modules/array-list-tests (Makefile.am): New variable
54395         test_array_list_LDADD.
54396         * modules/array-oset-tests (Makefile.am): New variable
54397         test_array_oset_LDADD.
54398         * modules/avltree-list-tests (Makefile.am): New variable
54399         test_avltree_list_LDADD.
54400         * modules/avltree-oset-tests (Makefile.am): New variable
54401         test_avltree_oset_LDADD.
54402         * modules/avltreehash-list-tests (Makefile.am): New variable
54403         test_avltreehash_list_LDADD.
54404         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54405         test_canonicalize_lgpl_LDADD.
54406         * modules/carray-list-tests (Makefile.am): New variable
54407         test_carray_list_LDADD.
54408         * modules/dirname-tests (Makefile.am): New variable
54409         test_dirname_LDADD.
54410         * modules/linked-list-tests (Makefile.am): New variable
54411         test_linked_list_LDADD.
54412         * modules/linkedhash-list-tests (Makefile.am): New variable
54413         test_linkedhash_list_LDADD.
54414         * modules/rbtree-list-tests (Makefile.am): New variable
54415         test_rbtree_list_LDADD.
54416         * modules/rbtree-oset-tests (Makefile.am): New variable
54417         test_rbtree_oset_LDADD.
54418         * modules/rbtreehash-list-tests (Makefile.am): New variable
54419         test_rbtreehash_list_LDADD.
54420         * modules/xvasprintf-tests (Makefile.am): New variable
54421         test_xvasprintf_LDADD.
54422         Reported by Eric Blake.
54423
54424 2007-04-03  Eric Blake  <ebb9@byu.net>
54425
54426         * DEPENDENCIES: Weaken m4 requirements.
54427
54428 2007-04-03  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54431         * modules/isnanl-tests (configure.ac): Likewise.
54432
54433 2007-04-03  Ben Pfaff  <blp@gnu.org>
54434
54435         * modules/iconv_open: Add $(srcdir)/ to source directory
54436         references in Makefile fragments that call gperf, to fix VPATH
54437         builds.
54438
54439 2007-04-03  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54442         * lib/ldexpl.c: Undo last change.
54443
54444 2007-04-03  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/printf-frexpl (Depends-on): Undo last change.
54447         (Files): Add m4/ldexpl.m4.
54448
54449 2007-04-03  Bruno Haible  <bruno@clisp.org>
54450
54451         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54452         * modules/isnanl (Link): New section.
54453
54454         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54455         * modules/frexp (Link): New section.
54456
54457         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54458         * modules/frexpl (Link): New section.
54459
54460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54461         * modules/ldexpl (Link): New section.
54462
54463 2007-04-03  Bruno Haible  <bruno@clisp.org>
54464
54465         * modules/TEMPLATE-EXTENDED: New file.
54466         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54467
54468 2007-04-03  Bruno Haible  <bruno@clisp.org>
54469
54470         * DEPENDENCIES: New file.
54471         Suggested by Simon Josefsson.
54472
54473 2007-04-03  Bruno Haible  <bruno@clisp.org>
54474
54475         * doc/gnulib.texi: Escape @.
54476
54477 2007-04-03  James Youngman  <jay@gnu.org>
54478         and Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54481         birthtime on all systems that have birthtime, not just those which
54482         use st_birthtimensec rather than st_birthtim.  Putting zero in
54483         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54484         that the birth time is not available for files on an NFS mount.
54485
54486 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54487
54488         * modules/memxor: Move back from crypto/, suggested by Bruno.
54489         * modules/crypto/hmac-sha1: Fix memxor dependency.
54490
54491         * modules/crypto/gc: Moved from ../.
54492
54493 2007-04-02  Eric Blake  <ebb9@byu.net>
54494
54495         * lib/ldexpl.c (includes): Avoid libm.
54496
54497         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54498
54499 2007-04-02  Bruno Haible  <bruno@clisp.org>
54500
54501         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54502         on IRIX.
54503
54504 2007-04-02  Bruno Haible  <bruno@clisp.org>
54505
54506         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54507         x86 or x86_64 platforms running MacOS X.
54508         Reported by Ryan Schmidt <@ryandesign.com>.
54509
54510 2007-04-02  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54513         i386.
54514
54515 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54516
54517         * modules/crypto/arcfour: Moved from ../.
54518         * modules/crypto/arcfour-tests: Moved from ../.
54519         * modules/crypto/arctwo: Moved from ../.
54520         * modules/crypto/arctwo-tests: Moved from ../.
54521         * modules/crypto/des: Moved from ../.
54522         * modules/crypto/des-tests: Moved from ../.
54523         * modules/crypto/gc-arcfour: Moved from ../.
54524         * modules/crypto/gc-arcfour-tests: Moved from ../.
54525         * modules/crypto/gc-arctwo: Moved from ../.
54526         * modules/crypto/gc-arctwo-tests: Moved from ../.
54527         * modules/crypto/gc-des: Moved from ../.
54528         * modules/crypto/gc-des-tests: Moved from ../.
54529         * modules/crypto/gc-hmac-md5: Moved from ../.
54530         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54531         * modules/crypto/gc-hmac-sha1: Moved from ../.
54532         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54533         * modules/crypto/gc-md2: Moved from ../.
54534         * modules/crypto/gc-md2-tests: Moved from ../.
54535         * modules/crypto/gc-md4: Moved from ../.
54536         * modules/crypto/gc-md4-tests: Moved from ../.
54537         * modules/crypto/gc-md5: Moved from ../.
54538         * modules/crypto/gc-md5-tests: Moved from ../.
54539         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54540         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54541         * modules/crypto/gc-random: Moved from ../.
54542         * modules/crypto/gc-rijndael: Moved from ../.
54543         * modules/crypto/gc-rijndael-tests: Moved from ../.
54544         * modules/crypto/gc-sha1: Moved from ../.
54545         * modules/crypto/gc-sha1-tests: Moved from ../.
54546         * modules/crypto/gc-tests: Moved from ../.
54547         * modules/crypto/hmac-md5: Moved from ../.
54548         * modules/crypto/hmac-md5-tests: Moved from ../.
54549         * modules/crypto/hmac-sha1: Moved from ../.
54550         * modules/crypto/hmac-sha1-tests: Moved from ../.
54551         * modules/crypto/md2: Moved from ../.
54552         * modules/crypto/md2-tests: Moved from ../.
54553         * modules/crypto/md4: Moved from ../.
54554         * modules/crypto/md4-tests: Moved from ../.
54555         * modules/crypto/md5: Moved from ../.
54556         * modules/crypto/md5-tests: Moved from ../.
54557         * modules/crypto/memxor: Moved from ../.
54558         * modules/crypto/rijndael: Moved from ../.
54559         * modules/crypto/rijndael-tests: Moved from ../.
54560         * modules/crypto/sha1: Moved from ../.
54561
54562 2007-03-30  James Youngman  <jay@gnu.org>
54563
54564         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54565         rename() to change the ctime of a file (because ctime is unaffected
54566         by rename on jfs2 on AIX 5.1).
54567         (main): Start by doing cleanup, in case a previous run failed leaving
54568         test files behind.
54569
54570 2007-03-31  Bruno Haible  <bruno@clisp.org>
54571
54572         Support old proprietary implementations of iconv.
54573         * modules/iconv_open: New file.
54574         * lib/iconv_.h: New file.
54575         * m4/iconv_h.m4: New file.
54576         * lib/iconv_open.c: New file.
54577         * lib/iconv_open-aix.gperf: New file.
54578         * lib/iconv_open-hpux.gperf: New file.
54579         * lib/iconv_open-irix.gperf: New file.
54580         * lib/iconv_open-osf.gperf: New file.
54581         * m4/iconv_open.m4: New file.
54582         * modules/linebreak (Depends-on): Add iconv_open.
54583         * modules/striconv (Depends-on): Likewise.
54584         * modules/striconveh (Depends-on): Likewise.
54585         * modules/unicodeio (Depends-on): Likewise.
54586         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54587         (iconv_t)(-1).
54588         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54589         conversion if cd is (iconv_t)(-1).
54590         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54591         is not possible.
54592
54593 2007-03-31  Bruno Haible  <bruno@clisp.org>
54594
54595         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54596         work on Solaris either. Protect also second use of "autodetect_jp".
54597
54598 2007-03-31  Bruno Haible  <bruno@clisp.org>
54599
54600         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54601         the function is not present.
54602
54603 2007-03-31  Bruno Haible  <bruno@clisp.org>
54604
54605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54606         the function is not present.
54607
54608 2007-03-31  Bruno Haible  <bruno@clisp.org>
54609
54610         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54611         a bug in HP-UX iconv_open().
54612
54613 2007-03-31  Bruno Haible  <bruno@clisp.org>
54614
54615         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54616         (Mathematics <math.h>): New section, add fpieee.
54617         (Input/output <stdio.h>): Add fseterr.
54618         (Mathematics <math.h>): New section, add printf-frexp.
54619         (Container data structures): Add sublist.
54620         (Core language properties): Add fpucw, inline.
54621         (Functions for greatest-width integer types <inttypes.h>): Add
54622         imaxabs, imaxdiv, inttypes.
54623         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54624         isnanl-nolibm, ldexp.
54625         (Mathematics <math.h>): New section, add printf-frexpl.
54626         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54627         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54628         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54629         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54630         (Unicode string functions): Add unistr/u*-mbtoucr.
54631         (Java): Add javacomp-script, javaexec-script.
54632         (C#): Add csharpcomp-script, csharpexec-script.
54633         (Support for building libraries and executables): Add havelib,
54634         relocatable-*.
54635         (Support for maintaining and releasing projects): Renamed from
54636         'Support for maintaining and release projects'. Add announce-gen.
54637
54638 2007-03-31  Bruno Haible  <bruno@clisp.org>
54639
54640         * README: Talk primarily about git.
54641         (git and CVS): Renamed from CVS.
54642         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54643         gnulib is available through git.
54644         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54645
54646 2007-03-30  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54649         * lib/poll_.h: Likewise.
54650         * lib/stat_.h: Likewise.
54651         * lib/sys_time_.h: Likewise.
54652         * lib/sysexit_.h: Likewise.
54653         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54654         * lib/stdbool_.h: Likewise.
54655         * lib/byteswap_.h: Add double-inclusion guard.
54656
54657 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54658
54659         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54660
54661 2007-03-30  Karl Berry  <karl@gnu.org>
54662
54663         * config/srclist-update: double space after USA in the license
54664         substitution, since that's how it's usually (?) written.
54665
54666 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54669         reported by Bruno Haible.
54670
54671 2007-03-29  Bruno Haible  <bruno@clisp.org>
54672
54673         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54674         a bug in AIX iconv().
54675
54676 2007-03-29  Bruno Haible  <bruno@clisp.org>
54677
54678         * modules/ldexpl-tests: New file.
54679         * tests/test-ldexpl.c: New file.
54680
54681 2007-03-29  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/ldexpl.c: Include fpucw.h.
54684         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54685         multiplication.
54686         * modules/ldexpl (Depends-on): Add fpucw.
54687
54688 2007-03-29  Bruno Haible  <bruno@clisp.org>
54689
54690         * modules/ldexpl: New file.
54691         * m4/ldexpl.m4: New file.
54692         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54693         set.
54694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54695         REPLACE_LDEXPL.
54696         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54697         REPLACE_LDEXPL.
54698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54699         gl_FUNC_LDEXPL_WORKS.
54700         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54701         * modules/mathl (Files): Remove lib/ldexpl.c.
54702         (Depends-on): Add ldexpl.
54703
54704 2007-03-29  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54707
54708 2007-03-29  Bruno Haible  <bruno@clisp.org>
54709
54710         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54711         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54712         and possibly also HP-UX.
54713         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54714         work on AIX, IRIX, HP-UX, OSF/1.
54715         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54716         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54717         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54718         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54719         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54720         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54721
54722 2007-03-29  Bruno Haible  <bruno@clisp.org>
54723
54724         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54725
54726 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54729         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54730
54731 2007-03-29  Eric Blake  <ebb9@byu.net>
54732
54733         * lib/acl-internal.h: Remove redundant include.
54734         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54735         Cygwin when a file is locked.
54736
54737 2007-03-29  Bruno Haible  <bruno@clisp.org>
54738
54739         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54740         file.
54741         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54742
54743 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54746         try to remove a parent directory if the child couldn't be removed
54747         (except for the first rmdir, which could fail because the child
54748         doesn't exist).  Problem reported by Jeff Blaine in
54749         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54750
54751 2007-03-28  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/striconveh.c (utf8conv_carefully): New function.
54754         (mem_cd_iconveh_internal): Invoke it.
54755
54756 2007-03-28  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54759         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54760         input.
54761         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54762         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54763         unistr/u8-uctomb.
54764
54765 2007-03-28  Bruno Haible  <bruno@clisp.org>
54766
54767         * modules/unistr/u8-mbtoucr: New file.
54768         * lib/unistr/u8-mbtoucr.c: New file.
54769         * modules/unistr/u16-mbtoucr: New file.
54770         * lib/unistr/u16-mbtoucr.c: New file.
54771         * modules/unistr/u16-mbtoucr: New file.
54772         * lib/unistr/u16-mbtoucr.c: New file.
54773         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54774
54775 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54776             Bruno Haible  <bruno@clisp.org>
54777
54778         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54779         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54780         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54781
54782         * m4/stdio_h.m4: Add stubs for vasprintf too.
54783
54784         * modules/stdio: Support vasprintf in sed command.
54785
54786         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54787         vasprintf.h.  Add stdio module indicator.
54788
54789         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54790         vasprintf.h.
54791
54792         * lib/vasprintf.h: File removed.
54793
54794         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54795         * lib/vasprintf.c: Ditto.
54796         * lib/xvasprintf.c: Ditto.
54797         * tests/test-vasprintf-posix.c: Ditto.
54798         * tests/test-vasprintf.c: Ditto.
54799
54800 2007-03-27  Bruno Haible  <bruno@clisp.org>
54801
54802         Make vasnprintf multithread-safe.
54803         * lib/vasnprintf.c (decimal_point_char): New function.
54804         (VASNPRINTF): Use it.
54805         Suggested by Simon Josefsson.
54806
54807 2007-03-27  Eric Blake  <ebb9@byu.net>
54808
54809         Support sub-second birthtime on cygwin.
54810         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54811         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54812         (get_stat_birthtime): Also work with st_birthtim.
54813
54814 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54815
54816         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54817         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54818         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54819         (get_stat_birthtime_ns): Simplify compile-time tests.
54820         (get_stat_birthtime): Change the API to look like
54821         get_stat_mtime etc., except return a negative tv_nsec on error.
54822         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54823         Don't check for "spare" fields.
54824         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54825         or for struct stat.st_birthtime, as these tests aren't used.
54826         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54827
54828 2007-03-27  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/stat-time.h: Include <sys/stat.h>.
54831
54832 2007-03-27  James Youngman  <jay@gnu.org>
54833
54834         * lib/stat-time.h (get_stat_birthtime): New function for
54835           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54836         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54837           and its variants.
54838         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54839         * modules/stat-time-test: New file.
54840         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54841
54842 2007-03-26  Bruno Haible  <bruno@clisp.org>
54843
54844         Better support of signalling NaNs.
54845         * lib/atanl.c: Include isnanl.h.
54846         (atanl): Perform test for NaN at the beginning of the function and
54847         through a call to isnanl.
54848         * lib/cosl.c: Include isnanl.h.
54849         (cosl): Perform test for NaN at the beginning of the function and
54850         through a call to isnanl.
54851         * lib/ldexpl.c: Include isnanl.h.
54852         (ldexpl): Perform test for NaN through a call to isnanl.
54853         * lib/logl.c: Include isnanl.h.
54854         (logl): Perform test for NaN at the beginning of the function and
54855         through a call to isnanl.
54856         * lib/sinl.c: Include isnanl.h.
54857         (sinl): Perform test for NaN at the beginning of the function and
54858         through a call to isnanl.
54859         * lib/sqrtl.c: Include isnanl.h.
54860         (sqrtl): Perform test for NaN at the beginning of the function and
54861         through a call to isnanl.
54862         * lib/tanl.c: Include isnanl.h.
54863         (tanl): Perform test for NaN at the beginning of the function and
54864         through a call to isnanl.
54865         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54866         * modules/mathl (Depends-on): Add isnanl.
54867
54868 2007-03-26  Eric Blake  <ebb9@byu.net>
54869
54870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54871         regression in logic sense of previous patch.
54872
54873 2007-03-26  Bruno Haible  <bruno@clisp.org>
54874
54875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54876         unportable shell command "if ! ...".
54877         Reported by Ralf Wildenhues.
54878
54879 2007-03-25  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54882         <sysexits.h> file, and only add EX_CONFIG.
54883         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54884         absolute file name and whether it is sufficient. Substitute also
54885         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54886         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54887         ABSOLUTE_SYSEXITS_H into sysexits.h.
54888
54889 2007-03-25  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54892         hints is NULL.
54893
54894 2007-03-25  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54897         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54898
54899 2007-03-25  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/vasnprintf.c: Include langinfo.h.
54902         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54903         multithread-safe.
54904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54905         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54913         Reported by Simon Josefsson.
54914
54915 2007-03-25  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54918         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54919         * modules/vasnprintf (Depends-on): Add stdint.
54920
54921 2007-03-25  Bruno Haible  <bruno@clisp.org>
54922
54923         * modules/fpieee: New file.
54924         * m4/fpieee.m4: New file.
54925         * modules/isnan-nolibm (Depends-on): Add fpieee.
54926         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54927         * modules/isnanl (Depends-on): Add fpieee.
54928
54929 2007-03-25  Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54932
54933 2007-03-25  Bruno Haible  <bruno@clisp.org>
54934
54935         Avoid test failures on IRIX 6.5.
54936         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54937         (main): Use it.
54938         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54939         macros.
54940         (main): Use them.
54941
54942 2007-03-25  Bruno Haible  <bruno@clisp.org>
54943
54944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54945         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54946         exists but doesn't work.
54947         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54948         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54950         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54951         math.h.
54952
54953 2007-03-25  Bruno Haible  <bruno@clisp.org>
54954
54955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54956         returns inf. Needed on IRIX 6.5.
54957
54958 2007-03-25  Bruno Haible  <bruno@clisp.org>
54959
54960         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54961         (main): Use isnanl instead of x != x idiom.
54962         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54963
54964         * tests/test-frexp.c: Include isnan.h.
54965         (main): Use isnan instead of x != x idiom.
54966         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54967
54968 2007-03-25  Bruno Haible  <bruno@clisp.org>
54969
54970         * tests/test-frexp.c (NaN): New function/macro.
54971         (main): Use it instead of 0.0 / 0.0.
54972         * tests/test-isnan.c (NaN): New function/macro.
54973         (main): Use it instead of 0.0 / 0.0.
54974         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54975         (test_function): Use it instead of 0.0 / 0.0.
54976         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54977         (test_function): Use it instead of 0.0 / 0.0.
54978         * tests/test-snprintf-posix.h (NaN): New function/macro.
54979         (test_function): Use it instead of 0.0 / 0.0.
54980         * tests/test-sprintf-posix.h (NaN): New function/macro.
54981         (test_function): Use it instead of 0.0 / 0.0.
54982         * tests/test-fprintf-posix.h (NaN): New function/macro.
54983         (test_function): Use it instead of 0.0 / 0.0.
54984         * tests/test-printf-posix.h (NaN): New function/macro.
54985         (test_function): Use it instead of 0.0 / 0.0.
54986
54987         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54988
54989 2007-03-25  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54992
54993 2007-03-25  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/regexec.c (merge_state_with_log): Make static.
54996
54997 2007-03-25  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/trigl.c (kernel_rem_pio2): Make static.
55000
55001 2007-03-25  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/sincosl.c (sincosl_table): Make static.
55004
55005 2007-03-25  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55008         if the compiler does not support C99.
55009
55010 2007-03-25  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/time (Makefile.am): Ensure all rule action lines start with a
55013         tab.
55014
55015 2007-03-24  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/tsearch-tests: New file.
55018         * tests/test-tsearch.sh: New file.
55019         * tests/test-tsearch.c: New file, mostly copied from glibc.
55020
55021         * modules/search-tests: New file.
55022         * tests/test-search.c: New file.
55023
55024         * modules/search: New file.
55025         * lib/search_.h: New file, incorporating lib/tsearch.h.
55026         * m4/search_h.m4: New file.
55027         * lib/tsearch.h: Remove file.
55028         * lib/tsearch.c: Include search.h instead of tsearch.h.
55029         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55030         HAVE_TSEARCH.
55031         * modules/tsearch (Files): Remove lib/tsearch.h.
55032         (Depends-on): Add search.
55033         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55034         (Include): Change tsearch.h into search.h.
55035
55036 2007-03-24  Bruno Haible  <bruno@clisp.org>
55037
55038         * modules/fpucw: New file.
55039         * lib/fpucw.h: New file.
55040         * lib/frexp.c: Include fpucw.h.
55041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55042         (FUNC): Use them.
55043         * lib/printf-frexp.c: Include fpucw.h.
55044         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55045         (FUNC): Use them.
55046         * lib/vasnprintf.c: Include fpucw.h.
55047         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55048         'long double' calculations.
55049         * tests/test-frexpl.c: Include fpucw.h.
55050         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55051         * tests/test-printf-frexpl.c: Include fpucw.h.
55052         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55053         * modules/frexpl (Depends-on): Add fpucw.
55054         * modules/printf-frexpl (Depends-on): Likewise.
55055         * modules/fprintf-posix (Depends-on): Likewise.
55056         * modules/snprintf-posix (Depends-on): Likewise.
55057         * modules/sprintf-posix (Depends-on): Likewise.
55058         * modules/vasnprintf-posix (Depends-on): Likewise.
55059         * modules/vasprintf-posix (Depends-on): Likewise.
55060         * modules/vfprintf-posix (Depends-on): Likewise.
55061         * modules/vsnprintf-posix (Depends-on): Likewise.
55062         * modules/vsprintf-posix (Depends-on): Likewise.
55063         * modules/frexpl-tests (Depends-on): Likewise.
55064         * modules/printf-frexpl-tests (Depends-on): Likewise.
55065
55066 2007-03-24  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/float+.h: New file.
55069         * lib/isnan.c: Include float+.h.
55070         (SIZE): New macro.
55071         (FUNC): Compare only SIZE bytes of the value.
55072         * lib/vasnprintf.c: Include float+.h.
55073         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55074         SIZEOF_LDBL or SIZEOF_DBL bytes.
55075         * modules/isnan-nolibm (Files): Add lib/float+.h.
55076         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55077         * modules/isnanl (Files): Add lib/float+.h.
55078         * modules/vasnprintf (Files): Add lib/float+.h.
55079
55080 2007-03-24  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55083         include isnanl-nolibm.h.
55084
55085 2007-03-24  Bruno Haible  <bruno@clisp.org>
55086
55087         * tests/test-read-file.c (main): Don't produce spurious output for
55088         expected situations. Make the test fail if it encountered unexpected
55089         results.
55090
55091 2007-03-24  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55094         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55095
55096 2007-03-24  Bruno Haible  <bruno@clisp.org>
55097
55098         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55099
55100 2007-03-24  Bruno Haible  <bruno@clisp.org>
55101
55102         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55103         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55104
55105         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55106         * modules/utf8-ucs4: Turn into a symbolic link to module
55107         unistr/u8-mbtouc.
55108
55109         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55110         utf8-ucs4-unsafe.
55111         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55112         unistr/u8-mbtouc-unsafe.
55113
55114         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55115         * modules/utf16-ucs4: Turn into a symbolic link to module
55116         unistr/u16-mbtouc.
55117
55118         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55119         utf16-ucs4-unsafe.
55120         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55121         unistr/u16-mbtouc-unsafe.
55122
55123         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55124         * modules/ucs4-utf8: Turn into a symbolic link to module
55125         unistr/u8-ubtomb.
55126
55127         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55128         * modules/ucs4-utf16: Turn into a symbolic link to module
55129         unistr/u16-ubtomb.
55130
55131 2007-03-24  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55134         Enable the function only if HAVE_INLINE.
55135         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55136         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55137         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55138         Enable the function only if HAVE_INLINE.
55139         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55140         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55141         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55142         Enable the function only if HAVE_INLINE.
55143         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55144         Enable the function only if HAVE_INLINE.
55145         * modules/utf8-ucs4: Update.
55146         * modules/utf8-ucs4-unsafe: Update.
55147         * modules/utf16-ucs4: Update.
55148         * modules/utf16-ucs4-unsafe: Update.
55149         * modules/ucs4-utf8: Update.
55150         * modules/ucs4-utf16: Update.
55151
55152 2007-03-24  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/utf8-ucs4.h: Remove file.
55155         * lib/utf8-ucs4-unsafe.h: Remove file.
55156         * lib/utf16-ucs4.h: Remove file.
55157         * lib/utf16-ucs4-unsafe.h: Remove file.
55158         * lib/ucs4-utf8.h: Remove file.
55159         * lib/ucs4-utf16.h: Remove file.
55160         * lib/unistr.h: Include their previous contents.
55161         * m4/utf-ucs4.m4: Remove file.
55162         * m4/ucs4-utf.m4: Remove file.
55163         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55164         (Depends-on): Add unistr/base.
55165         (configure.ac): Remove gl_UTF_UCS4.
55166         (Makefile.am): Update.
55167         (Include): Change to unistr.h.
55168         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55169         (Depends-on): Add unistr/base.
55170         (configure.ac): Remove gl_UTF_UCS4.
55171         (Makefile.am): Update.
55172         (Include): Change to unistr.h.
55173         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55174         (Depends-on): Add unistr/base.
55175         (configure.ac): Remove gl_UTF_UCS4.
55176         (Makefile.am): Update.
55177         (Include): Change to unistr.h.
55178         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55179         (Depends-on): Add unistr/base.
55180         (configure.ac): Remove gl_UTF_UCS4.
55181         (Makefile.am): Update.
55182         (Include): Change to unistr.h.
55183         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55184         (Depends-on): Add unistr/base.
55185         (configure.ac): Remove gl_UCS4_UTF.
55186         (Makefile.am): Update.
55187         (Include): Change to unistr.h.
55188         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55189         (Depends-on): Add unistr/base.
55190         (configure.ac): Remove gl_UCS4_UTF.
55191         (Makefile.am): Update.
55192         (Include): Change to unistr.h.
55193         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55194         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55195         utf8-ucs4-unsafe.h.
55196         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55197         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55198         utf16-ucs4-unsafe.h.
55199         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55200         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55201         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55202         * lib/unistr/u8-strchr.c: Likewise.
55203         * lib/unistr/u8-strrchr.c: Likewise.
55204         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55205         * lib/unistr/u16-strchr.c: Likewise.
55206         * lib/unistr/u16-strrchr.c: Likewise.
55207         * lib/striconveh.c: Update.
55208         * lib/linebreak.c: Update.
55209
55210 2007-03-24  Bruno Haible  <bruno@clisp.org>
55211
55212         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55213         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55214
55215 2007-03-22  Bruno Haible  <bruno@clisp.org>
55216
55217         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55218
55219 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * MODULES.html.sh (File system functions): New module write-any-file.
55222         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55223         * m4/write-any-file.m4: New files.
55224
55225 2007-03-23  Eric Blake  <ebb9@byu.net>
55226
55227         * gnulib-tool: Rearrange space-tab sequences, since some editors
55228         like to eat them.
55229
55230 2007-03-23  Eric Blake  <ebb9@byu.net>
55231
55232         * lib/version-etc.c (version_etc_va): Update license wording to
55233         be more concise.  Recommended by Richard Stallman.
55234
55235 2007-03-22  Bruno Haible  <bruno@clisp.org>
55236
55237         * lib/poll.c (MSG_PEEK): New fallback definition.
55238
55239 2007-03-22  Bruno Haible  <bruno@clisp.org>
55240
55241         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55242         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55243         (main): Update.
55244         Fixes a compilation error on BeOS.
55245
55246 2007-03-22  Bruno Haible  <bruno@clisp.org>
55247
55248         * modules/frexpl-tests: New file.
55249         * tests/test-frexpl.c: New file.
55250
55251         * modules/frexpl: New file.
55252         * m4/frexpl.m4: New file.
55253         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55254         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55256         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55257         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55258         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55259
55260 2007-03-22  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/frexpl.c: Share code with lib/frexp.c.
55263         * modules/mathl (Files): Add lib/frexp.c.
55264         (Depends-on): Add isnanl-nolibm.
55265
55266 2007-03-22  Bruno Haible  <bruno@clisp.org>
55267
55268         * modules/printf-frexp (Files): Add m4/frexp.m4.
55269         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55270         only if the found frexp function actually works.
55271
55272 2007-03-22  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/frexp.c: Remove older implementation that uses divisions.
55275
55276 2007-03-21  Bruno Haible  <bruno@clisp.org>
55277
55278         * modules/frexp-tests: New file.
55279         * tests/test-frexp.c: New file.
55280
55281         * modules/frexp: New file.
55282         * lib/frexp.c: New file.
55283         * m4/frexp.m4: New file.
55284         * lib/math_.h (frexp): New declaration.
55285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55286         REPLACE_FREXP.
55287         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55288
55289 2007-03-21  Bruno Haible  <bruno@clisp.org>
55290
55291         * modules/isnanl-tests: New file.
55292         * tests/test-isnanl.c: New file.
55293
55294         * modules/isnanl: New file.
55295         * lib/isnanl.h: New file.
55296         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55297         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55298         gl_FUNC_ISNANL_WORKS.
55299         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55300         New macros.
55301
55302 2007-03-21  Bruno Haible  <bruno@clisp.org>
55303
55304         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55305         lib/isnanl.h.
55306         (Include): Update.
55307         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55308         * lib/vasnprintf.c: Update.
55309         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55310         tests/test-isnanl.h, remove tests/test-isnanl.c.
55311         (Makefile.am): Update.
55312         * tests/test-isnanl-nolibm.c: New file.
55313         * tests/test-isnanl.h: New file.
55314         * tests/test-isnanl.c: Remove file.
55315
55316 2007-03-21  Jim Meyering  <jim@meyering.net>
55317
55318         When trying to open ".", treat ESTALE like EACCES.
55319         * lib/savewd.c (savewd_save): Resort to forking not just upon
55320         failure with EACCES, but also when errno is ESTALE.
55321
55322 2007-03-20  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55325         Needed on AIX 5.1. Reported by Matthew Woehlke.
55326
55327 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55328
55329         Suggestions by Bruno Haible:
55330         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55331         our own.
55332         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55333         * modules/acl (Depends-on): Add gettext.
55334
55335 2007-03-19  Bruno Haible  <bruno@clisp.org>
55336
55337         * modules/iconvme: Remove file.
55338         * lib/iconvme.h: Remove file.
55339         * lib/iconvme.c: Remove file.
55340         * m4/iconvme.m4: Remove file.
55341
55342 2007-03-19  Bruno Haible  <bruno@clisp.org>
55343
55344         * doc/relocatable-maint.texi: Break long shell script line.
55345         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55346
55347 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55350         handle file_has_acl.
55351         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55352         * lib/acl.c: Move header inclusions and related macro defns into
55353         lib/acl-internal.h.
55354         (S_ISLNK): Remove defn, since that's now done for us.
55355         (file_has_acl): Move to lib/file-has-acl.c.
55356         Call acl_trivial if available.  This is the crucial part of the fix.
55357         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55358         shared within the library.  Rewrite a bit, partly to make it compatible
55359         with the GNU coding style.
55360         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55361         Remove unnecessary double-quotes.
55362         Don't test for acl_to_text; the build will catch that.
55363         Replace acl_entries if it doesn't exist and it is needed.
55364         Check for -lsec and acl_trivial (as used on Solaris 10).
55365         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55366         lib/file-has-acl.c.
55367         (Depends-on): Add sys_stat, for S_ISLNK.
55368
55369 2007-03-19  Ben Pfaff  <blp@gnu.org>
55370
55371         * doc/gnulib.texi: Fix typos.
55372         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55373
55374 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55377         If size is zero here, buf must be zero.
55378
55379 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55380
55381         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55382         <bruno@clisp.org>.
55383
55384 2007-03-18  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55387         Suggested by Eric Blake.
55388
55389 2007-03-18  Ben Pfaff  <blp@gnu.org>
55390
55391         * doc/relocatable.texi: Recommend using as prefix a directory
55392         that does not exist and will never be created.  Based on
55393         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55394         and others.
55395
55396 2007-03-17  Bruno Haible  <bruno@clisp.org>
55397
55398         * lib/fchownat.c: Include lchown.h.
55399
55400 2007-03-17  Bruno Haible  <bruno@clisp.org>
55401
55402         Fix endless loop when the given allocated size was > INT_MAX.
55403         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55404         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55405         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55406         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55407         * lib/sprintf.c (sprintf): Likewise.
55408
55409 2007-03-17  Bruno Haible  <bruno@clisp.org>
55410
55411         * tests/test-argp-2.sh (func_compare): Output a context diff.
55412
55413 2007-03-17  Bruno Haible  <bruno@clisp.org>
55414
55415         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55416         locale's decimal-point character.
55417
55418 2007-03-17  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55421         before comparing it. Needed because on some platforms (e.g. x86) a
55422         'long double' occupies less bytes than sizeof (long double).
55423
55424 2007-03-17  Bruno Haible  <bruno@clisp.org>
55425
55426         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55427         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55428         * tests/test-getaddrinfo.c (simple): Likewise.
55429         * tests/test-read-file.c (main): Likewise.
55430
55431 2007-03-17  Bruno Haible  <bruno@clisp.org>
55432
55433         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55434
55435 2007-03-17  Bruno Haible  <bruno@clisp.org>
55436
55437         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55438         unused variable.
55439
55440 2007-03-17  Bruno Haible  <bruno@clisp.org>
55441
55442         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55443         * tests/test-c-strncasecmp.c: Likewise.
55444
55445 2007-03-17  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/stdlib (Depends-on): Add unistd.
55448         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55449         Needed for MacOS X 10.3.
55450
55451 2007-03-17  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55454
55455 2007-03-17  Bruno Haible  <bruno@clisp.org>
55456
55457         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55458
55459 2007-03-17  Bruno Haible  <bruno@clisp.org>
55460
55461         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55462         to reflect files copied from gnulib (with or without modifications).
55463         Suggested by Jim Meyering.
55464
55465 2007-03-17  Eric Blake  <ebb9@byu.net>
55466
55467         * NEWS: Document stdlib change from 2007-02-18.
55468
55469 2007-03-17  Jim Meyering  <jim@meyering.net>
55470
55471         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55472         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55473         someone uses a name containing shell meta-characters.
55474         Reported by Alfred M. Szmidt.
55475
55476         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55477
55478 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55479
55480         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55481         and copy gettext configuration files only if configure.ac contains
55482         a use of AM_GNU_GETTEXT_VERSION.
55483
55484 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55485
55486         * build-aux/bootstrap (gnulib_name): New variable.
55487         (gnulib_tool_options): Use it.
55488
55489 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55490
55491         * tests/test-des.c: Use new namespace.
55492
55493 2007-03-15  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55496         Reported by James Youngman <jay@gnu.org>.
55497
55498 2007-03-15  Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55501         declared prototype. Needed with cc on OSF/1 5.1.
55502
55503 2007-03-15  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55506         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55507         (struct gl_list_implementation): Add dispose_fn argument to the
55508         'create_empty', 'create' methods.
55509         (struct gl_list_impl_base): Add field 'dispose_fn'.
55510         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55511         argument.
55512         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55513         dispose_fn argument.
55514         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55515         dispose_fn on the dropped values.
55516         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55517         dispose_fn argument.
55518         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55519         dropped values.
55520         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55521         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55522         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55523         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55524         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55525         argument.
55526         (gl_tree_list_free): Call dispose_fn on the dropped values.
55527         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55528         the dropped values.
55529         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55530         Add dispose_fn argument.
55531         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55532         Call dispose_fn on the dropped values.
55533         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55534         Add dispose_fn argument.
55535         (gl_sublist_create): Initialize the 'dispose_fn' field.
55536         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55537         * tests/test-array_list.c (main): Update.
55538         * tests/test-carray_list.c (main): Update.
55539         * tests/test-avltree_list.c (main): Update.
55540         * tests/test-rbtree_list.c (main): Update.
55541         * tests/test-avltreehash_list.c (main): Update.
55542         * tests/test-rbtreehash_list.c (main): Update.
55543         * tests/test-linked_list.c (main): Update.
55544         * tests/test-linkedhash_list.c (main): Update.
55545         * tests/test-array_oset.c (main): Update.
55546
55547 2007-03-15  Bruno Haible  <bruno@clisp.org>
55548
55549         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55550         (gl_oset_create_empty): Add dispose_fn argument.
55551         (struct gl_oset_implementation): Add dispose_fn argument to
55552         'create_empty' method.
55553         (struct gl_oset_impl_base): Add dispose_fn field.
55554         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55555         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55556         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55557         values.
55558         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55559         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55560         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55561         dropped value.
55562         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55563         dropped value.
55564         * tests/test-array_oset.c (main): Update.
55565         * tests/test-avltree_oset.c (main): Update.
55566         * tests/test-rbtree_oset.c (main): Update.
55567         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55568
55569 2007-03-13  Bruno Haible  <bruno@clisp.org>
55570
55571         * tests/test-stdbool.c (i): Update after last patch.
55572
55573 2007-03-12  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55576         the iswprint macro. Needed on Solaris 2.5.1.
55577
55578 2007-03-12  Bruno Haible  <bruno@clisp.org>
55579
55580         * tests/test-printf-frexp.c (main): Declare x as volatile.
55581
55582 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55583
55584         * doc/gnulib.texi (Build robot for gnulib): New section.
55585
55586 2007-03-12  Jim Meyering  <jim@meyering.net>
55587
55588         * build-aux/bootstrap: New file.
55589         * build-aux/bootstrap.conf: New file, from coreutils.
55590
55591 2007-03-11  Bruno Haible  <bruno@clisp.org>
55592
55593         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55594
55595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55596
55597         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55598         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55599         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55600
55601 2007-03-11  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55604         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55605
55606 2007-03-11  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55609         formula. Needed for SunPRO C 5.0.
55610
55611 2007-03-11  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/long-options (Depends-on): Add getopt.
55614
55615 2007-03-11  Bruno Haible  <bruno@clisp.org>
55616
55617         * modules/modechange (Depends-on): Add stdbool.
55618
55619 2007-03-11  Bruno Haible  <bruno@clisp.org>
55620
55621         * modules/i-ring (Depends-on): Add stdbool.
55622
55623 2007-03-11  Bruno Haible  <bruno@clisp.org>
55624
55625         * modules/gc-des (Depends-on): Add stdbool.
55626
55627 2007-03-11  Bruno Haible  <bruno@clisp.org>
55628
55629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55630
55631 2007-03-11  Bruno Haible  <bruno@clisp.org>
55632
55633         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55634
55635 2007-03-11  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55638
55639 2007-03-11  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/vasnprintf.c (sprintf): Undefine.
55642
55643 2007-03-11  Bruno Haible  <bruno@clisp.org>
55644
55645         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55646         initializers in SunPRO C and Compaq C compilers.
55647
55648 2007-03-11  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55651         decrementing code ANSI C compliant.
55652
55653 2007-03-11  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55656         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55657
55658 2007-03-11  Bruno Haible  <bruno@clisp.org>
55659
55660         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55661         <stdbool.h> substitute doesn't pass.
55662
55663 2007-03-11  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55666
55667 2007-03-11  Bruno Haible  <bruno@clisp.org>
55668
55669         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55670         script, for submission to autobuild.josefsson.org.
55671
55672 2007-03-10  Bruno Haible  <bruno@clisp.org>
55673
55674         * modules/canonicalize-lgpl-tests: New file.
55675         * tests/test-canonicalize-lgpl.sh: New file.
55676         * tests/test-canonicalize-lgpl.c: New file.
55677
55678         * modules/c-strcase-tests: New file.
55679         * tests/test-c-strcase.sh: New file.
55680         * tests/test-c-strcasecmp.c: New file.
55681         * tests/test-c-strncasecmp.c: New file.
55682
55683         * modules/atexit-tests: New file.
55684         * tests/test-atexit.sh: New file.
55685         * tests/test-atexit.c: New file.
55686
55687 2007-03-10  Bruno Haible  <bruno@clisp.org>
55688
55689         * tests/test-binary-io.sh: Use temporary filenames that are not so
55690         likely to clash with those of other tests (in a parallel make).
55691         * tests/test-binary-io.c: Likewise.
55692
55693 2007-03-10  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55696         fallback; use #error instead.
55697         Suggested by Simon Josefsson.
55698
55699 2007-03-10  Bruno Haible  <bruno@clisp.org>
55700
55701         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55702         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55703         first and the last.
55704
55705 2007-03-10  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55708
55709 2007-03-10  Bruno Haible  <bruno@clisp.org>
55710
55711         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55712         "make distcheck".
55713         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55714         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55715         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55716
55717 2007-03-10  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55720         variable.
55721         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55722         variable.
55723
55724 2007-03-09  Eric Blake  <ebb9@byu.net>
55725         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55726
55727         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55728         types are not being provided by gnulib.
55729         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55730         types are supported.
55731
55732 2007-03-10  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/stdio_.h (__attribute__): New macro.
55735         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55736         vsprintf): Specify __attribute__ __format__ for GCC.
55737         Suggested by Eric Blake.
55738
55739 2007-03-09  Bruno Haible  <bruno@clisp.org>
55740
55741         * modules/printf-posix-tests: New file.
55742         * tests/test-printf-posix.sh: New file.
55743         * tests/test-printf-posix.c: New file.
55744
55745         * modules/printf-posix: New file.
55746         * lib/printf.c: New file.
55747         * m4/printf-posix-rpl.m4: New file.
55748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55749         REPLACE_PRINTF.
55750         * lib/stdio_.h (printf): New declaration.
55751         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55752         ____strfmon____): New macros.
55753         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55754         REPLACE_PRINTF.
55755
55756 2007-03-09  Bruno Haible  <bruno@clisp.org>
55757
55758         * tests/test-vasnprintf-posix2.sh: New file.
55759         * tests/test-vasnprintf-posix2.c: New file.
55760         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55761         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55762         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55763
55764         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55765         a locale dependent decimal point, rather than always '.'.
55766
55767 2007-03-09  Eric Blake  <ebb9@byu.net>
55768
55769         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55770         spite of platforms like Tandem/NSK that define it to -1.
55771
55772 2007-03-08  Bruno Haible  <bruno@clisp.org>
55773
55774         * modules/vprintf-posix-tests: New file.
55775         * tests/test-vprintf-posix.sh: New file.
55776         * tests/test-vprintf-posix.c: New file.
55777         * tests/test-printf-posix.h: New file.
55778
55779         * modules/vprintf-posix: New file.
55780         * lib/vprintf.c: New file.
55781         * m4/vprintf-posix.m4: New file.
55782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55783         REPLACE_VPRINTF.
55784         * lib/stdio_.h (vprintf): New declaration.
55785         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55786         REPLACE_VPRINTF.
55787
55788 2007-03-08  Bruno Haible  <bruno@clisp.org>
55789
55790         * modules/fprintf-posix-tests: New file.
55791         * tests/test-fprintf-posix.sh: New file.
55792         * tests/test-fprintf-posix.c: New file.
55793
55794         * modules/fprintf-posix: New file.
55795         * lib/fprintf.c: New file.
55796         * m4/fprintf-posix.m4: New file.
55797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55798         REPLACE_FPRINTF.
55799         * lib/stdio_.h (fprintf): New declaration.
55800         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55801         REPLACE_FPRINTF.
55802
55803 2007-03-08  Bruno Haible  <bruno@clisp.org>
55804
55805         * modules/vfprintf-posix-tests: New file.
55806         * tests/test-vfprintf-posix.sh: New file.
55807         * tests/test-vfprintf-posix.c: New file.
55808         * tests/test-fprintf-posix.h: New file.
55809         * tests/test-fprintf-posix.out: New file.
55810
55811         * modules/vfprintf-posix: New file.
55812         * lib/vfprintf.c: New file.
55813         * m4/vfprintf-posix.m4: New file.
55814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55815         REPLACE_VFPRINTF.
55816         * lib/stdio_.h (vfprintf): New declaration.
55817         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55818         REPLACE_VFPRINTF.
55819
55820 2007-03-08  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55823
55824 2007-03-08  Bruno Haible  <bruno@clisp.org>
55825
55826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55827         instead of 'expr' invocations.
55828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55833         Suggested by Paul Eggert.
55834
55835 2007-03-08  Bruno Haible  <bruno@clisp.org>
55836
55837         * modules/fseterr-tests: New file.
55838         * tests/test-fseterr.c: New file.
55839
55840         * modules/fseterr: New file.
55841         * lib/fseterr.h: New file.
55842         * lib/fseterr.c: New file.
55843
55844 2007-03-08  Bruno Haible  <bruno@clisp.org>
55845
55846         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55847         * lib/getopt_.h: Likewise.
55848         * lib/mbswidth.h: Likewise.
55849         * lib/setenv.h: Likewise.
55850         * lib/vasnprintf.h: Likewise.
55851         * lib/vasprintf.h: Likewise.
55852         * lib/verror.h: Likewise.
55853         * lib/xsetenv.h: Likewise.
55854         * lib/xvasprintf.h: Likewise.
55855
55856 2007-03-08  Jim Meyering  <jim@meyering.net>
55857
55858         * users.txt: Add parted.
55859
55860         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55861
55862 2007-03-07  Bruno Haible  <bruno@clisp.org>
55863
55864         * m4/printf.m4: Make the shell script snippets copy&pastable.
55865
55866 2007-03-02  Bruno Haible  <bruno@clisp.org>
55867
55868         * lib/netinet_in_.h: New file.
55869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55870         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55871         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55872         (Depends-on): Add absolute-header.
55873         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55874         into netinet/in.h.
55875
55876 2007-03-03  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/sys_select_.h: New file.
55879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55880         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55881         * modules/sys_select (Files): Add lib/sys_select_.h.
55882         (Depends-on): Add absolute-header.
55883         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55884         into sys/select.h.
55885
55886 2007-03-02  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55889         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55890         values.
55891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55892         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55893         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55894         * modules/sys_socket (Depends-on): Add absolute-header.
55895         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55896         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55897         (Include): Remove requirement of inclusion of <sys/types.h>.
55898
55899 2007-03-02  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/byteswap_.h (bswap_32): Fix formula.
55902
55903 2007-03-06  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/sprintf-posix-tests: New file.
55906         * tests/test-sprintf-posix.c: New file.
55907
55908         * modules/sprintf-posix: New file.
55909         * lib/sprintf.c: New file.
55910         * m4/sprintf-posix.m4: New file.
55911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55912         REPLACE_SPRINTF.
55913         * lib/stdio_.h (sprintf): New declaration.
55914         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55915         REPLACE_SPRINTF.
55916
55917 2007-03-06  Bruno Haible  <bruno@clisp.org>
55918
55919         * modules/vsprintf-posix-tests: New file.
55920         * tests/test-vsprintf-posix.c: New file.
55921         * tests/test-sprintf-posix.h: New file.
55922
55923         * modules/vsprintf-posix: New file.
55924         * lib/vsprintf.c: New file.
55925         * m4/vsprintf-posix.m4: New file.
55926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55927         REPLACE_VSPRINTF.
55928         * lib/stdio_.h (vsprintf): New declaration.
55929         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55930         REPLACE_VSPRINTF.
55931
55932 2007-03-06  Bruno Haible  <bruno@clisp.org>
55933
55934         * modules/vsnprintf (Depend-on): Remove minmax.
55935
55936 2007-03-06  Bruno Haible  <bruno@clisp.org>
55937
55938         * modules/snprintf-posix-tests: New file.
55939         * tests/test-snprintf-posix.c: New file.
55940
55941         * modules/snprintf-posix: New file.
55942         * m4/snprintf-posix.m4: New file.
55943         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55944         gl_FUNC_SNPRINTF.
55945         (gl_FUNC_SNPRINTF): Invoke it.
55946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55947         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55948         is set.
55949         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55950
55951 2007-03-06  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/vsnprintf-posix-tests: New file.
55954         * tests/test-vsnprintf-posix.c: New file.
55955         * tests/test-snprintf-posix.h: New file.
55956
55957         * modules/vsnprintf-posix: New file.
55958         * m4/vsnprintf-posix.m4: New file.
55959         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55960         gl_FUNC_VSNPRINTF.
55961         (gl_FUNC_VSNPRINTF): Invoke it.
55962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55963         * lib/stdio_.h (vsnprintf): Define as a replacement if
55964         REPLACE_VSNPRINTF is set.
55965         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55966
55967 2007-03-06  Bruno Haible  <bruno@clisp.org>
55968
55969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55971
55972 2007-03-06  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55975         (asinl): Declare also if HAVE_DECL_ASINL is set.
55976         (atanl): Declare also if HAVE_DECL_ATANL is set.
55977         (ceill): Declare also if HAVE_DECL_CEILL is set.
55978         (cosl): Declare also if HAVE_DECL_COSL is set.
55979         (expl): Declare also if HAVE_DECL_EXPL is set.
55980         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55981         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55982         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55983         (logl): Declare also if HAVE_DECL_LOGL is set.
55984         (sinl): Declare also if HAVE_DECL_SINL is set.
55985         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55986         (tanl): Declare also if HAVE_DECL_TANL is set.
55987         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55990         declaration of frexpl, ldexpl.
55991         * modules/printf-frexpl (Depends-on): Add math.
55992         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55993
55994 2007-03-05  Bruno Haible  <bruno@clisp.org>
55995
55996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55997         frexpl and ldexpl are declared.
55998         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55999
56000 2007-03-05  Bruno Haible  <bruno@clisp.org>
56001
56002         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56003         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56004
56005 2007-03-05  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/stdio_.h: Include <stddef.h>.
56008
56009 2007-03-05  Bruno Haible  <bruno@clisp.org>
56010
56011         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56012
56013 2007-03-05  Bruno Haible  <bruno@clisp.org>
56014
56015         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56016         NetBSD 4, from Ralf Wildenhues.
56017
56018 2007-03-04  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/vasprintf.h: Update #if logic for the case when the functions
56021         exist but are overridden.
56022
56023 2007-03-04  Bruno Haible  <bruno@clisp.org>
56024
56025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56026         implementations: glibc-2.4 and MacOS X 10.3.
56027         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56028         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56029         * tests/test-vasprintf-posix.c (test_function): Likewise.
56030
56031 2007-03-04  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/vasprintf-posix-tests: New file.
56034         * tests/test-vasprintf-posix.c: New file.
56035
56036         * modules/vasprintf-posix: New file.
56037         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56038         defined.
56039         * m4/vasprintf-posix.m4: New file.
56040         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56041         gl_FUNC_VASPRINTF.
56042         (gl_FUNC_VASPRINTF): Invoke it.
56043         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56044         here.
56045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56046
56047 2007-03-04  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56050         REPLACE_GETTIMEOFDAY.
56051         * modules/sys_time (Makefile.am): Likewise.
56052         * m4/sys_time_h.m4: Likewise.
56053         * m4/gettimeofday.m4: Likewise.
56054
56055 2007-03-04  Bruno Haible  <bruno@clisp.org>
56056
56057         * modules/vasnprintf-posix-tests: New file.
56058         * tests/test-vasnprintf-posix.c: New file.
56059
56060         * modules/vasnprintf-posix: New file.
56061         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56062         printf-frexpl.h.
56063         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56064         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56065         REPLACE_VASNPRINTF is defined.
56066         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56067         gl_FUNC_VASNPRINTF.
56068         (gl_FUNC_VASNPRINTF): Invoke it.
56069         * m4/vasnprintf-posix.m4: New file.
56070         * m4/printf.m4: New file.
56071
56072 2007-03-04  Bruno Haible  <bruno@clisp.org>
56073
56074         Compile progreloc.c only if --enable-relocatable is specified.
56075         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56076         if --enable-relocatable was specified.
56077         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56078         lib_SOURCES.
56079
56080 2007-03-04  Jim Meyering  <jim@meyering.net>
56081
56082         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56083         Use it consistently, rather than enumerating errno constants.
56084
56085 2007-03-04  Bruno Haible  <bruno@clisp.org>
56086
56087         * modules/xvasprintf-tests: New file.
56088         * tests/test-xvasprintf.c: New file.
56089
56090         * modules/vasprintf-tests: New file.
56091         * tests/test-vasprintf.c: New file.
56092
56093         * modules/vasnprintf-tests: New file.
56094         * tests/test-vasnprintf.c: New file.
56095
56096         * modules/vsnprintf-tests: New file.
56097         * tests/test-vsnprintf.c: New file.
56098
56099         * modules/snprintf-tests: New file.
56100         * tests/test-snprintf.c: New file.
56101
56102 2007-03-04  Bruno Haible  <bruno@clisp.org>
56103
56104         Compile relocatable.c only if --enable-relocatable is specified.
56105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56106         gl_RELOCATABLE_LIBRARY.
56107         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56108         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56109         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56110         gl_RELOCATABLE_LIBRARY.
56111         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56112         (Makefile.am): Remove lib_SOURCES.
56113         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56114         gl_RELOCATABLE_LIBRARY.
56115         (Makefile.am): Remove lib_SOURCES.
56116         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56117         always.
56118         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56119         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56120
56121 2007-03-04  Bruno Haible  <bruno@clisp.org>
56122
56123         * modules/argmatch-tests: New file.
56124         * tests/test-argmatch.c: New file.
56125
56126         * tests/test-allocsa.c (main): Halve the number of loop runs.
56127
56128         * modules/alloca-opt-tests: New file.
56129         * tests/test-alloca-opt.c: New file.
56130
56131 2007-03-04  Jim Meyering  <jim@meyering.net>
56132
56133         Work around difference between Linux ACLs and Solaris 10 ZFS.
56134         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56135         for EINVAL.
56136
56137 2007-03-03  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/relocatable-prog (Depends-on): Add back progreloc's
56140         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56141
56142 2007-03-03  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56145         * modules/relocatable-lib: New file.
56146
56147 2007-03-03  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/relocatable-prog: Renamed from modules/relocatable.
56150         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56151
56152 2007-03-03  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56155         m4/relocatable-lib.m4.
56156         (Depends-on): Remove 'relocatable'.
56157         (configure.ac): Add gl_RELOCATABLE_NOP.
56158
56159 2007-03-03  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/relocatable-prog-wrapper: New file.
56162         * modules/relocatable (Depends-on): Add it. Remove all other
56163         dependencies except progname.
56164         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56165
56166         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56167         (gl_FUNC_STRERROR): Nop.
56168         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56169
56170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56171         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56172
56173         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56174         (gl_FUNC_READLINK): Update.
56175
56176         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56177
56178 2007-03-03  Bruno Haible  <bruno@clisp.org>
56179
56180         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56181         * modules/xreadlink (Depends-on): Add unistd.
56182         * modules/xreadlink-with-size (Depends-on): Likewise.
56183
56184 2007-03-03  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56187         extracted from gt_FUNC_SETENV.
56188         (gt_FUNC_SETENV): Remove macro.
56189         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56190         remove gt_FUNC_SETENV.
56191
56192 2007-03-03  Bruno Haible  <bruno@clisp.org>
56193
56194         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56195         ENABLE_RELOCATABLE here.
56196         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56197
56198 2007-03-03  Bruno Haible  <bruno@clisp.org>
56199
56200         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56201         * tests/test-rbtreehash_list.c: Include progname.h.
56202         (main): Call set_program_name.
56203
56204         * modules/rbtree-oset-tests (Depends-on): Add progname.
56205         * tests/test-rbtree_oset.c: Include progname.h.
56206         (main): Call set_program_name.
56207
56208         * modules/rbtree-list-tests (Depends-on): Add progname.
56209         * tests/test-rbtree_list.c: Include progname.h.
56210         (main): Call set_program_name.
56211
56212         * modules/linked-list-tests (Depends-on): Add progname.
56213         * tests/test-linked_list.c: Include progname.h.
56214         (main): Call set_program_name.
56215
56216 2007-03-03  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56219         All uses of __restrict changed to _Restrict_.
56220         * lib/glob_.h (__restrict): Remove macro.
56221
56222 2007-03-02  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/gettext (configure.ac): Require gettext infrastructure
56225         from version 0.16.1.
56226
56227 2007-03-02  Bruno Haible  <bruno@clisp.org>
56228
56229         * modules/linkedhash-list-tests (Depends-on): Add progname.
56230         * tests/test-linkedhash_list.c: Include progname.h.
56231         (main): Call set_program_name.
56232
56233         * modules/carray-list-tests (Depends-on): Add progname.
56234         * tests/test-carray_list.c: Include progname.h.
56235         (main): Call set_program_name.
56236
56237         * modules/avltreehash-list-tests (Depends-on): Add progname.
56238         * tests/test-avltreehash_list.c: Include progname.h.
56239         (main): Call set_program_name.
56240
56241         * modules/avltree-oset-tests (Depends-on): Add progname.
56242         * tests/test-avltree_oset.c: Include progname.h.
56243         (main): Call set_program_name.
56244
56245         * modules/avltree-list-tests (Depends-on): Add progname.
56246         * tests/test-avltree_list.c: Include progname.h.
56247         (main): Call set_program_name.
56248
56249         * modules/array-oset-tests (Depends-on): Add progname.
56250         * tests/test-array_oset.c: Include progname.h.
56251         (main): Call set_program_name.
56252
56253         * modules/array-list-tests (Depends-on): Add progname.
56254         * tests/test-array_list.c: Include progname.h.
56255         (main): Call set_program_name.
56256
56257         * modules/argp-tests (Depends-on): Add progname.
56258         * tests/test-argp.c: Include argp.h first. Include progname.h.
56259         (main): Call set_program_name.
56260
56261 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * doc/gnulib-tool.texi (Initial import): Reword description of
56264         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56265         limited effect even if defined after the first system include.
56266
56267 2007-03-01  Bruno Haible  <bruno@clisp.org>
56268
56269         * build-aux/config.libpath: Update to libtool-1.5.22.
56270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56271
56272 2007-03-01  Bruno Haible  <bruno@clisp.org>
56273
56274         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56275         foo_CFLAGS.
56276         Reported by Ralf Wildenhues.
56277
56278 2007-03-01  Bruno Haible  <bruno@clisp.org>
56279
56280         * build-aux/install-reloc: Remove object files left over by some
56281         compilers.
56282         Reported by Ralf Wildenhues.
56283
56284 2007-03-01  Bruno Haible  <bruno@clisp.org>
56285
56286         * build-aux/install-reloc: Break long lines.
56287
56288 2007-03-01  Bruno Haible  <bruno@clisp.org>
56289
56290         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56291         Reported by Ralf Wildenhues.
56292
56293 2007-03-01  Bruno Haible  <bruno@clisp.org>
56294
56295         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56296         include ordering constraints.
56297
56298 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56302         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56303         as another example.
56304         * lib/time_.h: Fix misspelling.
56305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56306         Require gl_HEADER_TIME_H_DEFAULTS.
56307         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56308         * m4/time_r.m4 (gl_TIME_R): Likewise.
56309         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56310
56311 2007-03-01  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56314         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56315
56316 2007-03-01  Jim Meyering  <jim@meyering.net>
56317
56318         * modules/xreadlink (Maintainer): Add my name.
56319         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56320
56321 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56322             Bruno Haible  <bruno@clisp.org>
56323
56324         * build-aux/install-reloc: Compile also c-ctype.c.
56325         * build-aux/relocatable.sh.in: New file.
56326         * doc/relocatable.texi: New file.
56327         * doc/relocatable-maint.texi: New file.
56328         * doc/gnulib.texi: Include relocatable-maint.texi.
56329         * lib/progreloc.c: Include unistd.h unconditionally.
56330         * lib/relocwrapper.c: Include unistd.h unconditionally.
56331         Include c-ctype.h.
56332         (add_dotbin): Use c_tolower.
56333         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56334         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56335         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56336         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56337         to m4/relocatable-lib.m4.
56338         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56339         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56340         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56341         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56342         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56343         * modules/relocatable: New file.
56344         * modules/relocatable-lib: New file.
56345         * modules/relocatable-script: New file.
56346
56347 2007-02-28  Bruno Haible  <bruno@clisp.org>
56348
56349         Import --enable-relocatable infrastructure.
56350         * build-aux/config.libpath: New file, from GNU gettext.
56351         * build-aux/install-reloc: New file, from GNU gettext.
56352         * build-aux/reloc-ldflags: New file, from GNU gettext.
56353         * lib/relocatable.h: New file, from GNU gettext.
56354         * lib/relocatable.c: New file, from GNU gettext.
56355         * lib/relocwrapper.c: New file, from GNU gettext.
56356         * m4/relocatable.m4: New file, from GNU gettext.
56357
56358 2007-02-28  Bruno Haible  <bruno@clisp.org>
56359
56360         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56361
56362         * modules/xreadlink: New file, from GNU gettext with modifications.
56363         * lib/xreadlink.c: New file, from GNU gettext.
56364         * lib/xreadlink.h: Add comments.
56365         (xreadlink): New declaration.
56366
56367         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56368         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56369         lib/xreadlink-with-size.c.
56370         (configure.ac): Remove gl_XREADLINK invocation.
56371         (Makefile.am): Augment lib_SOURCES.
56372         * m4/xreadlink.m4: Remove file.
56373         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56374         (xreadlink_with_size): Renamed from xreadink.
56375         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56376         * modules/canonicalize (Depends-on): Replace xreadlink with
56377         xreadlink-with-size.
56378         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56379
56380 2007-02-25  Jim Meyering  <jim@meyering.net>
56381
56382         * build-aux/announce-gen: When complaining about excess arguments,
56383         list them.
56384
56385 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         * README: Document signed integer overflow situation more
56388         accurately.
56389
56390 2007-02-25  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56393         'a' or 'A' conversion.
56394
56395 2007-02-25  Bruno Haible  <bruno@clisp.org>
56396
56397         * modules/filename: Renamed from modules/pathname.
56398         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56399         lib/concatpath.c with lib/concat-filename.c.
56400         (Makefile.am): Update.
56401         (Include): Replace pathname.h with filename.h.
56402         * lib/filename.h: Renamed from lib/pathname.h.
56403         (concatenated_filename): Renamed from concatenated_pathname.
56404         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56405         (concatenated_filename): Renamed from concatenated_pathname.
56406         * lib/findprog.c: Include filename.h instead of pathname.h.
56407         (find_in_path): Update.
56408         * lib/javacomp.c: Include filename.h instead of pathname.h.
56409         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56410         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56411         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56412         is_oldgcj_14_13_usable, is_javac_usable): Update.
56413         * lib/javaexec.c: Include filename.h instead of pathname.h.
56414         (execute_java_class): Update.
56415         * modules/findprog: Update.
56416         * modules/javacomp: Update.
56417         * modules/javaexec: Update.
56418         * MODULES.html.sh (File system functions): Add 'filename', remove
56419         'pathname'.
56420
56421 2007-02-25  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/printf-frexpl-tests: New file.
56424         * tests/test-printf-frexpl.c: New file.
56425
56426         * modules/printf-frexpl: New file.
56427         * lib/printf-frexpl.h: New file.
56428         * lib/printf-frexpl.c: New file.
56429         * m4/printf-frexpl.m4: New file.
56430
56431 2007-02-25  Bruno Haible  <bruno@clisp.org>
56432
56433         * modules/printf-frexp-tests: New file.
56434         * tests/test-printf-frexp.c: New file.
56435
56436         * modules/printf-frexp: New file.
56437         * lib/printf-frexp.h: New file.
56438         * lib/printf-frexp.c: New file.
56439         * m4/printf-frexp.m4: New file.
56440
56441 2007-02-25  Bruno Haible  <bruno@clisp.org>
56442
56443         Assume automake >= 1.10 for the tests.
56444         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56445         * modules/arctwo-tests: Likewise.
56446         * modules/argp-tests: Likewise.
56447         * modules/avltree-list-tests: Likewise.
56448         * modules/avltree-oset-tests: Likewise.
56449         * modules/avltreehash-list-tests: Likewise.
56450         * modules/carray-list-tests: Likewise.
56451         * modules/crc-tests: Likewise.
56452         * modules/des-tests: Likewise.
56453         * modules/gc-arcfour-tests: Likewise.
56454         * modules/gc-arctwo-tests: Likewise.
56455         * modules/gc-des-tests: Likewise.
56456         * modules/gc-hmac-md5-tests: Likewise.
56457         * modules/gc-hmac-sha1-tests: Likewise.
56458         * modules/gc-md2-tests: Likewise.
56459         * modules/gc-md4-tests: Likewise.
56460         * modules/gc-md5-tests: Likewise.
56461         * modules/gc-pbkdf2-sha1-tests: Likewise.
56462         * modules/gc-rijndael-tests: Likewise.
56463         * modules/gc-sha1-tests: Likewise.
56464         * modules/gc-tests: Likewise.
56465         * modules/getaddrinfo-tests: Likewise.
56466         * modules/hmac-md5-tests: Likewise.
56467         * modules/hmac-sha1-tests: Likewise.
56468         * modules/linked-list-tests: Likewise.
56469         * modules/linkedhash-list-tests: Likewise.
56470         * modules/lock-tests: Likewise.
56471         * modules/md2-tests: Likewise.
56472         * modules/md4-tests: Likewise.
56473         * modules/md5-tests: Likewise.
56474         * modules/rbtree-list-tests: Likewise.
56475         * modules/rbtree-oset-tests: Likewise.
56476         * modules/rbtreehash-list-tests: Likewise.
56477         * modules/read-file-tests: Likewise.
56478         * modules/rijndael-tests: Likewise.
56479         * modules/stdint-tests: Likewise.
56480         * modules/tls-tests: Likewise.
56481
56482 2007-02-24  Bruno Haible  <bruno@clisp.org>
56483
56484         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56485         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56486         function; instead check whether isnan with a double argument links.
56487         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56488         function; instead check whether isnan with a 'long double' argument
56489         links.
56490         Reported by Eric Blake <ebb9@byu.net>.
56491
56492 2007-02-24  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56495         defined.
56496         * lib/isnanl.c: Remove all code. Just include isnan.c.
56497         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56498
56499 2007-02-25  Jim Meyering  <jim@meyering.net>
56500
56501         Avoid conflicting types for 'unsetenv' on FreeBSD.
56502         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56503         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56504         in stdlib.h.
56505
56506 2007-02-24  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/isnanl-nolibm-tests: New file.
56509         * tests/test-isnanl.c: New file.
56510
56511         * modules/isnanl-nolibm: New file.
56512         * lib/isnanl.h: New file.
56513         * lib/isnanl.c: New file.
56514         * m4/isnanl.m4: New file.
56515
56516 2007-02-24  Bruno Haible  <bruno@clisp.org>
56517
56518         * modules/isnan-nolibm-tests: New file.
56519         * tests/test-isnan.c: New file.
56520
56521         * modules/isnan-nolibm: New file.
56522         * lib/isnan.h: New file.
56523         * lib/isnan.c: New file.
56524         * m4/isnan.m4: New file.
56525
56526 2007-02-24  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56529         assume that an exponent fits in 20 bits.
56530
56531 2007-02-24  Jim Meyering  <jim@meyering.net>
56532
56533         * m4/regex.m4: Update the description of the configure-time option,
56534         --without-included-regex, to state accurately what the defaults are,
56535         and perhaps to give people an idea why using this option is risky.
56536
56537 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56540         loops on small arguments.  This attempts to avoid the problem
56541         Bruno Haible reported for AIX 4.3.2 in
56542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56543
56544 2007-02-23  Bruno Haible  <bruno@clisp.org>
56545
56546         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56547         Needed for help2man.
56548
56549 2007-02-23  Karl Berry  <karl@gnu.org>
56550
56551         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56552         exists, foo.h should be cvs-ignored, not committed.
56553
56554 2007-02-23  Eric Blake  <ebb9@byu.net>
56555
56556         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56557         * lib/stat-time.h (includes): Likewise.
56558         * lib/utimecmp.c (includes): Likewise.
56559         * lib/utimens.h (includes): Likewise.
56560         * lib/getdate.y (includes): Also include "timespec.h" for use
56561         internal to the module.
56562         * modules/utimens (Depends-on): Revert yesterday's patch.
56563         * modules/nanosleep (Depends-on): Add missing dependency.
56564
56565 2007-02-22  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/glob.c: Don't include getlogin_r.h.
56568
56569 2007-02-22  Jim Meyering  <jim@meyering.net>
56570
56571         * modules/utimens (Depends-on): Add timespec, required for
56572         utimens.h's inclusion of timespec.h.
56573
56574 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56577         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56578         Schwab in
56579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56580         I'll try to think of a better way to fix the Solaris problem.
56581
56582         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56583         like glibc; on Solaris 10, it fails with errno == EINVAL.
56584         POSIX says the behavior is unspecified if the first argument is NULL,
56585         so play it safe and never pass NULL to the system getcwd.
56586
56587 2007-02-21  Jim Meyering  <jim@meyering.net>
56588
56589         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56590         of gettimeofday.  It would conflict with the one now always
56591         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56592         an IRIX 6.5 build failure.
56593
56594 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         Minor fixups to port to Solaris 10 with Sun C 5.8.
56597         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56598         * modules/getcwd (Depends-on): Add dirfd.
56599         * lib/putenv.c (putenv): #undef it.
56600         (rpl_putenv): New decl.
56601         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56602
56603 2007-02-20  Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/stdio-tests: New file.
56606         * tests/test-stdio.c: New file.
56607
56608         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56609         (Depends-on): Add stdio.
56610         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56611         (Include): Use <stdio.h> instead of vsnprintf.h.
56612         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56613         HAVE_DECL_VSNPRINTF.
56614         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56615
56616         * modules/snprintf (Files): Remove lib/snprintf.h.
56617         (Depends-on): Add stdio.
56618         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56619         (Include): Use <stdio.h> instead of snprintf.h.
56620         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56621         HAVE_DECL_SNPRINTF.
56622         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56623         * lib/getaddrinfo.c: Likewise.
56624
56625         * modules/stdio: New file.
56626         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56627         * lib/snprintf.h: Remove file.
56628         * lib/vsnprintf.h: Remove file.
56629         * lib/.cppi-disable: Remove snprintf.h.
56630         * m4/stdio_h.m4: New file.
56631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56632
56633 2007-02-20  Jim Meyering  <jim@meyering.net>
56634
56635         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56636         used by e.g., mingw.  From Bruno Haible.
56637
56638 2007-02-19  Bruno Haible  <bruno@clisp.org>
56639
56640         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56641         warnings.
56642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56643
56644 2007-02-19  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56647         from mingw users.
56648
56649 2007-02-19  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56652         warnings.
56653         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56654
56655 2007-02-19  Jim Meyering  <jim@meyering.net>
56656
56657         Don't use FD after a successful "fdopendir (fd)".
56658         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56659         Reset it by calling dirfd on the just-obtained DIR*.
56660
56661         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56662         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56663
56664 2007-02-18  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/readlink.c: Include <unistd.h>.
56667         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56668         HAVE_READLINK.
56669         * modules/readlink (Depends-on): Add unistd.
56670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56671         (Include): Add <unistd.h>.
56672
56673         * lib/getlogin_r.h: Remove file.
56674         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56675         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56676         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56677         HAVE_DECL_GETLOGIN_R.
56678         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56680         (Include): Use <unistd.h> instead of getlogin_r.h.
56681
56682         * lib/getcwd.h: Remove file.
56683         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56684         * lib/xgetcwd.c: Likewise.
56685         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56686         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56687         * modules/getcwd (Files): Remove lib/getcwd.h.
56688         (Depends-on): Add unistd.
56689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56690         (Include): Use <unistd.h> instad of getcwd.h.
56691
56692         * lib/ftruncate.c: Include <unistd.h> first.
56693         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56694         Set HAVE_FTRUNCATE.
56695         * modules/ftruncate (Depends-on): Add unistd.
56696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56697
56698         * lib/fchdir.c: Include <unistd.h> first.
56699         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56701         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56702         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56703         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56704
56705         * lib/dup2.c: Include <unistd.h> first.
56706         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56707         HAVE_DUP2.
56708         * modules/dup2 (Depends-on): Add unistd.
56709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56710
56711         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56712         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56713         REPLACE_CHOWN. Don't define chown as a macro here.
56714         * modules/chown (Depends-on): Add unistd.
56715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56716
56717         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56718         Add definition for GL_LINK_WARNING.
56719         (chown, dup2): New declarations.
56720         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56721         link warning.
56722         (ftruncate): New declaration.
56723         (getcwd): New declaration, taken from old getcwd.h.
56724         (getlogin_r): New declaration, taken from old getlogin_r.h.
56725         (readlink): New declaration.
56726         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56727         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56728         (gl_PREREQ_UNISTD): Remove macro.
56729         (gl_UNISTD_MODULE_INDICATOR): New macro.
56730         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56731         many new variables. Don't set UNISTD_H.
56732         * modules/unistd (Description): Change.
56733         (Depends-on): Add link-warning.
56734         (configure.ac): Update.
56735         (Makefile.am): Create unistd.h always. Substitute many new variables
56736         into it.
56737
56738 2007-02-18  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56741         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56742         HAVE_GETSUBOPT.
56743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56744         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56745         * lib/getsubopt.h: Remove file.
56746         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56747         (Depends-on): Add stdlib.
56748         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56749         (Includes): Use <stdlib.h> instead of getsubopt.h.
56750         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56751         Set HAVE_GETSUBOPT.
56752         * lib/getsubopt.c: Don't include getsubopt.h.
56753
56754 2007-02-18  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/fchdir (Depends-on): Add dup2.
56757
56758 2007-02-18  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/stdlib_.h: Handle glibc's special invocation convention
56761         specially.
56762
56763 2007-02-18  Bruno Haible  <bruno@clisp.org>
56764
56765         * modules/stdlib-tests: New file.
56766         * tests/test-stdlib.c: New file.
56767
56768         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56769         (Depends-on): Add stdlib.
56770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56771         (Includes): Use <stdlib.h> instead of mkstemp.h.
56772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56773         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56774         * lib/mkstemp.c: Don't include mkstemp.h.
56775         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56776         * lib/stdlib--.h: Don't include mkstemp.h.
56777
56778         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56779         (Depends-on): Add stdlib.
56780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56781         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56782         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56783         HAVE_MKDTEMP.
56784         * lib/mkdtemp.c: Don't include mkdtemp.h.
56785         * lib/clean-temp.c: Don't include mkdtemp.h.
56786
56787         * modules/exit (Files): Remove lib/exit.h.
56788         (Depends-on): Add stdlib.
56789         (Makefile.am): Remove lib_SOURCES.
56790         (Include): Use <stdlib.h> instead of exit.h.
56791         * lib/argmatch.c: Don't include exit.h.
56792         * lib/execute.c: Likewise.
56793         * lib/pagealign_alloc.c: Likewise.
56794         * lib/pipe.c: Likewise.
56795         * lib/wait-process.c: Likewise.
56796         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56797         * lib/exitfail.c: Likewise.
56798         * lib/savewd.c: Likewise.
56799         * lib/xsetenv.c: Likewise.
56800
56801         * modules/stdlib: New file.
56802         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56803         and extra comments about mkstemp().
56804         * lib/exit.h: Remove file.
56805         * lib/mkdtemp.h: Remove file.
56806         * lib/mkstemp.h: Remove file.
56807         * m4/stdlib_h.m4: New file.
56808         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56809
56810 2007-02-18  Bruno Haible  <bruno@clisp.org>
56811
56812         * modules/math-tests: New file.
56813         * tests/test-math.c: New file.
56814
56815         * modules/math: New file.
56816         * modules/mathl (Files): Remove lib/mathl.h.
56817         (Depends-on): Add math.
56818         (Makefile.am): Don't mention mathl.h.
56819         (Include): Use <math.h> instead of mathl.h.
56820         * lib/math_.h: New file.
56821         * lib/mathl.h: Remove file.
56822         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56823         mathl.h.
56824         * lib/asinl.c: Likewise.
56825         * lib/atanl.c: Likewise.
56826         * lib/ceill.c: Likewise.
56827         * lib/cosl.c: Likewise.
56828         * lib/expl.c: Likewise.
56829         * lib/floorl.c: Likewise.
56830         * lib/frexpl.c: Likewise.
56831         * lib/ldexpl.c: Likewise.
56832         * lib/logl.c: Likewise.
56833         * lib/sincosl.c: Likewise.
56834         * lib/sinl.c: Likewise.
56835         * lib/sqrtl.c: Likewise.
56836         * lib/tanl.c: Likewise.
56837         * lib/trigl.c: Likewise.
56838         * m4/math_h.m4: New file.
56839         * MODULES.html.sh (Mathematics): Add math.
56840
56841 2007-02-17  Bruno Haible  <bruno@clisp.org>
56842
56843         * modules/wctype-tests: New file.
56844         * tests/test-wctype.c: New file.
56845
56846         * modules/wchar-tests: New file.
56847         * tests/test-wchar.c: New file.
56848
56849         * modules/unistd-tests: New file.
56850         * tests/test-unistd.c: New file.
56851
56852         * modules/time-tests: New file.
56853         * tests/test-time.c: New file.
56854
56855         * modules/sysexits-tests: New file.
56856         * tests/test-sysexits.c: New file.
56857
56858         * modules/sys_time-tests: New file.
56859         * tests/test-sys_time.c: New file.
56860
56861         * modules/sys_stat-tests: New file.
56862         * tests/test-sys_stat.c: New file.
56863
56864         * modules/sys_socket-tests: New file.
56865         * tests/test-sys_socket.c: New file.
56866
56867         * modules/sys_select-tests: New file.
56868         * tests/test-sys_select.c: New file.
56869
56870         * modules/string-tests: New file.
56871         * tests/test-string.c: New file.
56872
56873         * modules/stdbool-tests: New file.
56874         * tests/test-stdbool.c: New file.
56875
56876         * modules/netinet_in-tests: New file.
56877         * tests/test-netinet_in.c: New file.
56878
56879         * modules/inttypes-tests: New file.
56880         * tests/test-inttypes.c: New file.
56881
56882         * modules/fcntl-tests: New file.
56883         * tests/test-fcntl.c: New file.
56884
56885         * modules/byteswap-tests: New file.
56886         * tests/test-byteswap.c: New file.
56887
56888         * modules/arpa_inet-tests: New file.
56889         * tests/test-arpa_inet.c: New file.
56890
56891 2007-02-17  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56894         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56895         if the corresponding module is not enabled. Emit link warnings if
56896         the function is used nevertheless.
56897         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56898         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56899         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56900         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56901         * modules/inttypes (Depends-on): Add link-warning.
56902         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56903         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56904         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56905         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56906         * modules/imaxdiv (configure.ac): Likewise.
56907         * modules/strtoimax (configure.ac): Likewise.
56908         * modules/strtoumax (configure.ac): Likewise.
56909
56910 2007-02-17  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56913         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56914         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56915         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56916
56917 2007-02-17  Bruno Haible  <bruno@clisp.org>
56918
56919         * modules/link-warning: New file.
56920         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56921         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56922         * modules/string (Depends-on): Add link-warning.
56923         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56924         string.h.
56925         * MODULES.html.sh (Support for building libraries and executables): Add
56926         link-warning.
56927
56928 2007-02-17  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56931         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56932         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56933         long lines.
56934
56935 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56936             Bruno Haible  <bruno@clisp.org>
56937
56938         * modules/tmpfile: New file.
56939         * lib/tmpfile.c: New file.
56940         * m4/tmpfile.m4: New file.
56941         * MODULES.html.sh (func_all_modules): New section "Input/output".
56942
56943 2007-02-15  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56946         (supports_delete_on_close): New function.
56947         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56948
56949 2007-02-14  Bruno Haible  <bruno@clisp.org>
56950
56951         * modules/mbspcasecmp-tests: New file.
56952         * tests/test-mbspcasecmp.sh: New file.
56953         * tests/test-mbspcasecmp.c: New file.
56954
56955         New module mbspcasecmp.
56956         * modules/mbspcasecmp: New file.
56957         * lib/mbspcasecmp.c: New file.
56958         * lib/string_.h (strncasecmp): Change warning message.
56959         (mbspcasecmp): New declaration.
56960         * m4/mbspcasecmp.m4: New file.
56961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56962         GNULIB_MBSPCASECMP.
56963         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56964         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56965
56966 2007-02-14  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/mbsncasecmp-tests: New file.
56969         * tests/test-mbsncasecmp.sh: New file.
56970         * tests/test-mbsncasecmp.c: New file.
56971
56972         New module mbsncasecmp.
56973         * modules/mbsncasecmp: New file.
56974         * lib/mbsncasecmp.c: New file.
56975         * lib/string_.h (mbsncasecmp): New declaration.
56976         * m4/mbsncasecmp.m4: New file.
56977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56978         GNULIB_MBSNCASECMP.
56979         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56980         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56981
56982 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56985         Verify that it doesn't overlap with our flags.
56986         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56987         do not have the desired effect in multibyte locales; instead, use
56988         mbscasecmp.
56989         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56990         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56991         we don't require GNU fnmatch ourselves (if our users require it, they
56992         should do so explicitly).
56993
56994         Fix regex code so it doesn't rely on strcasecmp.
56995         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56996         Otherwise, include gnulib's langinfo.h.
56997         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56998         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56999         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57000         * modules/regex (FILES): Remove m4/codeset.m4.
57001         (Depends-on): Add localcharset.  Remove strcase.
57002
57003 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57004
57005         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57006         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57007
57008 2007-02-13  Bruno Haible  <bruno@clisp.org>
57009
57010         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57012
57013 2007-02-12  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57016         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57017         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57018         time warning rather than a link error.
57019
57020 2007-02-12  Bruno Haible  <bruno@clisp.org>
57021
57022         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57025
57026 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57029         args, not 2.
57030
57031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         New module 'time', so that apps can include <time.h> as per
57034         POSIX and GNU instead of separate include files like time_r.h
57035         and timegm.h.  This implementation tries out a simpler approach
57036         for replacing decls in standard include files (as compared to
57037         the string module), somewhat as an experiment.
57038
57039         * config/srclist.txt: Comment out mktime.c for now.
57040         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57041         since it doesn't apply any more.  Use generic wording instead.
57042         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57043         'time'.
57044         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57045         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57046         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57047         Don't include <sys/types.h>; no longer needed since we assume C89.
57048         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57049         * lib/strftime.c: Likewise.
57050         * lib/time_r.c: Likewise.
57051         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57052         * lib/nanosleep.c: Include <time.h> first, to check interface.
57053         * lib/strptime.c: Likewise.
57054         * lib/time_r.c: Likewise.
57055         * lib/timegm.c: Likewise.
57056         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57057         needed.
57058         * lib/timegm.c: Don't include timegm.h; no longer needed.
57059         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57060         time.h now handles any problems in that area.
57061         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57062         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57063         that time.h defines struct timespec.
57064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57065         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57066         handles that.
57067         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57068         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57069         needed.  Set REPLACE_LOCALTIME.
57070         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57071         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57072         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57073         nanosleep; time_h.m4 now does that.  Don't require
57074         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57075         module handles this now.
57076         * modules/getdate (Depends-on): Remove timespec.  Add time.
57077         * modules/nanosleep (Depends-on): Likewise.
57078         * modules/stat-time (Depends-on): Likewise.
57079         * modules/nanosleep (Include): Include time.h, not timespec.h.
57080         * modules/strptime (Files): Remove lib/strptime.h.
57081         (Depends-on): Add extensions, time.
57082         (Include): Include time.h, not strptime.h.
57083         * modules/time_r (Files): Remove lib/time_r.h.
57084         (Depends-on): Add time.
57085         (Include): Include time.h, not time_r.h.
57086         * modules/timegm: Likewise.
57087         * modules/timespec (Description): Now does timespec-related decls
57088         of our own, instead of struct timespec itself.
57089         (Depends-on): Add time; remove extensions.
57090         (Maintainer): Add self.
57091         * modules/utimecmp (Depends-on): Add time; remove timespec.
57092         * modules/utimens (Depends-on): Likewise.
57093         * modules/xnanosleep (Depends-on): Likewise.
57094
57095 2007-02-11  Bruno Haible  <bruno@clisp.org>
57096
57097         * lib/c-strstr.c: Include allocsa.h.
57098         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57099         * lib/c-strcasestr.c: Include allocsa.h.
57100         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57101         * lib/strcasestr.c: Include allocsa.h.
57102         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57103         * lib/mbsstr.c: Include allocsa.h.
57104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57105         allocsa/freesa instead of malloc/free.
57106         * lib/mbscasestr.c: Include allocsa.h.
57107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57108         allocsa/freesa instead of malloc/free.
57109         * modules/c-strstr (Depends-on): Add allocsa.
57110         * modules/c-strcasestr (Depends-on): Likewise.
57111         * modules/strcasestr (Depends-on): Likewise.
57112         * modules/mbsstr (Depends-on): Likewise.
57113         * modules/mbscasestr (Depends-on): Likewise.
57114
57115 2007-02-11  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57118
57119         * modules/mbsspn-tests: New file.
57120         * tests/test-mbsspn.sh: New file.
57121         * tests/test-mbsspn.c: New file.
57122
57123 2007-02-11  Bruno Haible  <bruno@clisp.org>
57124
57125         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57126
57127         * modules/mbspbrk-tests: New file.
57128         * tests/test-mbspbrk.sh: New file.
57129         * tests/test-mbspbrk.c: New file.
57130
57131 2007-02-11  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57134         unneeded cast.
57135
57136         * modules/mbscspn-tests: New file.
57137         * tests/test-mbscspn.sh: New file.
57138         * tests/test-mbscspn.c: New file.
57139
57140 2007-02-11  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/mbscasecmp-tests: New file.
57143         * tests/test-mbscasecmp.sh: New file.
57144         * tests/test-mbscasecmp.c: New file.
57145
57146 2007-02-11  Bruno Haible  <bruno@clisp.org>
57147
57148         Ensure O(n) worst-case complexity of mbscasestr.
57149         * lib/mbscasestr.c: Include stdbool.h.
57150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57151         functions.
57152         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57153         the bookkeeping indicates that it's worth it.
57154         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57155
57156         * modules/mbscasestr-tests: New file.
57157         * tests/test-mbscasestr1.c: New file.
57158         * tests/test-mbscasestr2.sh: New file.
57159         * tests/test-mbscasestr2.c: New file.
57160         * tests/test-mbscasestr3.sh: New file.
57161         * tests/test-mbscasestr3.c: New file.
57162         * tests/test-mbscasestr4.sh: New file.
57163         * tests/test-mbscasestr4.c: New file.
57164         * m4/locale-tr.m4: New file.
57165
57166 2007-02-11  Bruno Haible  <bruno@clisp.org>
57167
57168         Ensure O(n) worst-case complexity of mbsstr.
57169         * lib/mbsstr.c: Include stdbool.h.
57170         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57171         functions.
57172         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57173         bookkeeping indicates that it's worth it.
57174         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57175
57176         * modules/mbsstr-tests: New file.
57177         * tests/test-mbsstr1.c: New file.
57178         * tests/test-mbsstr2.sh: New file.
57179         * tests/test-mbsstr2.c: New file.
57180         * tests/test-mbsstr3.sh: New file.
57181         * tests/test-mbsstr3.c: New file.
57182         * m4/locale-fr.m4: New file.
57183
57184 2007-02-11  Bruno Haible  <bruno@clisp.org>
57185
57186         * lib/mbsrchr.c (mbsrchr): Fix bug.
57187
57188         * modules/mbsrchr-tests: New file.
57189         * tests/test-mbsrchr.sh: New file.
57190         * tests/test-mbsrchr.c: New file.
57191
57192 2007-02-11  Bruno Haible  <bruno@clisp.org>
57193
57194         * lib/mbschr.c (mbschr): Fix bug.
57195
57196         * modules/mbschr-tests: New file.
57197         * tests/test-mbschr.sh: New file.
57198         * tests/test-mbschr.c: New file.
57199         * m4/locale-zh.m4: New file.
57200
57201 2007-02-11  Bruno Haible  <bruno@clisp.org>
57202
57203         Support for copying multibyte string iterators.
57204         * lib/mbiter.h: Include <string.h>.
57205         (mbiter_multi_copy): New function.
57206         (mbi_copy): New macro.
57207         * lib/mbuiter.h: Include <string.h>.
57208         (mbuiter_multi_copy): New function.
57209         (mbui_copy): New macro.
57210
57211 2007-02-11  Bruno Haible  <bruno@clisp.org>
57212
57213         New module mbslen.
57214         * modules/mbslen: New file.
57215         * lib/mbslen.c: New file.
57216         * lib/string_.h (mbslen): New declaration.
57217         * m4/mbslen.m4: New file.
57218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57219         GNULIB_MBSLEN.
57220         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57221         * MODULES.html.sh (Internationalization functions): Add mbslen.
57222
57223 2007-02-11  Bruno Haible  <bruno@clisp.org>
57224
57225         Ensure O(n) worst-case complexity of strcasestr substitute.
57226         * lib/strcasestr.c: Include stdbool.h.
57227         (knuth_morris_pratt): New function.
57228         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57229         bookkeeping indicates that it's worth it.
57230         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57231
57232         * modules/strcasestr-tests: New file.
57233         * tests/test-strcasestr.c: New file.
57234
57235 2007-02-11  Bruno Haible  <bruno@clisp.org>
57236
57237         Ensure O(n) worst-case complexity of c_strcasestr.
57238         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57239         (knuth_morris_pratt): New function.
57240         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57241         the bookkeeping indicates that it's worth it.
57242         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57243
57244         * modules/c-strcasestr-tests: New file.
57245         * tests/test-c-strcasestr.c: New file.
57246
57247 2007-02-11  Bruno Haible  <bruno@clisp.org>
57248
57249         Ensure O(n) worst-case complexity of c_strstr.
57250         * lib/c-strstr.c: Include stdbool.h, string.h.
57251         (knuth_morris_pratt): New function.
57252         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57253         bookkeeping indicates that it's worth it.
57254         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57255
57256         * lib/c-strstr.c: Complete rewrite for maintainability.
57257
57258         * modules/c-strstr-tests: New file.
57259         * tests/test-c-strstr.c: New file.
57260
57261 2007-02-11  Bruno Haible  <bruno@clisp.org>
57262
57263         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57264         5.2.1 and earlier, whereby \055 was treated just like the range
57265         delimiter '-'.
57266         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57267
57268 2007-02-08  Bruno Haible  <bruno@clisp.org>
57269
57270         * modules/regex (Depends-on): Add stdbool.
57271         Reported by Dalibor Topic <robilad@kaffe.org>.
57272
57273 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57276         Prefer returning from main to exiting from it.
57277         Remove unnecessary parens after sizeof.
57278
57279 2007-02-05  Bruno Haible  <bruno@clisp.org>
57280
57281         New module mbssep.
57282         * modules/mbssep: New file.
57283         * lib/mbssep.c: New file.
57284         * lib/string_.h (strsep): Add a conditional link warning.
57285         (mbssep): New declaration.
57286         * m4/mbssep.m4: New file.
57287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57288         GNULIB_MBSSEP.
57289         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57290         * MODULES.html.sh (Internationalization functions): Add mbssep.
57291
57292 2007-02-05  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57295         Optimize search in case of 1 delimiter.
57296
57297 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57298
57299         * lib/acl.h: Include sys/types.h before sys/acl.h.
57300
57301 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57302
57303         Merge upstream fix for glibc bugzilla #3957:
57304
57305         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57306
57307         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57308         bit for RE_HAT_LISTS_NOT_NEWLINE.
57309         (build_charclass_op): Remove bogus comment.
57310
57311 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57312
57313         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57314
57315 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57316
57317         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57318         * lib/memmem.c [!defined _LIBC]: Include config.h.
57319
57320 2007-02-04  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57323         warning message.
57324
57325 2007-02-04  Bruno Haible  <bruno@clisp.org>
57326
57327         New module mbstok_r.
57328         * modules/mbstok_r: New file.
57329         * lib/mbstok_r.c: New file.
57330         * lib/string_.h (strtok_r): Change argument names to match the
57331         comments. Add a conditional link warning.
57332         (mbstok_r): New declaration.
57333         * m4/mbstok_r.m4: New file.
57334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57335         GNULIB_MBSTOK_R.
57336         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57337         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57338
57339 2007-02-04  Bruno Haible  <bruno@clisp.org>
57340
57341         New module mbsspn.
57342         * modules/mbsspn: New file.
57343         * lib/mbsspn.c: New file.
57344         * lib/string_.h (strspn): Add a conditional link warning.
57345         (mbsspn): New declaration.
57346         * m4/mbsspn.m4: New file.
57347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57348         GNULIB_MBSSPN.
57349         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57350         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57351
57352 2007-02-04  Bruno Haible  <bruno@clisp.org>
57353
57354         New module mbspbrk.
57355         * modules/mbspbrk: New file.
57356         * lib/mbspbrk.c: New file.
57357         * lib/string_.h (strpbrk): Add a conditional link warning.
57358         (mbspbrk): New declaration.
57359         * m4/mbspbrk.m4: New file.
57360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57361         GNULIB_MBSPBRK.
57362         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57363         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57364
57365 2007-02-04  Bruno Haible  <bruno@clisp.org>
57366
57367         New module mbscspn.
57368         * modules/mbscspn: New file.
57369         * lib/mbscspn.c: New file.
57370         * lib/string_.h (strcspn): Add a conditional link warning.
57371         (mbscspn): New declaration.
57372         * m4/mbscspn.m4: New file.
57373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57374         GNULIB_MBSCSPN.
57375         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57376         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57377
57378 2007-02-04  Bruno Haible  <bruno@clisp.org>
57379
57380         New module mbscasestr, reduced goal of strcasestr.
57381         * modules/mbscasestr: New file.
57382         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57383         (mbscasestr): Renamed from strcasestr.
57384         * lib/strcasestr.c: Don't include mbuiter.h.
57385         (strcasestr): Remove support for multibyte locales.
57386         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57387         Change the conditional link warning.
57388         (mbscasestr): New declaration.
57389         * m4/mbscasestr.m4: New file.
57390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57391         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57392         REPLACE_STRCASESTR.
57393         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57395         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57397         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57398         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57399         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57400         (Depends-on): Remove mbuiter.
57401         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57402
57403 2007-02-04  Bruno Haible  <bruno@clisp.org>
57404
57405         Simplify handling of strncasecmp.
57406         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57407         the conditional link warning.
57408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57409         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57411         * modules/strcase (configure.ac): Don't invoke
57412         gl_STRING_MODULE_INDICATOR.
57413         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57414
57415 2007-02-04  Bruno Haible  <bruno@clisp.org>
57416
57417         New module mbscasecmp, reduced goal of strcasecmp.
57418         * modules/mbscasecmp: New file.
57419         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57420         (mbscasecmp): Renamed from strcasecmp.
57421         * lib/strcasecmp.c: Don't include mbuiter.h.
57422         (strcasecmp): Remove support for multibyte locales.
57423         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57424         Change the conditional link warning.
57425         (mbscasecmp): New declaration.
57426         * m4/mbscasecmp.m4: New file.
57427         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57428         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57429         REPLACE_STRCASECMP.
57430         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57432         GNULIB_MBSCASECMP.
57433         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57434         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57435         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57436         (Depends-on): Remove mbuiter.
57437         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57438
57439 2007-02-04  Bruno Haible  <bruno@clisp.org>
57440
57441         New module mbsstr. Remove module strstr.
57442         * modules/mbsstr: New file.
57443         * modules/strstr: Remove file.
57444         * lib/mbsstr.c: Renamed from lib/strstr.c.
57445         (mbsstr): Renamed from strstr.
57446         * lib/string_.h (strstr): Remove declaration. Change the conditional
57447         link warning.
57448         (mbsstr): New declaration.
57449         * m4/mbsstr.m4: New file.
57450         * m4/strstr.m4: Remove file.
57451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57452         REPLACE_STRSTR.
57453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57454         Don't initialize GNULIB_STRSTR.
57455         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57456         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57457         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57458         (Support for systems lacking ANSI C 89): Remove strstr.
57459
57460 2007-02-04  Bruno Haible  <bruno@clisp.org>
57461
57462         New module mbsrchr.
57463         * modules/mbsrchr: New file.
57464         * lib/mbsrchr.c: New file.
57465         * lib/string_.h (strrchr): Add a conditional link warning.
57466         (mbsrchr): New declaration.
57467         * m4/mbsrchr.m4: New file.
57468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57469         GNULIB_MBSRCHR.
57470         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57471         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57472
57473 2007-02-04  Bruno Haible  <bruno@clisp.org>
57474
57475         New module mbschr.
57476         * modules/mbschr: New file.
57477         * lib/mbschr.c: New file.
57478         * lib/string_.h (strchr): Add a conditional link warning.
57479         (mbschr): New declaration.
57480         * m4/mbschr.m4: New file.
57481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57482         GNULIB_MBSCHR.
57483         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57484         * MODULES.html.sh (Internationalization functions): Add mbschr.
57485
57486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57489
57490         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57491
57492 2007-02-04  Bruno Haible  <bruno@clisp.org>
57493
57494         New module description section 'configure.ac-early'.
57495         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57496         (func_get_autoconf_early_snippet): New function.
57497         (func_import, func_create_testdir): Use it. Remove special cases for
57498         modules 'extensions' and 'lock'.
57499         * modules/extensions (configure.ac-early): Require
57500         gl_USE_SYSTEM_EXTENSIONS.
57501         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57502
57503 2007-02-04  Bruno Haible  <bruno@clisp.org>
57504
57505         Make use of gcj-4.3's -fsource and -ftarget option.
57506         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57507         and if so try the options -fsource and -ftarget.
57508         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57509         source_version, ftarget_option, target_version arguments.
57510         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57511         (is_envjavac_oldgcj_14_14_usable): Renamed from
57512         is_envjavac_gcj_14_14_usable.
57513         (is_envjavac_oldgcj_14_13_usable): Renamed from
57514         is_envjavac_gcj_14_13_usable.
57515         (is_gcj_present): Update.
57516         (is_gcj_43, is_gcj43_usable): New functions.
57517         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57518         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57519         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57520         try the options -fsource and -ftarget.
57521
57522 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57525         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57526         larger value.
57527
57528 2007-02-03  Jim Meyering  <jim@meyering.net>
57529
57530         Give tools a better chance to allocate space for very large buffers.
57531         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57532
57533         Make pwd and readlink work also when run with an unreadable parent dir
57534         on systems with openat support.
57535         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57536         provided getcwd function, even when we have openat support.
57537         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57538
57539 2007-02-02  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57543         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57544         portability problems if one of these functions is only used on specific
57545         platforms.
57546         Reported by Paul Eggert.
57547
57548 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57551         is causing more trouble than it's curing.
57552         * lib/regex_internal.h (__mempcpy): Remove.
57553         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57554         (and make the code a tad smaller to boot).
57555         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57556
57557 2007-02-02  Jim Meyering  <jim@meyering.net>
57558
57559         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57560         section, not in the Makefile.am: one.
57561
57562 2007-02-02  Eric Blake  <ebb9@byu.net>
57563
57564         * lib/strchrnul.c: Always include config.h first.
57565
57566         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57567         gnulib strstr is not necessary here.
57568
57569 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57570
57571         * m4/socklen.m4: Fix typo.
57572
57573 2007-02-02  Eric Blake  <ebb9@byu.net>
57574
57575         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57576         * modules/netinet_in (Makefile.am): Likewise.
57577
57578 2007-02-01  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/string_.h (GL_LINK_WARNING): New macro.
57581         (strcasecmp, strstr, strcasestr): If provided by the system,
57582         conditionally define as a macro that leads to a warning instead of to
57583         an error.
57584         (strncasecmp): Conditionally define as a macro that leads to a warning.
57585
57586 2007-02-01  Karl Berry  <karl@gnu.org>
57587
57588         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57589
57590 2007-02-01  Bruno Haible  <bruno@clisp.org>
57591
57592         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57593         renamings.
57594
57595 2007-02-01  Eric Blake  <ebb9@byu.net>
57596
57597         * modules/regex (Depends-on): Revert dependence on mempcpy.
57598         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57599         module's definition of mempcpy.
57600         Reported by Paul Eggert.
57601
57602 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57605         the symbol XYZ before redefining it.  This fixes a problem with
57606         programs that don't use XYZ, when compiled on systems that define
57607         XYZ to something else.
57608
57609 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57612         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57613         writeable to group or other and (2) is intended to have a special
57614         mode bit that is set or cleared.  In such a case, the directory
57615         should be neither group- nor other-writeable until the special
57616         mode bits are right.
57617
57618 2007-01-31  Eric Blake  <ebb9@byu.net>
57619
57620         * modules/mountlist (Depends-on): Add strstr.
57621
57622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57623         bug.
57624         * modules/string (Makefile.am): Remove redundant replacement.
57625         * modules/regex (Depends-on): Add mempcpy.
57626
57627 2007-01-31  Bruno Haible  <bruno@clisp.org>
57628
57629         New module description field 'Link'.
57630         * gnulib-tool (func_usage): Document --extract-link-directive.
57631         (sed_extract_prog): Recognize 'Link' directive.
57632         (func_get_link_directive): New function.
57633         (func_import): Show summary of link directives.
57634         Handle --extract-link-directive option.
57635         * modules/acl (Link): New section.
57636         * modules/clock-time (Link): New section.
57637         * modules/euidaccess (Link): New section.
57638         * modules/gettext (Link): New section.
57639         * modules/iconv (Link): New section.
57640         * modules/lock (Link): New section.
57641         * modules/nanosleep (Link): New section.
57642         * modules/readline (Link): New section.
57643
57644 2007-01-27  Bruno Haible  <bruno@clisp.org>
57645
57646         Enforce the use of gnulib modules for unportable <string.h> functions.
57647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57649         (gl_HEADER_STRING_H_BODY): Require it.
57650         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57651         the symbol XYZ to one that gives a link error.
57652         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57653         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57654         * modules/mempcpy (configure.ac): Likewise.
57655         * modules/memrchr (configure.ac): Likewise.
57656         * modules/stpcpy (configure.ac): Likewise.
57657         * modules/stpncpy (configure.ac): Likewise.
57658         * modules/strcase (configure.ac): Likewise.
57659         * modules/strcasestr (configure.ac): Likewise.
57660         * modules/strchrnul (configure.ac): Likewise.
57661         * modules/strdup (configure.ac): Likewise.
57662         * modules/strndup (configure.ac): Likewise.
57663         * modules/strnlen (configure.ac): Likewise.
57664         * modules/strpbrk (configure.ac): Likewise.
57665         * modules/strsep (configure.ac): Likewise.
57666         * modules/strstr (configure.ac): Likewise.
57667         * modules/strtok_r (configure.ac): Likewise.
57668
57669 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57670
57671         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57672
57673 2007-01-30  Jim Meyering  <jim@meyering.net>
57674
57675         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57676
57677 2007-01-29  Bruno Haible  <bruno@clisp.org>
57678
57679         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57680         * lib/execute.c: Likewise.
57681         * lib/pipe.c: Likewise.
57682         * lib/printf-args.h: Likewise.
57683         * lib/printf-args.c: Likewise.
57684         * lib/printf-parse.c: Likewise.
57685         * lib/vasnprintf.c: Likewise.
57686
57687 2007-01-29  Eric Blake  <ebb9@byu.net>
57688
57689         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57690         declaration.
57691
57692 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57693
57694         * lib/strptime.h (strptime): Use 'restrict' for args where
57695         POSIX requires this.
57696         * lib/strptime.c (strptime): Likewise.
57697         Change license notice from LGPL to GPL, since gnulib-tool will
57698         change this as needed.
57699         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57700         defined.
57701         Include "strptime.h" first, to check interface.
57702         Do not #undef _LIBC and _NL_CURRENT.
57703         Do not include <stdlib.h>; no longer needed.
57704         Include "time_r.h" and declare ptime_locale_status
57705         only if _LIBC is not defined.
57706         (__P): Remove unused macro.
57707         (match_string): Bring back glibc version, but use it only if _LIBC
57708         is defined.
57709         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57710         Remove unnecessary assertion and abort() call.
57711         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57712         * m4/strptime.m4: Fix serial number comment.
57713         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57714         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57715         (Depends-on): Add time_r.
57716
57717 2007-01-29  Bruno Haible  <bruno@clisp.org>
57718
57719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57720         strptime.
57721         * modules/strptime (Depends-on): Add stdbool.
57722         * lib/strptime.h: Include <time.h> always. Add comments.
57723
57724 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57725
57726         * modules/strptime: New file.
57727         * lib/strptime.h: New file.
57728         * lib/strptime.c: New file.
57729         * m4/strptime.m4: New file.
57730
57731 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * MODULES.html.sh: New module mpsort.
57734         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57735
57736         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57737         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57739         All uses changed.
57740         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57741         All uses changed.
57742         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57743         to _Restrict_.
57744         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57745         the parameter matches the prototype.
57746
57747 2007-01-28  Jim Meyering  <jim@meyering.net>
57748
57749         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57750         sys/time.h here, reverting that part of the previous patch:
57751         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57752
57753 2007-01-28  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57756         value of $(SYS_TIME_H).
57757         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57758         remove it conditionally, too. [added by Jim Meyering]
57759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57761         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57762         GETTIMEOFDAY_REPLACEMENT to 1.
57763
57764 2007-01-28  Bruno Haible  <bruno@clisp.org>
57765
57766         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57767         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57769         Set UNISTD_H instead of UNISTD_H2.
57770         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57771
57772 2007-01-28  Bruno Haible  <bruno@clisp.org>
57773
57774         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57775         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57776
57777 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57778
57779         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57780         (func_create_testdir): Ensure C locale for `grep' and `tr'
57781         character ranges.
57782         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57783         ACLOCAL_AMFLAGS parsing state machine.
57784
57785 2007-01-27  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/unistr/base: Update.
57788
57789 2007-01-27  Bruno Haible  <bruno@clisp.org>
57790
57791         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57792         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57793         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57794         modules/unistr/u32-mbtouc.
57795         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57796         * lib/unistr.h: Update.
57797         * lib/linebreak.c: Update.
57798         * modules/unistr/u32-mbtouc: Renamed from
57799         modules/unistr/u32-mbtouc-safe.
57800         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57801         * lib/unistr.h: Update.
57802         * lib/unistr/u32-to-u8.c: Update.
57803         * lib/unistr/u32-to-u16.c: Update.
57804
57805 2007-01-27  Bruno Haible  <bruno@clisp.org>
57806
57807         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57808         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57809         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57810         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57811         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57812         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57813         modules/unistr/u16-mbtouc.
57814         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57815         * lib/unistr.h: Update.
57816         * lib/linebreak.c: Update.
57817         * modules/linebreak: Update.
57818         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57819         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57820         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57821         * modules/unistr/u16-mbtouc: Renamed from
57822         modules/unistr/u16-mbtouc-safe.
57823         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57824         * lib/unistr.h: Update.
57825         * lib/unistr/u16-to-u8.c: Update.
57826         * modules/unistr/u16-to-u8: Update.
57827         * lib/unistr/u16-to-u32.c: Update.
57828         * modules/unistr/u16-to-u32: Update.
57829
57830 2007-01-27  Bruno Haible  <bruno@clisp.org>
57831
57832         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57833         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57834         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57835         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57836         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57837         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57838         modules/unistr/u8-mbtouc.
57839         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57840         * lib/unistr.h: Update.
57841         * lib/striconveh.c: Update.
57842         * modules/striconveh: Update.
57843         * lib/linebreak.c: Update.
57844         * modules/linebreak: Update.
57845         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57846         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57847         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57848         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57849         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57850         * lib/unistr.h: Update.
57851         * lib/striconveh.c: Update.
57852         * modules/striconveh: Update.
57853         * lib/unistr/u8-to-u16.c: Update.
57854         * modules/unistr/u8-to-u16: Update.
57855         * lib/unistr/u8-to-u32.c: Update.
57856         * modules/unistr/u8-to-u32: Update.
57857
57858 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57859
57860         Sync from Libtool.
57861         * lib/argz.c: Do not include strings.h nor memory.h, include
57862         string.h unconditionally.  Patch by Simon Josefsson.
57863
57864 2007-01-27  Bruno Haible  <bruno@clisp.org>
57865
57866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57867         from gl_HEADER_STRING_H_BODY.
57868         (gl_HEADER_STRING_H_BODY): Require it.
57869         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57870         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57872         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57874         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57876         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57877         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57880         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57881         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57884
57885 2007-01-27  Bruno Haible  <bruno@clisp.org>
57886
57887         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57888         check_PROGRAMS into noinst_PROGRAMS.
57889         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57890         check_PROGRAMS in this case.
57891         (func_import): Set for_test to false.
57892         (func_create_testdir): Set for_test to true.
57893
57894 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57895             Bruno Haible  <bruno@clisp.org>
57896
57897         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57898         (Depends-on): Add string.
57899         (Includes): Use <string.h> instead of strcasestr.h.
57900         * modules/string (Makefile.am): Also substitute the value of
57901         REPLACE_STRCASESTR.
57902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57903         assume strcasestr is declared in <string.h> not <strings.h>. Also
57904         set REPLACE_STRCASESTR.
57905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57906         REPLACE_STRCASESTR.
57907         * lib/strcasestr.h: Remove file.
57908         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57909         * lib/string_.h (strcasestr): New declaration.
57910
57911 2007-01-27  Bruno Haible  <bruno@clisp.org>
57912
57913         * lib/string_.h: Use 'extern'.
57914
57915 2007-01-27  Jim Meyering  <jim@meyering.net>
57916
57917         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57918         of set-but-not-used local, "q".
57919
57920         * lib/mempcpy.c: Include <config.h> before <string.h>.
57921         This fixes a compilation error on HP-UX, due to the system's
57922         "restrict"-using mempcpy prototype.
57923
57924 2007-01-26  Bruno Haible  <bruno@clisp.org>
57925
57926         Small optimization.
57927         * lib/javacomp.c: Include c-strstr.h.
57928          (is_envjavac_gcj): Use c_strstr instead of strstr.
57929         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57930
57931 2007-01-26  Bruno Haible  <bruno@clisp.org>
57932
57933         * MODULES.html.sh (Unicode string functions): Add the new modules.
57934
57935         * modules/uniconv/u32-strconv-to-locale: New file.
57936         * lib/uniconv/u32-strconv-to-locale.c: New file.
57937
57938         * modules/uniconv/u16-strconv-to-locale: New file.
57939         * lib/uniconv/u16-strconv-to-locale.c: New file.
57940
57941         * modules/uniconv/u8-strconv-to-locale: New file.
57942         * lib/uniconv/u8-strconv-to-locale.c: New file.
57943
57944         * modules/uniconv/u32-strconv-from-locale: New file.
57945         * lib/uniconv/u32-strconv-from-locale.c: New file.
57946
57947         * modules/uniconv/u16-strconv-from-locale: New file.
57948         * lib/uniconv/u16-strconv-from-locale.c: New file.
57949
57950         * modules/uniconv/u8-strconv-from-locale: New file.
57951         * lib/uniconv/u8-strconv-from-locale.c: New file.
57952
57953         * modules/uniconv/u32-strconv-to-enc: New file.
57954         * lib/uniconv/u32-strconv-to-enc.c: New file.
57955         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57956         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57957
57958         * modules/uniconv/u16-strconv-to-enc: New file.
57959         * lib/uniconv/u16-strconv-to-enc.c: New file.
57960         * lib/uniconv/u-strconv-to-enc.h: New file.
57961         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57962         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57963
57964         * modules/uniconv/u8-strconv-to-enc: New file.
57965         * lib/uniconv/u8-strconv-to-enc.c: New file.
57966         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57967         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57968
57969         * modules/uniconv/u32-strconv-from-enc: New file.
57970         * lib/uniconv/u32-strconv-from-enc.c: New file.
57971         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57972         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57973
57974         * modules/uniconv/u16-strconv-from-enc: New file.
57975         * lib/uniconv/u16-strconv-from-enc.c: New file.
57976         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57977         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57978
57979         * modules/uniconv/u8-strconv-from-enc: New file.
57980         * lib/uniconv/u8-strconv-from-enc.c: New file.
57981         * lib/uniconv/u-strconv-from-enc.h: New file.
57982         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57983         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57984
57985         * modules/uniconv/u32-conv-from-enc: New file.
57986         * lib/uniconv/u32-conv-from-enc.c: New file.
57987         * modules/uniconv/u32-conv-from-enc-tests: New file.
57988         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57989
57990         * modules/uniconv/u16-conv-from-enc: New file.
57991         * lib/uniconv/u16-conv-from-enc.c: New file.
57992         * lib/uniconv/u-conv-from-enc.h: New file.
57993         * modules/uniconv/u16-conv-from-enc-tests: New file.
57994         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57995
57996         * modules/uniconv/u8-conv-from-enc: New file.
57997         * lib/uniconv/u8-conv-from-enc.c: New file.
57998         * modules/uniconv/u8-conv-from-enc-tests: New file.
57999         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58000
58001         * modules/uniconv/base: New file.
58002         * lib/uniconv.h: New file.
58003
58004 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58005
58006         * doc/gnulib-tool.texi (Initial import): Update to match current
58007         behavior with strdup module.
58008         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58009         * lib/memmem.h: Remove; all uses removed.  This is now done
58010         by <string.h>.
58011         * lib/mempcpy.h: Likewise.
58012         * lib/memrchr.h: Likewise.
58013         * lib/stpcpy.h: Likewise.
58014         * lib/stpncpy.h: Likewise.
58015         * lib/strcase.h: Likewise.
58016         * lib/strchrnul.h: Likewise.
58017         * lib/strdup.h: Likewise.
58018         * lib/strndup.h: Likewise.
58019         * lib/strnlen.h: Likewise.
58020         * lib/strpbrk.h: Likewise.
58021         * lib/strsep.h: Likewise.
58022         * lib/strstr.h: Likewise.
58023         * lib/strtok_r.h: Likewise.
58024         * lib/string_.h: New file.
58025         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58026         Rely on <string.h> instead.
58027         * lib/canon-host.c: Likewise.
58028         * lib/chdir-long.c: Likewise.
58029         * lib/concatpath.c: Likewise.
58030         * lib/exclude.c: Likewise.
58031         * lib/fchdir.c: Likewise.
58032         * lib/getaddrinfo.c: Likewise.
58033         * lib/getcwd.c: Likewise.
58034         * lib/getsubopt.c: Likewise.
58035         * lib/glob.c: Likewise.
58036         * lib/hard-locale.c: Likewise.
58037         * lib/iconvme.c: Likewise.
58038         * lib/javacomp.c: Likewise.
58039         * lib/mempcpy.c: Likewise.
58040         * lib/memrchr.c: Likewise.
58041         * lib/regex_internal.h: Likewise.
58042         * lib/stpncpy.c: Likewise.
58043         * lib/strcasecmp.c: Likewise.
58044         * lib/strchrnul.c: Likewise.
58045         * lib/strdup.c: Likewise.
58046         * lib/striconv.c: Likewise.
58047         * lib/striconveh.c: Likewise.
58048         * lib/striconveha.c: Likewise.
58049         * lib/strncasecmp.c: Likewise.
58050         * lib/strndup.c: Likewise.
58051         * lib/strnlen.c: Likewise.
58052         * lib/strsep.c: Likewise.
58053         * lib/strstr.c: Likewise.
58054         * lib/strtok_r.c: Likewise.
58055         * lib/userspec.c: Likewise.
58056         * lib/w32spawn.h: Likewise.
58057         * lib/xstrndup.c: Likewise.
58058         * lib/mountlist.c (strstr): Remove decl.
58059         * m4/string_h.m4: New file.
58060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58061         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58062         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58064         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58065         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58066         Set REPLACE_STRCASECMP if necessary.
58067         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58068         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58069         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58071         HAVE_DECL_STRDUP if necessary.
58072         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58073         since gl_FUNC_STRNDUP does that now.
58074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58075         Check for decl here...
58076         (gl_PREREQ_STRNLEN): ... not here.
58077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58078         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58079         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58081         necessary.
58082         * modules/string: New file.
58083         * modules/memmem (Files): Remove special-purpose include file.
58084         (Depends-on): Add string.
58085         (Include): Include <string.h>, not the removed file.
58086         * modules/mempcpy: Likewise.
58087         * modules/memrchr: Likewise.
58088         * modules/stpcpy: Likewise.
58089         * modules/stpncpy: Likewise.
58090         * modules/strcase: Likewise.
58091         * modules/strchrnul: Likewise.
58092         * modules/strdup: Likewise.
58093         * modules/strndup: Likewise.
58094         * modules/strnlen: Likewise.
58095         * modules/strpbrk: Likewise.
58096         * modules/strsep: Likewise.
58097         * modules/strstr: Likewise.
58098         * modules/strtok_r: Likewise.
58099         * tests/test-dirname.c: Don't include "strdup.h", since
58100         <string.h> now suffices.
58101         * tests/test-memmem.c: Don't include "memmem.h", since
58102         <string.h> now suffices.
58103
58104 2007-01-25  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58107         *resultp is 0.
58108
58109         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58110         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58111         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58112         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58113
58114         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58115         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58116         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58117         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58118         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58119         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58120
58121 2007-01-24  Bruno Haible  <bruno@clisp.org>
58122
58123         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58125         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58126         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58127         gl_FUNC_FTS_CORE.
58128         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58129         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58130         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58131         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58132         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58133         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58134         gl_FUNC_FCHOWNAT.
58135         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58136         gl_FUNC_STRFTIME.
58137         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58138         Reported by Ralf Wildenhues.
58139
58140 2007-01-24  Bruno Haible  <bruno@clisp.org>
58141
58142         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58143         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58144         gl_GETADDRINFO.
58145         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58146         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58147         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58148
58149 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58152         Don't use 'exit'; just return from 'main'.
58153         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58154
58155         * lib/fnmatch_.h: Readjust white space and comments to match
58156         glibc, to avoid spurious diffs.
58157
58158 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58161         2004-12-01 change by Jakub Jelinek, since this code won't compile
58162         if !LIBC.  Problem reported by Bob Proulx.
58163
58164 2007-01-23  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/striconveh.c: Include c-strcaseeq.h.
58167         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58168         * modules/striconveh (Depends-on): Add c-strcaseeq.
58169
58170 2007-01-23  Bruno Haible  <bruno@clisp.org>
58171
58172         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58173
58174         * modules/c-strcaseeq: New file.
58175         * lib/c-strcaseeq.h: New file.
58176
58177         * modules/streq: New file.
58178         * lib/streq.h: New file.
58179
58180 2007-01-23  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/striconveha-tests: New file.
58183         * tests/test-striconveha.c: New file.
58184
58185         * lib/striconveha.h: Include <stdbool.h>.
58186         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58187         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58188         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58189         (mem_iconveha): New function.
58190         (str_iconveha_notranslit): Renamed from str_iconveha.
58191         (str_iconveha): New function.
58192         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58193         c-strcase.
58194
58195 2007-01-23  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58198         encodings without forgiving before trying any encoding with handler.
58199         (str_iconveha): Try all encodings without forgiving before trying any
58200         encoding with handler.
58201
58202 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58203
58204         Import the following changes from libc.
58205
58206         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58207
58208         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58209
58210         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58211
58212         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58213         normal_bracket label.
58214
58215         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58216
58217         [BZ #361]
58218         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58219         to normal_bracket after fetching the next character.
58220
58221 2007-01-22  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58224         argument.
58225         * lib/striconveh.c (iconv_carefully_1): New function.
58226         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58227         argument.
58228         (str_cd_iconveh): Update.
58229         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58230         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58231         * tests/test-striconveh.c (MAGIC): New macro.
58232         (new_offsets): New function.
58233         (main): Test call with and without offsets.
58234
58235 2007-01-22  Bruno Haible  <bruno@clisp.org>
58236
58237         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58238         * modules/sys_select (Makefile.am): Likewise.
58239         * modules/sys_socket (Makefile.am): Likewise.
58240         * modules/sys_time (Makefile.am): Likewise.
58241
58242 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         * modules/gettimeofday (License): Change from GPL to LGPL, since
58245         gettimeofday is a library function.
58246
58247 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58248
58249         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58250
58251 2007-01-21  Bruno Haible  <bruno@clisp.org>
58252
58253         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58254
58255 2007-01-21  Bruno Haible  <bruno@clisp.org>
58256
58257         * modules/striconveha: New file.
58258         * lib/striconveha.h: New file.
58259         * lib/striconveha.c: New file.
58260         * MODULES.html.sh (Internationalization functions): Add striconveha.
58261         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58262         string.
58263         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58264
58265 2007-01-21  Bruno Haible  <bruno@clisp.org>
58266
58267         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58268         * lib/striconveh.c (str_iconveh): Likewise.
58269
58270 2007-01-21  Bruno Haible  <bruno@clisp.org>
58271
58272         * lib/striconveh.h (mem_iconveh): New declaration.
58273         * lib/striconveh.c (mem_iconveh): New function.
58274         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58275
58276 2007-01-21  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58279
58280         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58281         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58282         original result buffer.
58283         (str_cd_iconveh): Update.
58284         * tests/test-striconveh.c (main): Update.
58285
58286         * lib/striconv.h (mem_cd_iconv): Change specification.
58287         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58288         result buffer.
58289         (str_cd_iconv): Update.
58290         * tests/test-striconv.c (main): Update.
58291
58292 2007-01-21  Bruno Haible  <bruno@clisp.org>
58293
58294         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58295
58296 2007-01-20  Jim Meyering  <jim@meyering.net>
58297
58298         * lib/userspec.c (parse_with_separator): If a user or group string
58299         starts with "+", skip the corresponding name-to-ID look-up, since
58300         such a look-up must fail: user and group names may not include "+".
58301
58302 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58305         since we now assume the sys_time module.
58306         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58307         check for sys/time.h; no longer needed.
58308         * modules/poll (Depends-on): Depend on sys_time.
58309
58310 2007-01-18  Bruno Haible  <bruno@clisp.org>
58311
58312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58313         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58314
58315         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58316         gettimeofday.
58317
58318         * tests/test-gettimeofday.c: Include <time.h>.
58319         (dummy): Remove variable.
58320
58321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58322         gl_HEADER_SYS_TIME_H.
58323         (gl_HEADER_SYS_TIME_H): New macro.
58324
58325         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58328         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58329         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58331         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58332         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58333         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58334         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58335         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58336
58337         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58338         last change; it caused a compilation error when cross-compiling to
58339         Cygwin.
58340
58341 2007-01-18  Jim Meyering  <jim@meyering.net>
58342
58343         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58344         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58345         than the race-prone "test -d sys || mkdir sys".
58346         (configure.ac): Use AC_PROG_MKDIR_P.
58347         * modules/sys_select: Likewise.
58348         * modules/sys_socket: Likewise.
58349         * modules/sys_time: Likewise.
58350
58351 2007-01-18  Eric Blake  <ebb9@byu.net>
58352
58353         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58354         replace gettimeofday.
58355         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58356         name, to avoid infinite recursion.
58357
58358 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58361         module sys_time.
58362         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58363         assume timespec.h defines struct timeval.
58364         * lib/settime.c: Likewise.
58365         * lib/utimens.c: Likewise.
58366         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58367         since we now assume the gettimeofday module.
58368         * lib/tempname.c (__gen_tempname): Likewise.
58369         * lib/gettimeofday.h: Remove.
58370         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58371         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58372         Include <time.h>, for 'time()'.
58373         (localtime_buffer_addr): Also use this workaround if
58374         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58375         to simplify the uses.  All uses changed.
58376         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58377         that #undef is inside {}, and 'const' follows type name consistently.
58378         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58379         (gettimeofday): Do not use the maximum possible value for
58380         tv->tv_usec, since that might break usages other than ls.c.
58381         Instead, we'll leave ls.c alone.  This undoes today's patch
58382         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58383         we've never observed the problem but might as well keep the
58384         canary.
58385         * lib/nanosleep.c: Include timespec.h first, for interface check.
58386         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58387         now assume the sys_time module.
58388         * lib/tempname.c: Likewise.
58389         * lib/timespec.h: Likewise.
58390         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58391         needed.
58392         * lib/strftime.c: Likewise.
58393         * lib/timespec.h: Likewise.
58394         * lib/posixtm.c: Include posixtm.h first, for interface check.
58395         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58396         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58397         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58398         * lib/sys_time_.h: New file.
58399         * lib/timespec.h (struct timespec): Use long int, not long.
58400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58401         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58402         Remove obsolescent call to AC_HEADER_TIME.
58403         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58406         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58407         Likewise.
58408         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58409         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58411         into the sys_time module.  Check for gettimeofday just once.
58412         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58413         for gettimeofday signature to just check the signature.  Merely
58414         compile it, since linking doesn't test signature.  Improve test for
58415         whether gettimeofday.o is actually needed.
58416         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58417         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58418         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58419         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58420         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58421         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58422         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58423         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58424         than worrying about sys/time.h.
58425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58426         Don't bother worrying about TIME_WITH_SYS_TIME.
58427         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58428         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58429         * m4/sys_time_h.m4: New file.
58430         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58431         Don't include sys/time.h.  Return from main rather than exiting.
58432         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58433         all uses changed.
58434         * modules/gethrxtime (Depends-on): Add sys_time.
58435         * modules/gettime (Depends-on): Likewise.
58436         * modules/gettimeofday (Depends-on): Likewise.
58437         * modules/nanosleep (Depends-on): Likewise.
58438         * modules/settime (Depends-on): Likewise.
58439         * modules/tempname (Depends-on): Likewise.
58440         * modules/utimens (Depends-on): Likewise.
58441         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58442         (Include): Change back to <sys/time.h>.
58443         (Maintainer): Add self.
58444         * modules/sys_time: New file.
58445         * modules/tempname (Depends-on): Add gettimeofday.
58446         * tests/test-gettimeofday.c: Include <sys/time.h>
58447         rather than gettimeofday.h.
58448
58449 2007-01-17  Bruno Haible  <bruno@clisp.org>
58450
58451         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58452         the license default to GPL.
58453         (func_create_testdir): Don't complain if a module is LGPL and its
58454         tests module depends on GPLed modules.
58455
58456 2007-01-17  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/gettimeofday.c (gettimeofday): Add code for the case
58459         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58460         maximum possible value for tv->tv_usec, rather than the minimum one.
58461
58462 2005-10-08  Martin Lambers  <marlam@marlam.de>
58463 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58464 2007-01-16  Bruno Haible  <bruno@clisp.org>
58465
58466         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58467         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58468         gl_FUNC_GETTIMEOFDAY.
58469         (Include): Add gettimeofday.h.
58470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58471         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58472         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58473         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58474         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58475         * lib/gettimeofday.h: New file.
58476         * lib/gettimeofday.c: Include <sys/timeb.h>.
58477         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58478         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58479         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58480         fall back on time().
58481
58482         * tests/test-gettimeofday.c: New file.
58483         * modules/gettimeofday-tests: New file.
58484
58485 2007-01-16  Eric Blake  <ebb9@byu.net>
58486
58487         * modules/fnmatch (Depends-on): Depend on wchar.
58488         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58489         * m4/fnmatch.m4: Likewise.
58490         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58491         * m4/mbchar.m4: Likewise.
58492         * modules/mbswidth (Depends-on): Depend on wchar.
58493         * lib/mbswidth.c: Assume <wchar.h>.
58494         * m4/mbswidth.m4: Likewise.
58495         * modules/quotearg (Depends-on): Depend on wchar.
58496         * lib/quotearg.c: Assume <wchar.h>.
58497         * m4/quotearg.m4: Likewise.
58498         * modules/regex (Depends-on): Depend on wchar.
58499         * lib/regex_internal.h: Assume <wchar.h>.
58500         * m4/regex.m4: Likewise.
58501         * modules/stdint (Depends-on): Depend on wchar.
58502         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58503         * m4/stdint.m4: Likewise.
58504         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58505         * modules/strftime (Depends-on): Depend on wchar.
58506         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58507         * modules/strtol (Depends-on): Depend on wchar.
58508         * lib/strtol.c: Assume <wchar.h>.
58509         * modules/wcwidth (Depends-on): Depend on wchar.
58510         * lib/wcwidth.h: Assume <wchar.h>.
58511         * m4/wcwidth.m4: Likewise.
58512
58513 2007-01-16  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/csharpexec-script: New, created from...
58516         * modules/csharpexec: ... this.
58517
58518 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58519
58520         * modules/javaexec-script: New, created from...
58521         * modules/javaexec: ... this.
58522
58523 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58524
58525         * modules/poll (Dependencies): Add sys_select.
58526
58527 2007-01-15  Jim Meyering  <jim@meyering.net>
58528
58529         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58530         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58531         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58532         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58533
58534 2007-01-15  Bruno Haible  <bruno@clisp.org>
58535
58536         * modules/striconveh: New file.
58537         * lib/striconveh.h: New file.
58538         * lib/striconveh.c: New file.
58539         * MODULES.html.sh (Internationalization functions): Add striconveh.
58540
58541         * modules/striconveh-tests: New file.
58542         * tests/test-striconveh.c: New file.
58543
58544 2007-01-15  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58547         not from GNU libiconv or GNU libc.
58548
58549 2007-01-15  Bruno Haible  <bruno@clisp.org>
58550
58551         * doc/gnulib-intro.texi (Copyright): Explain the different license
58552         terms for module descriptions, autoconf macros, tests, documentation.
58553
58554 2007-01-14  Bruno Haible  <bruno@clisp.org>
58555
58556         * modules/striconv-tests: New file.
58557         * tests/test-striconv.c: New file.
58558
58559 2007-01-14  Bruno Haible  <bruno@clisp.org>
58560
58561         * modules/iconv-tests: New file.
58562         * tests/test-iconv.c: New file.
58563
58564 2007-01-14  Bruno Haible  <bruno@clisp.org>
58565
58566         * gnulib-tool (func_get_license): For test modules, use the license of
58567         the main module.
58568
58569 2007-01-14  Bruno Haible  <bruno@clisp.org>
58570
58571         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58572         if iconv is found to exist.
58573
58574 2007-01-14  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/c-ctype-tests: New file.
58577         * tests/test-c-ctype.c: New file.
58578
58579 2007-01-14  Bruno Haible  <bruno@clisp.org>
58580
58581         * modules/binary-io-tests: New file.
58582         * tests/test-binary-io.sh: New file.
58583         * tests/test-binary-io.c: New file.
58584
58585 2007-01-14  Bruno Haible  <bruno@clisp.org>
58586
58587         * modules/array-oset-tests: New file.
58588         * tests/test-array_oset.c: New file.
58589
58590 2007-01-14  Bruno Haible  <bruno@clisp.org>
58591
58592         * modules/array-list-tests: New file.
58593         * tests/test-array_list.c: New file.
58594
58595 2007-01-14  Bruno Haible  <bruno@clisp.org>
58596
58597         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58598         and make.
58599         Reported by Simon Josefsson in
58600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58601
58602 2007-01-14  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/allocsa-tests: New file.
58605         * tests/test-allocsa.c: New file.
58606
58607 2007-01-14  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/fchdir (Depends-on): Add absolute-header.
58610         * modules/unistd (Depends-on): Likewise.
58611
58612 2006-12-30  Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/fchdir: New file.
58615         * modules/unistd (Files): Add lib/unistd_.h.
58616         (Makefile.am): Generate unistd.h from unistd_.h.
58617         * lib/fchdir.c: New file.
58618         * lib/dirent_.h: New file.
58619         * lib/unistd_.h: New file.
58620         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58621         * m4/fchdir.m4: New file.
58622         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58623         (gl_HEADER_UNISTD): Invoke it.
58624         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58625         function.
58626         * lib/backupfile.c (opendir, closedir): Undefine.
58627         * lib/chown.c (open, close): Undefine.
58628         * lib/clean-temp.c (open, close): Undefine.
58629         * lib/copy-file.c (open, close): Undefine.
58630         * lib/execute.c (open, close): Undefine.
58631         * lib/fsusage.c (open, close): Undefine.
58632         * lib/gc-gnulib.c (open, close): Undefine.
58633         * lib/getcwd.c (opendir, closedir): Undefine.
58634         * lib/glob.c (opendir, closedir): Undefine.
58635         * lib/javacomp.c (open, close): Undefine.
58636         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58637         * lib/openat-proc.c (open, close): Undefine.
58638         * lib/pagealign_alloc.c (open, close): Undefine.
58639         * lib/pipe.c (open, close): Undefine.
58640         * lib/progreloc.c (open, close): Undefine.
58641         * lib/savedir.c (opendir, closedir): Undefine.
58642         * lib/utime.c (open, close): Undefine.
58643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58644
58645 2007-01-10  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58648
58649 2007-01-12  Eric Blake  <ebb9@byu.net>
58650
58651         Provide a robust <wchar.h>.  Further simplifications are now
58652         possible in other modules, but not included here.
58653         * modules/wchar: New module.
58654         * m4/wchar.m4: New file.
58655         * lib/wchar_.h: Likewise.
58656         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58657         of the new module.
58658         * MODULES.html.sh (Extended multibyte and wide character utilities):
58659         New section.
58660
58661 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58664         to a reasonable default for memory allocation.
58665         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58666         file system that reports garbage st_size values for symlinks.
58667         Problem reported by Liyang Hu.
58668
58669 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58670
58671         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58672         Emacs .#* auto-save files).
58673
58674 2007-01-11  Bruno Haible  <bruno@clisp.org>
58675
58676         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58677         directory.
58678
58679 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         Use @...@ consistently in lib/wctype_.h.
58682         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58683         on it being set to 1 or 0.
58684         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58685         go back to AC_SUBSTing it.
58686         * modules/wctype (Makefile.am): Undo previous change.
58687
58688 2007-01-10  Eric Blake  <ebb9@byu.net>
58689
58690         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58691         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58692         * modules/wctype (Makefile.am): Likewise.
58693         Reported by Chris McGuire.
58694
58695 2007-01-10  Jim Meyering  <jim@meyering.net>
58696
58697         fts.c: a small readability/maintainability improvement
58698         * lib/fts.c (fts_read): Make this code slightly more readable and
58699         maintainable by hoisting the "sp->fts_cur = p" assignments to
58700         immediately follow the statements that set P.  Derived from
58701         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58702
58703 2007-01-10  Eric Blake  <ebb9@byu.net>
58704
58705         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58706         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58708         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58709         Reported by Chris McGuire.
58710
58711 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58712
58713         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58714         in sed script.
58715
58716 2007-01-09  Bruno Haible  <bruno@clisp.org>
58717
58718         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58719         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58720         variables.
58721         (func_module): Use them.
58722
58723 2007-01-09  Bruno Haible  <bruno@clisp.org>
58724
58725         * modules/unistr/base: New file.
58726         * lib/unistr.h: New file.
58727
58728         * modules/unistr/u8-to-u16: New file.
58729         * lib/unistr/u8-to-u16.c: New file.
58730
58731         * modules/unistr/u8-to-u32: New file.
58732         * lib/unistr/u8-to-u32.c: New file.
58733
58734         * modules/unistr/u16-to-u8: New file.
58735         * lib/unistr/u16-to-u8.c: New file.
58736
58737         * modules/unistr/u16-to-u32: New file.
58738         * lib/unistr/u16-to-u32.c: New file.
58739
58740         * modules/unistr/u32-to-u8: New file.
58741         * lib/unistr/u32-to-u8.c: New file.
58742
58743         * modules/unistr/u32-to-u16: New file.
58744         * lib/unistr/u32-to-u16.c: New file.
58745
58746         * modules/unistr/u8-check: New file.
58747         * modules/unistr/u16-check: New file.
58748         * modules/unistr/u32-check: New file.
58749         * lib/unistr/u8-check.c: New file.
58750         * lib/unistr/u16-check.c: New file.
58751         * lib/unistr/u32-check.c: New file.
58752
58753         * modules/unistr/u8-chr: New file.
58754         * modules/unistr/u16-chr: New file.
58755         * modules/unistr/u32-chr: New file.
58756         * lib/unistr/u8-chr.c: New file.
58757         * lib/unistr/u16-chr.c: New file.
58758         * lib/unistr/u32-chr.c: New file.
58759
58760         * modules/unistr/u8-cmp: New file.
58761         * modules/unistr/u16-cmp: New file.
58762         * modules/unistr/u32-cmp: New file.
58763         * lib/unistr/u8-cmp.c: New file.
58764         * lib/unistr/u16-cmp.c: New file.
58765         * lib/unistr/u32-cmp.c: New file.
58766
58767         * modules/unistr/u8-cpy: New file.
58768         * modules/unistr/u16-cpy: New file.
58769         * modules/unistr/u32-cpy: New file.
58770         * lib/unistr/u8-cpy.c: New file.
58771         * lib/unistr/u16-cpy.c: New file.
58772         * lib/unistr/u32-cpy.c: New file.
58773         * lib/unistr/u-cpy.h: New file.
58774
58775         * modules/unistr/u8-cpy-alloc: New file.
58776         * modules/unistr/u16-cpy-alloc: New file.
58777         * modules/unistr/u32-cpy-alloc: New file.
58778         * lib/unistr/u8-cpy-alloc.c: New file.
58779         * lib/unistr/u16-cpy-alloc.c: New file.
58780         * lib/unistr/u32-cpy-alloc.c: New file.
58781         * lib/unistr/u-cpy-alloc.h: New file.
58782
58783         * modules/unistr/u8-endswith: New file.
58784         * modules/unistr/u16-endswith: New file.
58785         * modules/unistr/u32-endswith: New file.
58786         * lib/unistr/u8-endswith.c: New file.
58787         * lib/unistr/u16-endswith.c: New file.
58788         * lib/unistr/u32-endswith.c: New file.
58789         * lib/unistr/u-endswith.h: New file.
58790
58791         * modules/unistr/u8-mblen: New file.
58792         * modules/unistr/u16-mblen: New file.
58793         * modules/unistr/u32-mblen: New file.
58794         * lib/unistr/u8-mblen.c: New file.
58795         * lib/unistr/u16-mblen.c: New file.
58796         * lib/unistr/u32-mblen.c: New file.
58797
58798         * modules/unistr/u8-mbtouc: New file.
58799         * modules/unistr/u16-mbtouc: New file.
58800         * modules/unistr/u32-mbtouc: New file.
58801         * lib/unistr/u8-mbtouc.c: New file.
58802         * lib/unistr/u16-mbtouc.c: New file.
58803         * lib/unistr/u32-mbtouc.c: New file.
58804
58805         * modules/unistr/u8-mbtouc-safe: New file.
58806         * modules/unistr/u16-mbtouc-safe: New file.
58807         * modules/unistr/u32-mbtouc-safe: New file.
58808         * lib/unistr/u8-mbtouc-safe.c: New file.
58809         * lib/unistr/u16-mbtouc-safe.c: New file.
58810         * lib/unistr/u32-mbtouc-safe.c: New file.
58811
58812         * modules/unistr/u8-move: New file.
58813         * modules/unistr/u16-move: New file.
58814         * modules/unistr/u32-move: New file.
58815         * lib/unistr/u8-move.c: New file.
58816         * lib/unistr/u16-move.c: New file.
58817         * lib/unistr/u32-move.c: New file.
58818         * lib/unistr/u-move.h: New file.
58819
58820         * modules/unistr/u8-next: New file.
58821         * modules/unistr/u16-next: New file.
58822         * modules/unistr/u32-next: New file.
58823         * lib/unistr/u8-next.c: New file.
58824         * lib/unistr/u16-next.c: New file.
58825         * lib/unistr/u32-next.c: New file.
58826
58827         * modules/unistr/u8-prev: New file.
58828         * modules/unistr/u16-prev: New file.
58829         * modules/unistr/u32-prev: New file.
58830         * lib/unistr/u8-prev.c: New file.
58831         * lib/unistr/u16-prev.c: New file.
58832         * lib/unistr/u32-prev.c: New file.
58833
58834         * modules/unistr/u8-set: New file.
58835         * modules/unistr/u16-set: New file.
58836         * modules/unistr/u32-set: New file.
58837         * lib/unistr/u8-set.c: New file.
58838         * lib/unistr/u16-set.c: New file.
58839         * lib/unistr/u32-set.c: New file.
58840         * lib/unistr/u-set.h: New file.
58841
58842         * modules/unistr/u8-startswith: New file.
58843         * modules/unistr/u16-startswith: New file.
58844         * modules/unistr/u32-startswith: New file.
58845         * lib/unistr/u8-startswith.c: New file.
58846         * lib/unistr/u16-startswith.c: New file.
58847         * lib/unistr/u32-startswith.c: New file.
58848         * lib/unistr/u-startswith.h: New file.
58849
58850         * modules/unistr/u8-stpcpy: New file.
58851         * modules/unistr/u16-stpcpy: New file.
58852         * modules/unistr/u32-stpcpy: New file.
58853         * lib/unistr/u8-stpcpy.c: New file.
58854         * lib/unistr/u16-stpcpy.c: New file.
58855         * lib/unistr/u32-stpcpy.c: New file.
58856         * lib/unistr/u-stpcpy.h: New file.
58857
58858         * modules/unistr/u8-stpncpy: New file.
58859         * modules/unistr/u16-stpncpy: New file.
58860         * modules/unistr/u32-stpncpy: New file.
58861         * lib/unistr/u8-stpncpy.c: New file.
58862         * lib/unistr/u16-stpncpy.c: New file.
58863         * lib/unistr/u32-stpncpy.c: New file.
58864         * lib/unistr/u-stpncpy.h: New file.
58865
58866         * modules/unistr/u8-strcat: New file.
58867         * modules/unistr/u16-strcat: New file.
58868         * modules/unistr/u32-strcat: New file.
58869         * lib/unistr/u8-strcat.c: New file.
58870         * lib/unistr/u16-strcat.c: New file.
58871         * lib/unistr/u32-strcat.c: New file.
58872         * lib/unistr/u-strcat.h: New file.
58873
58874         * modules/unistr/u8-strchr: New file.
58875         * modules/unistr/u16-strchr: New file.
58876         * modules/unistr/u32-strchr: New file.
58877         * lib/unistr/u8-strchr.c: New file.
58878         * lib/unistr/u16-strchr.c: New file.
58879         * lib/unistr/u32-strchr.c: New file.
58880
58881         * modules/unistr/u8-strcmp: New file.
58882         * modules/unistr/u16-strcmp: New file.
58883         * modules/unistr/u32-strcmp: New file.
58884         * lib/unistr/u8-strcmp.c: New file.
58885         * lib/unistr/u16-strcmp.c: New file.
58886         * lib/unistr/u32-strcmp.c: New file.
58887
58888         * modules/unistr/u8-strcpy: New file.
58889         * modules/unistr/u16-strcpy: New file.
58890         * modules/unistr/u32-strcpy: New file.
58891         * lib/unistr/u8-strcpy.c: New file.
58892         * lib/unistr/u16-strcpy.c: New file.
58893         * lib/unistr/u32-strcpy.c: New file.
58894         * lib/unistr/u-strcpy.h: New file.
58895
58896         * modules/unistr/u8-strcspn: New file.
58897         * modules/unistr/u16-strcspn: New file.
58898         * modules/unistr/u32-strcspn: New file.
58899         * lib/unistr/u8-strcspn.c: New file.
58900         * lib/unistr/u16-strcspn.c: New file.
58901         * lib/unistr/u32-strcspn.c: New file.
58902         * lib/unistr/u-strcspn.h: New file.
58903
58904         * modules/unistr/u8-strdup: New file.
58905         * modules/unistr/u16-strdup: New file.
58906         * modules/unistr/u32-strdup: New file.
58907         * lib/unistr/u8-strdup.c: New file.
58908         * lib/unistr/u16-strdup.c: New file.
58909         * lib/unistr/u32-strdup.c: New file.
58910         * lib/unistr/u-strdup.h: New file.
58911
58912         * modules/unistr/u8-strlen: New file.
58913         * modules/unistr/u16-strlen: New file.
58914         * modules/unistr/u32-strlen: New file.
58915         * lib/unistr/u8-strlen.c: New file.
58916         * lib/unistr/u16-strlen.c: New file.
58917         * lib/unistr/u32-strlen.c: New file.
58918         * lib/unistr/u-strlen.h: New file.
58919
58920         * modules/unistr/u8-strmblen: New file.
58921         * modules/unistr/u16-strmblen: New file.
58922         * modules/unistr/u32-strmblen: New file.
58923         * lib/unistr/u8-strmblen.c: New file.
58924         * lib/unistr/u16-strmblen.c: New file.
58925         * lib/unistr/u32-strmblen.c: New file.
58926
58927         * modules/unistr/u8-strmbtouc: New file.
58928         * modules/unistr/u16-strmbtouc: New file.
58929         * modules/unistr/u32-strmbtouc: New file.
58930         * lib/unistr/u8-strmbtouc.c: New file.
58931         * lib/unistr/u16-strmbtouc.c: New file.
58932         * lib/unistr/u32-strmbtouc.c: New file.
58933
58934         * modules/unistr/u8-strncat: New file.
58935         * modules/unistr/u16-strncat: New file.
58936         * modules/unistr/u32-strncat: New file.
58937         * lib/unistr/u8-strncat.c: New file.
58938         * lib/unistr/u16-strncat.c: New file.
58939         * lib/unistr/u32-strncat.c: New file.
58940         * lib/unistr/u-strncat.h: New file.
58941
58942         * modules/unistr/u8-strncmp: New file.
58943         * modules/unistr/u16-strncmp: New file.
58944         * modules/unistr/u32-strncmp: New file.
58945         * lib/unistr/u8-strncmp.c: New file.
58946         * lib/unistr/u16-strncmp.c: New file.
58947         * lib/unistr/u32-strncmp.c: New file.
58948
58949         * modules/unistr/u8-strncpy: New file.
58950         * modules/unistr/u16-strncpy: New file.
58951         * modules/unistr/u32-strncpy: New file.
58952         * lib/unistr/u8-strncpy.c: New file.
58953         * lib/unistr/u16-strncpy.c: New file.
58954         * lib/unistr/u32-strncpy.c: New file.
58955         * lib/unistr/u-strncpy.h: New file.
58956
58957         * modules/unistr/u8-strnlen: New file.
58958         * modules/unistr/u16-strnlen: New file.
58959         * modules/unistr/u32-strnlen: New file.
58960         * lib/unistr/u8-strnlen.c: New file.
58961         * lib/unistr/u16-strnlen.c: New file.
58962         * lib/unistr/u32-strnlen.c: New file.
58963         * lib/unistr/u-strnlen.h: New file.
58964
58965         * modules/unistr/u8-strpbrk: New file.
58966         * modules/unistr/u16-strpbrk: New file.
58967         * modules/unistr/u32-strpbrk: New file.
58968         * lib/unistr/u8-strpbrk.c: New file.
58969         * lib/unistr/u16-strpbrk.c: New file.
58970         * lib/unistr/u32-strpbrk.c: New file.
58971         * lib/unistr/u-strpbrk.h: New file.
58972
58973         * modules/unistr/u8-strrchr: New file.
58974         * modules/unistr/u16-strrchr: New file.
58975         * modules/unistr/u32-strrchr: New file.
58976         * lib/unistr/u8-strrchr.c: New file.
58977         * lib/unistr/u16-strrchr.c: New file.
58978         * lib/unistr/u32-strrchr.c: New file.
58979
58980         * modules/unistr/u8-strspn: New file.
58981         * modules/unistr/u16-strspn: New file.
58982         * modules/unistr/u32-strspn: New file.
58983         * lib/unistr/u8-strspn.c: New file.
58984         * lib/unistr/u16-strspn.c: New file.
58985         * lib/unistr/u32-strspn.c: New file.
58986         * lib/unistr/u-strspn.h: New file.
58987
58988         * modules/unistr/u8-strstr: New file.
58989         * modules/unistr/u16-strstr: New file.
58990         * modules/unistr/u32-strstr: New file.
58991         * lib/unistr/u8-strstr.c: New file.
58992         * lib/unistr/u16-strstr.c: New file.
58993         * lib/unistr/u32-strstr.c: New file.
58994         * lib/unistr/u-strstr.h: New file.
58995
58996         * modules/unistr/u8-strtok: New file.
58997         * modules/unistr/u16-strtok: New file.
58998         * modules/unistr/u32-strtok: New file.
58999         * lib/unistr/u8-strtok.c: New file.
59000         * lib/unistr/u16-strtok.c: New file.
59001         * lib/unistr/u32-strtok.c: New file.
59002         * lib/unistr/u-strtok.h: New file.
59003
59004         * modules/unistr/u8-uctomb: New file.
59005         * modules/unistr/u16-uctomb: New file.
59006         * modules/unistr/u32-uctomb: New file.
59007         * lib/unistr/u8-uctomb.c: New file.
59008         * lib/unistr/u16-uctomb.c: New file.
59009         * lib/unistr/u32-uctomb.c: New file.
59010
59011         * MODULES.html.sh (Unicode string functions): Add the new modules.
59012
59013 2007-01-08  Bruno Haible  <bruno@clisp.org>
59014
59015         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59016         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59017         subdirectories.
59018
59019 2007-01-08  Karl Berry  <karl@gnu.org>
59020
59021         * doc/error.texi: mention that main() fns must set program_name
59022         when progname is used.
59023
59024 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59027         WCTYPE_H is empty, for the benefit of builds from non-distclean
59028         directories.  Problem reported by Eric Blake in
59029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59030
59031 2007-01-08  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59034         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59035         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59036         PROVIDE_CANONICALIZE_FILENAME_MODE.
59037         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59038
59039 2007-01-08  Bruno Haible  <bruno@clisp.org>
59040
59041         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59042         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59043         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59044         * lib/fts.c: Likewise.
59045         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59046
59047 2006-12-25  Bruno Haible  <bruno@clisp.org>
59048
59049         * modules/utf8-ucs4-safe: New file.
59050         * lib/utf8-ucs4-safe.h: New file.
59051         * lib/unistr/utf8-ucs4-safe.c: New file.
59052
59053         * modules/utf16-ucs4-safe: New file.
59054         * lib/utf16-ucs4-safe.h: New file.
59055         * lib/unistr/utf16-ucs4-safe.c: New file.
59056
59057         * MODULES.html.sh (Unicode string functions): Add the new modules.
59058
59059 2007-01-08  Bruno Haible  <bruno@clisp.org>
59060
59061         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59062         (Depends-on): Add unitypes.
59063         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59064         (u8_mbtouc_aux): Move out to separate file.
59065         (u8_mbtouc): Use ucs4_t, uint8_t types.
59066         * lib/unistr/utf8-ucs4.c: New file.
59067
59068         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59069         (Depends-on): Add unitypes.
59070         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59071         (u16_mbtouc_aux): Move out to separate file.
59072         (u16_mbtouc): Use ucs4_t, uint16_t types.
59073         * lib/unistr/utf16-ucs4.c: New file.
59074
59075         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59076         (Depends-on): Add unitypes.
59077         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59078         (u8_uctomb_aux): Move out to separate file.
59079         (u8_uctomb): Use ucs4_t, uint8_t types.
59080         * lib/unistr/ucs4-utf8.c: New file.
59081
59082         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59083         (Depends-on): Add unitypes.
59084         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59085         (u16_uctomb_aux): Move out to separate file.
59086         (u16_uctomb): Use ucs4_t, uint16_t types.
59087         * lib/unistr/ucs4-utf16.c: New file.
59088
59089 2006-12-25  Bruno Haible  <bruno@clisp.org>
59090
59091         * modules/unitypes: New file.
59092         * lib/unitypes.h: New file.
59093         * MODULES.html.sh (func_all_modules): New section "Unicode string
59094         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59095         this section. Add unitypes.
59096
59097 2007-01-08  Bruno Haible  <bruno@clisp.org>
59098
59099         Avoid variable names that conflict with those from libtool.
59100         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59101         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59102         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59103         library_names_spec to acl_library_names_spec, hardcode_* to
59104         acl_hardcode_*.
59105         Reported by Ralf Wildenhues.
59106
59107 2007-01-08  Bruno Haible  <bruno@clisp.org>
59108
59109         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59110         definition.
59111         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59112         definition.
59113         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59114         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59115         definition.
59116         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59117         definition.
59118         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59119         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59120         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59121         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59122         definition.
59123         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59124         definition.
59125         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59126         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59127         GC_USE_<algorithm>.
59128         * lib/gc-libgcrypt.c: Likewise.
59129         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59130         * modules/gc-arctwo (configure.ac): Likewise.
59131         * modules/gc-des (configure.ac): Likewise.
59132         * modules/gc-hmac-md5 (configure.ac): Likewise.
59133         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59134         * modules/gc-md2 (configure.ac): Likewise.
59135         * modules/gc-md4 (configure.ac): Likewise.
59136         * modules/gc-md5 (configure.ac): Likewise.
59137         * modules/gc-random (configure.ac): Likewise.
59138         * modules/gc-rijndael (configure.ac): Likewise.
59139         * modules/gc-sha1 (configure.ac): Likewise.
59140
59141 2007-01-08  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59144         macro definition.
59145         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59146         definition.
59147         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59148         definition.
59149         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59150         * modules/fcntl-safer (configure.ac): Likewise.
59151         * modules/fopen-safer (configure.ac): Likewise.
59152         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59153         GNULIB_FWRITEERROR macro definition.
59154
59155 2007-01-08  Bruno Haible  <bruno@clisp.org>
59156
59157         * m4/gnulib-common.m4: New file.
59158         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59159         (func_get_filelist): Add m4/gnulib-common.m4.
59160
59161 2007-01-08  Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59164         command.
59165
59166 2007-01-08  Jim Meyering  <jim@meyering.net>
59167
59168         Use a more robust test for a "can't happen" condition.
59169         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59170         narrowed the st_size value.  Presuming the "can't happen" condition
59171         is true, that narrowing could conceivably convert an invalid st_size
59172         value into a valid one.  Instead, use a change based on Matthew
59173         Woehlke's original patch.
59174
59175         Slight readability improvement: use an assert-like macro
59176         in place of literal "abort ()" uses.
59177         * lib/fts.c (fts_assert): Define.
59178         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59179         Use this macro instead of a bare 'abort'.
59180
59181 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59184         simply work around them.
59185         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59186         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59187         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59188         declaring.
59189         Don't bother to define as macros, since the standard doesn't require it.
59190         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59191         longer worry about IRIX 5.3.
59192         (HAVE_WCTYPE_CTMP_BUG): Remove.
59193
59194 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59197         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59198         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59199         Problems reported by Georg Schwarz for IRIX 5.3.
59200
59201         * gnulib-tool (autoconf_minversion): Take the maximum version number
59202         found, not the minimum.  Problem reported by James Youngman.
59203
59204 2007-01-03  Karl Berry  <karl@gnu.org>
59205
59206         * doc/error.texi: new file, explaining interaction with progname.
59207         * doc/gnulib.texi: include it.  Update copyright.
59208
59209 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59210
59211         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59212         AC_CANONICAL_HOST, to improve autobuild outputs.
59213
59214 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59215             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59216
59217         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59218         sockets, server sockets, and other file descriptors.  Count errors
59219         to compute the return value.  Reorder the code a bit to be easier
59220         to follow.  Don't set event bits that were not requested (except
59221         POLLERR and POLLHUP).
59222
59223 2007-01-01  Bruno Haible  <bruno@clisp.org>
59224
59225         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59226
59227 2007-01-03  Jim Meyering  <jim@meyering.net>
59228
59229         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59230
59231 2007-01-02  Bruno Haible  <bruno@clisp.org>
59232
59233         * modules/settime (Include): Require timespec.h.
59234         * modules/nanosleep (Include): Likewise.
59235
59236 2007-01-01  Bruno Haible  <bruno@clisp.org>
59237
59238         * gnulib-tool (func_emit_copyright_notice): Bump year.
59239         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59240
59241 2007-01-01  Bruno Haible  <bruno@clisp.org>
59242
59243         Improve support for OpenBSD.
59244         * build-aux/config.rpath (libname_spec): Export.
59245         (library_names_spec): New variable. Export.
59246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59247         library_names_spec from the config.rpath output. Locate shared library
59248         through the name pattern in library_names_spec.
59249
59250 2007-01-01  Eric Blake  <ebb9@byu.net>
59251
59252         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59253
59254 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59257         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59258         assume the C locale, and avoid an "eval" that could cause trouble.
59259         Problem with SORT reported by Bob Proulx.
59260
59261         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59262         Define.  Trivial patch from Henning Nielsen Lund, originally
59263         sent to bug-grep@gnu.org today.
59264
59265 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59266
59267         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59268         struct stat.  Problem reported by Henning Nielsen Lund.
59269         * lib/acl.c: Include acl.h first, to check interface.  Don't
59270         bother to include sys/types.h and sys/stat.h again.
59271
59272 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59273
59274         Import the following change from libc; problem reported by
59275         Sven Verdoolaege.
59276
59277         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59278
59279         [BZ #1373]
59280         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59281
59282 2006-12-28  Jim Meyering  <jim@meyering.net>
59283
59284         * build-aux/announce-gen: Do not assume that the package
59285         builds any of tar.gz, tar.bz2, and .xdelta files.
59286         Suggestion from Simon Josefsson.
59287
59288 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59289
59290         * modules/announce-gen: New file.
59291
59292 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59293
59294         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59295         handles its gotchas now.
59296         * lib/mbswidth.c: Likewise.
59297         * lib/wcwidth.h: Likewise.
59298         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59299         and iswcntrl; the wctype module does this stuff now.
59300         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59302         * modules/mbchar (Depends-on): Add wctype.
59303         * modules/mbswidth (Depends-on): Likewise.
59304         * modules/wcwidth (Depends-on): Likewise.
59305
59306 2006-12-27  Eric Blake  <ebb9@byu.net>
59307
59308         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59309         module uses more than what <wctype.h> is required to provide.
59310
59311 2006-12-26  Eric Blake  <ebb9@byu.net>
59312
59313         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59314
59315 2006-12-26  Eric Blake  <ebb9@byu.net>
59316
59317         * modules/absolute-header: New module.
59318         * modules/fcntl (Depends-on): Depend on it.
59319         * modules/inttypes (Depends-on): Likewise.
59320         * modules/stdint (Depends-on): Likewise.
59321         * modules/sys_stat (Depends-on): Likewise.
59322         * modules/wctype (Depends-on): Likewise.
59323         * MODULES.html.sh (Support for building libraries and
59324         executables): Document it.
59325
59326 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * gnulib-tool (SED): Remove, undoing previous change.
59329         The problem was that it broke coreutils on Solaris, because
59330         "sed --posix" leaked into a makefile.
59331         (sed): New alias, if 'alias' and GNU sed.
59332
59333 2006-12-24  Jim Meyering  <jim@meyering.net>
59334
59335         Work around an fchownat bug in glibc-2.4:
59336         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59337         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59338         in spite of the -P option.
59339         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59340         New macros.
59341         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59342         * modules/openat (Files): Add lib/fchownat.c.
59343         * lib/openat.c (fchownat): Don't define here.  Move to...
59344         * lib/fchownat.c: ...this new file.
59345
59346 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59347
59348         Fix bug reported by Bruno Haible in
59349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59350         where quotearg.c didn't compile on Mac OS X 10.2 because it
59351         lacks <wchar.h> and wint_t.
59352         * lib/wctype_.h (__wctype_wint_t): New type.
59353         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59354         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59355         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59356         Arg is now of type __wctype_wint_t, not wint_t.
59357         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59358         substitute HAVE_WINT_T.
59359         * modules/wctype (Files): Add m4/wint_t.m4.
59360         (wctype.h): Substitute HAVE_WINT_T.
59361
59362 2006-12-23  Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59365
59366 2006-12-23  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59369         S_ISLNK.
59370         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59371         mingw.
59372
59373 2006-12-22  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/copy-file.c: Include acl.h.
59376         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59377         Close the file descriptors only after being done with copy_acl.
59378         * modules/copy-file (Depends-on): Add acl.
59379
59380 2006-12-22  Bruno Haible  <bruno@clisp.org>
59381
59382         * gnulib-tool (SED): New variable.
59383         Use $SED instead of sed everywhere.
59384
59385 2006-12-22  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/no-c++: New file.
59388         * m4/no-c++.m4: New file.
59389         * MODULES.html.sh (Support for building libraries and executables):
59390         Add no-c++.
59391
59392 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59395         Include <limits.h>, and use its INT_MAX to rewrite the
59396         j loop so that it does not overflow 'int'.  Problem reported by
59397         Ralf Wildenhues in
59398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59399         Play it safe by shifting left by 1 rather than multiplying by 2,
59400         as GCC is less likely to optimize this away when the value
59401         is signed (when it assumes overflow leads to undefined behavior).
59402         Also, don't assume time_t uses two's complement.
59403
59404 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * MODULES.html.sh: New module wctype.
59407         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59408         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59409         <wctype.h>, since the new wctype module should fix this.
59410         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59411         the wctype module should arrange for it.
59412         * lib/regex_internal.h: Likewise.
59413         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59414         since the wctype module should handle this now.
59415         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59416         * modules/fnmatch (Depends-on): Add wctype.
59417         * modules/quotearg (Depends-on): Likewise.
59418         * modules/regex (Depends-on): Likewise.
59419
59420 2006-12-19  Bruno Haible  <bruno@clisp.org>
59421
59422         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59423         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59424
59425 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59426
59427         * modules/savewd (Depends-on): Fix dependency on fcntl.
59428
59429 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59432         conforms to C99, rather than relying on the user's environment
59433         setting of STDINT_H.
59434
59435 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59436         and Eric Blake  <ebb9@byu.net>
59437
59438         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59439         This is more consistent with the other defines here.
59440         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59441         Port to z/OS.  Problem reported by Paul Gilmartin.
59442         Change local vars to use gl_ prefix rather than ac_.
59443         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59444         with other defines.
59445         * modules/double-slash-root: New module.
59446         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59447         (Depends-on): Add double-slash-root.
59448         * MODULES.html.sh (File system functions): Mention new module.
59449
59450 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59453         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59454         This is for the benefit of gzip, which doesn't do i18n.
59455
59456 2006-12-12  Jim Meyering  <jim@meyering.net>
59457
59458         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59459         Reported by Andreas Schwab <schwab@suse.de>.
59460
59461 2006-12-12  Bruno Haible  <bruno@clisp.org>
59462
59463         Merge these changes.
59464         2006-09-05  Bruno Haible  <bruno@clisp.org>
59465         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59466         iconv_alloc succeeded.
59467         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59468         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59469         test for " && dest " at the end - dest is always != NULL there. Call
59470         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59471         with 2xNULL arguments, also to flush the state storage. Handle the
59472         IRIX iconv behaviour. Realloc the final result, to throw away unused
59473         memory.
59474
59475 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59476
59477         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59478         and fchmodat unconditionally, since glibc 2.4 has them.
59479         Problem reported by Arkadiusz Miskiewicz.
59480
59481 2006-12-10  Bruno Haible  <bruno@clisp.org>
59482
59483         * gnulib-tool (func_import): Show the include files only for those
59484         modules that are copied and specified.
59485         Reported by Karl Berry.
59486
59487 2006-12-08  Jim Meyering  <jim@meyering.net>
59488
59489         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59490         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59491
59492         * build-aux/announce-gen: Add two new options, both optional:
59493         --bootstrap-tools=TOOL_LIST
59494               a comma-separated list of tools, e.g.,
59495               autoconf,automake,bison,gnulib
59496         --gnulib-snapshot-date=DATE
59497               if gnulib is in the bootstrap tool list,
59498               then report this as the snapshot date.
59499               If not specified, use the current date/time.
59500               If you specify a date here, be sure it's UTC.
59501
59502 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59503
59504         * tests/test-argp-2.sh: Fix test to match actual output.
59505         (func_compare): Fix sed script to be portable.
59506
59507 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59510         workaround for this case.  It is not autoconfigured now; offhand
59511         it's hard to see how to autoconfigure it.
59512
59513 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59516         a directory that is about to be chowned.  Such a directory's
59517         initial file permissions should permit the owner only and this
59518         should not be changed until after the chown, since the group and
59519         other bits would be incorrect if they granted permission before
59520         the chown.
59521
59522         Fix porting problem for iswctype reported by Georg Schwarz in:
59523         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59525         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59528
59529 2006-12-03  Jim Meyering  <jim@meyering.net>
59530
59531         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59532         p->fts_statp may not yet be defined.
59533         (fts_read): Instead, set it in the caller, once p->fts_statp is
59534         sure to be defined, and corresponds to a top-level directory.
59535         This bug made du -x fail.  Here's the coreutils test case:
59536         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59537         Reported by Mike Frysinger.
59538
59539 2006-12-01  Jim Meyering  <jim@meyering.net>
59540
59541         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59542         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59543         Reported by Simon Josefsson.
59544
59545 2006-11-30  Jim Meyering  <jim@meyering.net>
59546
59547         * m4/warning.m4: Use the all-permissive copyright notice
59548         recommended by RMS (rather than LGPL).
59549         * m4/vararrays.m4: Likewise.
59550         * m4/flexmember.m4: Likewise.
59551
59552 2006-11-29  Bruno Haible  <bruno@clisp.org>
59553
59554         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59555         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59556         using +=.
59557         Reported by Simon Josefsson <simon@josefsson.org>.
59558
59559 2006-11-28  James Youngman <jay@gnu.org>
59560
59561         * README: Advise users that they might find the bug-gnulib@gnu.org
59562         and autotools-announce@gnu.org mailing lists useful.
59563
59564 2006-11-28  Bruno Haible  <bruno@clisp.org>
59565
59566         * m4/ptrdiff_max.m4: Remove file.
59567
59568 2006-11-21  Bruno Haible  <bruno@clisp.org>
59569
59570         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59571         _AC_COMPUTE_INT.
59572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59573         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59574         _AC_COMPUTE_INT.
59575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59576         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59577         _AC_COMPUTE_INT.
59578         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59579
59580 2006-11-28  Jim Meyering  <jim@meyering.net>
59581
59582         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59583         warning from "gcc -Wshadow" about shadowing the builtin.
59584
59585 2006-11-27  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59588         _AC_COMPUTE_INT.
59589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59590
59591 2006-11-27  Bruno Haible  <bruno@clisp.org>
59592             Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59595
59596 2006-11-26  Bruno Haible  <bruno@clisp.org>
59597
59598         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59599         noinst_LTLIBRARIES.
59600
59601 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59602             Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59605         if compiling with "gcc -ansi".
59606
59607 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         Fix some incompatibilities with gcc -ansi -pedantic.
59610         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59611         if compiling pedantically with GCC, unless it's C99 or later.
59612         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59613         it mishandles gcc -ansi -pedantic as well.
59614         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59615         if gcc -pedantic.
59616         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59617         initializers for struct if -pedantic, unless it's C99 or later.
59618
59619 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59620
59621         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59622         Don't close an fd more than once. Identical atimes indicate
59623         success, not failure.
59624
59625 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59626
59627         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59628
59629 2006-11-23  Jim Meyering  <jim@meyering.net>
59630
59631         * build-aux/announce-gen: New file.  From coreutils.
59632
59633 2006-11-22  Jim Meyering  <jim@meyering.net>
59634
59635         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59636         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59637         (fts_read): Use a temporary to narrow the overused st_size member
59638         before using it in a switch statement.  Reported by Matthew Woehlke.
59639
59640         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59642
59643 2006-11-20  Bruno Haible  <bruno@clisp.org>
59644
59645         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59646         changequote instead of pairs of brackets.
59647         Reported by Andreas Schwab <schwab@suse.de>.
59648
59649 2006-11-21  Jim Meyering  <jim@meyering.net>
59650
59651         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59652         so as to remain compatible with older compilers.
59653         Patch from Michael Deutschmann.
59654
59655 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * MODULES.html.sh (File system functions): Add openat.
59658
59659         * lib/openat.h (rpl_fstatat): New macro, if
59660         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59661         (fstatat): Define to rpl_fstatat under the same conditions,
59662         unless COMPILING_FSTATAT.
59663         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59664         seems to have the bug.
59665         * lib/fstatat.c: New file.
59666         * modules/openat (Files): Add it.
59667
59668 2006-11-20  Bruno Haible  <bruno@clisp.org>
59669
59670         * Makefile: New file.
59671
59672 2006-11-20  Jim Meyering  <jim@meyering.net>
59673
59674         The beginnings of syntax-related checks for gnulib.
59675         * lib/Makefile: New file.
59676         * lib/t-idcache: New script.  Ensure that the two halves of
59677         idcache.c stay in sync.
59678
59679         * lib/idcache.c: Adjust comments in user- and group- portions to
59680         be more accurate, and to be consistent with one another.
59681
59682 2006-11-20  Jim Meyering  <jim@meyering.net>
59683
59684         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59685         continue using the flexible array member (thus, this module performs
59686         half as many malloc calls), with the addition that...
59687         (getgroup, getuser): Consistently record a non-match via an empty
59688         "name" string, and map an empty string match to a NULL return value.
59689         * modules/idcache (Depends-on): Re-add flexmember.
59690
59691         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59692         (getuidbyname, getgroup, getgidbyname): Likewise.
59693
59694         Use cleaner syntax: NULL rather than 0.
59695         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59696
59697 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59700         It mishandled the case where the group was missing.
59701         Problem reported by Greg Schafer.
59702         * modules/idcache: Likewise.
59703
59704 2006-11-18  Jim Meyering  <jim@meyering.net>
59705
59706         * check-module (%exempt_header): Add exception for some
59707         conditionally-included headers.
59708
59709         * modules/i-ring (Depends-on): Add verify.
59710         (License): Change to LGPL.
59711
59712 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59713
59714         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59715         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59716         and inttostr.h.  Use snprintf rather than uinttostr, so that
59717         LGPLed code doesn't depend on GPLed.
59718
59719 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * modules/inline (License): Change from GPL to LGPL.
59722
59723 2006-11-17  Jim Meyering  <jim@meyering.net>
59724
59725         * modules/d-type (License): Switch to LGPL.
59726
59727 2006-11-15  Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59730
59731 2006-11-15  Eric Blake  <ebb9@byu.net>
59732
59733         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59734         the module dependency.
59735
59736 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59737             Bruno Haible  <bruno@clisp.org>
59738
59739         * gnulib-tool (func_create_testdir): Add license consistency check.
59740
59741 2006-11-15  Eric Blake  <ebb9@byu.net>
59742
59743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59744         random "(cached)" in configure output.
59745
59746 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59747
59748         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59749         test for conforming inttypes.h is both announced and cached.
59750
59751         * MODULES.html.sh (seen_modules, seen_files): New variables.
59752         (func_module): Rewrite to use a few less gnulib-tool and sed
59753         invocations.  Avoid a couple of quadratic algorithms for ...
59754         (missed_modules, missed_files): ... these, with ...
59755         (func_append, func_tmpdir): ... these new functions, from
59756         gnulib-tool.  Analogously, install traps for cleanup.
59757
59758         * tests/test-gc.c (main): Remove unused variables.
59759         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59760
59761 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59762
59763         * modules/inttostr (License): Change to LGPL.
59764
59765 2006-11-14  Eric Blake  <ebb9@byu.net>
59766
59767         * modules/tempname (License): Change to LGPL.
59768
59769 2006-11-14  Eric Blake  <ebb9@byu.net>
59770
59771         * doc/functions.texi (Function Portability): *printf functions on
59772         Cygwin now understand all POSIX size specifiers.
59773
59774 2006-11-14  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/c-ctype (License): Change to LGPL.
59777
59778 2006-11-12  Bruno Haible  <bruno@clisp.org>
59779
59780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59781         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59782         for GNOME libraries, for which the include files are installed in
59783         subdirectories of $prefix/include.
59784
59785 2006-11-12  Bruno Haible  <bruno@clisp.org>
59786
59787         * m4/lib-link.m4: Require at least autoconf-2.54.
59788         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59789         name to underscores for the --with option.
59790
59791 2006-11-13  Bruno Haible  <bruno@clisp.org>
59792
59793         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59794         the tests directory.
59795         Reported by Ralf Wildenhues.
59796
59797 2006-11-13  Bruno Haible  <bruno@clisp.org>
59798
59799         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59800         (func_emit_initmacro_end): Undo the override here.
59801         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59802         Works around the famous automake error in coreutils.
59803
59804 2006-11-13  Eric Blake  <ebb9@byu.net>
59805
59806         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59807         element, not its node.
59808
59809 2006-11-12  Bruno Haible  <bruno@clisp.org>
59810
59811         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59812         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59813
59814 2006-11-12  Bruno Haible  <bruno@clisp.org>
59815
59816         * gnulib-tool: New option --local-symlink.
59817         (func_usage): Document it.
59818         (lsymbolic): New variable.
59819         (func_import, func_create_testdir): If --symlink was not specified,
59820         test whether --local-symlink was specified and the file comes from
59821         the local_gnulib_dir.
59822
59823 2006-11-12  Bruno Haible  <bruno@clisp.org>
59824
59825         * gnulib-tool (func_ln): New function.
59826         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59827
59828 2006-11-12  Bruno Haible  <bruno@clisp.org>
59829
59830         Finish support for source files in subdirectories.
59831         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59832         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59833         AUTOMAKE_OPTIONS.
59834         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59835
59836 2006-11-12  Bruno Haible  <bruno@clisp.org>
59837
59838         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59839         EXTRA_lib_SOURCES augmentation.
59840         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59841
59842 2006-11-12  Jim Meyering  <jim@meyering.net>
59843
59844         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59845         file descriptors.  This also averts a failure on systems with
59846         native openat support when a traversed directory lacks "x" access.
59847         * lib/fts_.h: Include "i-ring.h"
59848         (struct FTS) [fts_fd_ring]: New member.
59849         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59850         (FCHDIR): Add parentheses.
59851         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59852         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59853         When descending, rather than simply closing the previous
59854         fts_cwd_fd value, push that file descriptor onto the ring.
59855         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59856         (fts_open): Initialize the new fd_ring member.
59857         (fts_close): Clear the ring.
59858         (fts_safe_changedir): When possible, use our new fd_ring to skip
59859         the diropen and fstat and dev/ino comparison that would normally
59860         accompany a virtual `chdir ("..")'.
59861
59862         * modules/fts (Depends-on): Add i-ring.
59863         * modules/i-ring: New module.
59864         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59865         * m4/i-ring.m4: New file.
59866
59867 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59868
59869         * gnulib-tool (func_create_testdir): Fix replacement of
59870         `build-aux' in configure.ac.  Run autotools in gltests
59871         subdirectory.
59872         (func_create_testdir, func_create_megatestdir, test): There is
59873         no need for '--force' in most autotool invocations in a new
59874         tree.  Actually fail the whole test if any of the tools, or the
59875         configure or make stages fail.
59876
59877         Sync from Automake.
59878         * build-aux/gnupload: Revert last change.  Add pointer to upload
59879         instructions of the GNU Maintenance Instructions.
59880         Suggestion by Karl Berry.
59881
59882 2006-11-10  Jim Meyering  <jim@meyering.net>
59883
59884         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59885
59886 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59889         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59890         (bind_textdomain_codeset) [! ENABLE_NLS]:
59891         Evaluate all the arguments.  That way, callers get compatible behavior
59892         if the arguments have side effects.  Also, it avoids some GCC
59893         diagnostics in some cases; Joel E. Denny reported problems when Bison
59894         was configured with --enable-gcc-warnigs.
59895
59896 2006-11-10  Jim Meyering  <jim@meyering.net>
59897
59898         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59899         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59900         account.
59901
59902 2006-11-10  Jim Meyering  <jim@meyering.net>
59903
59904         * modules/inline: New file/module.
59905         * modules/xalloc (Files): Remove m4/inline.m4.
59906         (Depends-on): Add inline, instead.
59907         * modules/oset: Likewise.
59908         * modules/list: Likewise.
59909
59910 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59913         Problem reported by Matthew Woehlke.
59914
59915 2006-11-09  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/tempname.c (gen_tempname): Remove variant that invokes
59918         __gen_tempname.
59919         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59920         __gen_tempname.
59921
59922 2006-11-08  Bruno Haible  <bruno@clisp.org>
59923
59924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59925         to 'yes' instead of 'cross-compiling'.
59926
59927 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * lib/quotearg.h (quotearg_free): New decl.
59930         * lib/quotearg.c (quotearg_free): New function.
59931         (slot0, nslots, slotvec0, slotvec):
59932         Now file-scope so that quotearg_free can get at them.
59933
59934 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59935
59936         Sync from Automake.
59937         * build-aux/gnupload: Add missing 'gnu' to example URL.
59938         Report by Karl Berry.
59939
59940 2006-11-08  Bruno Haible  <bruno@clisp.org>
59941
59942         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59943         Suggested by Paul Eggert.
59944
59945 2006-11-08  Jim Meyering  <jim@meyering.net>
59946
59947         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59948         It's already included if !_LIBC.
59949         (fts_safe_changedir): Add a comment.
59950
59951 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59954         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59955         Matthew Woehlke.
59956
59957         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59958         definitions up, to avoid colliding with change below.
59959         (static_inline) [HAVE_INLINE]: New macro.
59960         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59961         Provide extern decls when !HAVE_INLINE.  Do not define unless
59962         static_inline is defined, either by us or by xmalloc.c.  Use
59963         static_inline rather than static inline.
59964         (XCALLOC): Optimize sizeof(T) = 1 case.
59965         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59966
59967 2006-11-07  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59971         AC_C_INLINE.
59972         * modules/xalloc (Files): Add m4/inline.m4.
59973
59974 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59975
59976         * README: Fix typo.
59977         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59978         (Miscellanous Notes): ...from this.
59979
59980 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59981
59982         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59983         Mention that offsetof should be used instead of sizeof.
59984         From Bruno Haible.
59985
59986 2006-11-07  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59989
59990 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59993         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59994         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59995         (gl_tree_add_before, gl_tree_add_after):
59996         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59997         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59998         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59999         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60000         (gl_linked_add_after, gl_linked_add_at): Likewise.
60001         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60002         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60003         (gl_tree_add_before, gl_tree_add_after): Likewise.
60004         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60005         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60006         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60007
60008 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60009
60010         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60011
60012 2006-11-06  Bruno Haible  <bruno@clisp.org>
60013
60014         * m4/inline.m4: New file.
60015         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60016         * modules/list (Files): Add m4/inline.m4.
60017         * modules/oset (Files): Likewise.
60018
60019 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * lib/idcache.c: Include <stddef.h>, for offsetof.
60022         (struct userid.name): Change from char * to a flexible array member.
60023         All uses changed.
60024         * modules/idcache (Depends-on): Add flexmember.
60025
60026         * MODULES.html.sh (Core language properties): New module flexmember.
60027         * modules/flexmember, m4/flexmember.m4: New files.
60028
60029         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60030         inline functions that are identical with the old xnmalloc_inline,
60031         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60032         that we can avoid some unnecessary integer multiplications and
60033         divisions in the common case where the element size is known at
60034         compile time.
60035         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60036         needed.
60037         (xnboundedmalloc): Remove.
60038         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60039         arguments, for consistency with rest of this header.
60040         (xcharalloc): Rewrite using XNMALLOC.
60041         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60042         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60043         versions have been moved to lib/xalloc.h and renamed to be the
60044         non-*_inline versions.
60045         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60046         and xnrealloc functions, since those functions are now inline and
60047         now call us.
60048         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60049         renaming described above.
60050         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60051         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60052         captures the dependency in AC_C_INLINE.
60053
60054         New module canonicalize-lgpl, proposed by Charles Wilson in
60055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60056         with a few small changes afterwards.
60057         * MODULES.html.sh (File system functions): New module
60058         canonicalize-lgpl.
60059         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60060         and canonicalize_file_name.
60061         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60062         * modules/canonicalize-lgpl: New files.
60063
60064 2006-11-05  Bruno Haible  <bruno@clisp.org>
60065
60066         * gnulib-tool (func_import, func_create_testdir): Create directories
60067         also for files in subdirectories of lib/.
60068
60069 2006-11-05  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60072         ANSI C compliant.
60073
60074 2006-11-03  Bruno Haible  <bruno@clisp.org>
60075
60076         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60078         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60079         (xnboundedmalloc): New inline function.
60080         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60081         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60082         xmalloc.
60083         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60084         xmalloc.
60085         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60086         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60087         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60088         xmalloc.
60089         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60090         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60091         xmalloc.
60092         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60093         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60094         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60095         xmalloc.
60096         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60097         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60099         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60100         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60101         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60102         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60103
60104 2006-11-03  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/c-ctype.h [C++]: Define functions without name mangling.
60107         * lib/fwriteerror.h [C++]: Likewise.
60108         * lib/gcd.h [C++]: Likewise.
60109         * lib/linebreak.h [C++]: Likewise.
60110
60111 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60114         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60115         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60117         Check for functions and headers just once.
60118         Check for declaration of canonicalize_file_name.
60119         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60120
60121 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60122
60123         * gnulib-tool (func_import): Fix typo in actioncmd.
60124
60125 2006-11-02  Bruno Haible  <bruno@clisp.org>
60126
60127         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60128         newline sequence in the Makefile.am snippet as a space, like "make"
60129         does.
60130         Reported by Roger Persson <perrog@gmail.com>.
60131
60132 2006-11-01  Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60135         already declared in <string.h>.
60136         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60137
60138 2006-11-01  Bruno Haible  <bruno@clisp.org>
60139
60140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60141         * lib/strcase.h: Include <string.h>.
60142         (strcasecmp): Define to rpl_strcasecmp here.
60143
60144 2006-11-01  Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60147
60148 2006-11-01  Eric Blake  <ebb9@byu.net>
60149
60150         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60151
60152         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60153
60154 2006-10-29  Bruno Haible  <bruno@clisp.org>
60155
60156         Make it compile in C++ mode.
60157         * lib/full-write.c (full_rw): Add a cast.
60158
60159 2006-11-01  Bruno Haible  <bruno@clisp.org>
60160
60161         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60162         be POSIX compliant.
60163         Reported by Roger Persson <perrog@gmail.com>.
60164
60165 2006-11-01  Eric Blake  <ebb9@byu.net>
60166
60167         * lib/getopt_.h: Fix comments.
60168
60169 2006-10-31  Eric Blake  <ebb9@byu.net>
60170
60171         * modules/tmpdir (Depends-on): Add sys_stat.
60172         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60173         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60174         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60175         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60176         tempname.
60177
60178 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         Avoid some C++ diagnostics reported by Bruno Haible.
60181         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60182         xmalloc.
60183         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60184         (struct slotvec): Move to top level.
60185         (quotearg_n_options): Rewrite to avoid xmalloc.
60186         * lib/xalloc.h (xcharalloc): New function.
60187         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60188         [defined __cplusplus]: Add function template that provides result
60189         type propagation.  This part of the change is from Bruno Haible.
60190
60191 2006-10-29  Bruno Haible  <bruno@clisp.org>
60192
60193         Make it compile in C++ mode.
60194         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60195         * lib/strnlen1.c (strnlen1): Cast memchr result.
60196         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60197         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60198         (create_temp_dir): Rename local variable 'template'.
60199         (compile_csharp_using_sscli): Add cast.
60200         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60201         * lib/findprog.c (find_in_path): Likewise.
60202         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60203         * lib/wait-process.c (register_slave_subprocess): Likewise.
60204
60205 2006-10-22  Bruno Haible  <bruno@clisp.org>
60206
60207         * modules/tsearch: New file.
60208         * lib/tsearch.h: New file.
60209         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60210         * m4/tsearch.m4: New file.
60211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60212
60213 2006-10-29  Eric Blake  <ebb9@byu.net>
60214
60215         * lib/arcfour.c: Assume config.h.
60216         * lib/arctwo.c: Likewise.
60217         * lib/base64.c: Likewise.
60218         * lib/check-version.c: Likewise.
60219         * lib/crc.c: Likewise.
60220         * lib/des.c: Likewise.
60221         * lib/gc-gnulib.c: Likewise.
60222         * lib/gc-libgcrypt.c: Likewise.
60223         * lib/gc-pbkdf2-sha1.c: Likewise.
60224         * lib/getaddrinfo.c: Likewise.
60225         * lib/getdelim.c: Likewise.
60226         * lib/getline.c: Likewise.
60227         * lib/hmac-md5.c: Likewise.
60228         * lib/hmac-sha1.c: Likewise.
60229         * lib/iconvme.c: Likewise.
60230         * lib/md2.c: Likewise.
60231         * lib/md4.c: Likewise.
60232         * lib/memxor.c: Likewise.
60233         * lib/read-file.c: Likewise.
60234         * lib/readline.c: Likewise.
60235         * lib/rijndael-alg-fst.c: Likewise.
60236         * lib/rijndael-api-fst.c: Likewise.
60237         * lib/xgetdomainname.c: Likewise.
60238
60239 2006-10-28  Eric Blake  <ebb9@byu.net>
60240
60241         * lib/xstrndup.c: Assume config.h.
60242
60243 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60246         stat-macros.h is now for our own macros, whereas stat_h is for
60247         macros in the <sys/stat.h> name space.
60248         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60249         (STAT_MACROS_H): Remove.
60250         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60251         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60252         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60253         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60254         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60255         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60256         Move these macros to ...
60257         * lib/stat_.h: here.  Don't include stat-macros.h.
60258         * lib/canonicalize.c: Don't include stat-macros.h.
60259         * lib/chown.c: Likewise.
60260         * lib/euidaccess.c: Likewise.
60261         * lib/file-type.c: Likewise.
60262         * lib/filemode.c: Likewise.
60263         * lib/glob.c: Likewise.
60264         * lib/isapipe.c: Likewise.
60265         * lib/lchown.c: Likewise.
60266         * lib/lstat.c: Likewise.
60267         * lib/mkdir-p.c: Likewise.
60268         * lib/rmdir.c: Likewise.
60269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60271         unless mkdir isn't declared, to speed up 'configure'.
60272         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60273         would define all the S_* symbols.
60274         * modules/canonicalize (Depends-on):
60275         Depend on sys_stat, not stat-macros.
60276         * modules/chown: Likewise.
60277         * modules/euidaccess: Likewise.
60278         * modules/filemode: Likewise.
60279         * modules/file-type: Likewise.
60280         * modules/glob: Likewise.
60281         * modules/isapipe: Likewise.
60282         * modules/lchown: Likewise.
60283         * modules/lstat: Likewise.
60284         * modules/mkancesdirs: Likewise.
60285         * modules/rmdir: Likewise.
60286         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60287         * modules/modechange: Likewise.
60288         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60289         (configure.ac): Remove gl_STAT_MACROS.
60290         * modules/sys_stat (Depends-on): Remove stat-macros.
60291
60292 2006-10-27  Bruno Haible  <bruno@clisp.org>
60293
60294         * m4/signed.m4: Remove file.
60295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60296         invocation.
60297         * modules/vasnprintf (Files): Remove m4/signed.m4.
60298
60299 2006-10-27  Bruno Haible  <bruno@clisp.org>
60300
60301         Update to GNU gettext 0.16.
60302         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60303         m4/inttypes-h.m4, m4/signed.m4.
60304         * m4/gettext.m4: Update to GNU gettext 0.16.
60305         * m4/intl.m4: New file, from GNU gettext.
60306         * m4/intldir.m4: New file, from GNU gettext.
60307         * config/srclist.txt: Update
60308
60309 2006-10-27  Eric Blake  <ebb9@byu.net>
60310
60311         * MODULES.html.sh: Document tempname.
60312         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60313         dependencies.
60314         (Files): Move lib/tempname.c...
60315         * modules/tempname: ...to this new module.
60316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60317         (gl_PREREQ_TEMPNAME): Move...
60318         * m4/tempname.m4: ...to this new file.
60319         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60320         * modules/sys_stat (Depends-on): Add stat-macros.
60321         * lib/stat_.h (includes): Pick up stat macros.
60322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60323         if stat macros are broken.
60324         * lib/tempname.c (includes): No need to include "stat-macros.h".
60325         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60326         (direxists, __path_search) [!_LIBC]: Don't compile these in
60327         gnulib; the tmpdir module covers that.
60328         * lib/tempname.h: New file.
60329
60330 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * COPYING: Explain how gnulib-tool converts licence headers.
60333         Almost all wording by Eric Blake.
60334
60335 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * lib/mbchar.h (is_basic_table): Make read-only.
60338         * lib/mbchar.c (is_basic_table): Likewise.
60339         Reported by John Darrington.
60340
60341 2006-10-25  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/progname.h (set_program_name): Undefine before defining.
60344
60345 2006-10-25  Bruno Haible  <bruno@clisp.org>
60346
60347         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60348         false for non-gcc C++ compilers.
60349         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60350
60351 2006-10-24  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60354         iconv implementations like Irix iconv.
60355
60356 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * modules/vararrays: New file.
60359         * m4/vararrays.m4: New file, taken from diffutils.
60360         * MODULES.html.sh: New module vararrays.
60361
60362 2006-10-24  Karl Berry  <karl@gnu.org>
60363
60364         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60365         Don't call GNU Unix.
60366
60367 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60368
60369         * users.txt: Add Libtool.
60370
60371         Sync from Libtool:
60372
60373         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60376         to gnulib's policy of including config.h unconditionally.
60377
60378 2006-10-24  Bruno Haible  <bruno@clisp.org>
60379
60380         * modules/wcwidth (Files): Add m4/wint_t.m4.
60381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60382         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60383
60384 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60385
60386         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60387         to pacify GCC with some -W flags enabled.  Problem reported by
60388         Bruno Haible.
60389
60390 2006-10-24  Jim Meyering  <jim@meyering.net>
60391
60392         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60393         Reported by Karl Berry.
60394
60395 2006-10-23  Bruno Haible  <bruno@clisp.org>
60396
60397         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60398
60399 2006-10-24  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/gl_list.h: Use C comment style, not C++ comment style.
60402
60403 2006-10-23  Eric Blake  <ebb9@byu.net>
60404
60405         * lib/getaddrinfo.c (includes): Add missing include.
60406
60407 2006-10-23  Bruno Haible  <bruno@clisp.org>
60408             Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         Ability to rename obstack_free.
60411         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60412         obstack_free.
60413         (obstack_free): Invoke the __obstack_free macro.
60414         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60415
60416 2006-10-23  Bruno Haible  <bruno@clisp.org>
60417             Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60420         __argc, __argv from the declaration. (They are defined as macros on
60421         mingw.)
60422
60423 2006-10-22  Bruno Haible  <bruno@clisp.org>
60424
60425         * doc/gnulib-intro.texi: New file.
60426         * doc/gnulib.texi: Include it.
60427
60428 2006-10-21  Bruno Haible  <bruno@clisp.org>
60429
60430         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60431         "Introduction", "Miscellanous Notes", "Particular Modules".
60432
60433 2006-10-21  Bruno Haible  <bruno@clisp.org>
60434
60435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60436         Change mostlyclean-local rule to avoid sh syntax error from bash
60437         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60438
60439 2006-10-23  Jim Meyering  <jim@meyering.net>
60440
60441         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60442         in place of snprintf.
60443
60444         * modules/inttostr (Files): Add lib/uinttostr.c.
60445         * lib/uinttostr.c (inttostr): New file/function.
60446         * lib/inttostr.h (uinttostr): Declare.
60447         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60448         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60449         Add uinttostr.
60450         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60451
60452 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * lib/canonicalize.c (ELOOP): Define if not already defined.
60455         Problem reported by Bruno Haible in
60456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60457
60458 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60461         Problem reported by Perry Smith and Ville Laurikari.
60462
60463         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60464         uses.
60465
60466 2006-10-19  Bruno Haible  <bruno@clisp.org>
60467
60468         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60469         for mingw.
60470
60471 2006-10-19  Bruno Haible  <bruno@clisp.org>
60472
60473         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60474         Needed for mingw.
60475
60476 2006-10-19  Bruno Haible  <bruno@clisp.org>
60477
60478         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60479
60480 2006-10-19  Bruno Haible  <bruno@clisp.org>
60481
60482         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60483         it.
60484
60485 2006-10-19  Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60488         invocation.
60489
60490 2006-10-19  Bruno Haible  <bruno@clisp.org>
60491
60492         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60493         mountlist by default.
60494
60495 2006-10-16  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/c-strstr.c: Include c-strstr.h.
60498
60499 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60500
60501         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60502         in a slash.
60503
60504 2006-10-18  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/lock.h [C++]: Wrap definitions in extern "C".
60507
60508 2006-10-18  Bruno Haible  <bruno@clisp.org>
60509
60510         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60511         gl_LIBOBJS list.
60512
60513 2006-10-18  Bruno Haible  <bruno@clisp.org>
60514
60515         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60516
60517 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         * lib/xstrtol.h: Include gettext.h.
60520         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60521         Problem reported by Eric Blake.
60522         * modules/xstrtol (Depends-on): Add gettext-h.
60523
60524 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60525
60526         * lib/strftime.c (advance): New macro.
60527         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60528         incomplete type, so you can't add 0 to it.  Problem and patch
60529         reported by Eelco Dolstra for dietlibc.
60530
60531 2006-10-18  Jim Meyering  <jim@meyering.net>
60532
60533         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60534         type for a local, and rename it: s/up/user_proc/.
60535
60536 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60537
60538         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60539         READ_UTMP_USER_PROCESS.
60540         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60541
60542 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60545         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60546
60547 2006-10-17  Eric Blake  <ebb9@byu.net>
60548
60549         * lib/sigprocmask.c (sigprocmask): Fix typo.
60550
60551         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60552
60553         * modules/clean-temp (Makefile.am): Don't add to make output...
60554         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60555         config.h.
60556
60557 2006-10-17  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60560         differently if DEFAULT_TEXT_DOMAIN is set.
60561
60562 2006-10-16  Bruno Haible  <bruno@clisp.org>
60563
60564         * lib/clean-temp.c: Include fwriteerror.h.
60565
60566 2006-10-16  Bruno Haible  <bruno@clisp.org>
60567
60568         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60569
60570 2006-10-16  Bruno Haible  <bruno@clisp.org>
60571
60572         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60573         * lib/sigprocmask.h: Include <sys/types.h>.
60574         (sigset_t): Use the system's definition if present.
60575
60576 2006-10-17  Eric Blake  <ebb9@byu.net>
60577
60578         * lib/xvasprintf.c (includes): Assume config.h.
60579         * lib/xasprintf.c (includes): Likewise.
60580
60581 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60584         at least as wide as intmax_t.
60585
60586 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60587
60588         (Imported from Automake.)
60589         * build-aux/gnupload: Update to version 1.1 of directive file.
60590
60591 2006-10-16  Eric Blake  <ebb9@byu.net>
60592
60593         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60594         match Automake 1.10a.
60595
60596 2006-10-14  Bruno Haible  <bruno@clisp.org>
60597
60598         * modules/sigprocmask: New file.
60599         * lib/sigprocmask.h: New file.
60600         * lib/sigprocmask.c: New file.
60601         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60602         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60603         request sigprocmask.o.
60604         (gl_PREREQ_SIGPROCMASK): New macro.
60605         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60606         (Depends-on): Add sigprocmask.
60607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60608         gt_SIGNALBLOCKING. Test for 'raise' only once.
60609         * lib/fatal-signal.c: Include sigprocmask.h.
60610         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60611         unblock_fatal_signals): Define always.
60612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60613         sigprocmask.
60614
60615 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         Sync from Automake.
60618         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60619         which incorrectly sets the mode of an existing destination
60620         directory.  In some cases the unpatched install-sh could do the
60621         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60622         system.  We hope this is rare in practice, but it's clearly worth
60623         fixing.  Problem reported by Alex Unleashed in
60624         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60625         Also, don't bother to check for -m bugs unless we're using -m;
60626         suggested by Stepan Kasal.
60627
60628 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60629
60630         Sync from Automake.
60631         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60632         `-c' flag, so they appear at the same position as in %FASTDEP%
60633         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60634         which ignores unknown options only after the first non-option.
60635         Bug report against M4 by Nelson H. F. Beebe.
60636
60637 2006-10-13  Jim Meyering  <jim@meyering.net>
60638
60639         Fix a bug in yesterday's change.
60640         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60641         p->fts_statp->st_dev would be used uninitialized.
60642         Ensures that we always call fts_stat on the very first entry.
60643         Miklos Szeredi reported that find -xdev stopped working.
60644
60645 2006-10-12  Bruno Haible  <bruno@clisp.org>
60646
60647         * gnulib-tool (func_get_automake_snippet): Append an automatically
60648         computed EXTRA_DIST augmentation.
60649         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60650         * modules/alloca-opt (Makefile.am): Likewise.
60651         * modules/allocsa (Makefile.am): Likewise.
60652         * modules/arcfour (Makefile.am): Likewise.
60653         * modules/arctwo (Makefile.am): Likewise.
60654         * modules/argmatch (Makefile.am): Likewise.
60655         * modules/argz (Makefile.am): Likewise.
60656         * modules/atexit (Makefile.am): Likewise.
60657         * modules/backupfile (Makefile.am): Likewise.
60658         * modules/byteswap (Makefile.am): Likewise.
60659         * modules/c-strtod (Makefile.am): Likewise.
60660         * modules/c-strtold (Makefile.am): Likewise.
60661         * modules/calloc (Makefile.am): Likewise.
60662         * modules/canon-host (Makefile.am): Likewise.
60663         * modules/canonicalize (Makefile.am): Likewise.
60664         * modules/chdir-long (Makefile.am): Likewise.
60665         * modules/chdir-safer (Makefile.am): Likewise.
60666         * modules/check-version (Makefile.am): Likewise.
60667         * modules/chown (Makefile.am): Likewise.
60668         * modules/cloexec (Makefile.am): Likewise.
60669         * modules/close-stream (Makefile.am): Likewise.
60670         * modules/closeout (Makefile.am): Likewise.
60671         * modules/crc (Makefile.am): Likewise.
60672         * modules/csharpexec (Makefile.am): Likewise.
60673         * modules/cycle-check (Makefile.am): Likewise.
60674         * modules/des (Makefile.am): Likewise.
60675         * modules/dev-ino (Makefile.am): Likewise.
60676         * modules/dirfd (Makefile.am): Likewise.
60677         * modules/dirname (Makefile.am): Likewise.
60678         * modules/dup2 (Makefile.am): Likewise.
60679         * modules/eealloc (Makefile.am): Likewise.
60680         * modules/error (Makefile.am): Likewise.
60681         * modules/euidaccess (Makefile.am): Likewise.
60682         * modules/exclude (Makefile.am): Likewise.
60683         * modules/exitfail (Makefile.am): Likewise.
60684         * modules/fcntl-safer (Makefile.am): Likewise.
60685         * modules/fcntl (Makefile.am): Likewise.
60686         * modules/file-type (Makefile.am): Likewise.
60687         * modules/fileblocks (Makefile.am): Likewise.
60688         * modules/filemode (Makefile.am): Likewise.
60689         * modules/filenamecat (Makefile.am): Likewise.
60690         * modules/fnmatch (Makefile.am): Likewise.
60691         * modules/fopen-safer (Makefile.am): Likewise.
60692         * modules/fpending (Makefile.am): Likewise.
60693         * modules/fprintftime (Makefile.am): Likewise.
60694         * modules/free (Makefile.am): Likewise.
60695         * modules/fsusage (Makefile.am): Likewise.
60696         * modules/ftruncate (Makefile.am): Likewise.
60697         * modules/fts (Makefile.am): Likewise.
60698         * modules/gc-arcfour (Makefile.am): Likewise.
60699         * modules/gc-des (Makefile.am): Likewise.
60700         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60701         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60702         * modules/gc-md4 (Makefile.am): Likewise.
60703         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60704         * modules/gc-sha1 (Makefile.am): Likewise.
60705         * modules/gc (Makefile.am): Likewise.
60706         * modules/getaddrinfo (Makefile.am): Likewise.
60707         * modules/getcwd (Makefile.am): Likewise.
60708         * modules/getdelim (Makefile.am): Likewise.
60709         * modules/getdomainname (Makefile.am): Likewise.
60710         * modules/getgroups (Makefile.am): Likewise.
60711         * modules/gethostname (Makefile.am): Likewise.
60712         * modules/gethrxtime (Makefile.am): Likewise.
60713         * modules/getline (Makefile.am): Likewise.
60714         * modules/getloadavg (Makefile.am): Likewise.
60715         * modules/getlogin_r (Makefile.am): Likewise.
60716         * modules/getndelim2 (Makefile.am): Likewise.
60717         * modules/getopt (Makefile.am): Likewise.
60718         * modules/getpagesize (Makefile.am): Likewise.
60719         * modules/getpass-gnu (Makefile.am): Likewise.
60720         * modules/getpass (Makefile.am): Likewise.
60721         * modules/getsubopt (Makefile.am): Likewise.
60722         * modules/gettime (Makefile.am): Likewise.
60723         * modules/gettimeofday (Makefile.am): Likewise.
60724         * modules/getugroups (Makefile.am): Likewise.
60725         * modules/getusershell (Makefile.am): Likewise.
60726         * modules/glob (Makefile.am): Likewise.
60727         * modules/group-member (Makefile.am): Likewise.
60728         * modules/hard-locale (Makefile.am): Likewise.
60729         * modules/hash (Makefile.am): Likewise.
60730         * modules/hmac-md5 (Makefile.am): Likewise.
60731         * modules/hmac-sha1 (Makefile.am): Likewise.
60732         * modules/human (Makefile.am): Likewise.
60733         * modules/idcache (Makefile.am): Likewise.
60734         * modules/imaxabs (Makefile.am): Likewise.
60735         * modules/imaxdiv (Makefile.am): Likewise.
60736         * modules/inet_ntop (Makefile.am): Likewise.
60737         * modules/inet_pton (Makefile.am): Likewise.
60738         * modules/intprops (Makefile.am): Likewise.
60739         * modules/inttostr (Makefile.am): Likewise.
60740         * modules/inttypes (Makefile.am): Likewise.
60741         * modules/isapipe (Makefile.am): Likewise.
60742         * modules/javaversion (Makefile.am): Likewise.
60743         * modules/lchmod (Makefile.am): Likewise.
60744         * modules/lchown (Makefile.am): Likewise.
60745         * modules/localcharset (Makefile.am): Likewise.
60746         * modules/long-options (Makefile.am): Likewise.
60747         * modules/lstat (Makefile.am): Likewise.
60748         * modules/malloc (Makefile.am): Likewise.
60749         * modules/mathl (Makefile.am): Likewise.
60750         * modules/mbchar (Makefile.am): Likewise.
60751         * modules/md2 (Makefile.am): Likewise.
60752         * modules/md4 (Makefile.am): Likewise.
60753         * modules/md5 (Makefile.am): Likewise.
60754         * modules/memcasecmp (Makefile.am): Likewise.
60755         * modules/memchr (Makefile.am): Likewise.
60756         * modules/memcmp (Makefile.am): Likewise.
60757         * modules/memcoll (Makefile.am): Likewise.
60758         * modules/memcpy (Makefile.am): Likewise.
60759         * modules/memmem (Makefile.am): Likewise.
60760         * modules/memmove (Makefile.am): Likewise.
60761         * modules/mempcpy (Makefile.am): Likewise.
60762         * modules/memrchr (Makefile.am): Likewise.
60763         * modules/memset (Makefile.am): Likewise.
60764         * modules/memxor (Makefile.am): Likewise.
60765         * modules/mkancesdirs (Makefile.am): Likewise.
60766         * modules/mkdir-p (Makefile.am): Likewise.
60767         * modules/mkdir (Makefile.am): Likewise.
60768         * modules/mkdtemp (Makefile.am): Likewise.
60769         * modules/mkstemp (Makefile.am): Likewise.
60770         * modules/mktime (Makefile.am): Likewise.
60771         * modules/modechange (Makefile.am): Likewise.
60772         * modules/mountlist (Makefile.am): Likewise.
60773         * modules/nanosleep (Makefile.am): Likewise.
60774         * modules/obstack (Makefile.am): Likewise.
60775         * modules/openat (Makefile.am): Likewise.
60776         * modules/pagealign_alloc (Makefile.am): Likewise.
60777         * modules/pathmax (Makefile.am): Likewise.
60778         * modules/physmem (Makefile.am): Likewise.
60779         * modules/poll (Makefile.am): Likewise.
60780         * modules/posixtm (Makefile.am): Likewise.
60781         * modules/posixver (Makefile.am): Likewise.
60782         * modules/putenv (Makefile.am): Likewise.
60783         * modules/quote (Makefile.am): Likewise.
60784         * modules/quotearg (Makefile.am): Likewise.
60785         * modules/raise (Makefile.am): Likewise.
60786         * modules/read-file (Makefile.am): Likewise.
60787         * modules/readline (Makefile.am): Likewise.
60788         * modules/readlink (Makefile.am): Likewise.
60789         * modules/readtokens (Makefile.am): Likewise.
60790         * modules/readutmp (Makefile.am): Likewise.
60791         * modules/realloc (Makefile.am): Likewise.
60792         * modules/regex (Makefile.am): Likewise.
60793         * modules/rename-dest-slash (Makefile.am): Likewise.
60794         * modules/rename (Makefile.am): Likewise.
60795         * modules/rijndael (Makefile.am): Likewise.
60796         * modules/rmdir (Makefile.am): Likewise.
60797         * modules/rpmatch (Makefile.am): Likewise.
60798         * modules/safe-read (Makefile.am): Likewise.
60799         * modules/safe-write (Makefile.am): Likewise.
60800         * modules/same-inode (Makefile.am): Likewise.
60801         * modules/same (Makefile.am): Likewise.
60802         * modules/save-cwd (Makefile.am): Likewise.
60803         * modules/savedir (Makefile.am): Likewise.
60804         * modules/setenv (Makefile.am): Likewise.
60805         * modules/settime (Makefile.am): Likewise.
60806         * modules/sha1 (Makefile.am): Likewise.
60807         * modules/sig2str (Makefile.am): Likewise.
60808         * modules/snprintf (Makefile.am): Likewise.
60809         * modules/stat-macros (Makefile.am): Likewise.
60810         * modules/stat-time (Makefile.am): Likewise.
60811         * modules/stdbool (Makefile.am): Likewise.
60812         * modules/stdint (Makefile.am): Likewise.
60813         * modules/stdlib-safer (Makefile.am): Likewise.
60814         * modules/stpcpy (Makefile.am): Likewise.
60815         * modules/stpncpy (Makefile.am): Likewise.
60816         * modules/strcase (Makefile.am): Likewise.
60817         * modules/strcasestr (Makefile.am): Likewise.
60818         * modules/strchrnul (Makefile.am): Likewise.
60819         * modules/strcspn (Makefile.am): Likewise.
60820         * modules/strdup (Makefile.am): Likewise.
60821         * modules/strerror (Makefile.am): Likewise.
60822         * modules/strftime (Makefile.am): Likewise.
60823         * modules/strndup (Makefile.am): Likewise.
60824         * modules/strnlen (Makefile.am): Likewise.
60825         * modules/strpbrk (Makefile.am): Likewise.
60826         * modules/strsep (Makefile.am): Likewise.
60827         * modules/strstr (Makefile.am): Likewise.
60828         * modules/strtod (Makefile.am): Likewise.
60829         * modules/strtoimax (Makefile.am): Likewise.
60830         * modules/strtok_r (Makefile.am): Likewise.
60831         * modules/strtol (Makefile.am): Likewise.
60832         * modules/strtoll (Makefile.am): Likewise.
60833         * modules/strtoul (Makefile.am): Likewise.
60834         * modules/strtoull (Makefile.am): Likewise.
60835         * modules/strtoumax (Makefile.am): Likewise.
60836         * modules/strverscmp (Makefile.am): Likewise.
60837         * modules/sys_socket (Makefile.am): Likewise.
60838         * modules/sys_stat (Makefile.am): Likewise.
60839         * modules/sysexits (Makefile.am): Likewise.
60840         * modules/time_r (Makefile.am): Likewise.
60841         * modules/timegm (Makefile.am): Likewise.
60842         * modules/timespec (Makefile.am): Likewise.
60843         * modules/tmpfile-safer (Makefile.am): Likewise.
60844         * modules/trim (Makefile.am): Likewise.
60845         * modules/unistd-safer (Makefile.am): Likewise.
60846         * modules/unlinkdir (Makefile.am): Likewise.
60847         * modules/unlocked-io (Makefile.am): Likewise.
60848         * modules/userspec (Makefile.am): Likewise.
60849         * modules/utime (Makefile.am): Likewise.
60850         * modules/utimecmp (Makefile.am): Likewise.
60851         * modules/utimens (Makefile.am): Likewise.
60852         * modules/vasnprintf (Makefile.am): Likewise.
60853         * modules/vasprintf (Makefile.am): Likewise.
60854         * modules/vsnprintf (Makefile.am): Likewise.
60855         * modules/xalloc (Makefile.am): Likewise.
60856         * modules/xgetcwd (Makefile.am): Likewise.
60857         * modules/xnanosleep (Makefile.am): Likewise.
60858         * modules/xreadlink (Makefile.am): Likewise.
60859         * modules/xstrtod (Makefile.am): Likewise.
60860         * modules/xstrtol (Makefile.am): Likewise.
60861         * modules/xstrtold (Makefile.am): Likewise.
60862         * modules/yesno (Makefile.am): Likewise.
60863         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60864
60865 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * modules/error (Makefile.am): Distribute files through
60868         EXTRA_DIST, not lib_SOURCES.
60869
60870 2006-10-12  Eric Blake  <ebb9@byu.net>
60871
60872         * modules/error (Makefile.am): Distribute files in /lib.
60873         * modules/obstack (Makefile.am): Likewise.
60874
60875 2006-10-12  Bruno Haible  <bruno@clisp.org>
60876
60877         * modules/acl (Makefile.am): Distribute all files in lib/ through
60878         EXTRA_DIST.
60879         * modules/arcfour (Makefile.am): Likewise.
60880         * modules/arctwo (Makefile.am): Likewise.
60881         * modules/argmatch (Makefile.am): Likewise.
60882         * modules/argz (Makefile.am): Likewise.
60883         * modules/atexit (Makefile.am): Likewise.
60884         * modules/backupfile (Makefile.am): Likewise.
60885         * modules/c-strtod (Makefile.am): Likewise.
60886         * modules/c-strtold (Makefile.am): Likewise.
60887         * modules/calloc (Makefile.am): Likewise.
60888         * modules/canon-host (Makefile.am): Likewise.
60889         * modules/canonicalize (Makefile.am): Likewise.
60890         * modules/chdir-long (Makefile.am): Likewise.
60891         * modules/chdir-safer (Makefile.am): Likewise.
60892         * modules/check-version (Makefile.am): Likewise.
60893         * modules/chown (Makefile.am): Likewise.
60894         * modules/cloexec (Makefile.am): Likewise.
60895         * modules/close-stream (Makefile.am): Likewise.
60896         * modules/closeout (Makefile.am): Likewise.
60897         * modules/crc (Makefile.am): Likewise.
60898         * modules/cycle-check (Makefile.am): Likewise.
60899         * modules/des (Makefile.am): Likewise.
60900         * modules/dirfd (Makefile.am): Likewise.
60901         * modules/dirname (Makefile.am): Likewise.
60902         * modules/dup2 (Makefile.am): Likewise.
60903         * modules/euidaccess (Makefile.am): Likewise.
60904         * modules/exclude (Makefile.am): Likewise.
60905         * modules/exitfail (Makefile.am): Likewise.
60906         * modules/fcntl-safer (Makefile.am): Likewise.
60907         * modules/file-type (Makefile.am): Likewise.
60908         * modules/fileblocks (Makefile.am): Likewise.
60909         * modules/filemode (Makefile.am): Likewise.
60910         * modules/filenamecat (Makefile.am): Likewise.
60911         * modules/fnmatch (Makefile.am): Likewise.
60912         * modules/fopen-safer (Makefile.am): Likewise.
60913         * modules/fpending (Makefile.am): Likewise.
60914         * modules/fprintftime (Makefile.am): Likewise.
60915         * modules/free (Makefile.am): Likewise.
60916         * modules/fsusage (Makefile.am): Likewise.
60917         * modules/ftruncate (Makefile.am): Likewise.
60918         * modules/fts (Makefile.am): Likewise.
60919         * modules/gc (Makefile.am): Likewise.
60920         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60921         * modules/getaddrinfo (Makefile.am): Likewise.
60922         * modules/getcwd (Makefile.am): Likewise.
60923         * modules/getdelim (Makefile.am): Likewise.
60924         * modules/getdomainname (Makefile.am): Likewise.
60925         * modules/getgroups (Makefile.am): Likewise.
60926         * modules/gethostname (Makefile.am): Likewise.
60927         * modules/gethrxtime (Makefile.am): Likewise.
60928         * modules/getline (Makefile.am): Likewise.
60929         * modules/getloadavg (Makefile.am): Likewise.
60930         * modules/getlogin_r (Makefile.am): Likewise.
60931         * modules/getopt (Makefile.am): Likewise.
60932         * modules/getpass (Makefile.am): Likewise.
60933         * modules/getpass-gnu (Makefile.am): Likewise.
60934         * modules/getsubopt (Makefile.am): Likewise.
60935         * modules/gettime (Makefile.am): Likewise.
60936         * modules/gettimeofday (Makefile.am): Likewise.
60937         * modules/getugroups (Makefile.am): Likewise.
60938         * modules/getusershell (Makefile.am): Likewise.
60939         * modules/glob (Makefile.am): Likewise.
60940         * modules/group-member (Makefile.am): Likewise.
60941         * modules/hard-locale (Makefile.am): Likewise.
60942         * modules/hash (Makefile.am): Likewise.
60943         * modules/hmac-md5 (Makefile.am): Likewise.
60944         * modules/hmac-sha1 (Makefile.am): Likewise.
60945         * modules/human (Makefile.am): Likewise.
60946         * modules/idcache (Makefile.am): Likewise.
60947         * modules/imaxabs (Makefile.am): Likewise.
60948         * modules/imaxdiv (Makefile.am): Likewise.
60949         * modules/inet_ntop (Makefile.am): Likewise.
60950         * modules/inet_pton (Makefile.am): Likewise.
60951         * modules/inttostr (Makefile.am): Likewise.
60952         * modules/isapipe (Makefile.am): Likewise.
60953         * modules/lchown (Makefile.am): Likewise.
60954         * modules/long-options (Makefile.am): Likewise.
60955         * modules/lstat (Makefile.am): Likewise.
60956         * modules/malloc (Makefile.am): Likewise.
60957         * modules/mathl (Makefile.am): Likewise.
60958         * modules/mbchar (Makefile.am): Likewise.
60959         * modules/md2 (Makefile.am): Likewise.
60960         * modules/md4 (Makefile.am): Likewise.
60961         * modules/md5 (Makefile.am): Likewise.
60962         * modules/memcasecmp (Makefile.am): Likewise.
60963         * modules/memchr (Makefile.am): Likewise.
60964         * modules/memcmp (Makefile.am): Likewise.
60965         * modules/memcoll (Makefile.am): Likewise.
60966         * modules/memcpy (Makefile.am): Likewise.
60967         * modules/memmem (Makefile.am): Likewise.
60968         * modules/memmove (Makefile.am): Likewise.
60969         * modules/mempcpy (Makefile.am): Likewise.
60970         * modules/memrchr (Makefile.am): Likewise.
60971         * modules/memset (Makefile.am): Likewise.
60972         * modules/memxor (Makefile.am): Likewise.
60973         * modules/mkancesdirs (Makefile.am): Likewise.
60974         * modules/mkdir (Makefile.am): Likewise.
60975         * modules/mkdir-p (Makefile.am): Likewise.
60976         * modules/mkdtemp (Makefile.am): Likewise.
60977         * modules/mkstemp (Makefile.am): Likewise.
60978         * modules/mktime (Makefile.am): Likewise.
60979         * modules/modechange (Makefile.am): Likewise.
60980         * modules/mountlist (Makefile.am): Likewise.
60981         * modules/nanosleep (Makefile.am): Likewise.
60982         * modules/openat (Makefile.am): Likewise.
60983         * modules/pagealign_alloc (Makefile.am): Likewise.
60984         * modules/physmem (Makefile.am): Likewise.
60985         * modules/poll (Makefile.am): Likewise.
60986         * modules/posixtm (Makefile.am): Likewise.
60987         * modules/posixver (Makefile.am): Likewise.
60988         * modules/putenv (Makefile.am): Likewise.
60989         * modules/quote (Makefile.am): Likewise.
60990         * modules/quotearg (Makefile.am): Likewise.
60991         * modules/raise (Makefile.am): Likewise.
60992         * modules/read-file (Makefile.am): Likewise.
60993         * modules/readline (Makefile.am): Likewise.
60994         * modules/readlink (Makefile.am): Likewise.
60995         * modules/readtokens (Makefile.am): Likewise.
60996         * modules/readutmp (Makefile.am): Likewise.
60997         * modules/realloc (Makefile.am): Likewise.
60998         * modules/regex (Makefile.am): Likewise.
60999         * modules/rename (Makefile.am): Likewise.
61000         * modules/rename-dest-slash (Makefile.am): Likewise.
61001         * modules/rijndael (Makefile.am): Likewise.
61002         * modules/rmdir (Makefile.am): Likewise.
61003         * modules/rpmatch (Makefile.am): Likewise.
61004         * modules/safe-read (Makefile.am): Likewise.
61005         * modules/safe-write (Makefile.am): Likewise.
61006         * modules/same (Makefile.am): Likewise.
61007         * modules/save-cwd (Makefile.am): Likewise.
61008         * modules/savedir (Makefile.am): Likewise.
61009         * modules/setenv (Makefile.am): Likewise.
61010         * modules/settime (Makefile.am): Likewise.
61011         * modules/sha1 (Makefile.am): Likewise.
61012         * modules/sig2str (Makefile.am): Likewise.
61013         * modules/snprintf (Makefile.am): Likewise.
61014         * modules/stdlib-safer (Makefile.am): Likewise.
61015         * modules/stpcpy (Makefile.am): Likewise.
61016         * modules/stpncpy (Makefile.am): Likewise.
61017         * modules/strcase (Makefile.am): Likewise.
61018         * modules/strcasestr (Makefile.am): Likewise.
61019         * modules/strchrnul (Makefile.am): Likewise.
61020         * modules/strcspn (Makefile.am): Likewise.
61021         * modules/strdup (Makefile.am): Likewise.
61022         * modules/strerror (Makefile.am): Likewise.
61023         * modules/strftime (Makefile.am): Likewise.
61024         * modules/strndup (Makefile.am): Likewise.
61025         * modules/strnlen (Makefile.am): Likewise.
61026         * modules/strpbrk (Makefile.am): Likewise.
61027         * modules/strsep (Makefile.am): Likewise.
61028         * modules/strstr (Makefile.am): Likewise.
61029         * modules/strtod (Makefile.am): Likewise.
61030         * modules/strtoimax (Makefile.am): Likewise.
61031         * modules/strtok_r (Makefile.am): Likewise.
61032         * modules/strtol (Makefile.am): Likewise.
61033         * modules/strtoll (Makefile.am): Likewise.
61034         * modules/strtoul (Makefile.am): Likewise.
61035         * modules/strtoull (Makefile.am): Likewise.
61036         * modules/strtoumax (Makefile.am): Likewise.
61037         * modules/strverscmp (Makefile.am): Likewise.
61038         * modules/time_r (Makefile.am): Likewise.
61039         * modules/timegm (Makefile.am): Likewise.
61040         * modules/tmpfile-safer (Makefile.am): Likewise.
61041         * modules/unistd-safer (Makefile.am): Likewise.
61042         * modules/unlinkdir (Makefile.am): Likewise.
61043         * modules/userspec (Makefile.am): Likewise.
61044         * modules/utime (Makefile.am): Likewise.
61045         * modules/utimecmp (Makefile.am): Likewise.
61046         * modules/utimens (Makefile.am): Likewise.
61047         * modules/vasnprintf (Makefile.am): Likewise.
61048         * modules/vasprintf (Makefile.am): Likewise.
61049         * modules/vsnprintf (Makefile.am): Likewise.
61050         * modules/xalloc (Makefile.am): Likewise.
61051         * modules/xgetcwd (Makefile.am): Likewise.
61052         * modules/xnanosleep (Makefile.am): Likewise.
61053         * modules/xreadlink (Makefile.am): Likewise.
61054         * modules/xstrtod (Makefile.am): Likewise.
61055         * modules/xstrtol (Makefile.am): Likewise.
61056         * modules/xstrtold (Makefile.am): Likewise.
61057         * modules/yesno (Makefile.am): Likewise.
61058
61059 2006-10-12  Jim Meyering  <jim@meyering.net>
61060
61061         * m4/getloadavg.m4: Revert the change below.
61062
61063         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61064         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61065         fail with a symlink, which is what coreutils' ./bootstrap now
61066         creates by default.
61067
61068 2006-10-12  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61071         mingw.
61072         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61073         MSVC and mingw explicitly.
61074
61075 2006-10-11  Simon Josefsson  <jas@extundo.com>
61076             Bruno Haible  <bruno@clisp.org>
61077
61078         Add support for multiple gnulib-tool invocations in the scope of a
61079         single configure.ac file.
61080         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61081         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61082         with the same contents as the _LIBADD variable.
61083         (func_emit_initmacro_start, func_emit_initmacro_end,
61084         func_emit_initmacro_done): New functions.
61085         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61086         gl_LIBOBJS and gl_LTLIBOBJS.
61087
61088 2006-10-11  Bruno Haible  <bruno@clisp.org>
61089
61090         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61091         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61092         autoreconf. Instead, invoke autopoint explicitly but move back the
61093         *.m4 files from gnulib.
61094
61095 2006-10-11  Bruno Haible  <bruno@clisp.org>
61096
61097         * gnulib-tool (func_usage): Make module names after --create-testdir
61098         optional.
61099         (func_create_testdir): If no module was specified, use nearly all
61100         modules.
61101
61102 2006-10-12  Jim Meyering  <jim@meyering.net>
61103
61104         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61105         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61106         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61107         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61108         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61109         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61110         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61111         (fts_set_stat_required): New function.
61112         (fts_open): Defer the calls to fts_stat, if possible or requested.
61113         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61114         into fts_stat itself.
61115         (fts_read): Perform any required (deferred) fts_stat call.
61116         (fts_build): Likewise, for the directory we're about to open and read.
61117         In the readdir loop, carefully decide whether each entry will require
61118         an eventual call to fts_stat, using dirent.d_type info if available.
61119         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61120         a command line argument into this function.  Update all callers.
61121         Map a return value of FTS_DOT to FTS_D for a command line argument.
61122         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61123         Thanks to Miklos Szeredi for his tenacity and for the initial
61124         bug report about "find" failing on a FUSE-based file system.
61125
61126         * lib/fts.c (fts_open): Use consistent indentation.
61127
61128 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61131         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61132         reported by Jim Meyering.  All uses of cache variables renamed
61133         to match Autoconf's.
61134         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61135         the other one.
61136
61137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61138         Fix misspelling in diagnostic.
61139
61140 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61143         defined.  Problem reported by Matthew Woehlke.
61144
61145         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61146         Add support for Tandem NonStop R series.
61147         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61148         Use new macro.
61149
61150         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61151         (has_trailing_slash): Omit size arg; all callers changed.
61152         Omit 'inline', since it doesn't help performance and we'd
61153         need to configure it.
61154         Don't count //, ///, etc. as having a trailing slash.
61155         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61156         (rpl_rename_dest_slash): On failure, use rename's errno rather
61157         than (in some cases) an incorrect or junk errno.
61158         Simplify code by removing need to compute length; this does
61159         cause it to make two passes instead of one over the file name,
61160         but it's worth it.
61161
61162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61163         change, since Autoconf's version may no longer be appropriate now
61164         that we are using CVS Autoconf's version.  Add support for Tandem.
61165
61166 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61167             Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61170         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61171         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61172         gl_AC_TYPE_LONG_LONG.
61173
61174         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61175         instead of HAVE_LONG_LONG.
61176         * lib/printf-args.c (printf_fetchargs): Likewise.
61177         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61178         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61180         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61181         gl_AC_TYPE_LONG_LONG.
61182
61183 2006-10-11  Bruno Haible  <bruno@clisp.org>
61184
61185         * m4/longlong.m4: Add comments.
61186         * m4/ulonglong.m4: Likewise.
61187
61188 2006-10-10  Bruno Haible  <bruno@clisp.org>
61189
61190         Make it possible to #define stpcpy, strdup to aliases.
61191         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61192         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61193
61194 2006-10-10  Bruno Haible  <bruno@clisp.org>
61195
61196         Make it possible to #define gcd to an alias.
61197         * lib/gcd.c: Include config.h.
61198
61199 2006-10-10  Bruno Haible  <bruno@clisp.org>
61200
61201         Make it possible to #define c_isascii to an alias.
61202         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61203         defined. Undefine the macros before defining them, to avoid gcc
61204         warnings.
61205         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61206         define NO_C_CTYPE_MACROS early.
61207
61208 2006-10-10  Bruno Haible  <bruno@clisp.org>
61209
61210         Make it possible to #define set_program_name to an alias.
61211         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61212         ENABLE_RELOCATABLE early.
61213
61214 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61215
61216         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61217         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61218         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61219         More generally, don't assume that 64-bit signed int is available
61220         if unsigned int is, and vice versa.
61221         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61222         unsigned symbols, not on their signed counterparts.
61223         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61224         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61225         (UINT64_C, UINTMAX_C):
61226         Likewise.
61227         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61228         unsigned counterparts.
61229         (Have_long_long, Unsigned): New macros.
61230         (Int): Renamed from INT.
61231         (strtoimax): Use the new macros.
61232         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61233         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61234         * modules/inttypes (inttypes.h): Substitute
61235         HAVE_UNSIGNED_LONG_LONG_INT.
61236         * modules/stdint (stdint.h): Likewise.
61237         (Files): Add m4/ulonglong.m4.
61238
61239 2006-10-10  Bruno Haible  <bruno@clisp.org>
61240
61241         Fix a gcc -Wshadow warning.
61242         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61243         to 'bucket'.
61244         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61245         gl_linked_indexof_from_to): Likewise.
61246         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61247         Likewise.
61248         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61249         Likewise.
61250         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61251         Reported by Eric Blake.
61252
61253 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61254
61255         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61256         for NetBSD.  Problem reported by Bruno Haible.
61257
61258 2006-10-09  Jim Meyering  <jim@meyering.net>
61259
61260         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61261         Patch from Bruno Haible.
61262
61263 2006-10-09  Jim Meyering  <jim@meyering.net>
61264
61265         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61266         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61267         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61268
61269 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         Don't include <config.h> twice; this doesn't work in some cases,
61272         e.g., when config.h has "#define intmax_t long long int" and
61273         we include <config.h>, <inttypes.h>, <config.h> in that order.
61274         Problem reported by Matthew Woehlke in:
61275         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61276         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61277         * lib/fts-cycle.c: Don't include config.h.
61278         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61279         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61280         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61281         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61282         inttypes.h.
61283         * lib/xstrtoumax.c: Likewise.
61284         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61285         __strtol and the like, so that this module is more like its siblings.
61286         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61287         Remove; no longer needed now that we assume gnulib inttypes.h.
61288
61289 2006-10-08  Bruno Haible  <bruno@clisp.org>
61290
61291         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61292         option.
61293
61294 2006-10-07  Jim Meyering  <jim@meyering.net>
61295
61296         * modules/inttypes (inttypes.h): Revert what seems to have been
61297         an inadvertent part of today's change: use "|", not "/" in the
61298         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61299
61300 2006-10-07  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/sublist: New file.
61303
61304 2006-10-07  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61307         * modules/argz (argz.h): Likewise.
61308         * modules/arpa_inet (arpa/inet.h): Likewise.
61309         * modules/byteswap (byteswap.h): Likewise.
61310         * modules/configmake (configmake.h): Likewise.
61311         * modules/fcntl (fcntl.h): Likewise.
61312         * modules/fnmatch (fnmatch.h): Likewise.
61313         * modules/getopt (getopt.h): Likewise.
61314         * modules/glob (glob.h): Likewise.
61315         * modules/inttypes (inttypes.h): Likewise.
61316         * modules/netinet_in (netinet/in.h): Likewise.
61317         * modules/poll (poll.h): Likewise.
61318         * modules/stdbool (stdbool.h): Likewise.
61319         * modules/stdint (stdint.h): Likewise.
61320         * modules/sys_select (sys/select.h): Likewise.
61321         * modules/sys_socket (sys/socket.h): Likewise.
61322         * modules/sys_stat (sys/stat.h): Likewise.
61323         * modules/sysexits (sysexits.h): Likewise.
61324         * modules/unistd (unistd.h): Likewise.
61325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61326         Add a "DO NOT EDIT" comment to the generated file.
61327         (func_import): Likewise for gnulib-comp.m4.
61328
61329 2006-10-07  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/gl_sublist.h: New file.
61332         * lib/gl_sublist.c: New file.
61333
61334 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61337         name (relative to the original working directory) and the file
61338         name component (relative to the temporary working directory).  All
61339         callers changed.
61340         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61341         * lib/mkdir-p.c (make_dir_parents): Likewise.
61342         * lib/mkdir-p.h (make_dir_parents): Likewise.
61343
61344 2006-10-06  Eric Blake  <ebb9@byu.net>
61345
61346         Define several macros for use by the clean-temp module.
61347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61350
61351         * lib/clean-temp.h (close_stream_temp): New declaration.
61352         * lib/clean-temp.c (includes): Pull in headers according to what
61353         other modules are in use.
61354         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61355
61356 2006-10-06  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61359         instead of fopen, fwriteerror.
61360
61361 2006-10-06  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61364         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61365         int.
61366         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61367         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61368         Return an error indicator.
61369         Suggested by Eric Blake.
61370
61371 2006-10-06  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61374         Reported by Eric Blake.
61375
61376 2006-10-06  Bruno Haible  <bruno@clisp.org>
61377
61378         * modules/closeout (Description): Mention stderr too.
61379
61380 2006-10-06  Bruno Haible  <bruno@clisp.org>
61381         and Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * lib/closeout.c (close_stdout): Also close stderr.
61384         * lib/closeout.h: Update comment.
61385
61386 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61389         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61390         * lib/dirchownmod.c: Include lchown.h.
61391         * lib/lchown.c: Don't include files that lchown.h now includes.
61392         Don't declare chown, since lchown.h now does that.
61393         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61394         (lchown): Define to rpl_chown if lchown is declared but
61395         does not exist.  Declare using a prototype if lchown is not
61396         declared.  Add a copyright notice.
61397         * lib/mkstemp.h: Include <unistd.h>.
61398         * lib/openat.c: Include lchown.h.
61399
61400         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61401         we now test for that separately.
61402         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61403         rather than O_NOFOLLOW, when testing whether it's possible to
61404         avoid a race condition reliably.
61405         * lib/savewd.c (savewd_chdir): Likewise.
61406
61407         Remove macros that are no longer needed now that stdint.h is
61408         reliable.
61409         * lib/fsusage.c (UINTMAX_MAX): Remove.
61410         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61411         * lib/utimecmp.c (SIZE_MAX): Remove.
61412
61413         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61414
61415         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61416         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61417         O_NOATIME works.
61418
61419 2006-10-05  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/gl_list.h (gl_sortedlist_search_from_to,
61422         gl_sortedlist_indexof_from_to): New declarations.
61423         (gl_list_implementation): New fields sortedlist_search_from_to,
61424         sortedlist_indexof_from_to.
61425         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61426         inline functions.
61427         * lib/gl_list.c (gl_sortedlist_search_from_to,
61428         gl_sortedlist_indexof_from_to): New functions.
61429         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61430         function.
61431         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61432         (gl_array_sortedlist_search_from_to): New function.
61433         (gl_array_list_implementation): Update.
61434         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61435         function.
61436         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61437         (gl_carray_sortedlist_search_from_to): New function.
61438         (gl_carray_list_implementation): Update.
61439         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61440         gl_linked_sortedlist_indexof_from_to): New functions.
61441         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61442         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61443         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61444         gl_tree_sortedlist_indexof_from_to): New functions.
61445         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61447         Update.
61448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61449         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61450         Update.
61451
61452 2006-10-05  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61455         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61456         (struct gl_list_implementation): Add fields search_from_to,
61457         indexof_from_to. Remove fields search, indexof.
61458         (gl_list_search): Use the search_from_to method.
61459         (gl_list_search_from, gl_list_search_from_to): New functions.
61460         (gl_list_indexof): Use the indexof_from_to method.
61461         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61462         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61463         (gl_list_search_from, gl_list_search_from_to): New functions.
61464         (gl_list_indexof): Use the indexof_from_to method.
61465         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61466         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61467         gl_array_indexof. Add start_index, end_index arguments.
61468         (gl_array_search_from_to): Renamed from gl_array_search. Add
61469         start_index, end_index arguments.
61470         (gl_array_remove, gl_array_list_implementation): Update.
61471         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61472         gl_carray_indexof. Add start_index, end_index arguments.
61473         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61474         start_index, end_index arguments.
61475         (gl_carray_remove, gl_carray_list_implementation): Update.
61476         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61477         gl_linked_search. Add start_index, end_index arguments.
61478         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61479         start_index, end_index arguments.
61480         (gl_linked_remove): Update.
61481         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61483         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61484         field to 'size_t'.
61485         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61486         gl_tree_search. Add start_index, end_index arguments.
61487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61488         start_index, end_index arguments.
61489         (gl_tree_remove): Update.
61490         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61491         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61492         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61493         function.
61494         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61495         gl_tree_search. Add start_index, end_index arguments.
61496         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61497         start_index, end_index arguments.
61498         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61499         Update.
61500         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61501
61502 2006-10-05  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61505
61506         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61507         fwriteerror_temp): New declarations.
61508         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61509         (descriptors): New variable.
61510         (cleanup): First, close the descriptors.
61511         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61512         fclose_temp, fwriteerror_temp): New functions.
61513
61514 2006-10-04  Jim Meyering  <jim@meyering.net>
61515
61516         * lib/fts.c (fts_open): Tiny comment change.
61517
61518 2006-10-04  Bruno Haible  <bruno@clisp.org>
61519
61520         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61522         gl_LOCK_BODY.
61523         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61524         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61525         gl_LOCK_EARLY_BODY.
61526         (gl_LOCK): Require gl_LOCK_BODY.
61527
61528 2006-10-04  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61531         (gl_oset_search_atleast): New declaration.
61532         (struct gl_oset_implementation): Add field 'search_atleast'.
61533         (gl_oset_search_atleast): New inline function.
61534         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61535         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61536         (gl_array_oset_implementation): Update.
61537         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61538         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61539         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61540
61541 2006-10-04  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61544
61545 2006-10-03  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61548         from gl_avltreehash_list_implementation.
61549
61550 2006-10-03  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/gl_oset.c (gl_oset_add): Fix return type.
61553
61554 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61555
61556         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61557
61558 2006-10-02  Eric Blake  <ebb9@byu.net>
61559
61560         * modules/strnlen (Depends-on): Add extensions.
61561
61562 2006-10-02  Eric Blake  <ebb9@byu.net>
61563
61564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61565         definition in 2.60+.
61566
61567 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61568
61569         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61570         checks.
61571
61572 2006-10-02  Bruno Haible  <bruno@clisp.org>
61573
61574         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61575         to the AUTOMAKE_OPTIONS.
61576         Reported by Jim Meyering.
61577
61578 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         Work around bug in Solaris 10 /proc file system:
61581         /proc/self/fd/NNN/.. isn't the parent directory of
61582         the directory whose file descriptor is NNN.  This needs to
61583         be worked around at run time, not compile time, since a
61584         program might be built on Solaris 8, where things work, and
61585         run on Solaris 10.
61586         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61587         to use the following interface instead:
61588         (OPENAT_BUFFER_SIZE): New macro.
61589         (openat_proc_name): New function.
61590         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61591         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61592         Likewise.
61593         * lib/openat-proc.c: New file.
61594         * modules/openat (Files): Add lib/openat-proc.c.
61595         (Depends-on): Add same-inode, stdbool.
61596         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61597
61598 2006-09-29  Bruno Haible  <bruno@clisp.org>
61599
61600         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61601         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61602         argument. Set stdout_closed before testing for ferror, not after.
61603         (fwriteerror, fwriteerror_no_ebadf): New functions.
61604
61605 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61606
61607         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61608
61609 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61610
61611         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61612         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61613
61614 2006-09-28  Jim Meyering  <jim@meyering.net>
61615
61616         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61617         Include <unistd.h>.
61618
61619 2006-09-28  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61622         * modules/linkedhash-list (Depends-on): Likewise.
61623         * modules/rbtreehash-list (Depends-on): Likewise.
61624
61625 2006-09-28  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/strndup.h: Simplify the redefinition of strndup.
61628         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61630
61631 2006-09-28  Bruno Haible  <bruno@clisp.org>
61632
61633         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61634         * lib/gl_linkedhash_list.c: Likewise.
61635         * lib/gl_rbtreehash_list.c: Likewise.
61636
61637 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61640         getaddrinfo.
61641
61642         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61643         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61644         it causes <stdio_ext.h> to cause a compile-time error.
61645         Problem reported by Nelson H. F. Beebe.
61646         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61647         of HAVE_DECL___PENDING.
61648
61649         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61651         declaration.
61652
61653 2006-09-27  Jim Meyering  <jim@meyering.net>
61654
61655         This file could end up with a definition for a function
61656         named __strndup, rather than rpl_strndup on a system with
61657         incomplete weak_alias support.
61658         * lib/strndup.c (strndup): Rename from __strndup.
61659         Remove #defines that used to map __strndup to strndup.
61660         Don't use K&R prototypes.
61661         Remove LIBC-related code, since this file is not sync'd with glibc.
61662         * lib/strndup.h: Revamp, accordingly.
61663         * m4/strndup.m4: Modernize.
61664
61665 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * modules/savewd (Depends-on): Add 'raise'.
61668         * lib/savewd.c: Include <signal.h>, for 'raise'.
61669
61670 2006-09-26  Jim Meyering  <jim@meyering.net>
61671
61672         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61673         when we detect Darwin 8.7.0's acl_get_file bug.
61674         Rearrange to perform the new (below) run-test while $LIBS
61675         contains any acl-related library.  Set USE_ACL at the end.
61676         (gl_ACL_GET_FILE): New function.
61677
61678 2006-09-26  Eric Blake  <ebb9@byu.net>
61679
61680         * lib/verror.c: Include <config.h> unconditionally.
61681
61682 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * modules/clock-time (Maintainer): Add self.
61685         * modules/getlogin_r (Depends-on): Add extensions.
61686
61687 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61688
61689         * modules/clock-time: New module.
61690         * modules/nanosleep (Depends-on): Add clock-time.
61691         * modules/gethrxtime (Depends-on): Likewise.
61692         * modules/gettime (Depends-on): Likewise.
61693         * modules/settime (Depends-on): Likewise.
61694
61695         * modules/fts-lgpl: Depend on openat.
61696         * modules/mkancesdirs: Depend on savewd.
61697         * modules/mkdir-p: Likewise.
61698
61699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61700
61701         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61702
61703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61704         `gl_have_arbitrary_file_name_length_limit' to
61705         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61706         actually works between configure runs.
61707
61708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61709             Bruno Haible  <bruno@clisp.org>
61710
61711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61712
61713 2006-09-25  Jim Meyering  <jim@meyering.net>
61714
61715         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61716         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61717
61718 2006-09-25  Eric Blake  <ebb9@byu.net>
61719
61720         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61721         exec's in 2006-09-18 patch when shuffling fds.
61722
61723 2006-09-25  Bruno Haible  <bruno@clisp.org>
61724
61725         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61726         Reported by Jim Meyering.
61727
61728 2006-09-24  Jim Meyering  <jim@meyering.net>
61729
61730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61731         compare a pointer against a literal "0".  That caused failures with
61732         at least HP-UX's hpcc.
61733
61734 2006-09-22  Simon Josefsson  <jas@extundo.com>
61735
61736         * modules/gc-sha1:
61737         * modules/gc-md4:
61738         * modules/gc-hmac-sha1:
61739         * modules/gc-hmac-md5:
61740         * modules/gc-des:
61741         * modules/gc-arcfour: Distribute more files.
61742
61743 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61744
61745         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61746         (gl_linked_iterator_from_to): Initialize struct completely.
61747         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61748         (gl_tree_iterator_from_to): Likewise
61749         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61750         * lib/gl_array_list.c [lint] (gl_array_iterator)
61751         (gl_array_iterator_from_to): Likewise.
61752         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61753         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61754         (gl_carray_iterator_from_to): Likewise.
61755
61756         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61757         * lib/md4.c (md4_process_block): Remove unused variable.
61758         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61759         parentheses for clarity.
61760
61761 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61762
61763         * modules/bison-i18n (Depends-on): Add gettext.
61764
61765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61766
61767         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61768         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61769         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61770         also add missing comma that caused broken test.
61771         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61772         stdlib.h, for `abort'.
61773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61774         variables.
61775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61776         include unistd.h if present, for `rmdir'.
61777         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61778         variables.
61779         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61780         in the process include standard headers for prototypes.
61781         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61782         gets declared on GNU/Linux.
61783         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61784         unistd.h, for `rmdir'.
61785         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61786
61787         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61788         always true.
61789         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61790
61791         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61792
61793 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61794
61795         * gnulib-tool (func_version): Create output all at once.  This
61796         may help avoid triggering unnecessary SIGPIPEs, and at any
61797         rate it doesn't hurt.
61798
61799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61800             Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61804         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61805
61806         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61807         (gl_FUNC_VASPRINTF): Invoke it.
61808
61809 2006-09-22  Bruno Haible  <bruno@clisp.org>
61810
61811         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61812         getloadavg.c as first argument.
61813
61814 2006-09-22  Bruno Haible  <bruno@clisp.org>
61815
61816         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61817         at the beginning of the gl_INIT macro.
61818         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61819         gl_GETLOADAVG.
61820
61821 2006-09-22  Bruno Haible  <bruno@clisp.org>
61822
61823         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61824         module.
61825         Suggested by Ralf Wildenhues.
61826
61827 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         Import this patch from libc:
61830
61831         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61832
61833         * lib/regex_internal.c (re_string_reconstruct): Handle
61834         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61835         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61836         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61837         re_string_context_at.
61838
61839         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61840         now requires it.
61841         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61842         gl_REGEX now does it for us.
61843         (gl_REGEX): Add test taken from
61844         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61845
61846         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61847         Check that large offsets work.  Modernize Autoconf usages.
61848         Prefer "yes" to mean a good thing rather than a bad.
61849         Don't put "#define mkstemp" in config.h, as this might interfere
61850         with standard system headers that "#define mkstemp mkstemp64".
61851
61852         * modules/mkstemp (Depends-on): Add extensions, so that
61853         mkstemp is visible on some platforms.
61854         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61855         (Include): Change to "mkstemp.h" from <stdlib.h>.
61856         (Files): Add mkstemp.h.
61857
61858         * lib/mkstemp.h: New file, since some standard headers
61859         #define mkstemp.
61860         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61861         Include "mkstemp.h".
61862         Make the _LIBC code resemble glibc original more,
61863         e.g., use K&R style.
61864         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61865         (mkstemp): Remove, since mkstemp.h does this for us.
61866         * lib/stdlib--.h: Include mkstemp.h.
61867
61868         Import this patch from libc:
61869
61870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61871
61872         * lib/tempname.c (__gen_tempname): Change attempts_min
61873         into a macro.  Use preprocessor to decide how to initialize
61874         attempts [Coverity CID 67].
61875
61876 2006-09-20  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/mkdtemp.c: Import from libc.
61879         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61880                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61881                 attempts_min into a macro.  Use preprocessor to decide how to
61882                 initialize attempts [Coverity CID 67].
61883         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61884                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61885                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61886
61887 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61888
61889         * gnulib-tool (func_exit): New function, to allow to pass the
61890         exit status portably through the trap.  Use everywhere.
61891         (--help, --version): Signal a write error.
61892         (trap): catch SIGPIPE, for write errors.
61893         Exit at the end of the trap, with the correct exit status.
61894
61895 2006-09-19  Karl Berry  <karl@gnu.org>
61896
61897         * doc/gnulib.texi: note about the license texinfo files.
61898
61899 2006-09-19  Eric Blake  <ebb9@byu.net>
61900
61901         * gnulib-tool: Avoid space-tab.
61902
61903 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61906         that prevented coreutils 6.1 from building.  Problem reported
61907         by Petter Reinholdtsen.
61908
61909 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * gnulib-tool (avoidlist): Fix typo that broke options like
61912         --avoid=lock that are used by coreutils bootstrap.
61913
61914 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61915
61916         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61917         more systematically.
61918
61919 2006-09-18  Jim Meyering  <jim@meyering.net>
61920
61921         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61922
61923 2006-09-18  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61926
61927 2006-09-18  Bruno Haible  <bruno@clisp.org>
61928
61929         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61930         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61931         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61932         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61933         * m4/gettext.m4: Require autoconf >= 2.52.
61934         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61935         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61936         of gl_cv_header_inttypes_h.
61937
61938 2006-09-18  Bruno Haible  <bruno@clisp.org>
61939
61940         * lib/javaversion.c: Include configmake.h.
61941
61942 2006-09-18  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61945         avoid that the while loops be executed in a subshell.
61946
61947 2006-09-18  Bruno Haible  <bruno@clisp.org>
61948
61949         * MODULES.html.sh (func_module): Break long lines.
61950         Suggested by Bruce Korb <bkorb@gnu.org>.
61951
61952 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61953
61954         Speed up by a factor of 1.12.
61955         * gnulib-tool (nl): New variable.
61956         (func_import): Rewrite include directive extraction to only read each
61957         directive once.
61958
61959 2006-09-17  Bruno Haible  <bruno@clisp.org>
61960
61961         * modules/javaversion (Makefile.am): Remove DEFS setting.
61962         (Depends-on): Add configmake, for PKGDATADIR definition.
61963
61964 2006-09-17  Bruno Haible  <bruno@clisp.org>
61965
61966         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61967
61968 2006-09-17  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61971         (func_modules_transitive_closure, func_modules_add_dummy,
61972         func_modules_to_filelist, func_import, func_create_testdir,
61973         func_create_megatestdir, ...): Use it wherever possible.
61974         Suggested by Ralf Wildenhues.
61975
61976 2006-09-16  Karl Berry  <karl@gnu.org>
61977
61978         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61979         to avoid sectioning errors.
61980         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61981         [ifinfo]: blank line after @center-ed titles.
61982         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61983         Spell FSF address consistently with others.
61984         (These changes approved by rms.)
61985
61986 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61987
61988         Speed up by a factor of 1.61.
61989         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61990         already checked module names again.
61991
61992 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61993
61994         Speed up by a factor of 1.13.
61995         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61996         for new_files, and the input to func_add_or_update.
61997
61998 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61999
62000         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62001         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62002
62003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * modules/mkancesdirs (Depends-on): Add fcntl.
62006         * modules/savewd: New file.
62007         * MODULES.html.sh (File system functions): Add savewd.
62008
62009         * modules/configmake (Makefile.am): Add support for the
62010         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62011
62012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62013
62014         * m4/savewd.m4: New file.
62015
62016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62017
62018         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62019         (dirchownmod): New arg FD.  All callers changed.
62020         Use FD rather than opening the directory ourself, as opening is
62021         now the caller's responsibility.
62022         * lib/dirchownmod.h: Likewise.
62023         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62024         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62025         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62026         (test_dir): Remove.
62027         (mkancesdirs): Return length of prefix of FILE that has already
62028         been made, or -2 if there is a child doing the work.  Redo
62029         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62030         ".", and treat ".." specially since it might stray back into
62031         already-created areas.  Use a subprocess if necessary.  New arg
62032         WD; all users changed.  MAKE_DIR function should now return 1
62033         if it creates a directory that is not readable.  Return -2 if
62034         a child process is spun off.
62035         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62036         Adjust signature to match code.
62037         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62038         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62039         all users changed.
62040         * lib/savewd.c, lib/savewd.h: New files.
62041
62042 2006-09-15  Jim Meyering  <jim@meyering.net>
62043
62044         * modules/rename-dest-slash: New module.
62045         * MODULES.html.sh (posix_compat): Add it here.
62046
62047         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62048
62049 2006-09-15  Jim Meyering  <jim@meyering.net>
62050
62051         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62052         file.
62053
62054         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62055
62056 2006-09-15  Jim Meyering  <jim@meyering.net>
62057
62058         * lib/rename-dest-slash.c (has_trailing_slash): Use
62059         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62060         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62061         test before testing whether SRC is a directory.
62062         Suggestions from Bruno Haible.
62063
62064         Avoid a warning about an unused variable.
62065         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62066         into the #ifdef block where it's used.
62067
62068         * lib/rename-dest-slash.c: New file.
62069
62070 2006-09-14  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/allocsa.c: Include <config.h> unconditionally.
62073         * lib/asnprintf.c: Likewise.
62074         * lib/asprintf.c: Likewise.
62075         * lib/c-strcasecmp.c: Likewise.
62076         * lib/c-strcasestr.c: Likewise.
62077         * lib/c-strncasecmp.c: Likewise.
62078         * lib/c-strstr.c: Likewise.
62079         * lib/classpath.c: Likewise.
62080         * lib/clean-temp.c: Likewise.
62081         * lib/concatpath.c: Likewise.
62082         * lib/copy-file.c: Likewise.
62083         * lib/csharpcomp.c: Likewise.
62084         * lib/csharpexec.c: Likewise.
62085         * lib/execute.c: Likewise.
62086         * lib/fatal-signal.c: Likewise.
62087         * lib/findprog.c: Likewise.
62088         * lib/fwriteerror.c: Likewise.
62089         * lib/gl_array_list.c: Likewise.
62090         * lib/gl_array_oset.c: Likewise.
62091         * lib/gl_avltree_list.c: Likewise.
62092         * lib/gl_avltree_oset.c: Likewise.
62093         * lib/gl_avltreehash_list.c: Likewise.
62094         * lib/gl_carray_list.c: Likewise.
62095         * lib/gl_linked_list.c: Likewise.
62096         * lib/gl_linkedhash_list.c: Likewise.
62097         * lib/gl_list.c: Likewise.
62098         * lib/gl_oset.c: Likewise.
62099         * lib/gl_rbtree_list.c: Likewise.
62100         * lib/gl_rbtree_oset.c: Likewise.
62101         * lib/gl_rbtreehash_list.c: Likewise.
62102         * lib/imaxabs.c: Likewise.
62103         * lib/imaxdiv.c: Likewise.
62104         * lib/javacomp.c: Likewise.
62105         * lib/javaexec.c: Likewise.
62106         * lib/javaversion.c: Likewise.
62107         * lib/linebreak.c: Likewise.
62108         * lib/localcharset.c: Likewise.
62109         * lib/lock.c: Likewise.
62110         * lib/mbchar.c: Likewise.
62111         * lib/mbswidth.c: Likewise.
62112         * lib/mkdtemp.c: Likewise.
62113         * lib/pipe.c: Likewise.
62114         * lib/printf-args.c: Likewise.
62115         * lib/printf-parse.c: Likewise.
62116         * lib/progname.c: Likewise.
62117         * lib/progreloc.c: Likewise.
62118         * lib/readlink.c: Likewise.
62119         * lib/sh-quote.c: Likewise.
62120         * lib/stpcpy.c: Likewise.
62121         * lib/stpncpy.c: Likewise.
62122         * lib/strcasecmp.c: Likewise.
62123         * lib/strcasestr.c: Likewise.
62124         * lib/strcspn.c: Likewise.
62125         * lib/striconv.c: Likewise.
62126         * lib/strncasecmp.c: Likewise.
62127         * lib/strnlen1.c: Likewise.
62128         * lib/strstr.c: Likewise.
62129         * lib/strtok_r.c: Likewise.
62130         * lib/tls.c: Likewise.
62131         * lib/tmpdir.c: Likewise.
62132         * lib/unicodeio.c: Likewise.
62133         * lib/unsetenv.c: Likewise.
62134         * lib/vasnprintf.c: Likewise.
62135         * lib/vasprintf.c: Likewise.
62136         * lib/wait-process.c: Likewise.
62137         * lib/xallocsa.c: Likewise.
62138         * lib/xsetenv.c: Likewise.
62139         * lib/xstriconv.c: Likewise.
62140
62141 2006-09-13  Simon Josefsson  <jas@extundo.com>
62142
62143         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62144         that internally, suggested by Ralf Wildenhues
62145         <Ralf.Wildenhues@gmx.de>.
62146
62147 2006-09-13  Simon Josefsson  <jas@extundo.com>
62148
62149         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62150         @LIBOBJS@.
62151         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62152
62153 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62156         longer worry about uses that don't define HAVE_CONFIG_H.
62157         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62158         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62159         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62160         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62161         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62162         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62163         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62164         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62165         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62166         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62167         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62168         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62169         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62170         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62171         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62172         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62173         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62174         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62175         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62176         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62177         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62178         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62179         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62180         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62181         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62182         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62183         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62184         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62185         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62186         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62187         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62188         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62189         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62190         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62191         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62192         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62193         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62194         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62195         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62196         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62197         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62198         Likewise.
62199
62200 2006-09-13  Eric Blake  <ebb9@byu.net>
62201
62202         * lib/getopt.c: Fix typo in last commit.
62203
62204 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62205
62206         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62207         dgettext.
62208
62209 2006-09-12  Jim Meyering  <jim@meyering.net>
62210
62211         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62212         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62213         Reported by Nelson H. F. Beebe.
62214
62215 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62216
62217         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62218         program_invocation_name and program_invocation_short_name are
62219         initialized.
62220         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62221         and program_invocation_short_name to argp.h, so they are visible
62222         to user programs.
62223         * lib/argp.h: Likewise
62224
62225 2006-09-10  Bruno Haible  <bruno@clisp.org>
62226
62227         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62228         m4/inttypes_h.m4, m4/uintmax_t.m4.
62229
62230 2006-09-10  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62233         gl_AC_TYPE_UINTMAX_T.
62234
62235 2006-09-10  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62238
62239 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62240
62241         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62242         convention.  Text proposed by Bruno Haible.
62243         (struct argp_option): Document the use of N_() wrappers.
62244
62245         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62246         '\v', and translate the two parts separately, instead of feeding
62247         the whole string to gettext.  This allows to exclude
62248         '\v' from the strings visible to the translator by writing doc
62249         strings as N_("..") "\v" N_("..").
62250
62251 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62252
62253         * config/srclist.txt: Undo latest change; the bug was fixed.
62254
62255 2006-09-09  Bruno Haible  <bruno@clisp.org>
62256
62257         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62258         assignments if building a library without libtool.
62259         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62260         in func_emit_lib_Makefile_am.
62261         (func_import): When building a static library libfoo.a, arrange to
62262         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62263         (func_create_testdir): Likewise.
62264         * modules/gc (configure.ac, Makefile.am): If building statically,
62265         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62266         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62267         * modules/striconv (configure.ac, Makefile.am): Likewise.
62268         Based on a suggestion by Ralf Wildenhues.
62269
62270 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62273         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62274         Also:
62275
62276         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62277         Add year_2050_test to catch glibc bug 2821
62278         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62279
62280         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62281         Prefer #ifdef to #if.
62282
62283         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62284         Return from 'main' instead of calling 'exit'.
62285
62286 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62287
62288         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62289         returned the maximum time_t value rather than (time_t) -1.
62290         Problem originally reported by William Bardwell
62291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62292
62293         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62294         Moved to here ...
62295         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62296         ... from here.
62297
62298 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62301         2821 is fixed.
62302
62303 2006-09-08  Jim Meyering  <jim@meyering.net>
62304
62305         Don't make generated files read-only.  That would bother too many
62306         people.  However, do retain the ability to work when targets are
62307         read-only: remove the destination and temporary files before writing
62308         them (when generated via sed or echo), or by using the -f option for
62309         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62310         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62311         * modules/byteswap, modules/configmake, modules/fcntl:
62312         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62313         * modules/localcharset, modules/netinet_in, modules/poll:
62314         * modules/stdbool, modules/stdint, modules/sys_select:
62315         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62316
62317 2006-09-08  Jim Meyering  <jim@meyering.net>
62318
62319         Avoid new build failure on FreeBSD 6.0.
62320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62321         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62322         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62323
62324 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62325
62326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62327
62328 2006-09-07  Jim Meyering  <jim@meyering.net>
62329
62330         Fix global typo in last change: use chmod u-w, not chmod u-x.
62331         Spotted by Paul Eggert and Bruce Korb.
62332         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62333         * modules/byteswap, modules/configmake, modules/fcntl:
62334         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62335         * modules/localcharset, modules/netinet_in, modules/poll:
62336         * modules/stdbool, modules/stdint, modules/sys_select:
62337         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62338
62339 2006-09-06  Jim Meyering  <jim@meyering.net>
62340
62341         Make generated files be read-only.
62342         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62343         Ensure that each generated file is now read-only.
62344         * modules/argz: Likewise.
62345         * modules/arpa_inet: Likewise.
62346         * modules/byteswap: Likewise.
62347         * modules/configmake: Likewise.
62348         * modules/fcntl: Likewise.
62349         * modules/fnmatch: Likewise.
62350         * modules/getopt: Likewise.
62351         * modules/glob: Likewise.
62352         * modules/inttypes: Likewise.
62353         * modules/netinet_in: Likewise.
62354         * modules/poll: Likewise.
62355         * modules/stdbool: Likewise.
62356         * modules/stdint: Likewise.
62357         * modules/sys_select: Likewise.
62358         * modules/sys_socket: Likewise.
62359         * modules/sys_stat: Likewise.
62360         * modules/sysexits: Likewise.
62361         * modules/localcharset: Same as above, but continue using temporary
62362         file named "t-$@" (why different?) rather than the "$@-t" used
62363         everywhere else.
62364
62365         * modules/sysexits (Makefile.am): Replace literal occurrences
62366         of "sysexit.h" more readable, and more consistent, "$@".
62367
62368 2006-09-06  Bruno Haible  <bruno@clisp.org>
62369
62370         * modules/striconv: New file.
62371         * modules/xstriconv: New file.
62372         * MODULES.html.sh (Internationalization functions): Add striconv,
62373         xstriconv.
62374
62375 2006-09-06  Bruno Haible  <bruno@clisp.org>
62376
62377         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62378         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62379         not using libtool correctly.
62380
62381 2006-09-06  Bruno Haible  <bruno@clisp.org>
62382
62383         * lib/striconv.h: New file.
62384         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62385         iconvstring.c.
62386         * lib/xstriconv.h: New file.
62387         * lib/xstriconv.c: New file.
62388
62389 2006-09-06  Bruno Haible  <bruno@clisp.org>
62390
62391         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62392         lib_..._LDFLAGS.
62393
62394 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62395
62396         * lib/argz_.h: Sync from Libtool.
62397
62398         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62399                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62400
62401         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62402
62403 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62404
62405         * modules/trim: New file.
62406
62407 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62408
62409         * lib/trim.h: New file.
62410         * lib/trim.c: New file.
62411
62412 2006-09-05  Bruno Haible  <bruno@clisp.org>
62413
62414         * MODULES.html.sh (String handling): Add trim.
62415
62416 2006-09-04  Karl Berry  <karl@gnu.org>
62417
62418         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62419         until next release.
62420
62421 2006-09-03  Bruno Haible  <bruno@clisp.org>
62422
62423         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62424         correctly.
62425
62426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62427
62428         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62429         not gl_GETLOADAVG.  Omit unneeded semicolons.
62430         Problems reported by Ralf Wildenhues in
62431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62432         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62433         at the end, which is the usual gnulib style.
62434
62435         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62436         of doing all the work ourselves.
62437         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62438         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62439
62440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62443         Problem reported by Ralf Wildenhues in
62444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62445
62446         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62447         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62448
62449 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62450
62451         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62452         yesterday's patch by changing test -n to test -z.
62453
62454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62457         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62458         the former is now obsolescent.
62459
62460         * modules/chdir-long (Depends-on): Add fcntl.
62461
62462 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62465         obsolescent, and programs should use gnulib instead.
62466         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62467         but with prefixes changed.
62468
62469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62472         or stdbool.h, because they might not exist while configuring.
62473
62474         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62475         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62476         does that for us.
62477         (O_DIRECTORY): Remove.
62478
62479 2006-08-31  Eric Blake  <ebb9@byu.net>
62480
62481         * gnulib-tool: Don't let emacs change spaces to TAB.
62482
62483 2006-08-31  Bruno Haible  <bruno@clisp.org>
62484
62485         * gnulib-tool: When calling func_import more than once, do it in a
62486         subshell.
62487         Reported by Eric Blake <ebb9@byu.net>.
62488
62489 2006-08-31  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (nl): Remove variable.
62492         (sed_transform_lib_file): Use more robust test for config-h module.
62493         (func_import): Fix typo in 2006-08-25 patch.
62494
62495 2006-08-31  Bruno Haible  <bruno@clisp.org>
62496
62497         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62498         specified, augment Makefile.am variables instead of assigning them.
62499
62500 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         Work around a bug in both the Linux and SunOS 64-bit kernels:
62503         nanosleep mishandles sleeps for longer than 2**31 seconds.
62504         Problem reported by Frank v Waveren in
62505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62507         Check for nanosleep bug.
62508         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62509
62510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         Work around a bug in both the Linux and SunOS 64-bit kernels:
62513         nanosleep mishandles sleeps for longer than 2**31 seconds.
62514         Problem reported by Frank v Waveren in
62515         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62516         * lib/nanosleep.c (BILLION): New constant.
62517         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62518         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62519         implementation.
62520
62521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * modules/nanosleep (Depends-on): Add gettime.
62524
62525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62526         and Simon Josefsson  <jas@extundo.com>
62527         and Oskar Liljeblad  <oskar@osk.mine.nu>
62528
62529         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62530         * gnulib-tool (func_import): New license type 'unmodifiable license
62531         text'.
62532         * modules/fdl: Use it.  Longer description.
62533         * module/gpl, module/lgpl: New files.
62534
62535 2006-08-30  Jim Meyering  <jim@meyering.net>
62536
62537         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62538         shadowing the parameter.
62539
62540 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62541
62542         Sync from Libtool:
62543
62544         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62545
62546         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62547         sharing with gnulib.  Report by Eric Blake.
62548
62549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * modules/isapipe: New file.
62552         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62553
62554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * modules/configmake (Makefile.am): Add a comment, and omit
62557         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62558         by Bruno Haible.
62559
62560 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62561
62562         * m4/isapipe.m4: New file.
62563
62564 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * lib/isapipe.c, lib/isapipe.h: New files.
62567
62568 2006-08-29  Jim Meyering  <jim@meyering.net>
62569
62570         * modules/configmake (Makefile.am): Make configmake.h depend on
62571         Makefile.  Otherwise, a stale configmake.h could hang around.
62572
62573 2006-08-29  Eric Blake  <ebb9@byu.net>
62574
62575         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62576         resolution of upstream bug 3044.
62577
62578 2006-08-29  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/localcharset (Depends-on): Add configmake.
62581         (Makefile.am): Remove setting of LIBDIR through DEFS.
62582
62583 2006-08-29  Bruno Haible  <bruno@clisp.org>
62584
62585         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62586         defined.
62587
62588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * modules/fcntl: New file.
62591         * modules/chdir-safer (Depends-on): Add fcntl.
62592         * modules/fts: Likewise.
62593         * modules/mkdir-p: Likewise.
62594
62595         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62596         This undoes the most recent change, since we're now addressing the
62597         problem in a different way.
62598
62599         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62600         into output, since the output might be called Makefile.am even
62601         if $makefile_name is something different.
62602         (func_import): Use $makefile_am rather than
62603         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62604         empty.
62605
62606         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62607
62608 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62611         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62612         recent change to stdint.m4, since we're now addressing the problem in a
62613         different way.
62614
62615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * m4/fcntl_h.m4: New file.
62618
62619 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/fcntl_.h: New file.
62622         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62623         the fcntl module.
62624         * lib/dirchownmod.c: Likewise.
62625         * lib/fts.c: Likewise.
62626
62627         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62628         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62629         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62630         just before including <inttypes.h>, to avoid circular inclusion.
62631
62632 2006-08-28  Jim Meyering  <jim@meyering.net>
62633
62634         * doc/visibility.texi: Actually read and correct the grammar of the
62635         sentence affected by yesterday's change.
62636
62637 2006-08-28  Eric Blake  <ebb9@byu.net>
62638
62639         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62640         needs wrapper.
62641
62642 2006-08-28  Eric Blake  <ebb9@byu.net>
62643
62644         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62645
62646 2006-08-28  Eric Blake  <ebb9@byu.net>
62647
62648         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62649
62650 2006-08-28  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/c-strstr: New file, from GNU gettext.
62653         * MODULES.html.sh (String handling): Add c-strstr.
62654
62655 2006-08-28  Bruno Haible  <bruno@clisp.org>
62656
62657         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62658         macros.
62659         Reported by Eric Blake.
62660
62661 2006-08-28  Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62664         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62665         * lib/vasprintf.c: Include errno.h, limits.h.
62666         (EOVERFLOW): New fallback definition.
62667         (vasprintf): Test here whether the string length is > INT_MAX.
62668         * lib/vsnprintf.c: Include errno.h, limits.h.
62669         (EOVERFLOW): New fallback definition.
62670         (vsnprintf): Fix bug when generated string was too long for the buffer.
62671         Test here whether the string length is > INT_MAX.
62672
62673 2006-08-28  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/inttypes_.h (SCNX*): Remove definitions.
62676         Reported by Eric Blake.
62677
62678 2006-08-28  Bruno Haible  <bruno@clisp.org>
62679
62680         * lib/c-strstr.h: New file, from GNU gettext.
62681         * lib/c-strstr.c: New file, from GNU gettext.
62682
62683 2006-08-28  Bruno Haible  <bruno@clisp.org>
62684
62685         * gnulib-tool: Reorder some statements.
62686
62687 2006-08-28  Bruno Haible  <bruno@clisp.org>
62688
62689         * gnulib-tool: New option --makefile-name.
62690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62691         $makefile_name.
62692         (func_import): Write $makefile_name to the cache file, and read it from
62693         there unless explicitly specified. Use $makefile_name as file name
62694         instead of Makefile.am. Adjust the recommendations accordingly.
62695
62696 2006-08-28  Bruno Haible  <bruno@clisp.org>
62697
62698         * gnulib-tool (func_verify_module): Check against misapplying patch.
62699
62700 2006-08-28  Bruno Haible  <bruno@clisp.org>
62701
62702         * gnulib-tool (func_relativize, func_relconcat): New functions.
62703         Give an error if --local-dir is given with --update.
62704         Remove trailing slashes from $local_gnulib_dir.
62705         (func_import): Store the relativized $local_gnulib_dir in
62706         gnulib-cache.m4, and read it from there if not specified explicitly.
62707
62708 2006-08-28  Bruno Haible  <bruno@clisp.org>
62709
62710         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62711         is the current directory. Respect also $local_gnulib_dir.
62712
62713 2006-08-28  Bruno Haible  <bruno@clisp.org>
62714             Simon Josefsson  <jas@extundo.com>
62715
62716         BeOS portability.
62717         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62718
62719 2006-08-27  Jim Meyering  <jim@meyering.net>
62720
62721         * doc/visibility.texi: Remove duplicate word: "pointer".
62722
62723 2006-08-26  Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62726         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62727         (Makefile.am): Create inttypes.h from inttypes_.h.
62728         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62729
62730         * modules/imaxabs: New file.
62731
62732         * modules/imaxdiv: New file.
62733
62734 2006-08-26  Bruno Haible  <bruno@clisp.org>
62735
62736         * m4/inttypes.m4: New file.
62737         * m4/_inttypes_h.m4: Remove file.
62738         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62739         PRI_MACROS_BROKEN.
62740         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62741
62742         * m4/imaxabs.m4: New file.
62743
62744         * m4/imaxdiv.m4: New file.
62745
62746 2006-08-26  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/inttypes_.h: New file.
62749         * lib/inttypes.h: Remove file.
62750         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62751
62752         * lib/imaxabs.c: New file.
62753
62754         * lib/imaxdiv.c: New file.
62755
62756 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         New config-h module, so that "make" output needn't be cluttered
62759         by -DHAVE_CONFIG_H.
62760         * MODULES.html.sh (Support for building libraries and executables):
62761         Add config-h.
62762         * modules/config-h: New file.
62763         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62764         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62765         the config-h module is used.
62766
62767         New configmake module, so that "make" output needn't be cluttered
62768         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62769         * MODULES.html.sh (Support for building libraries and executables):
62770         Add configmake.
62771         * modules/configmake: New file.
62772
62773 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * m4/config-h.m4: New file.
62776
62777 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         * config/srclist.txt: Add elisp-comp.
62780
62781 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         * MODULES.html.sh (Support for building libraries and executables):
62784         Add elisp-comp.
62785         * build-aux/elisp-comp: New file.
62786         * modules/elisp-comp: New file.
62787
62788 2006-08-24  Bruno Haible  <bruno@clisp.org>
62789
62790         * gnulib-tool (func_create_testdir): Use non-default values of
62791         sourcebase and m4base.
62792
62793 2006-08-24  Bruno Haible  <bruno@clisp.org>
62794
62795         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62796         HTML structure.
62797
62798 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * modules/openat (Depends-on): Add lchown.
62801
62802 2006-08-23  Bruno Haible  <bruno@clisp.org>
62803
62804         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62805         of gl_LOCK_EARLY instead of gl_LOCK.
62806
62807 2006-08-23  Bruno Haible  <bruno@clisp.org>
62808
62809         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62810         on OSF/1 to no.
62811         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62812
62813 2006-08-23  Bruno Haible  <bruno@clisp.org>
62814
62815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62816         as unusable.
62817
62818         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62819         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62820         (gl_LOCK): New macro.
62821
62822 2006-08-22  Simon Josefsson  <jas@extundo.com>
62823
62824         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62825         to md5 module.
62826
62827 2006-08-22  Simon Josefsson  <jas@extundo.com>
62828
62829         * MODULES.html.sh: Add "Support for maintaining and release
62830         projects".
62831
62832         * build-aux/gnupload: New file, from coreutils.
62833
62834 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         Avoid the need for AC_LIBSOURCES in m4 macros.
62837         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62838         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62839         * modules/check-version (EXTRA_DIST): Add check-version.h.
62840         * modules/crc (EXTRA_DIST): Add crc.h.
62841         * modules/des (EXTRA_DIST): Add des.h.
62842         * modules/gc (EXTRA_DIST): Add gc.h.
62843         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62844         * modules/getline (EXTRA_DIST): Add getline.h.
62845         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62846         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62847         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62848         * modules/md2 (EXTRA_DIST): Add md2.h.
62849         * modules/md4 (EXTRA_DIST): Add md4.h.
62850         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62851         * modules/read-file (EXTRA_DIST): Add read-file.h.
62852         * modules/readline (EXTRA_DIST): Add readline.h.
62853         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62854         rijndael-api-fst.h.
62855
62856 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * m4/rijndael.m4 (gl_ARCFOUR):
62859         * m4/arctwo.m4 (gl_ARCTWO):
62860         * m4/check-version.m4 (gl_CHECK_VERSION):
62861         * m4/crc.m4 (gl_CRC):
62862         * m4/des.m4 (gl_DES):
62863         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62864         * m4/gc.m4 (gl_GC):
62865         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62866         * m4/getline.m4 (gl_FUNC_GETLINE):
62867         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62868         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62869         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62870         * m4/md2.m4 (gl_MD2):
62871         * m4/md4.m4 (gl_MD4):
62872         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62873         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62874         * m4/readline.m4 (gl_FUNC_READLINE):
62875         * m4/rijndael.m4 (gl_RIJNDAEL):
62876         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62877         to get the necessary .h files and whatnot.
62878
62879 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62880
62881         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62882         gnulib rather than the other way around.
62883         * config/srclistvars.sh (COREUTILS): Remove.
62884
62885 2006-08-22  Jim Meyering  <jim@meyering.net>
62886
62887         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62888
62889         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62890
62891 2006-08-22  Eric Blake  <ebb9@byu.net>
62892
62893         * modules/regexprops-generic: New file.
62894         * MODULES.html.sh (Support for building documentation): List it.
62895
62896 2006-08-22  Eric Blake  <ebb9@byu.net>
62897
62898         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62899         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62900         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62902
62903 2006-08-22  Bruno Haible  <bruno@clisp.org>
62904
62905         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62906         and lib_LTLIBRARIES like the other lib_* variables.
62907
62908 2006-08-22  Bruno Haible  <bruno@clisp.org>
62909
62910         * build-aux/x-to-1.in: New file, from GNU gettext.
62911
62912 2006-08-22  Bruno Haible  <bruno@clisp.org>
62913
62914         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62915         <utmpx.h> exists.
62916
62917 2006-08-22  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62920         <utmpx.h> exists.
62921
62922 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62923
62924         BeOS portability.
62925         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62926         exist.
62927         Problem reported by Bruno Haible.
62928
62929 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         Avoid the need for AC_LIBSOURCES in m4 macros.
62932         * modules/acl (EXTRA_DIST): Add acl.h.
62933         * modules/argmatch (Files): Add m4/argmatch.m4.
62934         (configure.ac): Add gl_ARGMATCH.
62935         (EXTRA_DIST): Renamed from lib_SOURCES, for
62936         consistency with the other modules.  Remove argmatch.c.
62937         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62938         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62939         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62940         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62941         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62942         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62943         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62944         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62945         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62946         * modules/closeout (EXTRA_DIST): Add closeout.h.
62947         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62948         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62949         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62950         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62951         dirname.h; remove basename.c and stripslash.c.
62952         * modules/exclude (EXTRA_DIST): Add exclude.h.
62953         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62954         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62955         * modules/file-type (EXTRA_DIST): Add file-type.h.
62956         * modules/filemode (EXTRA_DIST): Add filemode.h.
62957         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62958         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62959         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62960         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62961         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62962         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62963         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62964         * modules/getdate (EXTRA_DIST): Add getdate.c.
62965         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62966         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62967         * modules/getpass (EXTRA_DIST): Add getpass.h.
62968         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62969         * modules/group-member (EXTRA_DIST): Add group-member.h.
62970         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62971         * modules/hash (EXTRA_DIST): Add hash.h.
62972         * modules/human (EXTRA_DIST): Add human.h.
62973         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62974         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62975         * modules/lchown (EXTRA_DIST): Add lchown.h.
62976         * modules/long-options (EXTRA_DIST): Add long-options.h.
62977         * modules/lstat (EXTRA_DIST): Add lstat.h.
62978         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62979         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62980         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62981         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62982         * modules/memxor (EXTRA_DIST): Add memxor.h.
62983         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62984         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62985         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62986         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62987         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62988         * modules/physmem (EXTRA_DIST): Add physmem.h.
62989         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62990         * modules/posixver (EXTRA_DIST): Add posixver.h.
62991         * modules/quote (EXTRA_DIST): Add quote.h.
62992         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62993         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62994         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62995         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62996         regex_internal.h regexec.c.
62997         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62998         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62999         * modules/same (EXTRA_DIST): Add same.h.
63000         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63001         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63002         * modules/savedir (EXTRA_DIST): Add savedir.h.
63003         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63004         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63005         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63006         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63007         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63008         * modules/strdup (EXTRA_DIST): Add strdup.h.
63009         * modules/strftime (EXTRA_DIST): Add strftime.h.
63010         * modules/strndup (EXTRA_DIST): Add strndup.h.
63011         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63012         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63013         * modules/time_r (EXTRA_DIST): Add time_r.h.
63014         * modules/timespec (EXTRA_DIST): Add timespec.h.
63015         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63016         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63017         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63018         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63019         * modules/userspec (EXTRA_DIST): Add userspec.h.
63020         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63021         * modules/utimens (EXTRA_DIST): Add utimens.h.
63022         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63023         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63024         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63025         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63026         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63027         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63028         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63029         * modules/yesno (EXTRA_DIST): Add yesno.h.
63030
63031 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63034
63035         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63036         * m4/dev-ino.m4, same-inode.m4: Remove.
63037
63038         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63039         * m4/acl.m4 (AC_FUNC_ACL):
63040         * m4/backupfile.m4 (gl_BACKUPFILE):
63041         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63042         * m4/canon-host.m4 (gl_CANON_HOST):
63043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63045         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63046         * m4/cloexec.m4 (gl_CLOEXEC):
63047         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63048         * m4/closeout.m4 (gl_CLOSEOUT):
63049         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63050         * m4/dirname.m4 (gl_DIRNAME):
63051         * m4/exclude.m4 (gl_EXCLUDE):
63052         * m4/exitfail.m4 (gl_EXITFAIL):
63053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63054         * m4/file-type.m4 (gl_FILE_TYPE):
63055         * m4/filemode.m4 (gl_FILEMODE):
63056         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63057         * m4/fpending.m4 (gl_FUNC_FPENDING):
63058         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63059         * m4/fts.m4 (gl_FUNC_FTS):
63060         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63061         * m4/getdate.m4 (gl_GETDATE):
63062         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63063         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63064         * m4/getpass.m4 (gl_FUNC_GETPASS):
63065         * m4/gettime.m4 (gl_GETTIME):
63066         * m4/getugroups.m4 (gl_GETUGROUPS):
63067         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63069         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63070         * m4/hash.m4 (gl_HASH):
63071         * m4/idcache.m4 (gl_IDCACHE):
63072         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63073         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63074         * m4/long-options.m4 (gl_LONG_OPTIONS):
63075         * m4/lstat.m4 (gl_FUNC_LSTAT):
63076         * m4/md5.m4 (gl_MD5):
63077         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63078         * m4/memcoll.m4 (gl_MEMCOLL):
63079         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63080         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63081         * m4/memxor.m4 (gl_MEMXOR):
63082         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63084         * m4/modechange.m4 (gl_MODECHANGE):
63085         * m4/mountlist.m4 (gl_MOUNTLIST):
63086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63087         * m4/openat.m4 (gl_FUNC_OPENAT):
63088         * m4/pathmax.m4 (gl_PATHMAX):
63089         * m4/physmem.m4 (gl_PHYSMEM):
63090         * m4/posixtm.m4 (gl_POSIXTM):
63091         * m4/posixver.m4 (gl_POSIXVER):
63092         * m4/quote.m4 (gl_QUOTE):
63093         * m4/quotearg.m4 (gl_QUOTEARG):
63094         * m4/readtokens.m4 (gl_READTOKENS):
63095         * m4/readutmp.m4 (gl_READUTMP):
63096         * m4/regex.m4 (gl_REGEX):
63097         * m4/safe-read.m4 (gl_SAFE_READ):
63098         * m4/safe-write.m4 (gl_SAFE_WRITE):
63099         * m4/same.m4 (gl_SAME):
63100         * m4/save-cwd.m4 (gl_SAVE_CWD):
63101         * m4/savedir.m4 (gl_SAVEDIR):
63102         * m4/settime.m4 (gl_SETTIME):
63103         * m4/sha1.m4 (gl_SHA1):
63104         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63105         * m4/stat-macros.m4 (gl_STAT_MACROS):
63106         * m4/stat-time.m4 (gl_STAT_TIME):
63107         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63108         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63109         * m4/strdup.m4 (gl_FUNC_STRDUP):
63110         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63111         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63112         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63113         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63114         * m4/time_r.m4 (gl_TIME_R):
63115         * m4/timespec.m4 (gl_TIMESPEC):
63116         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63117         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63118         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63119         * m4/userspec.m4 (gl_USERSPEC):
63120         * m4/utimecmp.m4 (gl_UTIMECMP):
63121         * m4/utimens.m4 (gl_UTIMENS):
63122         * m4/xalloc.m4 (gl_XALLOC):
63123         * m4/xgetcwd.m4 (gl_XGETCWD):
63124         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63125         * m4/xreadlink.m4 (gl_XREADLINK):
63126         * m4/xstrtod.m4 (gl_XSTRTOD):
63127         * m4/yesno.m4 (gl_YESNO):
63128         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63129         to get the necessary .h files and whatnot.
63130
63131 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63132             Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63135         /bin/sh understanding of '!' conditional negation.
63136
63137 2006-08-21  Jim Meyering  <jim@meyering.net>
63138
63139         * modules/openat (Depends-on): Really alphabetize.
63140
63141         * modules/acl (Depends-on): Add error and quote.
63142
63143         * check-module (find_included_lib_files): Add at-func.c to the
63144         ok-to-include-more-than-once white list.
63145
63146         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63147
63148 2006-08-21  Bruno Haible  <bruno@clisp.org>
63149
63150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63151         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63152         Reported by Martin Lambers <marlam@marlam.de>.
63153
63154 2006-08-21  Bruno Haible  <bruno@clisp.org>
63155
63156         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63157         specify an installation location, don't emit a noinst_LIBRARIES or
63158         noinst_LTLIBRARIES assignment.
63159
63160 2006-08-21  Bruno Haible  <bruno@clisp.org>
63161
63162         BeOS portability.
63163         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63164         BeOS has mbrtowc() but no <wctype.h>.
63165
63166 2006-08-21  Bruno Haible  <bruno@clisp.org>
63167
63168         BeOS portability.
63169         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63170         exist.
63171
63172 2006-08-21  Bruno Haible  <bruno@clisp.org>
63173
63174         BeOS portability.
63175         * lib/mbchar.h: Include <wctype.h> only if it exists.
63176
63177 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         Remove files that are no longer needed by their respective modules.
63180         * m4/obstack.m4: Remove.
63181         * m4/strerror_r.m4: Remove.
63182         * m4/uint32_t.m4: Remove.
63183         * m4/uintptr_t.m4: Remove.
63184         * m4/ullong_max.m4: Remove.
63185         * m4/xstrtoimax.m4: Remove.
63186         * m4/xstrtoumax.m4: Remove.
63187
63188         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63189         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63190         dependencies now capture this.
63191
63192         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63193         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63194         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63195         * m4/human.m4 (gl_HUMAN): Likewise.
63196         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63197         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63198
63199         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63200
63201         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63202         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63203         stdint.
63204         * m4/human.m4 (gl_HUMAN): Likewise.
63205         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63207         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63208         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63209         * m4/xstrtol (gl_XSTRTOL): Likewise.
63210
63211         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63212         AC_TYPE_LONG_LONG_INT.
63213         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63214         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63215         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63217
63218         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63219         on stdbool.
63220
63221         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63222         (gl_PREREQ_XSTRTOUL): Remove.
63223
63224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63225
63226         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63227         mode.
63228
63229 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         Add and change modules to make it easier for coreutils to use
63232         gnulib-tool.
63233         * modules/backupfile (Files): Remove m4/d-ino.m4.
63234         (Depends-on): Add d-ino.
63235         * modules/cycle-check (Depends-on): Add stdint.
63236         (lib_SOURCES): Add cycle-check.h.
63237         * modules/d-ino: New module.
63238         * modules/d-type: New module.
63239         * modules/error (Files): Remove m4/strerror_r.m4.
63240         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63241         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63242         m4/inttypes_h.m4, m4/uintmax_t.m4.
63243         (Depends-on): Add stdint.
63244         (lib_SOURCES): Add fsusage.h.
63245         * modules/getcwd (Files): Remove d-ino.m4.
63246         (Depends-on): Add d-ino.
63247         * modules/getndelim2 (Depends-on): Add stdint.
63248         * modules/glob (Files): Remove m4/d-type.m4.
63249         (Depends-on): Add d-type.
63250         * modules/host-os: New module.
63251         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63252         m4/inttypes_h.m4, m4/uintmax_t.m4.
63253         * Depends-on: Add stdint.
63254         (lib_SOURCES): Add human.h.
63255         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63256         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63257         m4/uintmax_t.m4, m4/ulonglong.m4.
63258         (Depends-on): Add stdint.
63259         (EXTRA_DIST): Add inttostr.h.
63260         * modules/lchmod: New module.
63261         * modules/link-follow: New module.
63262         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63263         (Depends-on): Add lchmod.
63264         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63265         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63266         (Depends-on): Add stdint.
63267         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63268         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63269         (Depends-on): Add stdint.
63270         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63271         * modules/perl: New module.
63272         * modules/regex (Depends-on): Add stdint.
63273         * modules/rmdir-errno: New module.
63274         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63275         m4/intmax_t.m4.
63276         (Depends-on): Add stdint.
63277         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63278         m4/uintmax_t.m4.
63279         (Depends-on): Add stdint.
63280         * modules/unlink-busy: New module.
63281         * modules/utimecmp (Depends-on): Add stdint.
63282         * modules/uptime: New module.
63283         * modules/winsz-ioctl: New module.
63284         * modules/winsz-termios: New module.
63285         * modules/xnanosleep (Depends-on): Add nanosleep.
63286         * modules/ullong_max: Remove.
63287         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63288         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63289         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63290         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63291         (Depends-on): Add inttypes.
63292         (lib_SOURCES): Add xstrtol.h.
63293         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63294         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63295         * MODULES.html.sh: Move 'assert' into the assert section.
63296         Move 'dummy' into the linking section.
63297         Remove ullong_max.
63298         Add section for compatibility checks for POSIX:2001 functions,
63299         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63300         winsz-ioctl, and winsz-termios into it.
63301         Add lchmod.
63302         Add top-level Misc section and put host-os, perl, and uptime
63303         into it.
63304
63305 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63308         now assume the stdint module.  Do not include inttypes.h.
63309         * lib/fsusage.h: Likewise.
63310         * lib/getndelim2.c: Likewise.
63311         * lib/human.h: Likewise.
63312         * lib/inttostr.h: Likewise.
63313         * lib/obstack.c: Likewise.
63314         * lib/regex_internal.h: Likewise.
63315         * lib/tempname.c: Likewise.
63316         * lib/utimecmp.c: Likewise.
63317         * lib/xstrtol.h: Likewise.
63318
63319         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63320
63321         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63322         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63323         * lib/xtime.h: Likewise.
63324
63325 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * modules/openat (Files): Add lib/fchmodat.c.
63328         Fixes problem reported by Jay Youngman.
63329
63330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63331
63332         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63333         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63334
63335 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63336             Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63339         and is a script that invokes bison. Tighten the code. Add comments.
63340
63341 2006-08-18  Jim Meyering  <jim@meyering.net>
63342
63343         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63344         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63345         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63346         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63347
63348 2006-08-18  Bruno Haible  <bruno@clisp.org>
63349
63350         * modules/bison-i18n: New file.
63351         * MODULES.html.sh (Internationalization functions): Add it.
63352
63353 2006-08-18  Bruno Haible  <bruno@clisp.org>
63354
63355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63356         sys/statvfs.h. When getmntinfo was found, check its declaration and
63357         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63358
63359 2006-08-18  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/bison-i18n.m4: New file, from bison.
63362
63363 2006-08-18  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63366         (ME_DUMMY): Treat "kernfs" as a dummy.
63367         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63368
63369 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         Update from coreutils.
63372
63373         2006-08-15  Jim Meyering  <jim@meyering.net>
63374
63375         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63376
63377         2006-01-17  Jim Meyering  <jim@meyering.net>
63378
63379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63380
63381         2006-01-11  Jim Meyering  <jim@meyering.net>
63382
63383         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63384         Check for the lchmod function.
63385
63386 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         Update from coreutils.
63389
63390         * lib/__fpending.h: Add copyright notice.
63391         * lib/fprintftime.h: Likewise.
63392         * lib/savedir.c: Use (C) in copyright notice.
63393         * lib/savedir.h: Likewise.
63394
63395         2006-08-15  Jim Meyering  <jim@meyering.net>
63396
63397         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63398         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63399         in support of the EXPECTED_ERRNO macro.
63400         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63401         definitions.  Instead, define the appropriate symbols and include
63402         "at-func.c".
63403         * lib/mkdirat.c (mkdirat): Likewise.
63404         * lib/fchmodat.c (fchmodat): Likewise.
63405         (ENOSYS): Remove definition.
63406         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63407         it.  Don't include "unistd--.h" -- it wasn't ever used.
63408
63409         2006-01-17  Jim Meyering  <jim@meyering.net>
63410
63411         Rewrite fts.c not to change the current working directory,
63412         by using openat, fstatat, fdopendir, etc..
63413
63414         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63415         (HAVE_OPENAT_SUPPORT): Define.
63416         [_LIBC] (fchdir): Don't undef or define; no longer used.
63417         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63418         Now, this `function' always succeeds, and consumes its file descriptor
63419         parameter -- so callers must not close such FDs.  Update callers.
63420         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63421         (diropen): Add parameter, SP.  Adjust all callers.
63422         Implement using diropen_fd, rather than open.
63423         (fts_open): Initialize new member, fts_cwd_fd.
63424         Remove fts_rft-setting code.
63425         (fts_close): Close fts_cwd_fd, if necessary.
63426         (__opendir2): Define in terms of opendir or opendirat,
63427         depending on whether the FST_NOCHDIR flag is set.
63428         (fts_build): Since fts_safe_changedir consumes its FD, and since
63429         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63430         and close the dup'd file descriptor upon failure.
63431         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63432         (fts_safe_changedir): Tweak semantics to reflect that this function
63433         now calls cwd_advance_fd and hence consumes its FD argument.
63434         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63435         [struct FTS] (fts_rft): Remove now-unused member.
63436         [struct FTS] (fts_cycle.state): Improve comment.
63437
63438         * lib/openat.c (openat_needs_fchdir): New function.
63439         * lib/openat.h (openat_needs_fchdir): Declare it.
63440
63441 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63444         Problem and fix reported by Pádraig Brady in
63445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63446
63447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63450
63451 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * lib/memcoll.c (memcoll): Optimize for the common case where the
63454         arguments are bytewise equal.
63455
63456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * doc/regexprops-generic.texi: Add a copyright notice.
63459
63460 2006-08-15  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/tmpdir (License): Change to LGPL.
63463
63464 2006-08-15  Bruno Haible  <bruno@clisp.org>
63465
63466         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63467         module.
63468
63469 2006-08-14  Simon Josefsson  <jas@extundo.com>
63470
63471         * config/srclist.txt: Add gnupload.
63472
63473 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63474
63475         Change copyright notice from LGPL 2 to GPL 2, since that's the
63476         standard form used in the gnulib repository.
63477         * tests/test-lock.c: Likewise.
63478         * tests/test-stdint.c: Likewise.
63479         * tests/test-tls.c: Likewise.
63480
63481         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63482         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63483         Add copyright notice.
63484
63485         * check-module: Add copyright notice.  Output a copyright
63486         notice if "--version" is specified.
63487         * modules/COPYING: New file.
63488         * tests/test-getaddrinfo.c: Add copyright notice.
63489         * tests/test-verify.c: Likewise.
63490
63491 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         Change copyright notice from LGPL 2 to GPL 2, since that's the
63494         standard form used in the gnulib repository.
63495         * lib/lock.c: LGPL -> GPL.
63496         * lib/lock.h: Likewise.
63497         * lib/strnlen1.c: Likewise.
63498         * lib/strnlen1.h: Likewise.
63499         * lib/tls.c: Likewise.
63500         * lib/tls.h: Likewise.
63501         * lib/tmpdir.c: Likewise.
63502
63503         * lib/TODO: Remove; this belongs only in coreutils.
63504
63505 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63506
63507         Add copyright notices to long-enough files that lack them, since
63508         otherwise the files aren't clearly free.  Use the same notice that
63509         getdate.texi already uses.
63510         * doc/alloca-opt.texi: Add copyright notice.
63511         * doc/alloca.texi: Likewise.
63512         * doc/ctime.texi: Likewise.
63513         * doc/functions.texi: Likewise.
63514         * doc/gcd.texi: Likewise.
63515         * doc/gnulib-tool.texi: Likewise.
63516         * doc/inet_ntoa.texi: Likewise.
63517         * doc/visibility.texi: Likewise.
63518
63519         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63520         * doc/quote.texi: Add copyright notice.
63521
63522         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63523         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63524         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63525         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63526         is now obsolete, and give a pointer to the Sun list.
63527         Add copyright notice.
63528
63529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * config/srclistvars.sh: Add copyright notice.
63532
63533 2006-08-14  Eric Blake  <ebb9@byu.net>
63534
63535         Import the following change from libc:
63536
63537         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63538
63539         Upstream bug 2997.
63540         * lib/misc/error.c: Add space between program name and message if file
63541         name is missing.
63542
63543 2006-08-12  Karl Berry  <karl@gnu.org>
63544
63545         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63546         remove, these originate in gnulib now.
63547
63548 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63549
63550         * doc/Makefile (standards.info standards.html standards.dvi):
63551         Also depend on make-stds.texi.
63552
63553 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63556         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63557
63558         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63559         in wchar_t.  Problem reported by Eric Blake.
63560
63561         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63562         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63563         Also, help the compiler to keep LEN in a register.
63564
63565 2006-08-11  Eric Blake  <ebb9@byu.net>
63566
63567         * users.txt: Sort.  Add tar.
63568
63569 2006-08-11  Bruno Haible  <bruno@clisp.org>
63570
63571         * users.txt: New file.
63572
63573 2006-08-11  Bruno Haible  <bruno@clisp.org>
63574
63575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63576         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63577
63578 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * modules/snprintf (Depends-on): Remove minmax.
63581         (Maintainer): Add self and Bruno.
63582
63583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63586         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63587         (EOVERFLOW): Define if the system does not.
63588         Do not include "minmax.h"; it wasn't used.
63589         (snprintf): Don't assume size_t promotes to an unsigned type.
63590         Fix bug when generated string was too long for the buffer: the
63591         buffer's contents are supposed to be the initial prefix of the
63592         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63593         exceeds INT_MAX; do the check ourselves.
63594
63595         Import the following changes from libc:
63596
63597         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63598
63599         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63600         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63601         set wc to the byte which couldn't be converted.
63602         (re_string_reconstruct): Don't clear valid_raw_len before calling
63603         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63604         tip_context using re_string_context_at.
63605
63606         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63607
63608         * lib/posix/regex.h: g++ still cannot handled [restrict].
63609
63610         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63611
63612         * lib/posix/regex.h: Remove special handling for VMS.
63613
63614 2006-08-10  Jim Meyering  <jim@meyering.net>
63615
63616         * modules/same-inode: New module.
63617         * modules/dev-ino: New module.
63618         * modules/cycle-check: Depend on these modules, rather than simply
63619         including their .h files.
63620         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63621         required via m4/cycle-check.m4.
63622         * modules/same: Depend on new same-inode module, rather than
63623         including same-inode.h.
63624         * modules/chdir-safer: New file.
63625
63626         * modules/chown (Depends-on): Add stat-macros.
63627
63628 2006-08-10  Jim Meyering  <jim@meyering.net>
63629
63630         * m4/cycle-check.m4: New file.
63631         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63632         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63633
63634 2006-08-10  Eric Blake  <ebb9@byu.net>
63635
63636         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63637         in from original proposal.
63638
63639 2006-08-10  Eric Blake  <ebb9@byu.net>
63640         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63641
63642         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63643         namespace.
63644
63645 2006-08-10  Bruno Haible  <bruno@clisp.org>
63646
63647         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63648         as well.
63649
63650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63651
63652         Sync from coreutils.
63653
63654         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63655
63656         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63657         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63658
63659 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * modules/restrict: Remove; no longer needed now that we assume
63662         Autoconf 2.59 or later.
63663         * MODULES.html.sh: Remove 'restrict'.
63664         * modules/argp (Depends-on): Remove 'restrict'.
63665         * modules/base64 (Depends-on): Likewise.
63666         * modules/gc (Depends-on): Likewise.
63667         * modules/getaddrinfo (Depends-on): Likewise.
63668         * modules/glob (Depends-on): Likewise.
63669         * modules/inet_ntop (Depends-on): Likewise.
63670         * modules/inet_pton (Depends-on): Likewise.
63671         * modules/memxor (Depends-on): Likewise.
63672         * modules/regex (Depends-on): Likewise.
63673         * modules/strtok_r (Depends-on): Likewise.
63674         * modules/time_r (Depends-on): Likewise.
63675
63676 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63679         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63680         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63681         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63682         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63683         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63684         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63685         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63686
63687         Merge from coreutils.
63688         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63689         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63690         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63691         * m4/time_r.m4 (gl_TIME_R): Likewise.
63692
63693 2006-08-09  Karl Berry  <karl@gnu.org>
63694
63695         * config/srclist.txt: no more gettext-tools, per Bruno.
63696
63697 2006-08-08  Eric Blake  <ebb9@byu.net>
63698
63699         * modules/verror: New module.
63700         * MODULES.html.sh: Document it.
63701
63702 2006-08-08  Eric Blake  <ebb9@byu.net>
63703
63704         * lib/verror.h, lib/verror.c: New files.
63705
63706 2006-08-08  Eric Blake  <ebb9@byu.net>
63707
63708         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63709         verror_at_line output complies with GNU Coding Standards even when
63710         file is NULL.
63711
63712 2006-08-07  Bruno Haible  <bruno@clisp.org>
63713
63714         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63715         versions of AIX.
63716         Reported by Ralf Wildenhues.
63717
63718 2006-08-07  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63721         in an AC_DEFUN. Needed so that the autoconf snippets can use
63722         AC_REQUIRE.
63723
63724 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63725
63726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63727         Initialize pkgdata_DATA.
63728         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63729         overriding it.
63730
63731 2006-08-06  Eric Blake  <ebb9@byu.net>
63732
63733         * lib/error.h: Fold in some upstream changes from glibc.
63734         * lib/error.c: Likewise.
63735
63736 2006-08-04  Bruno Haible  <bruno@clisp.org>
63737
63738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63739         Make the mostlyclean-local rule depend on mostlyclean-generic.
63740         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63741
63742 2006-07-31  Bruno Haible  <bruno@clisp.org>
63743
63744         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63745         <stdlib.h>, <string.h>.
63746
63747 2006-07-30  Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/readlink (License): Change to LGPL.
63750
63751 2006-07-30  Bruno Haible  <bruno@clisp.org>
63752
63753         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63754         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63755         set PKGDATADIR to point to it.
63756
63757 2006-07-30  Bruno Haible  <bruno@clisp.org>
63758
63759         * modules/csharpexec (configure.ac): Comment out macro invocation.
63760         * modules/javaexec (configure.ac): Likewise.
63761         * modules/javacomp-script (configure.ac): Likewise.
63762
63763         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63764
63765 2006-07-30  Bruno Haible  <bruno@clisp.org>
63766
63767         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63768         linked-list.
63769
63770 2006-07-30  Bruno Haible  <bruno@clisp.org>
63771
63772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63773
63774 2006-07-30  Bruno Haible  <bruno@clisp.org>
63775
63776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63777         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63778         get removed.
63779
63780 2006-07-29  Bruno Haible  <bruno@clisp.org>
63781
63782         Make it possible for gnulib-tool to work with locally modified or
63783         augmented gnulib repositories.
63784         * gnulib-tool (func_usage): Document --local-dir option.
63785         (local_gnulib_dir): New variable.
63786         Handle --local-dir option.
63787         (func_lookup_file): New function.
63788         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63789         (func_get_description, func_get_filelist, func_get_description,
63790         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63791         func_get_automake_snippet, func_get_include_directive,
63792         func_get_license, func_get_maintainer): Use func_lookup_file.
63793         (func_import, func_create_testdir): Use func_lookup_file.
63794
63795 2006-07-29  Bruno Haible  <bruno@clisp.org>
63796
63797         * modules/setenv (Depends-on): Add unistd.
63798
63799 2006-07-29  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63802
63803 2006-07-29  Bruno Haible  <bruno@clisp.org>
63804
63805         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63806
63807 2006-07-29  Bruno Haible  <bruno@clisp.org>
63808
63809         * gnulib-tool (import, update): If there is no Makefile.am, look at
63810         aclocal.m4, instead of bailing out.
63811
63812 2006-07-29  Bruno Haible  <bruno@clisp.org>
63813
63814         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63815         Categorize the options by when they are useful.
63816
63817 2006-07-29  Bruno Haible  <bruno@clisp.org>
63818
63819         * gnulib-tool (func_usage): Document option --no-libtool.
63820         Handle option --no-libtool.
63821         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63822         for changed semantics of $libtool variable.
63823         (func_import): Likewise. If libtool is not used, show this through
63824         an option --no-libtool.
63825         (func_create_testdir): Update.
63826
63827 2006-07-29  Bruno Haible  <bruno@clisp.org>
63828
63829         * gnulib-tool (func_import): Extend error message about missing
63830         --doc-base.
63831
63832 2006-07-29  Bruno Haible  <bruno@clisp.org>
63833
63834         * gnulib-tool (func_import): Don't create the $docbase directory if
63835         there is no file to store there.
63836
63837 2006-07-29  Bruno Haible  <bruno@clisp.org>
63838
63839         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63840         relevant, look for configure.ac there, not in the current directory.
63841         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63842
63843 2006-07-29  Bruno Haible  <bruno@clisp.org>
63844
63845         * gnulib-tool (SORT): New variable.
63846         (func_usage): Undocument --assume-autoconf option.
63847         Remove --assume-autoconf option handling.
63848         (autoconf_minversion): Determine from the contents of configure.ac.
63849         (func_import): Remove autoconf_minversion handling.
63850         Suggested by Eric Blake.
63851
63852 2006-07-29  Bruno Haible  <bruno@clisp.org>
63853
63854         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63855
63856 2006-07-29  Bruno Haible  <bruno@clisp.org>
63857
63858         * config/srclist.txt (*setenv.[ch]): Remove rules.
63859
63860 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63861
63862         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63863
63864 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63865
63866         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63867         arpa/inet.h.
63868
63869 2006-07-28  Simon Josefsson  <jas@extundo.com>
63870
63871         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63872         * modules/inet_pton (Depends-on): Likewise.
63873
63874 2006-07-28  Simon Josefsson  <jas@extundo.com>
63875
63876         * m4/netinet_in_h.m4: New file.
63877
63878 2006-07-28  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63881         #include's.
63882
63883 2006-07-28  Simon Josefsson  <jas@extundo.com>
63884
63885         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63886         #include's.
63887
63888 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63891         setgid on directories only if they set these bits.
63892         * lib/modechange.h: Remove obsolete comment about masks.
63893
63894 2006-07-28  Eric Blake  <ebb9@byu.net>
63895
63896         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63897         macro expansion.
63898
63899 2006-07-28  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63902
63903 2006-07-28  Bruno Haible  <bruno@clisp.org>
63904
63905         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63906
63907 2006-07-28  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63910         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63911         Define fallbacks.
63912         Avoids link error on FreeBSD 4.x.
63913         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63914
63915         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63916         encoding.
63917         * lib/mbswidth.c (iswcntrl): Likewise.
63918
63919 2006-07-27  Bruno Haible  <bruno@clisp.org>
63920
63921         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63922         test.
63923
63924 2006-07-27  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63927         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63928         defined.
63929
63930 2006-07-26  Eric Blake  <ebb9@byu.net>
63931
63932         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63933
63934 2006-07-26  Eric Blake  <ebb9@byu.net>
63935
63936         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63937         like mingw that lack mkstemp.
63938         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63939         avoid compilation warning on mingw.
63940
63941 2006-07-26  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63944         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63945         INT_FAST*_MIN, INTPTR_MIN.
63946
63947 2006-07-25  Bruno Haible  <bruno@clisp.org>
63948
63949         * modules/version-etc (Depends-on): Add stdarg.
63950
63951 2006-07-25  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63954         complex commands.
63955
63956 2006-07-25  Bruno Haible  <bruno@clisp.org>
63957
63958         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63959         defined in <stdarg.h> or config.h.
63960
63961 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63964         (gl_STDIO_SAFER): Remove.
63965
63966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         * MODULES.html.sh (File stream based Input/Output):
63969         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63970         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63971         * modules/fopen-safer, modules/tmpfile-safer: New files.
63972         * modules/stdio-safer: Remove.
63973
63974 2006-07-24  Bruno Haible  <bruno@clisp.org>
63975
63976         * modules/tmpdir: New file.
63977         * MODULES.html.sh (File system functions): Add it.
63978
63979 2006-07-24  Bruno Haible  <bruno@clisp.org>
63980
63981         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63982         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63983
63984 2006-07-24  Bruno Haible  <bruno@clisp.org>
63985
63986         * modules/clean-temp: New file.
63987
63988 2006-07-24  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/tmpdir.m4: New file, from GNU gettext.
63991
63992 2006-07-24  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/tmpdir.h: New file, from GNU gettext.
63995         * lib/tmpdir.c: New file, from GNU gettext.
63996
63997 2006-07-24  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/clean-temp.h: New file, from GNU gettext.
64000         * lib/clean-temp.c: New file, from GNU gettext.
64001
64002 2006-07-23  Eric Blake  <ebb9@byu.net>
64003
64004         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64005         (Depends-on): Add binary-io.
64006
64007 2006-07-23  Eric Blake  <ebb9@byu.net>
64008
64009         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64010
64011 2006-07-23  Eric Blake  <ebb9@byu.net>
64012
64013         * lib/tmpfile-safer.c: New file.
64014         * lib/stdio-safer.h (fopen_safer): Add prototype.
64015         * lib/stdio--.h (tmpfile): Make safer.
64016
64017 2006-07-23  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64020         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64021         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64022         gl_linked_remove_at): Use it.
64023
64024 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64025         and Simon Josefsson <jas@extundo.com>
64026
64027         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64028
64029         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64030
64031 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * modules/close-stream: New file.
64034         * modules/closeout (Description): Make it clear that it exits
64035         with a diagnostic on error.
64036         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64037         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64038
64039 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64040
64041         * m4/close-stream.m4: New file.
64042
64043 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * lib/close-stream.c, lib/close-stream.h: New files.
64046
64047 2006-07-22  Bruno Haible  <bruno@clisp.org>
64048
64049         Merge from GNU gettext 0.15.
64050
64051         2006-05-01  Bruno Haible  <bruno@clisp.org>
64052
64053                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64054
64055         2006-07-22  Bruno Haible  <bruno@clisp.org>
64056
64057                 * modules/javaversion: New file.
64058                 * MODULES.html.sh (Java): Add javaversion.
64059
64060         2006-03-12  Bruno Haible  <bruno@clisp.org>
64061
64062                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64063
64064         2005-12-04  Bruno Haible  <bruno@clisp.org>
64065
64066                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64067                 (untested).
64068
64069         2006-06-21  Bruno Haible  <bruno@clisp.org>
64070
64071                 Avoid warnings from recent versions of mcs.
64072                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64073                 -o, -L, -r any more. Use options documented since mcs-1.0
64074                 instead. Similarly for -g.
64075
64076         2005-12-04  Bruno Haible  <bruno@clisp.org>
64077
64078                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64079                 .resources, not .resource.
64080
64081         2005-07-09  Bruno Haible  <bruno@clisp.org>
64082
64083                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64084                 add a .dll suffix.
64085                 Reported by Mark Junker <mjscod@gmx.de>.
64086
64087         2006-07-22  Bruno Haible  <bruno@clisp.org>
64088
64089                 * modules/gettext: Upgrade to gettext-0.15.
64090                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64091                 m4/visibility.m4.
64092                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64093
64094 2006-07-22  Bruno Haible  <bruno@clisp.org>
64095
64096         Merge from GNU gettext 0.15.
64097
64098         2006-03-25  Bruno Haible  <bruno@clisp.org>
64099
64100                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64101
64102         2006-07-21  Bruno Haible  <bruno@clisp.org>
64103
64104                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64105                 "1.1".
64106
64107         2006-05-09  Bruno Haible  <bruno@clisp.org>
64108
64109                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64110                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64111                 for the conftestver execution.
64112
64113         2006-05-01  Bruno Haible  <bruno@clisp.org>
64114
64115                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64116                 optional target-version argument. Verify that the compiler
64117                 groks source of the specified source-version, or add -source
64118                 option as necessary. Verify that the compiler produces
64119                 bytecode in the specified target-version, or add -target and
64120                 -source options as necessary. Make the result of the test
64121                 available as variable CONF_JAVAC. Also log error output in
64122                 config.log.
64123
64124         2006-03-11  Bruno Haible  <bruno@clisp.org>
64125
64126                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64127
64128         2006-05-09  Bruno Haible  <bruno@clisp.org>
64129
64130                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64131                 CLASSPATH_SEPARATOR to a semicolon.
64132
64133         2006-03-12  Bruno Haible  <bruno@clisp.org>
64134
64135                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64136                 available as variable CONF_JAVA, for subsequent autoconf
64137                 tests. Also log error output in config.log.
64138
64139         2006-07-19  Bruno Haible  <bruno@clisp.org>
64140
64141                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64142                 that getline works on glibc2 systems. Needed to avoid trouble
64143                 in relocatable.c.
64144                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64145
64146         2005-12-04  Bruno Haible  <bruno@clisp.org>
64147
64148                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64149                 launcher (untested).
64150
64151         2005-12-04  Bruno Haible  <bruno@clisp.org>
64152
64153                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64154
64155         2006-07-22  Bruno Haible  <bruno@clisp.org>
64156
64157                 * gettext.m4: Update from GNU gettext-0.15.
64158                 * nls.m4: Likewise.
64159                 * po.m4: Likewise.
64160                 * inttypes-pri.m4: Likewise.
64161                 * inttypes-h.m4: Renamed from inttypes.m4.
64162                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64163
64164 2006-07-22  Bruno Haible  <bruno@clisp.org>
64165
64166         Merge from GNU gettext 0.15.
64167
64168         2005-07-05  Bruno Haible  <bruno@clisp.org>
64169
64170                 * printf-args.c (printf_fetchargs): Work around broken
64171                 definition of wint_t on mingw.
64172
64173         2005-02-12  Bruno Haible  <bruno@clisp.org>
64174
64175                 * xallocsa.h: Add extern "C" for C++.
64176
64177         2006-05-17  Bruno Haible  <bruno@clisp.org>
64178
64179                 Cygwin portability.
64180                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64181
64182         2006-04-30  Bruno Haible  <bruno@clisp.org>
64183
64184                 * progreloc.c: Include <mach-o/dyld.h> if available.
64185                 (find_executable): Use _NSGetExecutablePath when possible.
64186
64187         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64188
64189                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64190                 function.
64191
64192         2005-12-29  Bruno Haible  <bruno@clisp.org>
64193
64194                 * progreloc.c (set_program_name_and_installdir): Fix
64195                 compilation error.
64196
64197         2005-12-04  Bruno Haible  <bruno@clisp.org>
64198
64199                 Cygwin portability.
64200                 * progreloc.c: Include <windows.h> also on Cygwin.
64201                 (find_executable): Add support for Cygwin.
64202                 (set_program_name_and_installdir): Handle also platforms with
64203                 nonempty EXEEXT.
64204
64205         2006-07-11  Bruno Haible  <bruno@clisp.org>
64206
64207                 * javacomp.c: Fix a comment.
64208                 Reported by Jim Meyering.
64209
64210         2006-04-30  Bruno Haible  <bruno@clisp.org>
64211
64212                 * javacomp.h (compile_java_class): Add source_version,
64213                 target_version arguments.
64214                 * javacomp.c: Rewritten to choose only a compiler that
64215                 respects the specified source_version and target_version.
64216
64217         2006-06-27  Bruno Haible  <bruno@clisp.org>
64218
64219                 Assume correct S_ISDIR macro.
64220                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64221
64222         2006-07-22  Bruno Haible  <bruno@clisp.org>
64223
64224                 * javaversion.h: New file, from GNU gettext.
64225                 * javaversion.c: New file, from GNU gettext.
64226                 * javaversion.java: New file, from GNU gettext.
64227                 * javaversion.class: New file, from GNU gettext.
64228
64229         2006-05-17  Bruno Haible  <bruno@clisp.org>
64230
64231                 Cygwin portability.
64232                 * javaexec.c (execute_java_class): Test for jview program
64233                 also on Cygwin.
64234
64235         2006-04-09  Bruno Haible  <bruno@clisp.org>
64236
64237                 * fatal-signal.c: Don't include string.h.
64238                 (at_fatal_signal): Use a copying loop instead of memcpy.
64239
64240         2005-12-04  Bruno Haible  <bruno@clisp.org>
64241
64242                 * csharpexec.c: Add support for 'clix' launcher (untested).
64243                 (execute_csharp_using_sscli): New function.
64244                 (execute_csharp_program): Call it.
64245
64246         2006-06-21  Bruno Haible  <bruno@clisp.org>
64247
64248                 Avoid warnings from recent versions of mcs.
64249                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64250                 -o, -L, -r any more. Use options documented since mcs-1.0
64251                 instead. Similarly for -g.
64252
64253         2005-07-09  Bruno Haible  <bruno@clisp.org>
64254
64255                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64256                 add a .dll suffix.
64257                 Reported by Mark Junker <mjscod@gmx.de>.
64258
64259         2006-06-17  Bruno Haible  <bruno@clisp.org>
64260
64261                 * config.charset: Update for NetBSD 3.0.
64262
64263         2006-05-17  Bruno Haible  <bruno@clisp.org>
64264
64265                 Cygwin portability.
64266                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64267
64268         2006-05-16  Bruno Haible  <bruno@clisp.org>
64269
64270                 * localcharset.c [CYGWIN]: Include <windows.h>.
64271                 (get_charset_aliases): For Cygwin, return the same CPxxx
64272                 aliases list as under WIN32.
64273                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64274                 the environment variables. Fall back to GetACP().
64275
64276         2006-04-05  Bruno Haible  <bruno@clisp.org>
64277
64278                 * config.charset: Update Juan Manuel Guerrero's address.
64279
64280         2005-02-12  Bruno Haible  <bruno@clisp.org>
64281
64282                 * allocsa.h: Add extern "C" for C++.
64283
64284         2005-02-10  Bruno Haible  <bruno@clisp.org>
64285
64286                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64287                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64288
64289         2006-07-22  Bruno Haible  <bruno@clisp.org>
64290
64291                 * gettext.h: Update to GNU gettext-0.15.
64292
64293 2006-07-22  Bruno Haible  <bruno@clisp.org>
64294
64295         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64296         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64297         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64298
64299 2006-07-21  Eric Blake  <ebb9@byu.net>
64300
64301         * modules/stdlib-safer: New file.
64302         * MODULES.html.sh (File stream based Input/Output): Add
64303         stdlib-safer.
64304
64305 2006-07-21  Eric Blake  <ebb9@byu.net>
64306
64307         * lib/stdlib-safer.h: New file from coreutils, required by
64308         stdlib--.h.
64309
64310 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64313
64314 2006-07-20  Bruno Haible  <bruno@clisp.org>
64315
64316         * gnulib-tool: Recognize new option --assume-autoconf.
64317         (autoconf_minversion): New variable.
64318         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64319
64320 2006-07-20  Bruno Haible  <bruno@clisp.org>
64321
64322         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64323
64324 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64325
64326         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64327         Reindent and repaginate.
64328
64329 2006-07-19  Derek Price  <derek@ximbiot.com>
64330
64331         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64332         Correct grammar.
64333
64334 2006-07-17  Bruno Haible  <bruno@clisp.org>
64335
64336         * modules/list: New file.
64337         * modules/array-list: New file.
64338         * modules/carray-list, modules/carray-list-tests: New files.
64339         * modules/linked-list, modules/linked-list-tests: New files.
64340         * modules/avltree-list, modules/avltree-list-tests: New files.
64341         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64342         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64343         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64344         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64345         * modules/oset: New file.
64346         * modules/array-oset: New file.
64347         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64348         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64349         * tests/test-carray_list.c: New file.
64350         * tests/test-linked_list.c: New file.
64351         * tests/test-avltree_list.c: New file.
64352         * tests/test-rbtree_list.c: New file.
64353         * tests/test-linkedhash_list.c: New file.
64354         * tests/test-avltreehash_list.c: New file.
64355         * tests/test-rbtreehash_list.c: New file.
64356         * tests/test-avltree_oset.c: New file.
64357         * tests/test-rbtree_oset.c: New file.
64358         * MODULES.html.sh (Container data structures): New section.
64359
64360 2006-07-17  Bruno Haible  <bruno@clisp.org>
64361
64362         * m4/gl_list.m4: New file.
64363
64364 2006-07-17  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/gl_list.h: New file.
64367         * lib/gl_list.c: New file.
64368         * lib/gl_array_list.h: New file.
64369         * lib/gl_array_list.c: New file.
64370         * lib/gl_carray_list.h: New file.
64371         * lib/gl_carray_list.c: New file.
64372         * lib/gl_linked_list.h: New file.
64373         * lib/gl_linked_list.c: New file.
64374         * lib/gl_anylinked_list1.h: New file.
64375         * lib/gl_anylinked_list2.h: New file.
64376         * lib/gl_avltree_list.h: New file.
64377         * lib/gl_avltree_list.c: New file.
64378         * lib/gl_anyavltree_list1.h: New file.
64379         * lib/gl_anyavltree_list2.h: New file.
64380         * lib/gl_rbtree_list.h: New file.
64381         * lib/gl_rbtree_list.c: New file.
64382         * lib/gl_anyrbtree_list1.h: New file.
64383         * lib/gl_anyrbtree_list2.h: New file.
64384         * lib/gl_anytree_list1.h: New file.
64385         * lib/gl_anytree_list2.h: New file.
64386         * lib/gl_linkedhash_list.h: New file.
64387         * lib/gl_linkedhash_list.c: New file.
64388         * lib/gl_anyhash_list1.h: New file.
64389         * lib/gl_anyhash_list2.h: New file.
64390         * lib/gl_avltreehash_list.h: New file.
64391         * lib/gl_avltreehash_list.c: New file.
64392         * lib/gl_rbtreehash_list.h: New file.
64393         * lib/gl_rbtreehash_list.c: New file.
64394         * lib/gl_anytreehash_list1.h: New file.
64395         * lib/gl_anytreehash_list2.h: New file.
64396
64397         * lib/gl_oset.h: New file.
64398         * lib/gl_oset.c: New file.
64399         * lib/gl_array_oset.h: New file.
64400         * lib/gl_array_oset.c: New file.
64401         * lib/gl_avltree_oset.h: New file.
64402         * lib/gl_avltree_oset.c: New file.
64403         * lib/gl_rbtree_oset.h: New file.
64404         * lib/gl_rbtree_oset.c: New file.
64405         * lib/gl_anytree_oset.h: New file.
64406
64407 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         * m4/mkancesdirs.m4: New file.
64410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64411         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64412         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64413         it.
64414
64415 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64418         * lib/mkancesdirs.h: New files.
64419         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64420         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64421         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64422         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64423         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64424         callers changed.  Revamp internals significantly, by not
64425         attempting to create directories that are temporarily more
64426         permissive than the final results.  Do not attempt to use
64427         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64428         This removes some race conditions, fixes some bugs, and simplifies
64429         things.  Use new dirchownmod function to do owner and mode changes.
64430         * lib/mkdir-p.h: Likewise.
64431         * lib/modechange.c (octal_to_mode): New function.
64432         (struct mode_change): New member mentioned.
64433         (make_node_op_equals): New arg mentioned.  All callers changed.
64434         (mode_compile): Keep track of which mode bits the user has explicitly
64435         mentioned.
64436         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64437         New arg PMODE_BITS, to keep track of which mode bits the user
64438         mentioned; it treats S_ISUID and S_ISGID speciall.
64439         All callers changed.
64440         * lib/modechange.h: Likewise.
64441
64442 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64443
64444         * MODULES.html.sh: Add mkancestors.
64445         * modules/mkancesdirs: New module.
64446         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64447         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64448         The chdir-safer and afs files are now orphans; I'll remove them
64449         unless someone speaks up.
64450         Add lib/dirchownmod.c, lib/dirchownmod.h.
64451         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64452         Add lchown, mkancesdirs.
64453         (Maintainer): Add self.
64454
64455 2006-07-15  Karl Berry  <karl@gnu.org>
64456
64457         * gnulib-tool: help message wording/arrangement.
64458
64459 2006-07-14  Simon Josefsson  <jas@extundo.com>
64460
64461         * doc/gnulib.texi (Libtool and Windows): New section.
64462
64463 2006-07-12  Simon Josefsson  <jas@extundo.com>
64464
64465         * modules/gendocs (License): Fix license, approved by Karl.
64466
64467 2006-07-12  Eric Blake  <ebb9@byu.net>
64468
64469         * MODULES.html.sh: Add gendocs.
64470
64471 2006-07-11  Eric Blake  <ebb9@byu.net>
64472
64473         * modules/fdl: New module, to install doc/fdl.texi.
64474         * MODULES.html.sh: Add new section for documentation modules.
64475         * gnulib-tool: Avoid space-tab.
64476         (--doc-base): New option, to manage files from doc.
64477
64478 2006-07-11  Eric Blake  <ebb9@byu.net>
64479
64480         * m4/absolute-header.m4: Fix comments to match recent change.
64481
64482 2006-07-11  Eric Blake  <ebb9@byu.net>
64483
64484         * gnulib-tool: List --doc-base before --tests-base.
64485
64486 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64487
64488         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64489
64490 2006-07-11  Bruno Haible  <bruno@clisp.org>
64491
64492         * README: Mention where to put documentation.
64493
64494 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64495
64496         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64497
64498 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64501         to stdint.m4.
64502
64503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64506         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64507         "no/such/file/stdint.h" when there is no such file, so that
64508         the resulting C code can be parsed by dodgy compilers.
64509         Problems reported by Bob Proulx.
64510
64511 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64512
64513         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64514         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64515         macros into the GNU _D_EXACT_NAMLEN.
64516         * lib/savedir.c:  Likewise.
64517         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64518
64519 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64520         and Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64523         * m4/savedir.m4:
64524         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64525         macros into the GNU _D_EXACT_NAMLEN.
64526
64527 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64528
64529         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64530         around the absolute name, to work around a problem with the HP-UX
64531         11.23 native C compiler, reported by Bob Proulx.
64532
64533 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         * doc/maintain.texi, make-stds.texi: Sync from
64536         <http://savannah.gnu.org/projects/gnustandards>.
64537
64538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64541
64542 2006-07-09  Jim Meyering  <jim@meyering.net>
64543
64544         * m4/glob.m4: Remove a doubled word in a comment.
64545
64546 2006-07-09  Jim Meyering  <jim@meyering.net>
64547
64548         * lib/argp-pv.c: Remove a doubled word in a comment.
64549         * lib/check-version.c (check_version): Likewise.
64550         * lib/javacomp.c (compile_java_class): Likewise.
64551
64552 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64555         for the benefit of people using Autoconf 2.60.  If you want to
64556         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64557         (or m4/onceonly.m4, if pre-2.57) manually.
64558
64559 2006-07-08  Jim Meyering  <jim@meyering.net>
64560
64561         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64562         comment.
64563         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64564         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64565         comment.
64566
64567 2006-07-08  Jim Meyering  <jim@meyering.net>
64568
64569         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64570
64571 2006-07-07  Simon Josefsson  <jas@extundo.com>
64572
64573         * tests/test-crc.c: Change expected crc value, the test vector
64574         were probably computed using the old broken crc.c?
64575
64576 2006-07-06  Simon Josefsson  <jas@extundo.com>
64577
64578         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64579         now the canonical place for the M4 file).
64580
64581         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64582         from the sys_socket dependency now.
64583
64584         * modules/inet_pton (Files): Ditto.
64585
64586         * modules/inet_ntop (Files): Ditto.
64587
64588 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64589
64590         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64591         not gl_PREREQ_GETUSERSHELL.
64592
64593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64594
64595         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64596         with only one argument, for Autoconf 2.60.
64597         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64598         expand to nothing, so add a shell command to avoid syntax error.
64599         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64600
64601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64602
64603         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64604
64605 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64608         no longer needed.  Check for isblank decl.
64609         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64610         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64611         of existence.
64612
64613 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * lib/getloadavg.c: Use __VMS, not VMS.
64616         * lib/getopt.c: Likewise.
64617         * lib/getpagesize.h: Likewise.
64618         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64619         and probably does not work.
64620
64621 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * lib/.cppi-disable: Add wcwidth.
64624         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64625         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64626         (ISGRAPH): Remove.  All uses changed to isgraph.
64627         (FOLD) [!defined _LIBC]: Remove special case.
64628         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64629         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64630         HAVE_ISBLANK.
64631         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64632         case.
64633
64634 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64635
64636         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64637         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64638         brackets.  Other minor changes to suppress some compiler
64639         warnings.
64640
64641 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64642         and Paul Eggert  <eggert@cs.ucla.edu>
64643
64644         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64645         of invoking obsolescent AC_HEADER_DIRENT macro.
64646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64647         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64648         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64650         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64651         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64652         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64653         * m4/readdir.m4: Remove; no longer needed.
64654
64655 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64656         and Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64659         Don't worry about this obsolete case any more.
64660         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64661         directories.
64662         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64663         worry about this obsolete case any more.
64664         * lib/fts.c: Likewise.
64665         * lib/getcwd.c: Likewise.
64666         * lib/glob.h: Likewise.
64667         * lib/savedir.c: Likewise.
64668
64669 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64672         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64673         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64674         needed.
64675         All uses removed.
64676         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64677         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64678         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64679         needed.
64680         * m4/getdate.m4 (gl_GETDATE): Likewise.
64681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64685         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64687         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64688         needed.
64689
64690 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/memcasecmp.c: Include <limits.h>.
64693         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64694         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64695         Don't assume isdigit succeeds only on '0' through '9'.
64696
64697 2006-07-05  Eric Blake  <ebb9@byu.net>
64698
64699         * modules/getaddrinfo (Depends-on): Add snprintf.
64700
64701 2006-07-05  Eric Blake  <ebb9@byu.net>
64702
64703         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64704         to avoid 'header present but could not be compiled' on cygwin.
64705
64706 2006-07-05  Eric Blake  <ebb9@byu.net>
64707
64708         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64709         missing from netdb.h.
64710         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64711
64712 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64713
64714         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64715         no longer needed.
64716         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64717         * m4/getdate.m4 (gl_GETDATE): Likewise.
64718         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64719         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64721         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64722         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64723
64724 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64725
64726         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64727         All uses of is_space replaced by isspace.
64728         * lib/exit.h: Don't talk about STDC_HEADERS.
64729         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64730         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64731         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64732         replaced by isprint etc.
64733         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64734         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64735         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64736         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64737         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64738         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64739
64740 2006-07-05  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64743         the function exists, before testing against AIX.
64744         Reported by Martin Lambers <marlam@marlam.de>.
64745
64746 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64749         From Mark D. Baushke.
64750
64751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64754         to the absolute name, not just one, to bypass Sun C 5.8's
64755         "warning: #include of /usr/include/... may be non-portable".
64756
64757 2006-07-04  Eric Blake  <ebb9@byu.net>
64758
64759         * modules/dirname-tests: New test module.
64760         * tests/test-dirname.c: New file, replacing dirname.c
64761         TEST_DIRNAME section that was recently deleted.
64762
64763 2006-07-04  Bruno Haible  <bruno@clisp.org>
64764
64765         Assume ANSI C header files and <ctype.h> functions.
64766         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64767         (mbsnwidth): Use isprint, iscntrl instead.
64768
64769 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         Merge from coreutils.
64772         * MODULES.html.sh: Add xstrtold.
64773         * modules/xstrtold: New file.
64774         * modules/cycle-check (Files): Add lib/same-inode.h.
64775         * modules/dirname (Files): Add m4/double-slash-root.m4.
64776         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64777         * modules/mkdir-p (Files): Add lib/same-inode.h.
64778         * modules/same (Files): Add lib/same-inode.h.
64779
64780 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64783         This is to keep the terminology clean; POSIX talks about
64784         "absolute pathnames", not "full pathnames", but the GNU
64785         Coding Standards say to use "path" for something else;
64786         so use "absolute" to keep both sides happy.
64787         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64788         Set gl_absolute_header, not gl_full_header_path.
64789         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64790         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64791         All uses changed.
64792
64793         Merge from coreutils.
64794
64795         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64798         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64799         want to require the building of c-strtod.o.
64800         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64801         needs -lm directly.
64802         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64803
64804         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64807         --as-needed option if available.  Problem reported by Albert Chin in
64808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64809         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64810         cc merely issues a bunch of annoying warnings for --as-needed
64811         (this problem was reported by Bob Proulx).  Also, try linking with
64812         -lm to detect a bug in binutils 2.16 (this problem was reported
64813         by Ralf Wildenhues).
64814
64815         2006-06-18  Jim Meyering  <jim@meyering.net>
64816
64817         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64818         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64819         macro.
64820         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64821         also check for glibc-2.4's abort-inducing bug.
64822
64823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64824         Low-probability clean-up should be to use rmdir to get rid of
64825         the just-created directory, not unlink.
64826
64827         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64828         configure fail, and request a bug report to inform us about it.
64829         Add a comment that, barring reports to the contrary, in 2007 we'll
64830         assume ftruncate is universally available.
64831
64832         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64833
64834         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64835
64836         2006-03-12  Jim Meyering  <jim@meyering.net>
64837
64838         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64839         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64840         * m4/same.m4 (gl_SAME): Likewise.
64841         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64842
64843         2006-03-11  Eric Blake  <ebb9@byu.net>
64844
64845         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64846         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64847         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64848         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64849
64850 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64853         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64854         reported by Mark D. Baushke, one in
64855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64856
64857         Merge from coreutils.
64858
64859         * lib/.cppi-disable: Add stdint_.h.
64860         * lib/.cvsignore: Add stdint.h.
64861
64862         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64865         both double and long double versions.
64866         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64867         * lib/xstrtold.c: New file.
64868         * lib/xstrtod.h (xstrtold): New decl.
64869
64870         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         * lib/filemode.c (setst): Remove.
64873         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64874         (arguably) clearer, and the generated code is a bit smaller on my
64875         Debian GNU/Linux stable x86 host.
64876
64877         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64880         Assume that filemode.h includes sys/types.h and sys/stat.h.
64881         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64882         (ftypelet): Reorder to put common cases first, for efficiency.
64883         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64884         to do 'M'.
64885         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64886         of 10, for compatibility with FreeBSD.  All callers changed.
64887         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64888         types that can't be deduced solely from st_mode.  First arg is now a
64889         const pointer.
64890         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64891         (strmode): Renamed from mode_string.
64892         (filemodestring): New decl.
64893         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64894         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64895         needed.
64896         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64897
64898         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64901         fsusage.h now does that.  Include fsusage.h first, to test interface.
64902         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64903         at most one method (the old code could have generated decls that
64904         didn't conform to C89, not that this was ever exercised).
64905         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64906
64907         2006-03-19  Jim Meyering  <jim@meyering.net>
64908
64909         Work even in a chroot where d_ino values for entries in "/"
64910         don't match the stat.st_ino values for the same names.
64911         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64912         number, iterate through all entries again, using lstat instead.
64913         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64914         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64915
64916         * lib/getcwd.c (__getcwd): Clarify a comment.
64917         Use memcpy in place of a call to strcpy.
64918
64919         2006-03-12  Jim Meyering  <jim@meyering.net>
64920
64921         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64922         matches that of the current directory (which we're about to chdir ".."
64923         out of), then save the dev-ino of the parent, instead.
64924
64925         * lib/same-inode.h (SAME_INODE): New file/macro.
64926         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64927         Include "same-inode.h", instead.
64928         * lib/same.c: Likewise.
64929         * lib/cycle-check.h: Include "same-inode.h".
64930         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64931         * lib/cycle-check.c (SAME_INODE): Remove definition.
64932         * lib/root-dev-ino.h: Include "same-inode.h".
64933
64934         2006-03-11  Eric Blake  <ebb9@byu.net>
64935
64936         * lib/same.c (same_name): s/base_name/last_component/
64937         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64938         * lib/filenamecat.c (file_name_concat): Likewise.
64939
64940         2006-03-11  Eric Blake  <ebb9@byu.net>,
64941                     Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64944         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64945         drive prefix.
64946         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64947         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64948         (last_component): New method.
64949         * lib/dirname.c (dir_len): Determine when drive letters need a
64950         subsequent slash.  Preserve // when it is special.
64951         (dir_name): Don't append dot when drive letter is absolute.
64952         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64953         * lib/basename.c (base_name): New semantics - malloc the result.
64954         Preserve // when it is special.  Preserve relative files that look
64955         like drive letters.
64956         (base_len): Preserve // when it is special.
64957         (last_component): New method, similar to old base_name semantics.
64958         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64959         base_name.  Strip redundant slashes from ///.
64960
64961 2006-07-03  Jim Meyering  <jim@meyering.net>
64962
64963         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64964         macro is used before the first cycle_check call.
64965
64966 2006-07-03  Eric Blake  <ebb9@byu.net>
64967
64968         * modules/dirname (Depends-on): Add xstrndup.
64969
64970 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64973         test cases, so that config.log is a bit easier to follow.
64974
64975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64978         both are 64 bits, since this seems to be the tradition, and this
64979         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64980         we ever run into a host that prefers long long to long in this
64981         case, we'll need another configure-time test.  Problem reported by
64982         Jim Meyering.
64983
64984 2006-07-02  Eric Blake  <ebb9@byu.net>
64985
64986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64987
64988 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * modules/inttypes (Depends-on): No longer depends on stdint.
64991         * modules/stdint (Description): Say more about assumptions.
64992         Say that the fast types might differ.  Say macros are used.
64993         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64994         (Makefile.am): Revise list of substituted symbols to match
64995         new stdint.m4.
64996         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64997         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64998         * tests/test-stdint.c (verify_same_types)
64999         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65000         the code conforms to C99/C89.
65001         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65002         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65003
65004 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65007         but fix a bug, by requiring at least 64 bits.
65008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65009         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65010         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65011         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65012
65013         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65014         changes.  Make 2.59 a prerequisite.  Check and substitute for
65015         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65016         inttypes.h.  Do not use special include files; just use the
65017         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65018         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65019         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65020         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65021         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65022         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65023         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65024         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65025         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65026         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65027         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65028         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65029         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65030         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65031         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65032         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65033         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65034         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65035         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65036         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65037         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65038         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65039         not check for things that C99 does not require, e.g., int8_t.  If
65040         a test isn't needed unless <stdint.h> isn't working, and is
65041         unlikely to be needed for any other reason, then don't do it
65042         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65043         size_t, since we assume C89 freestanding at least.  Do not check
65044         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65045         the right thing even if the types are not defined.  Instead use:
65046         (gl_STDINT_TYPE_PROPERTIES): New macro.
65047         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65048         testing whether <sys/types.h> clashes, as Autoconf does this for
65049         us now.  All uses removed.
65050         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65051         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65052         (gl_CHECK_TYPE_SAME):
65053         Remove; no longer needed.
65054         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65055         exists, since we'll return 0 anyway in that case.
65056         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65057
65058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65061         possible collision with system files.
65062         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65063         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65064         WCHAR_MIN and WCHAR_MAX in this case.
65065         (<stddef.h>): Do not include; no longer needed.
65066         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65067         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65068         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65069         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65070         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65071         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65072         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65073         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65074         !defined(__c99))]: Include in this case too, since it's harmless
65075         now.
65076         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65077         dangerous to do so.
65078         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65079         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65080         (_STDINT_MIN, _STDINT_MAX): New macros.
65081         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65082         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65083         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65084         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65085         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65086         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65087         macros, not typedefs; this simplifies things quite a bit.
65088         Use long int for all types narrower than int64_t.
65089         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65090         Define in terms of long long int or int64_t or long int,
65091         not int64_t or int32_t.  This saves some compile-time testing.
65092         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65093         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65094         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65095         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65096         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65097         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65098         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65099         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65100         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65101         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65102         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65103         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65104         undef any previous version and define our own version, for
65105         simplicity and consistency with the new macros for types.
65106         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65107         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65108         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65109         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65110         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65111         @WINT_T_SUFFIX@ to keep things simple here.
65112         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65113         Simplify by assuming typical 8/16/32/64 host, since we're
65114         already doing that elsewhere anyway.
65115         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65116         and assume long long int is 64 bits if available.  This
65117         speeds up 'configure'.
65118
65119 2006-07-01  Eric Blake  <ebb9@byu.net>
65120
65121         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65122         Reported by Andreas Buening.
65123
65124 2006-07-01  Eric Blake  <ebb9@byu.net>
65125
65126         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65127
65128 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65129
65130         * lib/getaddrinfo.c: fixed typo
65131
65132 2006-06-29  Jim Meyering  <jim@meyering.net>
65133
65134         * modules/strftime (Maintainer): Add my name, since with the
65135         FPRINTFTIME changes strftime.c has forked from glibc.
65136
65137 2006-06-29  Eric Blake  <ebb9@byu.net>
65138
65139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65140
65141 2006-06-29  Eric Blake  <ebb9@byu.net>
65142
65143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65144
65145 2006-06-29  Eric Blake  <ebb9@byu.net>
65146
65147         * lib/stat_.h: New file.
65148
65149 2006-06-29  Eric Blake  <ebb9@byu.net>
65150
65151         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65152         unused static function.
65153
65154 2006-06-29  Eric Blake  <ebb9@byu.net>
65155
65156         * doc/functions.texi (Function Portability): Document missing lstat
65157         on mingw.
65158
65159 2006-06-29  Eric Blake  <ebb9@byu.net>
65160
65161         * MODULES.html.sh: Add sys_stat.
65162         * modules/sys_stat: New module.
65163         * modules/mkstemp (Depends-on): Add sys_stat.
65164
65165 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65166
65167         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65168
65169 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65170
65171         * m4/c-bs-a.m4: Removed.
65172
65173 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65174
65175         * lib/strftime.c: Assume strftime() exists.
65176
65177 2006-06-29  Derek Price  <derek@ximbiot.com>
65178
65179         * modules/c-bs-a: Removed - \a is C89.
65180         * MODULES.html.sh: Remove c-bs-a.
65181
65182 2006-06-29  Bruno Haible  <bruno@clisp.org>
65183
65184         * modules/wcwidth (License): Change to LGPL.
65185
65186 2006-06-28  Simon Josefsson  <jas@extundo.com>
65187
65188         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65189         on _WIN32.
65190
65191         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65192         getnameinfo.
65193
65194 2006-06-28  Simon Josefsson  <jas@extundo.com>
65195
65196         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65197
65198 2006-06-28  Simon Josefsson  <jas@extundo.com>
65199
65200         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65201         functions there.  It will succeed on Windows XP, but on Windows
65202         2000 and (presumably) earlier, it will fail, and use the internal
65203         re-implementation.
65204         (use_win32_p): New function.
65205         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65206         Support AI_NUMERICSERV to disable getservbyname.
65207         (getnameinfo): New function, only supports
65208         NI_NUMERICHOST|NI_NUMERICSERV for now.
65209
65210         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65211         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65212         getnameinfo.
65213
65214 2006-06-28  Eric Blake  <ebb9@byu.net>
65215
65216         * modules/wcwidth: New file.
65217         * modules/mbchar (Depends-on): Add wcwidth.
65218         * modules/mbswidth (Depends-on): Add wcwidth.
65219         * MODULES.html.sh: Add wcwidth.
65220
65221 2006-06-28  Eric Blake  <ebb9@byu.net>
65222
65223         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65225
65226 2006-06-28  Eric Blake  <ebb9@byu.net>
65227
65228         * lib/xvasprintf.h: Fix comments.
65229
65230 2006-06-28  Eric Blake  <ebb9@byu.net>
65231
65232         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65233         * lib/mbswidth.c (wcwidth): Move from here...
65234         * lib/wcwidth.h: ...to this new file.
65235
65236 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65237
65238         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65239
65240         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65241         it's obsolete.
65242         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65243
65244 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65245
65246         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65247         Autoconf 2.60 says this stuff was obsolete.
65248
65249 2006-06-28  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65252
65253 2006-06-28  Bruno Haible  <bruno@clisp.org>
65254
65255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65256         gt_TYPE_WCHAR_T.
65257
65258 2006-06-28  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65261         declaration for wcwidth.
65262         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65263
65264 2006-06-28  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65267         (mkdir): Define using _mkdir.
65268
65269 2006-06-28  Bruno Haible  <bruno@clisp.org>
65270
65271         * lib/getaddrinfo.h: Fix POSIX URL.
65272         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65273         _WIN32.
65274         (use_win32_p): Make static.
65275         (getaddrinfo): Reject service name if it is empty or does not consist
65276         solely of decimal digits, or if its value is > 65535.
65277         (getnameinfo): Remove useless casts.
65278
65279 2006-06-27  Simon Josefsson  <jas@extundo.com>
65280
65281         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65282         Eggert and Martin Lambers.
65283
65284 2006-06-27  Simon Josefsson  <jas@extundo.com>
65285
65286         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65287         Eggert and Martin Lambers.
65288
65289 2006-06-27  Bruno Haible  <bruno@clisp.org>
65290
65291         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65292         result to 0, not to empty.
65293         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65294
65295 2006-06-27  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65298
65299 2006-06-26  Simon Josefsson  <jas@extundo.com>
65300
65301         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65302         present.
65303
65304 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65307         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65309
65310 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65311
65312         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65313
65314 2006-06-26  Bruno Haible  <bruno@clisp.org>
65315
65316         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65317
65318 2006-06-26  Bruno Haible  <bruno@clisp.org>
65319
65320         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65321
65322 2006-06-26  Bruno Haible  <bruno@clisp.org>
65323
65324         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65325         SGI C compiler in pre-C99 mode.
65326         Suggested by Mark D. Baushke and Larry Jones.
65327
65328 2006-06-26  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65331         WCHAR_MAX.
65332         Reported by Mark D. Baushke and Larry Jones.
65333
65334 2006-06-26  Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65337         in pre-C99 mode.
65338         Suggested by Mark D. Baushke and Larry Jones.
65339
65340 2006-06-23  Simon Josefsson  <jas@extundo.com>
65341             Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65344         Emit mostlyclean-local rule.
65345         (func_emit_tests_Makefile_am): Likewise.
65346         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65347
65348 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65349
65350         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65351
65352 2006-06-23  Bruno Haible  <bruno@clisp.org>
65353
65354         * tests/test-stdint.c: Update to match ISO C 99 Technical
65355         Corrigendum 1.
65356
65357 2006-06-23  Bruno Haible  <bruno@clisp.org>
65358
65359         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65360
65361 2006-06-23  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/stdint_.h: Treat IRIX like OpenBSD.
65364
65365 2006-06-23  Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65368         ISO C 99 Technical Corrigendum 1.
65369
65370 2006-06-22  Simon Josefsson  <jas@extundo.com>
65371
65372         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65373         MinGW.
65374
65375 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65378         needed.  Some compiler complained about some of them.  Problem reported
65379         by Larry Jones in
65380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65381
65382 2006-06-21  Simon Josefsson  <jas@extundo.com>
65383
65384         * tests/test-getaddrinfo.c: New file.
65385
65386         * modules/getaddrinfo-tests: New file.
65387
65388         * MODULES.html.sh: Add inet_pton.
65389
65390         * modules/inet_pton: New file.
65391
65392 2006-06-21  Simon Josefsson  <jas@extundo.com>
65393
65394         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65395         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65396         of using the (limited) gnulib implementation on Windows XP.
65397
65398         * m4/inet_pton.m4: New file.
65399
65400 2006-06-21  Simon Josefsson  <jas@extundo.com>
65401
65402         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65403         variable.
65404
65405         * lib/socket_.h: Don't define WINVER.
65406
65407         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65408         slightly modified to work in gnulib.
65409
65410 2006-06-21  Simon Josefsson  <jas@extundo.com>
65411
65412         * doc/gnulib.texi (Windows sockets): Add.
65413
65414 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * lib/read-file.c (fread_file): Start with buffer allocation of
65417         0 bytes rather than 1 byte; this simplifies the code.
65418         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65419         code to free buffer and save/restore errno.
65420         (internal_read_file): Remove unused local.
65421
65422 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65425         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65426         Problem reported by Denis Excoffier in
65427         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65428
65429 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65430
65431         * modules/sys_socket, modules/socklen: Include sys/types since
65432         FreeBSD 4.x's sys/socket.h needs it.
65433
65434 2006-06-19  Simon Josefsson  <jas@extundo.com>
65435
65436         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65437
65438 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65439
65440         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65441
65442 2006-06-19  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65445         and FULL_PATH_INTTYPES_H in angle brackets.
65446         Reported by Mark D. Baushke <mdb@gnu.org>.
65447
65448 2006-06-17  Eric Blake  <ebb9@byu.net>
65449
65450         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65451         errno.
65452
65453 2006-06-17  Bruno Haible  <bruno@clisp.org>
65454
65455         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65456         <sys/inttypes.h>.
65457
65458 2006-06-17  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65461         whether errno is declared. Assume <errno.h> declares errno.
65462
65463 2006-06-17  Bruno Haible  <bruno@clisp.org>
65464
65465         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65466
65467 2006-06-17  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65470         problem on Solaris 2.5.1.
65471
65472 2006-06-16  Eric Blake  <ebb9@byu.net>
65473
65474         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65475         * lib/unicodeio.c [!defined errno]: Likewise.
65476         * lib/strtol.c [!defined errno]: Likewise.
65477         * lib/strtod.c [!defined errno]: Likewise.
65478
65479 2006-06-15  Eric Blake  <ebb9@byu.net>
65480
65481         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65482
65483 2006-06-15  Eric Blake  <ebb9@byu.net>
65484
65485         * config/srclist.txt (ssize_t.m4): Lose sync.
65486
65487 2006-06-15  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/stdint (Files): Include m4/full-header-path.m4,
65490         m4/size_max.m4, m4/wchar_t.m4.
65491         (Makefile.am): Many more substitutions.
65492         * modules/stdint-tests: New file.
65493         * tests/test-stdint.c: New file.
65494
65495 2006-06-15  Bruno Haible  <bruno@clisp.org>
65496
65497         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65498         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65499         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65500         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65501         gl_CHECK_TYPE_SAME): New macros.
65502
65503 2006-06-15  Bruno Haible  <bruno@clisp.org>
65504
65505         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65506
65507 2006-06-15  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/stdint_.h: Rewritten to be fully auto-configured.
65510         Fixes bug on HP-UX/IA64.
65511
65512 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * lib/getdate.y (__attribute__): Don't define if already defined.
65515         Problem reported by Larry Jones.
65516         * lib/utimens.c (__attribute__): Likewise.
65517
65518 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65519
65520         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65521         reported by Andreas Schwab.
65522
65523 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65524             Bruno Haible  <bruno@clisp.org>
65525
65526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65527         check for the declaration of strnlen and a run test that exposes the
65528         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65529         rpl_strndup.
65530
65531 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65532             Bruno Haible  <bruno@clisp.org>
65533
65534         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65535
65536 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65537
65538         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65539         compile test, for Tru64 4.0D.
65540
65541 2006-05-28  Karl Berry  <karl@gnu.org>
65542
65543         * config/srclist.txt (printf-args.c): lose sync.
65544
65545 2006-05-26  Martin Lambers  <marlam@marlam.de>
65546
65547         * lib/getpass.c: Updates the test for the native W32 API, and adds
65548         missing includes, thus fixing compilation warnings.
65549
65550 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65551
65552         * lib/exclude.c (exclude_fnmatch): New function.
65553         (excluded_file_name): Call exclude_fnmatch.
65554         * lib/exclude.h (excluded_file_name): New prototype
65555
65556 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * lib/tempname.c (small_open, large_open): New macros.
65559         (__open, __open64) [!_LIBC]: Remove.
65560         (__gen_tempname): Use small_open and large_open instead of __open
65561         and __open64.  This fixes a portability bug on HP-UX 11.11i
65562         reported by Simon Wing-Tang in
65563         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65564
65565 2006-05-24  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65568         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65569         Reported by Thorsten Maerz <torte@netztorte.de> via
65570         Aaron Stone <aaron@serendipity.cx>.
65571
65572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65575         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65576         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65577         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65578         not really conditional on the cache.
65579         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65580
65581 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65584         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65585         (my_usleep): Don't mishandle maximum value.
65586
65587 2006-05-19  Jim Meyering  <jim@meyering.net>
65588
65589         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65590
65591 2006-05-17  Bruno Haible  <bruno@clisp.org>
65592
65593         Cygwin portability.
65594         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65595
65596 2006-05-17  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/stdint_.h: Fix recognition of Cygwin.
65599
65600 2006-05-15  Bruno Haible  <bruno@clisp.org>
65601
65602         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65603         on libtool patch by Ralf Wildenhues.
65604
65605 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65608         test for C99 conformance; (bool) 0.5 is an integer constant
65609         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65610         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65611
65612 2006-05-11  Simon Josefsson  <jas@extundo.com>
65613
65614         * m4/xvasprintf.m4: Fix obvious typo.
65615
65616 2006-05-11  Jim Meyering  <jim@meyering.net>
65617
65618         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65619         James Lemley.
65620
65621 2006-05-10  Simon Josefsson  <jas@extundo.com>
65622
65623         * lib/md4.c: Typo fix, update copyright years.
65624         (K1, K2): Don't use L because it turn computations into 64-bit on
65625         64-bit platforms.
65626
65627 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65630         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65631         unwanted sign propagation, e.g., on hosts with 64-bit int.
65632         There still are some problems with reeelly weird theoretical hosts
65633         (e.g., 33-bit int) but it's not worth worrying about now.
65634         * lib/sha1.c (rol): Likewise.
65635         (K1, K2, K3, K4): Remove unnecessary L suffix.
65636
65637 2006-05-10  Bruno Haible  <bruno@clisp.org>
65638
65639         * lib/des.c: Cast to avoid warnings.
65640
65641 2006-05-09  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65644         (Depends-on): Depend also on xsize, stdarg.
65645         (configure.ac): Add gl_XVASPRINTF.
65646
65647 2006-05-09  Bruno Haible  <bruno@clisp.org>
65648
65649         * m4/xvasprintf.m4: New file.
65650
65651 2006-05-09  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65654         (EOVERFLOW): Define fallback value.
65655         (xstrcat): New function.
65656         (xvasprintf): Recognize the special case of a string concatenation.
65657
65658 2006-05-08  Eric Blake  <ebb9@byu.net>
65659
65660         * gnulib-tool (func_version): Base copyright year on CVS date.
65661         (func_emit_copyright_notice): New function.
65662         (func_emit_lib_Makefile_am): Use it.
65663         (func_emit_tests_Makefile_am): Likewise.
65664         (func_import): Likewise.
65665
65666 2006-05-08  Bruno Haible  <bruno@clisp.org>
65667
65668         * modules/stdarg: New file.
65669         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65670
65671 2006-05-08  Bruno Haible  <bruno@clisp.org>
65672
65673         * m4/stdarg.m4: New file, from GNU gettext.
65674
65675 2006-05-08  Bruno Haible  <bruno@clisp.org>
65676
65677         * config/srclist.txt (build-aux/config.rpath): different from latest
65678         release.
65679
65680 2006-05-08  Bruno Haible  <bruno@clisp.org>
65681
65682         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65683
65684 2006-05-05  Jim Meyering  <jim@meyering.net>
65685
65686         * m4/warning.m4: New file, derived from bison's file by the same name.
65687
65688 2006-05-03  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/stdint_.h: Shorter URL.
65691         * lib/inttypes.h: Likewise.
65692
65693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65694
65695         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65696
65697 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/verify.h: Document the internals better.  Most of this change
65700         was written by Bruno Haible.
65701
65702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         * doc/verify.texi: New file, partly based on a proposal by
65705         Bruno Haible.
65706
65707 2006-05-02  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65710         test from here...
65711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65712
65713 2006-04-29  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65716         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65717
65718 2006-04-29  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool: Make --update option actually work.
65721
65722 2006-04-29  Bruno Haible  <bruno@clisp.org>
65723
65724         * doc/gcd.texi: New file.
65725         * doc/gnulib.texi: Include it.
65726
65727 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * lib/getdate.y (get_date): When adding relative date, start with the
65730         initial time, not with the result of the first mktime call.
65731
65732 2006-04-25  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool (func_import): Output the include directives in three
65735         blocks, sorted separately.
65736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65737
65738 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65741         to define main with arguments, for C++.  Reported by Eric Blake.
65742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65743         Prefer 'int main ()' to 'int main (void)', for C++.
65744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65746         for 'main', for C99 and C++.
65747
65748 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65751         Don't assume that exit status -1 is valid.
65752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65753         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65754         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65755         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65756         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65757         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65758         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65759         functions can be used without declaring them, or that you can
65760         exit with status -1.
65761         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65762
65763 2006-04-24  Karl Berry  <karl@gnu.org>
65764
65765         * config/srclist.txt (longdouble.m4): sync lost.
65766
65767 2006-04-24  Eric Blake  <ebb9@byu.net>
65768
65769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65770
65771 2006-04-24  Bruno Haible  <bruno@clisp.org>
65772
65773         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65774         poll() implementation in AIX.
65775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65776
65777 2006-04-24  Bruno Haible  <bruno@clisp.org>
65778
65779         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65780         assigned exactly once.
65781
65782 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65783             Bruno Haible  <bruno@clisp.org>
65784
65785         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65786         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65787         for AM_CPPFLAGS.
65788
65789 2006-04-23  Bruno Haible  <bruno@clisp.org>
65790
65791         * modules/copy-file: Depend on unistd.
65792         * modules/execute: Likewise.
65793         * modules/fatal-signal: Likewise.
65794         * modules/findprog: Likewise.
65795         * modules/mkdtemp : Likewise.
65796         * modules/pipe: Likewise.
65797         * modules/wait-process: Likewise.
65798
65799 2006-04-23  Bruno Haible  <bruno@clisp.org>
65800
65801         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65802         condition was already detected.
65803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65804
65805 2006-04-23  Bruno Haible  <bruno@clisp.org>
65806
65807         * lib/copy-file.c: Include <unistd.h> unconditionally.
65808         * lib/execute.c: Likewise.
65809         * lib/fatal-signal.c: Likewise.
65810         * lib/findprog.c: Likewise.
65811         * lib/mkdtemp.c: Likewise.
65812         * lib/pipe.h: Likewise.
65813         * lib/pipe.c: Likewise.
65814         * lib/wait-process.h: Likewise.
65815
65816 2006-04-23  Bruno Haible  <bruno@clisp.org>
65817
65818         * gnulib-tool (func_usage): Fix --import description. Document
65819         --update.
65820         (func_import): Create temporary file in a temporary directory, if
65821         --dry-run is specified. Silence errors from 'grep' when there are no
65822         m4 files in $m4dir.
65823         (func_create_testdir): Silence errors from 'grep' when there are no
65824         m4 files in $m4dir.
65825         Reported by Karl Berry <karl@freefriends.org>.
65826
65827 2006-04-20  Bruno Haible  <bruno@clisp.org>
65828
65829         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65830         one argument, so that the code will be portable to Autoconf 2.60.
65831         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65832         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65833         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65834
65835 2006-04-19  Derek Price  <derek@ximbiot.com>
65836             Eric Blake  <ebb9@byu.net>
65837
65838         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65839         rather than "/full/path.h".  Update comment to match.  Shorten &
65840         generalize m4_translit call via AS_TR_CPP.
65841
65842 2006-04-19  Derek Price  <derek@ximbiot.com>
65843             Eric Blake  <ebb9@byu.net>
65844
65845         * lib/inttypes.h: Correct grammar in comment.
65846
65847 2006-04-18  Derek Price  <derek@ximbiot.com>
65848             Paul Eggert  <eggert@cs.ucla.edu>
65849
65850         * modules/inttypes: New file.
65851         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65852
65853 2006-04-18  Derek Price  <derek@ximbiot.com>
65854             Paul Eggert  <eggert@cs.ucla.edu>
65855
65856         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65857         New files.
65858
65859 2006-04-18  Derek Price  <derek@ximbiot.com>
65860             Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         * lib/inttypes.h: New file.
65863         * lib/strtoimax.c: Assume <inttypes.h>.
65864
65865 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65868         isn't mounted.  Problem reported by Kir Kolyshkin.
65869
65870 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65873         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65874         Derek R. Price.
65875         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65876         implementation.
65877
65878 2006-04-12  Eric Blake  <ebb9@byu.net>
65879
65880         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65881         is now done automatically by the corresponding Autoconf macro.
65882
65883 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65886         time_r.h.
65887
65888 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         Merge regex changes from libc, removing some of our
65891         POSIX-conformance changes that were rejected and redoing them in a
65892         less-intrusive way.
65893
65894         * lib/regcomp.c (re_compile_internal, init_dfa):
65895         Length arg is now size_t, not Idx.  All uses changed.
65896         (peek_token): Forward decl now says internal_function.
65897         (__re_error_msgid, __re_error_msgid_idx):
65898         Now static rather than extern with attribute_hidden.
65899         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65900         For some reason libc prefers K&R style defns for external functions.
65901         (regerror) [!defined _LIBC]: Likewise.
65902         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65903         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65904         (build_range_exp, build_collating_symbol):
65905         Use K&R-style defn.
65906         (re_compile_fastmap): Use '\0' to memset, not 0.
65907         (utf8_sb_map): Make the calculations more obvious.
65908         (init_dfa, parse_bracket_exp, build_charclass_op):
65909         Call calloc and cast result, as glibc does.
65910         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65911         (build_range_exp, build_collating_symbol):
65912         Now internal functions.
65913
65914         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65915
65916         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65917         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65918         Don't depend on VMS; depend on __VMS instead, for POSIX
65919         namespace cleanness.
65920         (regoff_t): Define to ssize_t, not long int.
65921
65922         Remove the REG_ macros named below.  Instead, make the old names
65923         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65924         __USE_GNU_REGEX.
65925         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65926         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65927         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65928         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65929         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65930         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65931         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65932         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65933         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65934         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65935         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65936         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65937         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65938         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65939         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65940         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65941         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65942         (REG_NREGS):
65943         Remove.  All uses replaced by the old RE_* names.
65944         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65945         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65946         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65947         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65948         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65949         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65950         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65951         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65952         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65953         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65954         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65955         Don't bother having these macros be independent of each others'
65956         values, since they no longer exist in the POSIX name space.
65957
65958         Rename the following member names back to their old names,
65959         unless !__USE_GNU_REGEX.  All uses changed back.
65960         (buffer): Renamed from re_buffer.
65961         (allocated): Renamed from re_allocated.
65962         (used): Renamed from re_used.
65963         (syntax): Renamed from re_syntax.
65964         (fastmap): Renamed from re_fastmap.
65965         (translate): Renamed from re_translate.
65966         (can_be_null): Renamed from re_can_be_null.
65967         (regs_allocated): Renamed from re_regs_allocated.
65968         (fastmap_accurate): Renamed from re_fastmap_accurate.
65969         (no_sub): Renamed from re_no_sub.
65970         (not_bol): Renamed from re_not_bol.
65971         (not_eol): Renamed from re_not_eol.
65972         (newline_anchor): Renamed from re_newline_anchor.
65973         (num_regs): Renamed from rm_num_regs.
65974         (start): Renamed from rm_start.
65975         (end): Renamed from rm_end.
65976
65977         (free_state): Move up a bit.
65978
65979         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65980         #define to be empty.
65981         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65982         when that is what is intended.
65983         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65984         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65985         (MAX): New macro.
65986         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65987         All uses changed back to re_malloc, etc.  It's now the caller's
65988         responsibility to check for overflow; all callers changed.
65989         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65990         (re_x2nrealloc): Remove.
65991         (free_state): Remove decl.
65992
65993         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65994         (re_set_registers, re_exec):
65995         Use K&R-style defn.
65996
65997         2006-01-31  Roland McGrath  <roland@redhat.com>
65998
65999         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66000         Reported by Mike Frysinger <vapier@gentoo.org>.
66001
66002         2006-01-15  Andreas Jaeger  <aj@suse.de>
66003
66004         [BZ #1950]
66005         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66006         build_wcs_upper_buffer change.
66007         (build_wcs_upper_buffer): Change return type.
66008
66009         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66010
66011         * lib/regex_internal.h: Include <stdint.h> if available.
66012
66013         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66014
66015         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66016
66017         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66018
66019         * lib/regcomp.c: Adjust for changed secondary hash function.
66020
66021         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66022
66023         * lib/regex.h: Pretty printing.
66024         Clean up namespace a bit.
66025
66026         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66027
66028         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66029         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66030
66031         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66032                     Ulrich Drepper  <drepper@redhat.com>
66033
66034         [BZ #1302]
66035         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66036         changed.
66037         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66038
66039         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66040
66041         [BZ #281]
66042         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66043         * lib/regcomp.c: Remove unnecessary uses of
66044         unsigned RE_TRANSLATE_TYPE.
66045         * lib/regex_internal.h: Likewise.
66046         * lib/regex_internal.c: Likewise.
66047         * lib/regexec.c: Likewise.
66048         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66049
66050         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66051
66052         * lib/regexec.c (find_recover_state): Remove unnecessary
66053         initialization.
66054         (transit_state_bkref): Make DFA a const pointer.
66055         (get_subexp): Likewise.
66056         (check_arrival): Likewise.
66057         (update_cur_sifted_state): Likewise.
66058         (re_search_internal): Likewise.
66059         (prune_impossible_nodes): Likewise.
66060         (acquire_init_state_context): Likewise.
66061         (proceed_next_node): Likewise.
66062         (set_regs): Likewise.
66063         (free_fail_stack_return): Likewise.
66064         (check_arrival_expand_ecl): Mark DFA parameter as const.
66065         (check_arrival_expand_ecl_sub): Likewise.
66066         (check_subexp_limits): Likewise.
66067         (sub_epsilon_src_nodes):  Likewise.
66068         (add_epsilon_src_nodes):  Likewise.
66069         (merge_state_array): Likewise.
66070         (update_regs): Likewise.
66071         (build_trtable): Likewise.
66072         (sift_states_backward): Mark MCTX parameter as const.
66073         (build_sifted_states): Likewise.
66074         (update_cur_sifted_state): Likewise.
66075         (sift_states_mkref): Likewise.
66076         (check_arrival_expand_ecl): Mark eclosure as const.
66077         (check_dst_limits_calc_pos_1): Likewise.
66078         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66079         pointer.
66080
66081         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66082
66083         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66084         (transit_state_sb): Likewise.
66085         (transit_state_mb): Likewise.
66086         (sift_states_iter_mb): Likewise.
66087         (check_arrival_add_next_nodes): Likewise.
66088         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66089         [_LIBC] (re_search_2_stub): Use mempcpy.
66090
66091         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66092         mbrtowc for very simple UTF-8 case.
66093
66094         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66095         a pointer-to-const.
66096         (re_acquire_state_context): Likewise.
66097         * lib/regex_internal.h: Adjust prototypes.
66098
66099         * lib/regex.c: Prevent using C++ compilers.
66100
66101         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66102         (re_acquire_state_context): Likewise.
66103
66104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66105
66106         * modules/regex (Depends-on): Add ssize_t.
66107
66108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66109
66110         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66111         translation table.
66112
66113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66116
66117 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66118             Bruno Haible  <bruno@clisp.org>
66119
66120         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66121         <sys/types.h> and <inttypes.h>.
66122
66123 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66124
66125         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66126         `__error_t_defined', so argp.h will not typedef the former.
66127
66128 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66129
66130         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66131         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66132         glibc names.  Even if glibc is changed to conform to POSIX, the
66133         traditional names will be available anyway, since regex depends on
66134         the extensions module.  Also, fix a longstanding typo in the
66135         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66136         reported by Emanuele Giaquinta.  Also, change sense of cached
66137         variable, so that the message makes sense.
66138
66139 2006-03-24  Simon Josefsson  <jas@extundo.com>
66140
66141         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66142         including some doc fixes.
66143         (base64_encode_alloc): Fix +1 bug on allocation failures.
66144
66145 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66146
66147         * lib/base64.c (base64_encode): Do not read past end of array with
66148         unsanitized input on systems with CHAR_BIT > 8.
66149
66150 2006-03-24  Eric Blake  <ebb9@byu.net>
66151
66152         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66153
66154 2006-03-22  Karl Berry  <karl@gnu.org>
66155
66156         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66157         * config/srclistvars.sh (COREUTILS): new var.
66158
66159 2006-03-17  Jim Meyering  <jim@meyering.net>
66160
66161         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66162         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66163
66164 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66167         no longer needs it.  Instead, check that regoff_t is as least
66168         as wide as ptrdiff_t.
66169
66170         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66171         so that our regex.h stays compatible with the installed regex.
66172         This is helpful for installers who configure --without-included-regex.
66173         Problem reported by Emanuele Giaquinta.
66174
66175 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66178         Typedef to long int, not to off_, as POSIX will likely change
66179         in that direction.
66180
66181 2006-03-15  Eric Blake  <ebb9@byu.net>
66182
66183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66184
66185 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66186
66187         * lib/argp-help.c (validate_uparams): Fix typo
66188         * lib/argp-parse.c (argp_default_options): Consistently begin help
66189         messages with a lowercase letter.
66190
66191 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66192
66193         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66194         overrun buffers and shouldn't be used (much as gets shouldn't be
66195         used).
66196         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66197
66198 2006-03-08  Simon Josefsson  <jas@extundo.com>
66199
66200         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66201         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66202
66203 2006-03-08  Simon Josefsson  <jas@extundo.com>
66204
66205         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66206         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66207
66208 2006-03-08  Simon Josefsson  <jas@extundo.com>
66209
66210         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66211         signal that configure disabled the device.
66212
66213 2006-03-08  Simon Josefsson  <jas@extundo.com>
66214
66215         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66216         languages.
66217
66218 2006-03-07  Simon Josefsson  <jas@extundo.com>
66219
66220         * modules/getopt (Depends-on): Add unistd.
66221
66222         * modules/unistd: New file.
66223
66224 2006-03-07  Simon Josefsson  <jas@extundo.com>
66225
66226         * modules/gc-random: New file.
66227
66228 2006-03-07  Simon Josefsson  <jas@extundo.com>
66229
66230         * m4/unistd_h.m4: New file.
66231
66232 2006-03-07  Simon Josefsson  <jas@extundo.com>
66233
66234         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66235         test to be side-effect free by storing the result in the cache
66236         variable gl_cv_lib_readline, and moving the assignment of
66237         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66238         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66239
66240 2006-03-07  Simon Josefsson  <jas@extundo.com>
66241
66242         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66243         error on missing devices (the functions will return an error).
66244
66245         * m4/gc.m4: Move random stuff to gc-random.m4
66246
66247 2006-03-07  Simon Josefsson  <jas@extundo.com>
66248
66249         * lib/unistd_.h: New file.
66250
66251 2006-03-07  Simon Josefsson  <jas@extundo.com>
66252
66253         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66254
66255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66258         Problem reported by Juan Manuel Guerrero.
66259
66260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66263         the unistd module.
66264         * lib/getlogin_r.c: Likewise.
66265         * lib/getlogin_r.h: Likewise.
66266         * lib/glob.c: Likewise.
66267         * lib/pagealign_alloc.c: Likewise.
66268         * lib/unistd_.h: Remove; no longer needed.
66269
66270 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66271
66272         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66273         Add unistd.
66274         * modules/c-stack (Depends-on): Add unistd.
66275         * modules/getlogin_r: Likewise.
66276         * modules/glob: Likewise.
66277         * modules/pagealign_alloc: Likewise.
66278         * modules/unistd (Files): Remove lib/unistd_.h.
66279         (EXTRA_DIST): Remove.
66280         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66281         need unistd_.h.
66282         (MOSTLYCLEANFILES): Remove unistd.h-t.
66283
66284 2006-03-03  Simon Josefsson  <jas@extundo.com>
66285
66286         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66287
66288 2006-03-03  Simon Josefsson  <jas@extundo.com>
66289
66290         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66291         libidn and bison.
66292
66293 2006-03-03  Simon Josefsson  <jas@extundo.com>
66294
66295         * build-aux/maint.mk: Add indent target.
66296
66297 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66298
66299         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66300         our replacement poll.h in any case, to avoid a differing
66301         declaration from a system header.  Seen on AIX.
66302
66303 2006-03-01  Simon Josefsson  <jas@extundo.com>
66304
66305         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66306         <kasal@ucw.cz>.
66307
66308 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * modules/gettime (Depends-on): Add extensions module.
66311         * modules/nanosleep (Depends-on): Likewise.
66312         * modules/settime (Depends-on): Likewise.
66313
66314 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66315
66316         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66317         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66318         pedantically.
66319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66320         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66321
66322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66323         not "==".  Reported by Ralf Wildenhues.
66324
66325 2006-03-01  Karl Berry  <karl@gnu.org>
66326
66327         * doc/Copyright/request-*: new files, synced from gnuorg.
66328
66329 2006-03-01  Karl Berry  <karl@gnu.org>
66330
66331         * config/srclist.txt (Copyright/*): new entries.
66332
66333 2006-02-28  Simon Josefsson  <jas@extundo.com>
66334
66335         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66336
66337 2006-02-27  Simon Josefsson  <jas@extundo.com>
66338
66339         * lib/base64.h: Indent #define's.  From Jim Meyering
66340         <jim@meyering.net>.
66341
66342 2006-02-27  Jim Meyering  <jim@meyering.net>
66343
66344         Revert the change of 2006-02-24, so these files can continue
66345         to be sync'd from gettext.
66346         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66347         of `config.h'.
66348
66349 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         * modules/intprops: New file.
66352         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66353         Add intprops.
66354         * modules/getloadavg (Files): Remove lib/intprops.h.
66355         (Depends-on): Add intprops.
66356         * modules/human: Likewise.
66357         * modules/inttostr: Likewise.
66358         * modules/openat: Likewise.
66359         * modules/sig2str: Likewise.
66360         * modules/userspec: Likewise.
66361         * modules/utimecmp: Likewise.
66362         * modules/xnanosleep: Likewise.
66363         * modules/xstrtol: Likewise.
66364
66365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66366
66367         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66368         * modules/lock-tests (TESTS): Use $(EXEEXT).
66369         * modules/tls-tests: Likewise.
66370         * modules/argp-tests: Likewise.
66371         (check_PROGRAMS): New var, replacing...
66372         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66373
66374 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66375
66376         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66377         `config.h'.
66378
66379 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66382
66383 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66384
66385         Sync from coreutils.
66386         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66387         gl_CHDIR_SAFER.
66388
66389 2006-02-22  Jim Meyering  <jim@meyering.net>
66390
66391         Sync from coreutils.
66392         * m4/chdir-safer.m4: New file.
66393
66394 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66397         AT_FDCWD exceeds INT_MAX.
66398         * lib/openat.h (AT_FDCWD): Likewise.
66399
66400 2006-02-17  Eric Blake  <address@hidden>
66401
66402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66403
66404 2006-02-16  Simon Josefsson  <jas@extundo.com>
66405
66406         * modules/getaddrinfo (Depends-on): Add sys_socket.
66407
66408 2006-02-15  Simon Josefsson  <jas@extundo.com>
66409
66410         * build-aux/maint.mk: Add dsyntax-check rule.
66411
66412 2006-02-15  Eric Blake  <ebb9@byu.net>
66413
66414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66415         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66416         'present but cannot compile' warnings on cygwin.
66417         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66418         use ws2tcpip.h if sys/socket.h works.
66419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66420         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66421
66422 2006-02-14  Simon Josefsson  <jas@extundo.com>
66423
66424         * modules/maintainer-makefile (Files): Rename.
66425
66426         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66427         and (the local) Makefile.cfg to maint-cfg.mk.
66428
66429         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66430         to the latter.
66431
66432         * modules/maintainer-makefile: New module.
66433
66434         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66435         severaly stripped to make it possible to build it up from scratch
66436         with reliable tests.
66437
66438         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66439         fixes to permit overriding the default actions when configure and
66440         makefile are not available.
66441
66442 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         Sync from coreutils.
66445         * modules/lstat (Depends-on): Don't depend on xalloc.
66446         (License): Change from GPL to LGPL, since this is now simply a
66447         replacement for a libc function.
66448
66449 2006-02-14  Jim Meyering  <jim@meyering.net>
66450
66451         Sync from coreutils.
66452
66453         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66454         failure on deficient systems, and simplify gnulib lgpl dependencies.
66455         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66456         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66457
66458         * lib/xalloc-die.c: Remove unused definition of N_.
66459
66460 2006-02-14  Jim Meyering  <jim@meyering.net>
66461
66462         Sync from coreutils.
66463         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66464         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66465         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66466         double-quote uses of that variable, to accommodate the rare case in
66467         which getmntent is available in none of the libraries checked.  This
66468         happens at least on FreeBSD 5.0.
66469
66470 2006-02-13  Simon Josefsson  <jas@extundo.com>
66471
66472         * gnulib-tool (Usage): Fix --import, from
66473         karl@freefriends.org (Karl Berry).
66474
66475 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66476
66477         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66478
66479 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66480
66481         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66482         "autoupdate" on 2005-12-12.
66483
66484 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * modules/closeout (Depends-on): Remove atexit.
66487
66488 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66491         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66492
66493 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66496         __EXTENSIONS__ if this causes compilation to fail.  Problem
66497         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66498         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66499
66500 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66501
66502         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66503         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66505         All uses changed.
66506
66507 2006-01-26  Simon Josefsson  <jas@extundo.com>
66508
66509         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66510         prototype is visible on mingw32.
66511
66512         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66513         for mingw32.
66514
66515         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66516         mingw32).
66517
66518 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66519
66520         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66521         attempt to open for write; this always fails, at least on POSIX
66522         hosts.  This reinstates the 2006-01-09 change, which was
66523         inadvertently removed.
66524
66525 2006-01-26  Bruno Haible  <bruno@clisp.org>
66526
66527         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66528         Reported by Paul Eggert.
66529
66530 2006-01-26  Bruno Haible  <bruno@clisp.org>
66531             Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * lib/stdbool_.h (_Bool)
66534         [(! (defined __cplusplus || defined __BEOS__)
66535           && !defined __GNUC__
66536           && !(defined __HP_cc || defined __xlc__
66537                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66538                || defined __sgi))]:
66539         #define to signed char in these cases too; this simplifies
66540         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66541         etc., separately) and makes it more conservative.
66542
66543 2006-01-25  Simon Josefsson  <jas@extundo.com>
66544
66545         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66546         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66547         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66548
66549 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66550
66551         * lib/argp-namefrob.h: Bugfix. Remove stray #
66552
66553 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66556         so that we test the test.
66557         Check for yet another HP-UX cc bug involving *bool |= bool.
66558
66559 2006-01-25  Karl Berry  <karl@gnu.org>
66560
66561         * config/srclist.txt (vasnprintf.c): sync lost.
66562
66563 2006-01-25  Jim Meyering  <jim@meyering.net>
66564
66565         Sync from the stable (b5) branch of coreutils:
66566
66567         * lib/fts.c (fts_children): Don't let close() clobber errno from
66568         failed fchdir().
66569
66570         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66571         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66572         a dangling symlink.  That can also happen at least for ELOOP.
66573         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66574         FYI, this bug predates the inclusion of fts.c in coreutils.
66575
66576         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66577         in their own block, so pre-c99 compilers don't object.
66578
66579         Avoid the double-free (first in fts_read, second in fts_close) that
66580         would occur when an `active' directory is made inaccessible (e.g.,
66581         via chmod a-x) during a traversal.
66582         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66583         before returning.  Reproduce this failure by
66584         mkdir -p a/b; cd a; chmod a-x . b
66585         Reported by Stavros Passas.
66586
66587 2006-01-25  Jim Meyering  <jim@meyering.net>
66588
66589         * lib/fileblocks.c: Remove more useless parentheses.
66590         * lib/readutmp.h: Likewise.
66591
66592 2006-01-25  Bruno Haible  <bruno@clisp.org>
66593
66594         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66595         warnings.
66596         Reported by Paul Eggert.
66597
66598 2006-01-25  Bruno Haible  <bruno@clisp.org>
66599
66600         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66601         rid of a trap command. For Solaris sh.
66602         Reported by Mark D. Baushke <mdb@gnu.org>.
66603
66604 2006-01-24  Simon Josefsson  <jas@extundo.com>
66605
66606         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66607         Bruno.
66608
66609 2006-01-24  Karl Berry  <karl@gnu.org>
66610
66611         * config/srclist.txt (argp-namefrob.h): sync lost.
66612
66613 2006-01-24  Jim Meyering  <jim@meyering.net>
66614
66615         * modules/openat (Files): Add lib/intprops.h.
66616         From Mark D. Baushke.
66617
66618 2006-01-24  Jim Meyering  <jim@meyering.net>
66619
66620         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66621         Reported by Mark D. Baushke.
66622
66623 2006-01-24  Jim Meyering  <jim@meyering.net>
66624
66625         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66626
66627 2006-01-24  Bruno Haible  <bruno@clisp.org>
66628
66629         * modules/strnlen (Maintainer): Change from glibc to all.
66630
66631 2006-01-24  Bruno Haible  <bruno@clisp.org>
66632
66633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66634         Patch by Paul Eggert.
66635
66636 2006-01-24  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66639         already has it.
66640         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66641         2005-11-26.
66642
66643         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66644         'signed char' to avoid problems with the built-in _Bool type.
66645         Reported by Paul Eggert on 2005-11-26.
66646
66647 2006-01-24  Bruno Haible  <bruno@clisp.org>
66648
66649         * gnulib-tool (func_import): Avoid constructing complicated sed
66650         expressions inside backquote.
66651         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66652
66653 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66654
66655         These changes imported from libc.
66656         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66657         test and two separate function calls.
66658         * lib/strndup.c (__strndup): Add libc_hidden_def.
66659
66660 2006-01-23  Simon Josefsson  <jas@extundo.com>
66661
66662         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66663         Remove the test_*_SOURCES variable: automake infers it by default.
66664         * modules/tls-tests: Likewise.
66665
66666 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         Work around porting bugs reported by Dieter in
66669         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66670         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66671         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66672         Include "getopt.h" first, to check interface.
66673         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66674         !HAVE_DECL_GETENV.
66675         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66676         (__strndup): Revert to K&R-style function dfns, the glibc style.
66677         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66678         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66679         Include strnlen.h first, to get prototype properly.
66680         (strnlen): Renamed from __strnlen.
66681         Remove weak alias.
66682
66683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66686
66687 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * config/srclist.txt: Adjust to reflect glibc reorganization.
66690         This affects only comments.
66691
66692 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66693
66694          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66695          Reported by Bruce Korb <bkorb@gnu.org>.
66696
66697 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66700         to pacify gcc -Wswitch-default.
66701
66702 2006-01-22  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66705         temporary buffer for sprintf, take into account the precision also
66706         for 'd', 'i', 'u', 'o', 'x', 'X'.
66707
66708 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66709
66710         * modules/argp-tests: New module
66711         * tests/test-argp.c: New file
66712         * tests/test-argp-2.sh: New file
66713
66714 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66715
66716         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66717         (__argp_base_name): Removed
66718         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66719         typo.
66720         (__argp_base_name): Provide macro definition or extern declaration
66721         depending on the configuration
66722
66723 2006-01-20  Simon Josefsson  <jas@extundo.com>
66724
66725         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66726
66727 2006-01-20  Simon Josefsson  <jas@extundo.com>
66728
66729         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66730
66731 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66734         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66735         Suggested by Bruno Haible.
66736
66737 2006-01-20  Karl Berry  <karl@gnu.org>
66738
66739         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66740         until changes propagate, I guess.
66741
66742 2006-01-19  Simon Josefsson  <jas@extundo.com>
66743
66744         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66745
66746 2006-01-19  Simon Josefsson  <jas@extundo.com>
66747
66748         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66749
66750 2006-01-19  Simon Josefsson  <jas@extundo.com>
66751
66752         * gnulib-tool: Set check_PROGRAMS.
66753
66754         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66755         modules/des-tests, modules/gc-arcfour-tests,
66756         modules/gc-arctwo-tests, modules/gc-des-tests,
66757         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66758         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66759         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66760         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66761         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66762         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66763         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66764         test_*_SOURCES.
66765
66766 2006-01-18  Simon Josefsson  <jas@extundo.com>
66767
66768         * modules/socklen (Depends-on): Depend on sys_socket.
66769
66770 2006-01-18  Simon Josefsson  <jas@extundo.com>
66771
66772         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66773         modules/des-tests, modules/gc-arcfour-tests,
66774         modules/gc-arctwo-tests, modules/gc-des-tests,
66775         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66776         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66777         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66778         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66779         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66780         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66781         $(EXEEXT) to automake TESTS variable, for mingw32.
66782
66783 2006-01-17  Simon Josefsson  <jas@extundo.com>
66784
66785         * modules/socklen (Include): Need sys/socket.h.
66786
66787 2006-01-17  Bruno Haible  <bruno@clisp.org>
66788
66789         * modules/ssize_t (Include): Add <sys/types.h>.
66790
66791 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66794         it's not portable and it doesn't work with cross-compiles.
66795         Problem reported by Bruno Haible.  Fix missing-$ typo in
66796         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66797         -zignore from being used with Sun's C compiler.
66798
66799 2006-01-12  Simon Josefsson  <jas@extundo.com>
66800
66801         * lib/base64.c: Fix warning, reported by Bruno Haible
66802         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66803
66804 2006-01-12  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/ldd: New file.
66807         * build-aux/ldd.sh.in: New file.
66808         * MODULES.html.sh (Support for building libraries and executables): Add
66809         ldd.
66810
66811 2006-01-12  Bruno Haible  <bruno@clisp.org>
66812
66813         * m4/ldd.m4: New file.
66814
66815 2006-01-12  Bruno Haible  <bruno@clisp.org>
66816
66817         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66818         endless loop while replacing $auxdir with build-aux.
66819
66820 2006-01-11  Simon Josefsson  <jas@extundo.com>
66821
66822         * lib/stdint_.h (SIZE_MAX): Add missing (.
66823
66824 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         Sync from coreutils.
66827         * lib/md5.c: Fix commentary typos.
66828         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66829         * lib/md5.h (__attribute__): Remove; unused.
66830         * lib/sha1.c: Fix commentary to match md5 better.
66831         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66832         so that we don't need to worry about alignment.  All uses changed.
66833         This merges the 2005-10-28 md5 change into sha1.
66834
66835 2006-01-11  Jim Meyering  <jim@meyering.net>
66836
66837         Sync from coreutils.
66838         * lib/md5.c (OP): Fix spacing.
66839
66840 2006-01-11  Bruno Haible  <bruno@clisp.org>
66841
66842         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66843         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66844         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66845
66846 2006-01-11  Bruno Haible  <bruno@clisp.org>
66847
66848         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66849         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66850         the "early" section as well.
66851
66852 2006-01-11  Bruno Haible  <bruno@clisp.org>
66853
66854         Avoid "ar: no archive members specified" error on MacOS X.
66855         * gnulib-tool (func_modules_add_dummy): New function.
66856         (func_import, func_create_testdir): Invoke it.
66857
66858 2006-01-11  Bruno Haible  <bruno@clisp.org>
66859
66860         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66861         with $auxdir in AC_CONFIG_FILES statements.
66862
66863 2006-01-11  Bruno Haible  <bruno@clisp.org>
66864
66865         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66866         Initialize also noinst_HEADERS to empty.
66867
66868 2006-01-11  Bruno Haible  <bruno@clisp.org>
66869
66870         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66871         variables.
66872         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66873         autoreconf.
66874
66875 2006-01-11  Bruno Haible  <bruno@clisp.org>
66876
66877         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66878         overridable by the user.
66879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66880
66881 2006-01-10  Simon Josefsson  <jas@extundo.com>
66882
66883         * modules/sys_socket: New file.
66884
66885 2006-01-10  Simon Josefsson  <jas@extundo.com>
66886
66887         * m4/sys_socket_h.m4: New file.
66888
66889 2006-01-10  Simon Josefsson  <jas@extundo.com>
66890
66891         * lib/socket_.h: New file.
66892
66893 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * modules/readutmp (Maintainer): Add myself.
66896
66897 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66900         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66901         People who are still concerned with buggy memcmp implementations
66902         can invoke gl_FUNC_MEMCMP themselves.
66903
66904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * lib/regex_internal.h (BITSET_WORD_BITS):
66907         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66908         preprocessor mishandles large unsigned values as if they were signed.
66909         Problem reported by Claudio Fontana in
66910         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66911
66912 2006-01-10  Jim Meyering  <jim@meyering.net>
66913
66914         Avoid the double-free (first in fts_read, second in fts_close) that
66915         would occur when an `active' directory is made inaccessible (e.g.,
66916         via chmod a-x) during a traversal.
66917         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66918         before returning.  Reproduce this failure by
66919         mkdir -p a/b; cd a; chmod a-x . b
66920         Reported by Stavros Passas.
66921
66922         Sync from coreutils.
66923         * lib/sha1.c: Tweak grammar in a comment.
66924
66925 2006-01-10  Jim Meyering  <jim@meyering.net>
66926
66927         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66928         Patch by Joerg Sonnenberger.
66929
66930 2006-01-10  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/readutmp: Depend on module free.
66933         * modules/strtok_r: Depend on module restrict.
66934
66935 2006-01-10  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/gettext (configure.ac): Add an invocation of
66938         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66939
66940 2006-01-10  Bruno Haible  <bruno@clisp.org>
66941
66942         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66943         Reported by Werner Lemberg <wl@gnu.org>.
66944
66945 2006-01-10  Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/localcharset.c: Update from GNU gettext.
66948
66949 2006-01-10  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/argp.h (__const): Remove macro. Use const instead.
66952         * lib/argp-fmtstream.h (__const): Likewise.
66953         * lib/glob_.h (__const): Remove macro.
66954         * lib/glob-libc.h: Use const instead of __const.
66955
66956 2006-01-10  Bruno Haible  <bruno@clisp.org>
66957
66958         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66959         variable.
66960         Needed to avoid an automake error regarding the 'gettext' module.
66961
66962 2006-01-09  Simon Josefsson  <jas@extundo.com>
66963
66964         * modules/inet_ntop (Depends-on): Add restrict.
66965
66966 2006-01-09  Simon Josefsson  <jas@extundo.com>
66967
66968         * modules/gc-rijndael-tests (License): Put under LGPL.
66969
66970         * modules/gc-des-tests (License): Likewise.
66971
66972         * modules/gc-arcfour-tests (License): Likewise.
66973
66974         * modules/gc-arctwo-tests (License): Likewise.
66975
66976         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66977
66978         * modules/gc-hmac-sha1-tests (Files): Likewise.
66979
66980         * modules/gc-hmac-md5-tests (License): Likewise.
66981
66982         * modules/gc-sha1-tests (License): Likewise.
66983
66984         * modules/gc-md5-tests (License): Likewise.
66985
66986         * modules/gc-md4-tests (License): Likewise.
66987
66988         * modules/gc-md2-tests (License): Likewise.
66989
66990         * modules/gc-tests (License): Likewise.
66991
66992         * modules/des-tests (License): Likewise.
66993
66994         * modules/md4-tests (License): Likewise.
66995
66996         * modules/md2-tests (License): Likewise.
66997
66998 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         Sync from coreutils:
67001
67002         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67003         * modules/lib-ignore: New file.
67004         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67005         chdir-safer.m4, lchmod.m4.
67006         * modules/openat: Add mkdirat.c, openat-priv.h.
67007
67008 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         Sync from coreutils.
67011         * m4/lib-ignore.m4: New file.
67012         * m4/lchmod.m4: New file.
67013
67014 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         Sync from coreutils.
67017         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67018         for write access: POSIX says that must fail.
67019         * lib/fts.c (diropen): Likewise.
67020         * lib/save-cwd.c (save_cwd): Likewise.
67021         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67022         well, for minor improvements on hosts that lack O_DIRECTORY.
67023         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67024         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67025         Fall back on chown if open failed with EACCES.
67026
67027         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67028         Report an error at compile-time if only a 1-second nominal clock
67029         resolution is found.
67030
67031         * lib/lchmod.h: New file.
67032         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67033         (make_dir_parents): Use lchown rather than chown, and
67034         lchmod rather than chmod.
67035
67036         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67037         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67038         "proc" reported by n0dalus.
67039
67040         * lib/mountlist.c: Include <limits.h>.
67041         (dev_from_mount_options)
67042         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67043         New function.  It no longer assumes "dev=" has the System V meaning
67044         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67045         (read_file_system_list)
67046         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67047         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67048         dev= in that case.
67049
67050         * lib/posixtm.h (PDS_PRE_2000): New macro.
67051         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67052         allow_century.  All usages changed.  Reject dates outside the range
67053         1969-1999 if PDS_PRE_2000 is used.
67054
67055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         Sync from coreutils.
67058         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67059         (Time of day items): Mention the possibility of leap seconds.
67060         Problem reported by Dr. David Alan Gilbert.
67061
67062 2006-01-09  Jim Meyering  <jim@meyering.net>
67063
67064         Sync from coreutils.
67065
67066         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67067
67068         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67069
67070         * lib/modechange.c (mode_compile): Reject an invalid mode string
67071         that starts with an octal digit.  From Andreas Gruenbacher.
67072
67073         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67074         and dup to open_safer and dup_safer, respectively.
67075         (openat_permissive): Fix typo in comment.
67076
67077         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67078         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67079         (_): Remove; no longer needed.
67080         (openat): Renamed from rpl_openat; no need for rpl_openat
67081         since openat.h renames openat for us.
67082         Replace most of the body with a call to openat_permissive,
67083         to avoid duplicate code.
67084         Port to (probably hypothetical) environments were mode_t is
67085         wider than int.
67086         (openat_permissive): Require mode arg, so that we can check
67087         types better.  Put it just after flags.  Change cwd failure
67088         indicator from pointer-to-bool to pointer-to-errno-value.
67089         All callers changed.
67090         Invoke openat_save_fail and/or openat_restore_fail if
67091         cwd_errno is null, so that openat can call us.
67092         (openat_permissive, fdopendir, fstatat, unlinkat):
67093         Simplify errno handling to avoid some duplicate code,
67094         as it's OK to set errno on success.
67095         * lib/openat.h: Revamp code so that function macros depend on
67096         __OPENAT_PREFIX only, not also on AT_FDCWD.
67097         (openat_ro): Remove.  Caller changed to use openat_permissive.
67098         (openat_permissive): Now a macro, if not a function.
67099         (openat_restore_fail, openat_save_fail): Now always functions,
67100         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67101
67102         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67103         and openat.c.
67104         * lib/mkdirat.c: Include openat-priv.h.
67105         Remove definitions of macros defined therein.
67106         * lib/openat.c: Likewise.
67107
67108         * lib/mkdirat.c (mkdirat): New file and function.
67109         * lib/openat.h (mkdirat): Declare.
67110
67111         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67112
67113         * lib/openat.h (openat_permissive): Declare.
67114         (openat_ro): Define.
67115
67116         * lib/openat.c (EXPECTED_ERRNO): New macro.
67117         (openat_permissive): New function -- used in remove.c rewrite.
67118         (all functions): Set errno just before returning, only if there
67119         was an actual failure.
67120         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67121
67122         Emulate openat-family functions using Linux's procfs, if possible.
67123         Idea and some code based on Ulrich Drepper's glibc changes.
67124
67125         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67126         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67127         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67128         before falling back on save_cwd and restore_cwd.
67129         (fdopendir, fstatat, unlinkat): Likewise.
67130
67131         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67132         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67133
67134         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67135         as second argument to va_arg.  Otherwise, some versions of gcc
67136         warn that `if this code is reached, the program will abort'.
67137
67138 2006-01-09  Jim Meyering  <jim@meyering.net>
67139
67140         Sync from coreutils.
67141         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67142         Require openat-priv.h.
67143
67144 2006-01-09  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/strnlen (Include): Use strnlen.h.
67147
67148 2006-01-09  Bruno Haible  <bruno@clisp.org>
67149
67150         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67151
67152 2006-01-09  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/sysexit_.h (EX_OK): New macro.
67155         Suggested by Martin Lambers <marlam@marlam.de>.
67156
67157 2006-01-09  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67160         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67161
67162 2006-01-09  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67165         numbers.
67166
67167 2006-01-09  Bruno Haible  <bruno@clisp.org>
67168
67169         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67170         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67171         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67172         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67173
67174 2006-01-09  Bruno Haible  <bruno@clisp.org>
67175
67176         * build-aux/javacomp.sh.in: New file, moved from lib/.
67177         * modules/javacomp-script (Files): Update.
67178         (configure.ac): Add AC_CONFIG_FILES invocation.
67179         (EXTRA_DIST): Remove variable.
67180
67181         * build-aux/javaexec.sh.in: New file, moved from lib/.
67182         * modules/javaexec (Files): Update.
67183         (configure.ac): Add AC_CONFIG_FILES invocation.
67184         (EXTRA_DIST): Remove javaexec.sh.in.
67185
67186         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67187         * modules/csharpcomp-script (Files): Update.
67188         (configure.ac): Add AC_CONFIG_FILES invocation.
67189         (EXTRA_DIST): Remove variable.
67190
67191         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67192         * modules/csharpexec (Files): Update.
67193         (configure.ac): Add AC_CONFIG_FILES invocation.
67194         (EXTRA_DIST): Remove csharpexec.sh.in.
67195
67196 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67197
67198         Sync from coreutils.
67199
67200         Add POSIX ACL support
67201         * lib/acl.h (copy_acl, set_acl): Add declarations.
67202         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67203         systems other than Linux.
67204         (chmod_or_fchmod): New function: use fchmod when possible,
67205         and chmod otherwise.
67206         (file_has_acl): Add a POSIX ACL implementation, with a
67207         Linux-specific subcase.
67208         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67209         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67210         acls are unsupported.
67211         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67212         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67213         are unsupported.
67214
67215 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67216
67217         Sync from coreutils.
67218         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67219
67220 2006-01-07  Bruno Haible  <bruno@clisp.org>
67221
67222         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67223         gl_EARLY.
67224
67225 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67226
67227         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67228         Problem reported for Mingw by Mark Junker.
67229
67230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * README: Gnulib normally doesn't generate a tarball.
67233
67234 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67237         long int, not int, for nanosecond counts, so that people who are
67238         used to POSIX struct timespec won't be surprised.  Reported by Jim
67239         Meyering.
67240
67241 2005-12-28  Bruno Haible  <bruno@clisp.org>
67242
67243         * build-aux/config.rpath: Update from GNU gettext.
67244
67245 2005-12-16  Jim Meyering  <jim@meyering.net>
67246
67247         * modules/fprintftime: New module.
67248         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67249
67250 2005-12-16  Jim Meyering  <jim@meyering.net>
67251
67252         * m4/fprintftime.m4: New file.
67253
67254 2005-12-16  Jim Meyering  <jim@meyering.net>
67255
67256         * lib/fprintftime.c, lib/fprintftime.h: New files.
67257
67258 2005-12-15  Simon Josefsson  <jas@extundo.com>
67259
67260         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67261         new m4/socklen.m4.
67262
67263 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67264
67265         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67266         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67267
67268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67269
67270         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67271         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67272         struct uparams is valid. Fall back to the default values if it is
67273         not.
67274
67275 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67276
67277         * modules/argp (Files): Add argp-pin.c
67278         (Depends-on): dirname
67279         (lib_SOURCES): Add argp-pin.c
67280
67281 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67282
67283         * m4/argp.m4:  Check if program_invocation_name and
67284         program_invocation_short_name are declared and define appropriate
67285         macros if they are not.
67286
67287 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67288
67289         * lib/argp-help.c (__argp_base_name): New function
67290         (__argp_short_program_name): Rewrite using __argp_base_name
67291         * lib/argp-namefrob.h: Define program_invocation_name and
67292         program_invocation_short_name if requested
67293         (__argp_base_name): Add prototype
67294         * lib/argp-parse.c (argp_def): Use gettext wrappers
67295         (argp_default_parser): Use __argp_base_name
67296         * lib/argp-pin.c: New file. Defines program_invocation_name and
67297         program_invocation_short_name on systems that lack them.
67298
67299 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67302         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67303         porting problem reported by Georg Schwarz in
67304         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67305
67306 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67307
67308         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67309         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67310         porting problem reported by Georg Schwarz in
67311         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67312
67313 2005-12-05  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67316         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67317         Reported by Mark Junker <mjscod@gmx.de>.
67318
67319 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67322         Use implementation from Albert Chin, with some
67323         comments/corrections by Stepan Kasal and myself.
67324
67325 2005-12-02  Bruno Haible  <bruno@clisp.org>
67326
67327         * gnulib-tool (func_import): Accept GPLed build tool modules when
67328         --lgpl is given.
67329         * modules/csharpcomp-script: New file.
67330         * modules/csharpcomp: Depend on it.
67331         * modules/javacomp-script: New file.
67332         * modules/javacomp: Depend on it.
67333         Suggested by Simon Josefsson.
67334
67335 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67336
67337         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67338         statement, to work around an HP-UX 10.20 compiler bug reported by
67339         Peter O'Gorman.
67340
67341 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * modules/savedir (Depends-on): Add openat.
67344
67345 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67348         (uintmax_t) [defined uintmax_t]: Do not declare.
67349         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67350         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67351         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67352         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67353         sake of portability to weird hosts that C allows (though we don't
67354         know of any practical examples).
67355
67356         * lib/savedir.h (fdsavedir): New decl.
67357         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67358         contains most of the former guts of savedir.
67359         (savedir): Use savedirstream.
67360         Include "openat.h".
67361
67362 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * modules/obstack (Files): Add m4/ulonglong.m4.
67365         Problem reported by Davide Angelocola.
67366
67367 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67368
67369         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67370         coreutils no longer futzes with rounding modes.
67371
67372 2005-11-14  Jim Meyering  <jim@meyering.net>
67373
67374         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67375         replacement of mkstemp.
67376
67377 2005-11-10  Simon Josefsson  <jas@extundo.com>
67378
67379         * lib/readline.c: Remove EOL.
67380
67381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * modules/gethrxtime (Depends-on): Add gettime.
67384
67385 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67388         or gettimeofday; no longer needed.
67389
67390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67391
67392         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67393         time business.
67394         (gethrxtime) [! (HAVE_NANOUPTIME
67395         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67396         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67397         our own approximation.
67398
67399 2005-11-08  Eric Blake  <ebb9@byu.net>
67400
67401         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67402
67403 2005-11-08  Eric Blake  <ebb9@byu.net>
67404
67405         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67406
67407 2005-11-04  Bruno Haible  <bruno@clisp.org>
67408
67409         * gnulib-tool: Implement --update mode.
67410
67411 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         Fix porting problem reported by Theodoros V. Kalamatianos.
67414         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67415         Don't assume that futimes failing means we must fail.
67416
67417 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67420         variables to suggest the intended function of the PATH_MAX check.
67421
67422 2005-10-30  Kean Johnston  <jkj@sco.com>
67423
67424         Trivial changes to support SCO systems.
67425         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67426         as PATH_MAX.
67427         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67428         where __ptr is null when no I/O is pending.
67429
67430 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67433         leave errno alone.  Problem reported by Dmitry V. Levin.
67434
67435 2005-10-28  Simon Josefsson  <jas@extundo.com>
67436
67437         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67438         Test more.
67439
67440         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67441
67442         * modules/md2, modules/md2-tests: New files.
67443
67444 2005-10-28  Simon Josefsson  <jas@extundo.com>
67445
67446         * m4/inet_ntop.m4: More tests.
67447
67448         * m4/gc-md2.m4, md2.m4: New file.
67449
67450 2005-10-28  Simon Josefsson  <jas@extundo.com>
67451
67452         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67453         "restrict" keywords, as per POSIX.  Protect the function
67454         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67455         Don't use K&R prototypes.  Check the sprintf return values.
67456         Re-define EAFNOSUPPORT if not present.  Indent.
67457
67458         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67459         suggested by Bruno Haible <bruno@clisp.org>.
67460
67461         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67462
67463         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67464
67465         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67466         libgcrypt).
67467
67468         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67469
67470         * lib/md2.h, lib/md2.c: New files.
67471
67472 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67475         errno alone.  Problem reported by Frederic Jolliton.
67476
67477 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * modules/verify (License): Change from GPL to LGPL.  This is a
67480         tiny module and there are apparently near-equivalents that are
67481         under the BSD license.
67482
67483 2005-10-24  Simon Josefsson  <jas@extundo.com>
67484
67485         * modules/sha1: Relicense to LGPL.
67486
67487 2005-10-24  Simon Josefsson  <jas@extundo.com>
67488
67489         * lib/md4.h: Shrink buffer size, now that we changed the type.
67490
67491 2005-10-23  Simon Josefsson  <jas@extundo.com>
67492
67493         * gnulib-tool (func_import): Fix --tests-base.
67494
67495 2005-10-22  Simon Josefsson  <jas@extundo.com>
67496
67497         * modules/arcfour (Depends-on): Need stdint.
67498
67499 2005-10-22  Simon Josefsson  <jas@extundo.com>
67500
67501         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67502         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67503
67504 2005-10-22  Simon Josefsson  <jas@extundo.com>
67505
67506         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67507         suggested by Bruno Haible <bruno@clisp.org>.
67508
67509 2005-10-22  Simon Josefsson  <jas@extundo.com>
67510
67511         * lib/crc.h: Include stddef.h, for size_t.
67512
67513 2005-10-22  Simon Josefsson  <jas@extundo.com>
67514
67515         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67516         arcfour_context struct (simplify test vector testing in GNU
67517         Shishi).
67518
67519 2005-10-21  Simon Josefsson  <jas@extundo.com>
67520
67521         * modules/des, modules/des-tests: New files.
67522
67523         * modules/gc-des, modules/gc-des-tests: New files.
67524
67525         * tests/test-des.c, tests/test-gc-des.c: New file.
67526
67527 2005-10-21  Simon Josefsson  <jas@extundo.com>
67528
67529         * modules/arctwo, modules/arctwo-tests: New files.
67530
67531         * tests/test-arctwo.c: New file.
67532
67533         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67534
67535         * tests/test-gc-arctwo.c: New file.
67536
67537 2005-10-21  Simon Josefsson  <jas@extundo.com>
67538
67539         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67540         Bruno Haible <bruno@clisp.org>.
67541
67542         * m4/gc-des.m4: New file.
67543
67544 2005-10-21  Simon Josefsson  <jas@extundo.com>
67545
67546         * m4/arctwo.m4: New file.
67547
67548         * m4/gc-arctwo.m4: New file.
67549
67550 2005-10-21  Simon Josefsson  <jas@extundo.com>
67551
67552         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67553         block.
67554
67555 2005-10-21  Simon Josefsson  <jas@extundo.com>
67556
67557         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67558         <bruno@clisp.org>.
67559
67560         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67561
67562         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67563         Bruno Haible <bruno@clisp.org>.
67564
67565         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67566         <bruno@clisp.org>.
67567
67568 2005-10-21  Simon Josefsson  <jas@extundo.com>
67569
67570         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67571
67572 2005-10-21  Simon Josefsson  <jas@extundo.com>
67573
67574         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67575
67576 2005-10-21  Simon Josefsson  <jas@extundo.com>
67577
67578         * lib/des.h, lib/des.c: New files.
67579
67580         * lib/gc-gnulib.c: Support DES.c
67581
67582 2005-10-21  Simon Josefsson  <jas@extundo.com>
67583
67584         * lib/arctwo.h, lib/arctwo.c: New files.
67585
67586         * lib/gc-gnulib.c: Support ARCTWO.
67587
67588 2005-10-21  Simon Josefsson  <jas@extundo.com>
67589
67590         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67591         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67592
67593 2005-10-21  Simon Josefsson  <jas@extundo.com>
67594
67595         * gnulib-tool (func_import, func_create_testdir): Define automake
67596         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67597         Makefile.am snippet),
67598         suggested by Bruno Haible <bruno@clisp.org>.
67599
67600         * modules/gc (Makefile.am): Use it.
67601
67602 2005-10-21  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67605         patch.
67606
67607 2005-10-19  Simon Josefsson  <jas@extundo.com>
67608
67609         * tests/test-gc-rijndael.c: New file.
67610
67611         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67612
67613 2005-10-19  Simon Josefsson  <jas@extundo.com>
67614
67615         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67616         interface too.
67617
67618 2005-10-19  Simon Josefsson  <jas@extundo.com>
67619
67620         * tests/test-gc-arcfour.c: New file.
67621
67622         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67623
67624 2005-10-19  Simon Josefsson  <jas@extundo.com>
67625
67626         * modules/gc-md4, modules/gc-md4-tests: New file.
67627
67628         * tests/test-gc-md4.c: New file.
67629
67630 2005-10-19  Simon Josefsson  <jas@extundo.com>
67631
67632         * m4/gc-md4.m4: New file.
67633
67634 2005-10-19  Simon Josefsson  <jas@extundo.com>
67635
67636         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67637         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67638         <kasal@ucw.cz>.
67639
67640 2005-10-19  Simon Josefsson  <jas@extundo.com>
67641
67642         * m4/gc-arcfour.m4: New file.
67643
67644         * m4/gc-rijndael.m4: New file.
67645
67646 2005-10-19  Simon Josefsson  <jas@extundo.com>
67647
67648         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67649
67650 2005-10-19  Simon Josefsson  <jas@extundo.com>
67651
67652         * lib/gc-gnulib.c: Support ARCFOUR.
67653
67654 2005-10-19  Simon Josefsson  <jas@extundo.com>
67655
67656         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67657         support.
67658
67659         * lib/gc.h: Add ECB enum type.
67660
67661         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67662
67663 2005-10-18  Simon Josefsson  <jas@extundo.com>
67664
67665         * tests/test-md5.c: New file.
67666
67667         * modules/md5-tests: New file.
67668
67669 2005-10-18  Simon Josefsson  <jas@extundo.com>
67670
67671         * tests/test-md4.c: New file.
67672
67673         * modules/md4, modules/md4-tests: New files.
67674
67675 2005-10-18  Simon Josefsson  <jas@extundo.com>
67676
67677         * m4/md4.m4: New file.
67678
67679 2005-10-18  Simon Josefsson  <jas@extundo.com>
67680
67681         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67682
67683 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67684
67685         * gnulib-tool (func_create_testdir): Omit the second check whether
67686         BUILT_SOURCES in nonempty.
67687
67688 2005-10-17  Simon Josefsson  <jas@extundo.com>
67689
67690         * tests/test-rijndael.c: New file.
67691
67692 2005-10-17  Simon Josefsson  <jas@extundo.com>
67693
67694         * modules/sha1: Depend on stdint instead of md5.
67695
67696         * modules/md5: Depend on stdint, remove uint32_t.
67697
67698 2005-10-17  Simon Josefsson  <jas@extundo.com>
67699
67700         * modules/gc-sha1-tests: New file.
67701
67702         * tests/test-gc-sha1.c: New file.
67703
67704 2005-10-17  Simon Josefsson  <jas@extundo.com>
67705
67706         * m4/md5.m4: Remove call to uint32_t.m4.
67707
67708 2005-10-17  Simon Josefsson  <jas@extundo.com>
67709
67710         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67711
67712         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67713         md5.h.
67714
67715         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67716
67717         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67718
67719 2005-10-17  Simon Josefsson  <jas@extundo.com>
67720
67721         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67722
67723 2005-10-17  Simon Josefsson  <jas@extundo.com>
67724
67725         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67726
67727 2005-10-17  Simon Josefsson  <jas@extundo.com>
67728
67729         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67730
67731         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67732
67733 2005-10-17  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67736         that it can also be used in a test.
67737
67738 2005-10-16  Bruno Haible  <bruno@clisp.org>
67739
67740         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67741         TESTS_ENVIRONMENT, so that individual tests can augment it.
67742
67743         * gnulib-tool (func_create_testdir): Use an intermediate target for
67744         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67745         macros, like $(ALLOCA_H), which cannot be passed through the command
67746         line.
67747
67748 2005-10-15  Simon Josefsson  <jas@extundo.com>
67749
67750         * modules/rijndael-tests: New file.
67751
67752         * modules/rijndael: New file.
67753
67754 2005-10-15  Simon Josefsson  <jas@extundo.com>
67755
67756         * m4/rijndael.m4: New file.
67757
67758 2005-10-15  Simon Josefsson  <jas@extundo.com>
67759
67760         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67761
67762         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67763
67764 2005-10-14  Simon Josefsson  <jas@extundo.com>
67765
67766         * tests/test-arcfour.c: New file.
67767
67768         * modules/arcfour, modules/arcfour-tests: New files.
67769
67770 2005-10-14  Simon Josefsson  <jas@extundo.com>
67771
67772         * m4/arcfour.m4: New file.
67773
67774 2005-10-14  Simon Josefsson  <jas@extundo.com>
67775
67776         * lib/arcfour.h, lib/arcfour.c: New files.
67777
67778 2005-10-14  Roland McGrath  <roland@redhat.com>
67779
67780         Import from libc.  [BZ #1331]
67781         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67782         macro argument.
67783         Reported by Matej Vela <vela@debian.org>.
67784
67785 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67788         include <wchar.h>; no longer needed.
67789
67790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67793
67794 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67795         and  Ulrich Drepper  <drepper@redhat.com>
67796
67797         Import from libc.
67798         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67799         instead of inline stream orientation test and two separate
67800         function calls.  Pay no attention to USE_IN_LIBIO.
67801
67802 2005-10-13  Simon Josefsson  <jas@extundo.com>
67803
67804         * modules/gc-hmac-md5-tests: New file.
67805
67806         * tests/test-gc-hmac-sha1.c: New file.
67807
67808         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67809
67810         * modules/gc-hmac-md5-tests: New file.
67811
67812         * tests/test-gc-md5.c: New file.
67813
67814         * modules/gc-md5-tests: New file.
67815
67816 2005-10-13  Simon Josefsson  <jas@extundo.com>
67817
67818         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67819         Move memory allocation outside of loop.
67820
67821 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67824         intermediate directory is in a read-only file system.  Problem
67825         reported by Eric Blake.
67826
67827 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67828
67829         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67830
67831 2005-10-12  Simon Josefsson  <jas@extundo.com>
67832
67833         * tests/test-hmac-sha1.c: New file.
67834
67835         * modules/hmac-sha1-tests: New file.
67836
67837         * modules/hmac-sha1: New file.
67838
67839 2005-10-12  Simon Josefsson  <jas@extundo.com>
67840
67841         * modules/gc-sha1: New file.
67842
67843 2005-10-12  Simon Josefsson  <jas@extundo.com>
67844
67845         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67846
67847         * tests/test-gc-pbkdf2-sha1.c: New file.
67848
67849 2005-10-12  Simon Josefsson  <jas@extundo.com>
67850
67851         * modules/gc-md5, modules/gc-hmac-md5: New files.
67852
67853         * modules/gc (Files): Remove md5, memxor and hmac files.
67854
67855 2005-10-12  Simon Josefsson  <jas@extundo.com>
67856
67857         * m4/gc-pbkdf2-sha1.m4: New file.
67858
67859         * m4/gc-hmac-sha1.m4: New file.
67860
67861         * m4/gc-sha1: New file.
67862
67863         * m4/hmac-sha1.m4: New file.
67864
67865 2005-10-12  Simon Josefsson  <jas@extundo.com>
67866
67867         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67868
67869         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67870
67871 2005-10-12  Simon Josefsson  <jas@extundo.com>
67872
67873         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67874         suggested by Bruno Haible <bruno@clisp.org>.
67875
67876 2005-10-12  Simon Josefsson  <jas@extundo.com>
67877
67878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67879
67880 2005-10-12  Simon Josefsson  <jas@extundo.com>
67881
67882         * lib/gc-pbkdf2-sha1.c: New file.
67883
67884         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67885
67886 2005-10-12  Simon Josefsson  <jas@extundo.com>
67887
67888         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67889
67890         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67891
67892 2005-10-12  Simon Josefsson  <jas@extundo.com>
67893
67894         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67895         GC_USE_HMAC_MD5, respectively.
67896
67897         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67898         (gc_md5): Fix typo.
67899
67900         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67901
67902         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67903
67904         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67905
67906 2005-10-12  Bruno Haible  <bruno@clisp.org>
67907
67908         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67909         Reported by Stepan Kasal <kasal@ucw.cz>.
67910
67911 2005-10-11  Simon Josefsson  <jas@extundo.com>
67912
67913         * tests/test-crc.c: New file.
67914
67915         * modules/crc, modules/crc-tests: New files.
67916
67917 2005-10-11  Simon Josefsson  <jas@extundo.com>
67918
67919         * m4/crc.m4: New file.
67920
67921 2005-10-11  Simon Josefsson  <jas@extundo.com>
67922
67923         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67924
67925         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67926
67927         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67928
67929 2005-10-11  Simon Josefsson  <jas@extundo.com>
67930
67931         * lib/crc.h, lib/crc.c: New files.
67932
67933         * lib/gc.h (gc_hash_buffer): Add doc.
67934
67935 2005-10-11  Bruno Haible  <bruno@clisp.org>
67936
67937         * modules/c-strcasestr: New file.
67938         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67939
67940 2005-10-11  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/c-strcase: New file.
67943         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67944
67945 2005-10-11  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/strcasecmp.c: Include limits.h.
67948         (strcasecmp): Avoid integer overflow on exotic platforms.
67949         * lib/strncasecmp.c: Include limits.h.
67950         (strncasecmp): Avoid integer overflow on exotic platforms.
67951         Reported by Paul Eggert.
67952
67953 2005-10-11  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/c-strcasestr.h: New file, from GNU gettext.
67956         * lib/c-strcasestr.c: New file, from GNU gettext.
67957
67958 2005-10-11  Bruno Haible  <bruno@clisp.org>
67959
67960         * lib/c-strcase.h: New file, from GNU gettext.
67961         * lib/c-strcasecmp.c: New file, from GNU gettext.
67962         * lib/c-strncasecmp.c: New file, from GNU gettext.
67963
67964 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * modules/mempcpy (License): GPL -> LGPL.
67967         * modules/strchrnul (License): Likewise.
67968         * modules/sysexits (License): Likewise.
67969
67970 2005-10-08  Simon Josefsson  <jas@extundo.com>
67971
67972         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67973
67974 2005-10-07  Simon Josefsson  <jas@extundo.com>
67975
67976         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67977
67978 2005-10-06  Simon Josefsson  <jas@extundo.com>
67979
67980         * tests/test-hmac-md5.c: New file.
67981
67982         * modules/hmac-md5-tests: New file.
67983
67984         * modules/hmac-md5: New file.
67985
67986 2005-10-06  Simon Josefsson  <jas@extundo.com>
67987
67988         * m4/hmac-md5.m4: New file.
67989
67990         * m4/memxor.m4: Require gl_C_RESTRICT.
67991
67992 2005-10-06  Simon Josefsson  <jas@extundo.com>
67993
67994         * lib/memxor.c (memxor): Avoid casts and warnings.
67995
67996 2005-10-06  Simon Josefsson  <jas@extundo.com>
67997
67998         * lib/hmac-md5.c: New file.
67999
68000         * lib/hmac.h: New file.
68001
68002 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68003
68004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68005         promotes to int, not unsigned int, to catch the AIX 5.3
68006         compiler bug.
68007
68008 2005-10-05  Simon Josefsson  <jas@extundo.com>
68009
68010         * modules/memxor: New file.
68011
68012         * modules/iconv (Files): Move config.rpath to havelib, it is used
68013         there.
68014
68015         * modules/havelib (Files): Add config.rpath.
68016
68017 2005-10-05  Simon Josefsson  <jas@extundo.com>
68018
68019         * m4/memxor.m4: New file.
68020
68021 2005-10-05  Simon Josefsson  <jas@extundo.com>
68022
68023         * lib/memxor.c (memxor): Fix compiler error.
68024
68025         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68026         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68027
68028         * lib/memxor.h, lib/memxor.c: New files.
68029
68030         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68031         we assume all systems have it, suggested by Jim Meyering
68032         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68033         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68034         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68035         same reasons.
68036
68037 2005-10-05  Simon Josefsson  <jas@extundo.com>
68038
68039         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68040
68041 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68044         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68045         needed, since the source code now assumes these .h files.
68046
68047 2005-10-05  Derek Price  <derek@ximbiot.com>
68048
68049         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68050
68051 2005-10-05  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/stdint (License): Change to LGPL.
68054
68055 2005-10-04  Simon Josefsson  <jas@extundo.com>
68056
68057         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68058         D. Baushke" <mdb@gnu.org>.
68059
68060 2005-10-04  Bruno Haible  <bruno@clisp.org>
68061
68062         * lib/verify.h (verify_true): Provide alternative definition for C++.
68063
68064 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68067         (SSIZE_MAX): New macro, if not already defined.
68068         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68069         than 2 GiB.
68070
68071 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         Sync from coreutils.
68074         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68075         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68076         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68077         ULLONG_MAX doesn't work with 2.7.2.1.
68078
68079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68082         From Ben Pfaff.
68083
68084         * modules/exclude (Depends-on): Depend on verify.
68085         * modules/strtoimax (Depends-on): Likewise.
68086         * modules/utimecmp (Depends-on): Likewise.
68087
68088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * lib/exclude.c: Include verify.h.
68091         (verify): Remove.  All callers changed to use verify.h's version.
68092         * lib/strtoimax.c: Likewise.
68093         * lib/utimecmp.c: Likewis.e
68094
68095         Sync from coreutils.
68096         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68097         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68098         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68099         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68100         bother returning ENOSYS if settimeofday or stime fails; just let
68101         them return whatever errno they want to return.
68102         * lib/utimens.c: Include unistd.h, for dup2.
68103         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68104         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68105
68106 2005-10-02  Jim Meyering  <jim@meyering.net>
68107
68108         Sync from coreutils.
68109         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68110         from glibc-2.2.5 that fails for read-only files.
68111
68112 2005-10-02  Jim Meyering  <jim@meyering.net>
68113
68114         Sync from coreutils.
68115         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68116         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68117         `#if HAVE_CONFIG_H'.
68118         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68119         Remove AT_FDCWD test.
68120         Do not consume the fd unless successful.
68121         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68122         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68123         block, so that we don't even try to compile it if settimeofday is
68124         available.  This works around a compilation failure on OSF1 V5.1,
68125         due to stime requiring a `long int*' while tv_sec is `int'.
68126
68127 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68128
68129         Sync from coreutils.
68130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68131         against `yes', rather than just testing for nonempty.
68132
68133 2005-10-01  Simon Josefsson  <jas@extundo.com>
68134
68135         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68136         and Darwin.
68137
68138         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68139         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68140         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68141         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68142         Check if struct addrinfo is declared.
68143
68144 2005-10-01  Simon Josefsson  <jas@extundo.com>
68145
68146         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68147         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68148         AI_* and EAI_* definitions.  Protect function declarations.
68149
68150 2005-10-01  Jim Meyering  <jim@meyering.net>
68151
68152         Sync from coreutils.
68153
68154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68155         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68156         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68158         in the inet and nsl libraries.  Required on Solaris 5.7.
68159
68160 2005-10-01  Jim Meyering  <jim@meyering.net>
68161
68162         Sync from coreutils.
68163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68164         in the inet and nsl libraries.  Required on Solaris 5.7.
68165
68166 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68167
68168         * lib/getdelim.c (getdelim): Remove unused variables.
68169
68170 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68173         so that the code works even with ancient cpp.  Portability problem
68174         with GCC 2.7.2.1 reported by Thomas M.Ott.
68175
68176 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * modules/regex (Depends-on): Add strcase.
68179
68180         * modules/gethostname (Licence): Change from GPL to LGPL, since
68181         gethostname.c is a trivial implementation of a standard library
68182         function.
68183         * modules/poll (License): Change from GPL to LGPL, since it's
68184         derived from LGPL code.
68185
68186 2005-09-27  Jim Meyering  <jim@meyering.net>
68187
68188         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68189         HAVE_CONFIG_H.
68190
68191         * lib/intprops.h (signed_type_or_expr__): Define.
68192         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68193         for unsigned types.
68194
68195 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * lib/verify.h (verify_expr): Remove, replacing with:
68198         (verify_true): New macro that returns true instead of void.
68199         (verify_type__): Remove.
68200         (verify): Use verify_true rather than verify_type__.
68201
68202 2005-09-26  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68205         is necessary.
68206         (lib_SOURCES): Remove mbchar.c.
68207         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68208         (Files): Add m4/mbrtowc.m4.
68209         * modules/mbiter: Likewise.
68210         * modules/mbuiter: Likewise.
68211
68212 2005-09-26  Bruno Haible  <bruno@clisp.org>
68213
68214         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68215         compile mbchar.c if they are not both present.
68216         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68217         * m4/mbiter.m4 (gl_MBITER): Likewise.
68218         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68219         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68220         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68221
68222 2005-09-25  Jim Meyering  <jim@meyering.net>
68223
68224         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68225         also uses socklen_t.
68226
68227 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * lib/utimens.c (ENOSYS): Define if not already defined.
68230         (futimens): Support having a null PATH if the file descriptor
68231         is nonnegative.
68232
68233         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68234         Remove.
68235         (__attribute): Define to empty unless GCC 3.1 or later.
68236         This works around a core dump on OpenBSD 3.4, which has GCC
68237         2.95.3, which dumps core when given __attribute__(()).  It also
68238         simplifies other tests, since we really don't want to bother with
68239         worrying about which ancient version of GCC supported what.
68240         Original problem reported by Yoann Vandoorselaere, with part of
68241         the fix suggested by Derek Price.
68242
68243 2005-09-24  Jim Meyering  <jim@meyering.net>
68244
68245         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68246         so we can once again use a positive bitfield width of 1 -- now we
68247         don't have to explain why we were using a bitfield width of 2.
68248
68249 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68250
68251         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68252         and similarly for the other external symbols.  Problem reported
68253         by James Gallager.
68254
68255         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68256         bug reported by Jim Meyering.
68257
68258         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68260         not needed, since socklen is a prerequisite module.
68261
68262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68265         Problem reported by Eric Blake.
68266         (getaddrinfo): Initialize se so that it's not garbage.
68267         Redo internal storage allocation so that it doesn't make unportable
68268         assumptions about alignment.
68269         Fix a memory leak.
68270
68271         * lib/utimens.c (futimens): Use futimesat if available.
68272         Prefer it to futimes since it doesn't have the futimes bug.
68273
68274         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68275         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68276         Instead, declare a function that returns a pointer to an array,
68277         and use verify_type__ to declare the size of the array.
68278         Problem and germ of a solution reported by Bruno Haible.
68279         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68280         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68281
68282 2005-09-23  Jim Meyering  <jim@meyering.net>
68283
68284         Sync from coreutils.
68285         Correct build failure (socklen_t not defined) on at least
68286         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68288
68289 2005-09-23  Jim Meyering  <jim@meyering.net>
68290
68291         * modules/getaddrinfo (Depends-on): Add socklen.
68292
68293 2005-09-23  Bruno Haible  <bruno@clisp.org>
68294
68295         * tests/test-verify.c: New file.
68296
68297 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         Sync from coreutils.
68300
68301         * modules/argmatch (Depends-on): Add verify.
68302         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68303         unistd-safer.
68304         * modules/save-cwd (Depends-on): Likewise.
68305
68306         * modules/openat (Files): Add lib/openat-die.c.
68307         (Depends-on): Remove error, exitfail.
68308         Add dirname.
68309
68310         * modules/verify: New file.
68311         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68312         with "verify" module.
68313
68314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         Sync from coreutils.
68317
68318         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68319         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68320         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68321         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68322         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68323         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68324         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68325         Don't bother checking for string.h, stdlib.h, unistd.h.
68326         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68328         module's job.
68329         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68330         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68331
68332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68333         (gl_GETDATE): Use it.
68334
68335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68336
68337 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         Sync from coreutils.
68340
68341         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68342         stat-time.h.
68343         * lib/argmatch.h: Include verify.h
68344         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68345         (ARGMATCH_ASSERT): Remove; unused.
68346         * lib/canonicalize.c: Assume STDC_HEADERS.
68347         * lib/exclude.c: Include "strcase.h".
68348         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68349         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68350         and stdio-safer.h.
68351         (getusershell): Call fopen, not fopen_safer.
68352         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68353         Do not include unistd-safer.h.
68354         (save_cwd): Don't call fd_safer; no longer needed
68355         now that we include fcntl--.h.
68356
68357         * lib/getdate.y (relative_time): New type.
68358         (RELATIVE_TIME_0): New constant.
68359         (parser_control): Use relative_time instead of doing it ourselves.
68360         (%union): Add new relative_time rel member.
68361         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68362         Now typeless.
68363         (relunit, relunit_snumber): Now of type rel.
68364         (zone, rel, relunit, get_date): Adjust to above changes.
68365
68366         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68367         Do not include unistd-safer.h.
68368         (getloadavg): Don't call fd_safer; no longer needed
68369         now that we include fcntl--.h.
68370
68371         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68372         (make_dir_parents): Treat ENOSYS like EEXIST.
68373
68374         Improve quality of diagnostics on restore_cwd failure.
68375         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68376         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68377         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68378         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68379         each time through the loop.  Do not diagnose restore_cwd failure;
68380         that is the caller's job (and perhaps the caller does not care).
68381
68382         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68383         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68384         If the file already exists but is not a directory, don't bother
68385         to try to make its parents.
68386         Close potential file descriptor leak if we can't chdir("/") (!).
68387         Don't always return true if chdir($PWD) fails; return true only
68388         if the requested action was done successfully (except for the
68389         chdir($PWD)).
68390         Don't log final directory unless we actually made it.
68391         Refactor to avoid duplicate code to fix up permissions.
68392         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68393
68394         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68395         to make it a bit faster and (I hope) clearer.
68396         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68397         Fix bug in formats like %2N.
68398
68399         * lib/verify.h: New file.
68400
68401 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         Sync from coreutils.
68404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68405
68406 2005-09-22  Jim Meyering  <jim@meyering.net>
68407
68408         Sync from coreutils.
68409
68410         * m4/lstat.m4 (gl_FUNC_LSTAT):
68411         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68412         Remove obsolete comment.
68413         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68414         * m4/xstrtod.m4: Likewise.
68415
68416         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68417
68418 2005-09-22  Jim Meyering  <jim@meyering.net>
68419
68420         Sync from coreutils.
68421
68422         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68423
68424         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68425         the .tm_year member, since otherwise gcc-4.0 would now warn about
68426         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68427
68428         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68429         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68430
68431         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68432         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68433         when run in a time zone for which daylight savings time is in effect
68434         for the starting date.
68435
68436         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68437         stop us from restricting permissions of just-created absolute-named
68438         directories.
68439         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68440         to restore initial working directory.
68441         * lib/mkdir-p.c (make_dir_parents): New parameter:
68442         different_working_dir, to tell caller if/when we change the working
68443         directory and are unable to return to the initial one.
68444         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68445         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68446         `return false'.  This fixes a bug introduced on 2004-07-30.
68447
68448         * lib/openat.c (fdopendir): Be sure to close the supplied
68449         file descriptor before returning.  This makes our replacement
68450         implementation a little closer to Solaris's, where fdopendir
68451         ties the file descriptor to the returned DIR* pointer.
68452         * lib/openat.c (unlinkat): New function.
68453         * lib/openat.h (unlinkat): Add prototype.
68454         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68455         (openat_restore_fail): Rename from openat_restore_die.
68456         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68457
68458         Provide an alternative to exiting immediately upon save_cwd or
68459         restore_cwd failure.  Now, an application can arrange e.g.,
68460         to perform a longjump in that case.
68461         * lib/openat.c: Include dirname.h.
68462         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68463         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68464         and openat_restore_die rather than calling error directly.
68465         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68466
68467         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68468         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68469         define.
68470
68471         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68472         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68473                             int utc, int nanoseconds);
68474         Background:
68475         date should not have to allocate a megabyte of virtual memory to
68476         handle a format argument like +%1048575T.  When implemented with
68477         strftime, it must allocate such a buffer, use strftime to fill it
68478         in, print it, then free it.
68479         With fprintftime, it simply prints everything and exits.
68480         With no need for memory allocation, that's one fewer way to fail.
68481         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68482         optional field width, not before, so we accept %9:z, not %:9z.
68483         (my_strftime): Be sure to use L_('x') for literals.
68484
68485         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68486         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68487         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68488         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68489         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68490         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68491         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68492         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68493         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68494         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68495         * lib/xgethostname.c, lib/xreadlink.c:
68496         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68497
68498         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68499         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68500         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68501         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68502         and don't include <sys/file.h>).
68503
68504 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68505
68506         Sync from coreutils.
68507
68508         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68509         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68510         [!LDAV_DONE]: Avoid unused variable warning.
68511
68512 2005-09-21  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/unicodeio.h (unicode_to_mb): New declaration.
68515
68516 2005-09-20  Derek Price  <derek@ximbiot.com>
68517
68518         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68519         getaddrinfo.h.
68520
68521 2005-09-20  Bruno Haible  <bruno@clisp.org>
68522
68523         * gnulib-tool: Remove trailing slashes from the values specified for
68524         --source-base, --m4-base, --tests-base, --aux-dir.
68525         Suggested by Simon Josefsson <jas@extundo.com>.
68526
68527 2005-09-20  Bruno Haible  <bruno@clisp.org>
68528
68529         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68530         func_modules_to_filelist, func_import, func_create_testdir): Make all
68531         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68532         change when gnulib-tool is invoked in a different locale.
68533
68534 2005-09-19  Simon Josefsson  <jas@extundo.com>
68535
68536         * m4/socklen.m4: Fix typo.
68537
68538 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68539
68540         Use a consistent style for including <config.h>.
68541         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68542         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68543         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68544         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68545         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68546         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68547         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68548         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68549         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68550         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68551         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68552         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68553         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68554         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68555         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68556         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68557         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68558         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68559         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68560         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68561         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68562         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68563         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68564         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68565         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68566         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68567         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68568         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68569         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68570         lib/xstrtoumax.c, lib/yesno.c:
68571         Standardize inclusion of config.h.
68572         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68573         lib/inttostr.h:  Removed inclusion of config.h from header files.
68574         * lib/inttostr.c:  Adjusted in-tree users.
68575         * lib/timespec.h: Remove superfluous warning to include config.h.
68576         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68577         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68578         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68579         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68580         config.h with HAVE_CONFIG_H.
68581
68582 2005-09-19  Jim Meyering  <jim@meyering.net>
68583
68584         * modules/pathmax (License): Change to LGPL.
68585
68586 2005-09-19  Derek Price  <derek@ximbiot.com>
68587
68588         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68589
68590 2005-09-19  Bruno Haible  <bruno@clisp.org>
68591
68592         * gnulib-tool (import): Provide default for --tests-base.
68593
68594 2005-09-19  Bruno Haible  <bruno@clisp.org>
68595
68596         * doc/quote.texi: New file, extracted from gnulib.texi.
68597         * doc/ctime.texi: New file, extracted from gnulib.texi.
68598         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68599         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68600         * doc/gnulib.texi: Include them.
68601
68602 2005-09-18  Bruno Haible  <bruno@clisp.org>
68603
68604         Portability fix.
68605         * gnulib-tool (func_readlink): New function.
68606         (func_ln_if_changed): Use it.
68607
68608 2005-09-18  Bruno Haible  <bruno@clisp.org>
68609
68610         * gnulib-tool: Support --with-tests also with --import.
68611         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68612         (func_import): Use variables $testsbase and $inctests. Emit a
68613         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68614         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68615         SUBDIRS += $testsdir.
68616         (func_create_testdir): Update.
68617
68618 2005-09-18  Bruno Haible  <bruno@clisp.org>
68619
68620         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68621         instead of $dry_run.
68622         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68623         (func_ln_if_changed): Don't handle dry-run here.
68624         (func_import): In dry-run mode, detect more precisely which actions
68625         would be performed, and don't use "...ing" verbs.
68626
68627 2005-09-18  Bruno Haible  <bruno@clisp.org>
68628
68629         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68630         (func_import): Use join on two temporary files instead of three nested
68631         loops, in order to determine which files are new or old.
68632
68633 2005-09-18  Bruno Haible  <bruno@clisp.org>
68634
68635         * gnulib-tool (func_import): Comment out code that spits out the
68636         new files with --dry-run.
68637
68638 2005-09-18  Bruno Haible  <bruno@clisp.org>
68639
68640         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68641
68642 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * lib/stat-time.h: New file.
68645         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68646         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68647         in a different way.
68648         (timespec_cmp): New function.
68649         * lib/utimecmp.c: Include stat-time.h.
68650         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68651         members exist, not on the obsolescent ST_MTIM_NSEC.
68652         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68653
68654 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68655
68656         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68657
68658 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * MODULES.html.sh (File system functions): Add stat-time.
68661         * modules/stat-time: New file.
68662         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68663         is now done in a different way, by the stat-time module.
68664         * modules/utimecmp (Depends-on): Add stat-time.
68665
68666 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * m4/st_mtim.m4: Remove.  Superseded by...
68669         * m4/stat-time.m4: New file.
68670         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68671         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68672
68673 2005-09-15  Derek Price  <derek@ximbiot.com>
68674
68675         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68676
68677 2005-09-15  Derek Price  <derek@ximbiot.com>
68678
68679         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68680         * lib/regex_internal.c: Ditto, using this...
68681         (__GNUC_PREREQ): ...new macro.
68682         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68683         using...
68684         (__GNUC_PREREQ): ...this new macro.
68685
68686         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68687
68688 2005-09-15  Derek Price  <derek@ximbiot.com>
68689             Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68692         changes, consolidating in...
68693         * lib/regex_internal.h: ...this file.
68694
68695 2005-09-13  Jim Meyering  <jim@meyering.net>
68696
68697         * lib/canon-host.c: Filter through gnu indent and reword comments
68698         slightly.
68699         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68700
68701 2005-09-13  Derek Price  <derek@ximbiot.com>
68702
68703         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68704         failure.
68705         Reported by Jim Meyering  <jim@meyering.net>.
68706
68707 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68708
68709         * lib/base64.c: Typo.
68710         (base64_encode): Put b64str in initialized data section.
68711
68712 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         Merge glibc and coreutils changes into gnulib, plus a few
68715         extra fixes.
68716         * lib/md5.c: Use #error rather than a string.
68717         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68718         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68719         (__attribute__): Define to empty for non recent-GCC.
68720         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68721         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68722         Renamed from their non-__ counterparts, with new macros replacing
68723         them if not _LIBC.  Add __THROW attribute.
68724         (rol): Remove.
68725         (struct md5_ctx): Align buffer if using GCC.
68726         * lib/sha1.h (struct sha1_ctx): Likewise.
68727         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68728         The old name was backwards.
68729         (NOTSWAP): Remove; not used.
68730         (rol): New macro, moved here from md5.h.
68731         (sha1_process_block): Remove a FIXME that doesn't make sense.
68732
68733 2005-09-12  Derek Price  <derek@ximbiot.com>
68734
68735         Return usable errors from canon-host.
68736         * lib/canon-host.h: New file.
68737         * lib/canon-host.c (canon_host): Wrap...
68738         (canon_host_r): ...this new function, which now relies exclusively on
68739         getaddrinfo.
68740         (ch_strerror): New function.
68741         (last_cherror): New global.
68742         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68743         interface.
68744         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68745         void *.
68746         (freeaddrinfo): Free ai->ai_canonname when set.
68747
68748 2005-09-12  Derek Price  <derek@ximbiot.com>
68749
68750         Make canon-host require getaddrinfo.
68751         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68752         AC_LIBSOURCE canon-host.h.  Call...
68753         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68754         gl_GETADDRINFO.
68755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68756
68757 2005-09-12  Derek Price  <derek@ximbiot.com>
68758
68759         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68760         LGPL.
68761         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68762
68763 2005-09-12  Derek Price  <derek@ximbiot.com>
68764
68765         * lib/gai_strerror.c: Include config.h when available.  Include
68766         getaddrinfo.h before other headers to test interface.
68767         Reported by Larry Jones <lawrence.jones@ugs.com>.
68768
68769 2005-09-12  Derek Price  <derek@ximbiot.com>
68770             Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * modules/glob (Files): Add glob-libc.h.
68773
68774 2005-09-12  Derek Price  <derek@ximbiot.com>
68775             Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68778         glob_.h, glob-libc.h.
68779         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68780
68781 2005-09-12  Derek Price  <derek@ximbiot.com>
68782             Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68785         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68786         protecting things that should be done only in gnulib contexts.
68787         * lib/glob_.h: New file, containing only the glob things needed for
68788         gnulib.
68789         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68790         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68791         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68792         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68793         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68794         and to respect the namespace rules better.
68795
68796 2005-09-08  Simon Josefsson  <jas@extundo.com>
68797
68798         * modules/socklen: New file.
68799
68800 2005-09-08  Simon Josefsson  <jas@extundo.com>
68801
68802         * m4/socklen.m4: New file.
68803
68804 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * modules/utimens (Files): Add m4/utimbuf.m4, since
68807         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68808         Reported by Sergey Poznyakoff.
68809
68810 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68811
68812         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68813         definitions, since that's the preferred style in glibc.
68814         Fix a minor spacing issue, and update copyright notice to match
68815         glibc's.
68816
68817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68820
68821 2005-09-06  Simon Josefsson  <jas@extundo.com>
68822
68823         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68824         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68825
68826 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68829         warning.
68830
68831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * config/srclist.txt: Add glibc bug 1302.
68834
68835 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68836
68837         Change bitset word type from unsigned int to unsigned long int,
68838         as this has better performance on typical 64-bit hosts.
68839         Port bitset code to hosts with unusual word sizes.
68840         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68841         (build_collating_symbol):
68842         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68843         argument is a bitset.  This is merely a style issue, but it makes
68844         it clearer that an entire array is expected.
68845         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68846         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68847         Port to the case where bitset_word is not the same as unsigned int.
68848         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68849         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68850         Likewise.
68851         * lib/regexec.c (check_dst_limits_calc_pos_1,
68852         check_subexp_matching_top):
68853         (build_trtable, group_nodes_into_DFAstates):
68854         Likewise.
68855         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68856         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68857         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68858         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68859         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68860         * lib/regcomp.c (optimize_subexps, lower_subexp):
68861         Work even if bitset_word has holes in its bitwise representation.
68862         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68863         * lib/regexec.c (check_dst_limits_calc_pos_1,
68864         check_subexp_matching_top):
68865         Likewise.
68866         * lib/regex_internal.c (re_string_reconstruct):
68867         Don't assume UCHAR_MAX == 255.
68868         * lib/regex_internal.h (bitset_set_all): Likewise.
68869         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68870         All uses changed.
68871         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68872         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68873         All uses changed.
68874         (BITSET_WORD_MAX): New macro.
68875         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68876         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68877         (bitset_empty, bitset_copy):
68878         Prefer sizeof (bitset) to multiplying it out ourselves.
68879         (bitset_not_merge): Remove; unused.
68880         (bitset_contain): Return bool, not unsigned int with one bit on.
68881         All callers changed.
68882         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68883         alignment than re_node_set; do this by defining a new internal
68884         type struct dests_alloc and using it to allocate memory.
68885
68886 2005-09-05  Bruno Haible  <bruno@clisp.org>
68887
68888         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68889         links.
68890
68891 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68892
68893         * modules/size_max (Makefile.am): Add size_max.h
68894
68895 2005-09-04  Derek Price  <derek@ximbiot.com>
68896
68897         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68898
68899 2005-09-03  Simon Josefsson  <jas@extundo.com>
68900
68901         * gnulib-tool: Fix typo.
68902
68903 2005-09-03  Simon Josefsson  <jas@extundo.com>
68904
68905         * config/srclist.txt: Add glibc bug 1293.
68906
68907 2005-09-03  Derek Price  <derek@ximbiot.com>
68908
68909         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68910         From Larry Jones <lawrence.jones@ugs.com>.
68911
68912 2005-09-02  Simon Josefsson  <jas@extundo.com>
68913
68914         * modules/socklen: New file.
68915
68916 2005-09-02  Simon Josefsson  <jas@extundo.com>
68917
68918         * modules/havelib: New module.
68919
68920         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68921         Use havelib.
68922
68923 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         Check for arithmetic overflow when calculating sizes, to prevent
68926         some buffer-overflow issues.  These patches are conservative, in the
68927         sense that when I couldn't determine whether an overflow was possible,
68928         I inserted a run-time check.
68929         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68930         macros.
68931         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68932         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68933         (re_xnrealloc, re_x2nrealloc): New inline functions.
68934         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68935         parse_bracket_exp):
68936         (build_equiv_class, build_charclass): Check for arithmetic overflow
68937         in size expression calculations.
68938         * lib/regex_internal.c (re_string_realloc_buffers):
68939         (build_wcs_upper_buffer, re_node_set_add_intersect):
68940         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68941         (re_dfa_add_node, register_state): Likewise.
68942         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68943         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68944         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68945         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68946
68947 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68950         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68951
68952 2005-09-02  Bruno Haible  <bruno@clisp.org>
68953
68954         Support for lib vs. lib64 distinction on biarch platforms.
68955         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68956         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68958
68959 2005-09-02  Bruno Haible  <bruno@clisp.org>
68960
68961         * gnulib-tool (import): In the other first-use case, provide defaults
68962         as well.
68963
68964 2005-09-02  Bruno Haible  <bruno@clisp.org>
68965
68966         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68967         patches not yet found in the latest gettext release.
68968
68969 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68972         to avoid a collision with bits/local_lim.h in glibc.
68973         All uses changed.  Problem reported by Dmitry V. Levin in
68974         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68975
68976         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68977         bugs in int versus size_t comparisons.
68978         (re_string_context_at): Fix bug where the code assumed that
68979         Idx is signed.
68980
68981         Use bool where appropriate.
68982         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68983         All callers changed.
68984         (calc_eclosure_iter): Likewise, for ROOT arg.
68985         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68986         (build_charclass_op): Likewise, for NON_MATCH arg.
68987         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68988         (re_string_construct_common): Likewise, for ICASE arg.
68989         * lib/regexec.c (re_search_2_stub, re_search_stub):
68990         Likewise, for RET_LEN arg.
68991         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68992         (set_regs): Likewise, for FL_BACKTRACK arg.
68993         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68994         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68995         (calc_eclosure_iter, parse_bracket_exp):
68996         Use bool for internal variables that are booleans.
68997         * lib/regexec.c (re_search_internal, check_matching,
68998         proceed_next_node):
68999         (set_regs, build_sifted_states, sift_states_bkref):
69000         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69001         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69002         (find_collation_sequence_value):
69003         Likewise.
69004         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69005         (re_node_set_compare):
69006         Return bool, not int. All callers changed.
69007         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69008         (build_trtable, check_node_accept): Likewise.
69009         * lib/regex_internal.h: Include stdbool.h.
69010
69011         Fix bugs uncovered when converting to bool.
69012         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69013         failure instead of charging ahead blindly.
69014         * lib/regex_internal.c (register_state): Likewise.
69015         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69016         for freeing internal storage.
69017         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69018         bitset pieces used as boolean, to avoid undefined behavior
69019         on hosts that do int overflow checking.
69020
69021 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         * config/srclist.txt: Add glibc bugs 1285-1287.
69024
69025 2005-09-01  Jim Meyering  <jim@meyering.net>
69026
69027         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69028         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69029         Require gl_STAT_MACROS, too.
69030
69031 2005-09-01  Bruno Haible  <bruno@clisp.org>
69032
69033         * gnulib-tool (import): In the first-use case, provide defaults.
69034
69035 2005-09-01  Bruno Haible  <bruno@clisp.org>
69036
69037         * gnulib-tool (func_import): Remove the .tmp files.
69038
69039 2005-09-01  Bruno Haible  <bruno@clisp.org>
69040
69041         * gnulib-tool (func_import): Fix handling of symbolic links.
69042
69043 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69046         old glibc regex code mishandles strings longer than 2**31 bytes.
69047         This patch fixes this when the regex code is used in gnulib
69048         (i.e., outside glibc).
69049
69050         This patch should not affect the use of the regex code inside
69051         glibc.  No doubt this problem also needs to be handled for glibc
69052         as well, but the result will be an incompatible change to the
69053         glibc ABI, and the old ABI will have to be supported too.  That
69054         can be the the subject for another patch.
69055
69056         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69057         governing whether the rest of this patch is active.  By default,
69058         the macro is disabled and the patch has no effect.
69059         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69060         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69061         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69062         (re_match_2, re_set_registers): Use the new types.
69063         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69064         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69065         New macros.
69066         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69067         (re_string_context_at, bin_tree_t, re_dfastate_t):
69068         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69069         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69070         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69071         (re_string_char_size_at, re_string_wchar_at):
69072         (re_string_elem_size_at):
69073         Use the new types and macros to port to 64-bit hosts.
69074         Use unsigned types for internal values, so that the code
69075         mostly works even for arrays larger than SSIZE_MAX.
69076         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69077         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69078         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69079         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69080         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69081         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69082         (calc_inveclosure, parse_dup_op, build_range_exp):
69083         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69084         (fetch_number, create_token_tree, mark_opt_subexp):
69085         Likewise.
69086         * lib/regex_internal.c (re_string_construct_common,
69087         create_ci_newstate):
69088         (create_cd_newstate, re_string_allocate, re_string_construct):
69089         (re_string_realloc_buffers, build_wcs_upper_buffer):
69090         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69091         (re_string_reconstruct, re_string_peek_byte_case):
69092         (re_string_fetch_byte_case, re_string_context_at):
69093         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69094         (re_node_set_init_copy, re_node_set_add_intersect):
69095         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69096         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69097         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69098         (re_acquire_state, re_acquire_state_context, register_state):
69099         Likewise.
69100         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69101         search_cur_bkref_entry):
69102         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69103         (re_search_internal, re_search_2_stub, re_search_stub)
69104         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69105         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69106         (update_cur_sifted_state, check_dst_limits):
69107         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69108         (check_subexp_limits, sift_states_bkref, merge_state_array):
69109         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69110         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69111         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69112         (expand_bkref_cache, check_node_accept_bytes):
69113         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69114         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69115         (acquire_init_state_context, check_halt_node_context):
69116         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69117         (sift_states_backward, clean_state_log_if_needed):
69118         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69119         (find_recover_state, transit_state_sb, transit_state_mb):
69120         (transit_state_bkref, build_trtable, match_ctx_clean):
69121         Likewise.
69122         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69123         to work around an assumption that REG_MISSING is negative.
69124
69125         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69126         (seek_collating_symbol_entry) [defined _LIBC]:
69127         (lookup_collation_sequence_value) [defined _LIBC]:
69128         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69129         Use prototypes rather than old-style function definitions.
69130         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69131         (transit_state_sb) [0]:
69132         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69133
69134         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69135         rm_eo.
69136
69137         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69138         (optimize_subexps, lower_subexp):
69139         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69140         since the signed shift might overflow.  Use 1u<<31 instead.
69141         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69142         Likewise.
69143         * lib/regexec.c (check_dst_limits_calc_pos_1,
69144         check_subexp_matching_top): Likewise.
69145
69146         * lib/regcomp.c (optimize_subexps, lower_subexp):
69147         Use CHAR_BIT rather than 8, for clarity.
69148         * lib/regexec.c (check_dst_limits_calc_pos_1):
69149         (check_subexp_matching_top): Likewise.
69150         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69151         have to worry about portability issues when shifting it left.
69152         Remove no-longer-needed test for table_size > 0.
69153         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69154         in a word, as the resulting behavior is undefined.
69155         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69156         in one case, a <= should have been an <, and in another case the
69157         whole test was missing.
69158         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69159         the standard name CHAR_BIT.
69160         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69161         this is not true on one's complement and signed-magnitude hosts.
69162
69163         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69164         next_last_offset.
69165         (struct re_dfa_t): Remove unused member states_alloc.
69166         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69167
69168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69171         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69172         and large-file glibc and in 32-bit large-file Solaris.
69173
69174 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69177         lengths fit in regoff_t; this isn't true if regoff_t is the same
69178         width as size_t.
69179         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69180         (= START + RANGE) instead of RANGE.  This avoids overflow
69181         problems when regoff_t is the same width as size_t.
69182         All callers changed.
69183         (re_search_2_stub): Check for overflow when adding the
69184         sizes of the two strings.
69185         (re_search_stub): Check for overflow when adding START
69186         to RANGE; if it occurs, substitute the extreme value.
69187
69188 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69191
69192 2005-08-31  Jim Meyering  <jim@meyering.net>
69193
69194         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69195         a pointer-to-const.
69196         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69197         (register_state): Likewise.
69198         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69199         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69200         (group_nodes_into_DFAstates): Likewise.
69201
69202 2005-08-31  Jim Meyering  <jim@meyering.net>
69203
69204         * check-module: Add a FIXME comment.
69205
69206 2005-08-31  Eric Blake  <ebb9@byu.net>
69207
69208         * modules/unistd-safer (Files): Add unistd--.h.
69209         * modules/stdio-safer (Files): Add stdio--.h.
69210
69211 2005-08-31  Derek Price  <derek@ximbiot.com>
69212
69213         * lib/getdelim.c (getdelim): Return EOF on EOF.
69214         Reported by Larry Jones <lawrence.jones@ugs.com>.
69215
69216 2005-08-31  Bruno Haible  <bruno@clisp.org>
69217
69218         Avoid unnecessary diffs in the generated lib/Makefile.am.
69219         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69220         the generated files.
69221         (func_import): Don't set cmd.
69222
69223 2005-08-31  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/strstr.c: Include <stddef.h>, for NULL.
69226         * lib/strcasestr.c: Likewise.
69227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69228
69229 2005-08-31  Bruno Haible  <bruno@clisp.org>
69230
69231         * gnulib-tool: New option --macro-prefix.
69232         (func_import): Use macro_prefix.
69233         (import): Handle option --macro-prefix.
69234
69235 2005-08-31  Bruno Haible  <bruno@clisp.org>
69236
69237         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69238         Also use new variables cached_lgpl, cached_libtool.
69239
69240 2005-08-31  Bruno Haible  <bruno@clisp.org>
69241
69242         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69243         always instantiating them.
69244
69245 2005-08-31  Bruno Haible  <bruno@clisp.org>
69246
69247         * gnulib-tool (func_import): Read the previous cached settings
69248         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69249         earlier added by gnulib but are now dropped. Warn when a gnulib file
69250         overwrites a non-gnulib file.
69251
69252 2005-08-31  Bruno Haible  <bruno@clisp.org>
69253
69254         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69255         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69256         projects that don't keep autogenerated files in CVS. Put into
69257         actioncmd only the specified modules, not the transitive closure.
69258
69259 2005-08-31  Bruno Haible  <bruno@clisp.org>
69260
69261         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69262         Create directories that shall be filled.
69263         (import): Don't look for gl_* macros in configure.ac. Recurse across
69264         all directories containing a gnulib-cache.m4 files, if meaningful.
69265
69266 2005-08-31  Bruno Haible  <bruno@clisp.org>
69267
69268         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69269         (import): Set seen_libtool when we see gl_LIBTOOL.
69270
69271 2005-08-31  Bruno Haible  <bruno@clisp.org>
69272
69273         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69274         declaration macro definitions from generated gnulib.m4.
69275
69276 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69277
69278         * lib/iconvme.h: Add prototype for iconv_alloc.
69279
69280 2005-08-29  Simon Josefsson  <jas@extundo.com>
69281
69282         * lib/iconvme.c: Fix errno.
69283
69284 2005-08-29  Bruno Haible  <bruno@clisp.org>
69285
69286         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69287         that it works when the directory contains spaces.
69288
69289 2005-08-29  Bruno Haible  <bruno@clisp.org>
69290
69291         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69292
69293 2005-08-29  Bruno Haible  <bruno@clisp.org>
69294
69295         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69296         Emit more advice.
69297
69298 2005-08-29  Bruno Haible  <bruno@clisp.org>
69299         and Stepan Kasal  <kasal@ucw.cz>
69300
69301         * check-module: If more parameters are given, check each of them
69302         separately; add more exceptions, as noted by Jim Meyering.
69303         (check_module): New procedure.
69304         (%exempt_header): Now contains all exceptions.
69305
69306 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69307
69308         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69309
69310 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69311
69312         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69313
69314 2005-08-28  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/gnulib-tool.m4: New file.
69317
69318 2005-08-27  Jim Meyering  <jim@meyering.net>
69319
69320         * modules/unistd-safer (Files): Add pipe-safer.c.
69321         * modules/fcntl-safer (Files): Add creat-safer.c.
69322
69323 2005-08-27  Jim Meyering  <jim@meyering.net>
69324
69325         * m4/stdlib-safer.m4: New file.  From coreutils.
69326         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69328         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69329         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69330         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69331
69332 2005-08-27  Jim Meyering  <jim@meyering.net>
69333
69334         * lib/fopen-safer.c: Merge minor changes from coreutils.
69335         * lib/dup-safer.c: Likewise.
69336         * lib/fd-safer.c: Likewise.
69337
69338         Merge from coreutils.
69339         * lib/stdio--.h: New file.
69340         * lib/stdlib--.h: New file.
69341         * lib/mkstemp-safer.c: New file.
69342
69343         GNU tar needs these.
69344         * lib/pipe-safer.c: New file.
69345         * lib/creat-safer.c: New file.
69346         * lib/fcntl--.h (creat): Define to creat_safer.
69347         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69348         * lib/unistd--.h (pipe): Define to pipe_safer.
69349         * lib/unistd-safer.h: Declare pipe_safer.
69350
69351 2005-08-26  Simon Josefsson  <jas@extundo.com>
69352
69353         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69354         Haible <bruno@clisp.org>.
69355
69356 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/regex_internal.h: Remove all references to
69359         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69360         or better.
69361         (bitset_not, bitset_merge, bitset_not_merge):
69362         (bitset_mask, re_string_allocate, re_string_construct):
69363         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69364         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69365         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69366         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69367         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69368         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69369         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69370         (re_acquire_state_context):
69371         Remove unnecessary forward decls.
69372         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69373         Put __attribute at function definition,
69374         now that the function decl has been removed.
69375         * lib/regex_internal.c (re_string_peek_byte_case):
69376         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69377         Likewise.
69378
69379 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69380
69381         * m4/regex.m4: Add AC_PREREQ(2.50).
69382         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69383
69384 2005-08-25  Simon Josefsson  <jas@extundo.com>
69385
69386         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69387         __fsetlocking.
69388
69389 2005-08-25  Simon Josefsson  <jas@extundo.com>
69390
69391         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69392         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69393         GLIBC specific code.
69394
69395 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         Make regex safe for g++.  This fixes one real bug (an "err"
69398         that should have been "*err").  g++ problem reported by
69399         Sam Steingold.
69400         * lib/regex_internal.h (re_calloc): New macro, consistent with
69401         re_malloc etc.  All callers of calloc changed to use re_calloc.
69402         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69403         not int.  All callers changed.
69404         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69405         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69406         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69407         (find_recover_state): Change "err" to "*err"; this fixes what
69408         appears to be a real bug.
69409         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69410         versus int.
69411
69412 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * modules/regex (Depends-on): Add malloc, since the code
69415         assumes that !malloc(0) means failure.
69416
69417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69420
69421         alloca modernization/simplification for regex.
69422         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69423         needs to be at the start of the file, and can be moved into
69424         regex_internal.h and simplified.
69425         * lib/regex_internal.h: Include <alloca.h>.
69426         (__libc_use_alloca) [!defined _LIBC]: New macro.
69427         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69428         now works outside glibc.
69429
69430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * config/srclist.txt: Add glibc bugs 1241, 1245.
69433
69434 2005-08-25  Jim Meyering  <jim@meyering.net>
69435
69436         * lib/open-safer.c: Include <config.h>.
69437         Otherwise, we'd lose LARGEFILE support in any file using
69438         e.g. "fcntl--.h"
69439
69440 2005-08-25  Bruno Haible  <bruno@clisp.org>
69441
69442         * m4/minmax.m4: Require autoconf 2.52.
69443         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69444         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69445         alternatives of translit over the alphabet.
69446         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69447
69448 2005-08-24  Simon Josefsson  <jas@extundo.com>
69449
69450         * tests/test-getpass.c: New file.
69451
69452 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69453
69454         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69455         for GNU regex features.
69456
69457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69460         * lib/regex.h (regerror): Likewise.
69461
69462         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69463         requires this.  (The code never needed it.)
69464
69465         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69466         All uses of recently-renamed identifiers changed to use the new,
69467         POSIX-compliant names.  The code will build and run just fine
69468         without these changes, but it's better to eat our own dog food
69469         and use the standard-conforming names.
69470
69471         * lib/regex.h: Fix a multitude of POSIX name space violations.
69472         These changes have an effect only for programs that define
69473         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69474         do not change anything for programs compiled in the normal way.
69475         Also, there is no effect on the ABI.
69476
69477         (_REGEX_SOURCE): New macro.
69478         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69479         defined and _GNU_SOURCE is not; this fixes a name space violation.
69480
69481         Rename the following macros to obey POSIX requirements.
69482         The old names are still visible as macros if _REGEX_SOURCE is defined.
69483         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69484         RE_BACKSLASH_ESCAPE_IN_LISTS.
69485         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69486         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69487         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69488         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69489         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69490         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69491         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69492         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69493         (REG_INTERVALS): renamed from RE_INTERVALS.
69494         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69495         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69496         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69497         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69498         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69499         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69500         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69501         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69502         RE_UNMATCHED_RIGHT_PAREN_ORD.
69503         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69504         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69505         (REG_DEBUG): renamed from RE_DEBUG.
69506         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69507         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69508         unusual, since we can't clash with the POSIX REG_ICASE.
69509         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69510         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69511         (REG_NO_SUB): renamed from RE_NO_SUB.
69512         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69513         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69514         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69515         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69516         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69517         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69518         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69519         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69520         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69521         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69522         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69523         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69524         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69525         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69526         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69527         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69528         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69529         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69530         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69531         (REG_FIXED): Renamed from REGS_FIXED.
69532         (REG_NREGS): Renamed from RE_NREGS.
69533
69534         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69535         of other REG_* macros, since POSIX says the user is allowed to
69536         #undef these macros selectively.
69537
69538         (reg_errcode_t): Update comment stating what other tables need
69539         to be consistent.
69540
69541         Rename the following enum values to obey POSIX requirements.
69542         The old names are still visible as macros.
69543         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69544         is not defined, since GNU is supposed to be a superset of POSIX as
69545         much as possible, and since we want reg_errcode_t to be a signed
69546         type for implementation consistency.
69547         (_REG_NOERROR): Renamed from REG_NOERROR.
69548         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69549         (_REG_BADPAT): Renamed from REG_BADPAT.
69550         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69551         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69552         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69553         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69554         (_REG_EBRACK): Renamed from REG_EBRACK.
69555         (_REG_EPAREN): Renamed from REG_EPAREN.
69556         (_REG_EBRACE): Renamed from REG_EBRACE.
69557         (_REG_BADBR): Renamed from REG_BADBR.
69558         (_REG_ERANGE): Renamed from REG_ERANGE.
69559         (_REG_ESPACE): Renamed from REG_ESPACE.
69560         (_REG_BADRPT): Renamed from REG_BADRPT.
69561         (_REG_EEND): Renamed from REG_EEND.
69562         (_REG_ESIZE): Renamed from REG_ESIZE.
69563         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69564         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69565         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69566         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69567         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69568
69569         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69570         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69571         changed.  But support the old name if the new one is not defined
69572         and if _REGEX_SOURCE.
69573
69574         Change the following member names in struct re_pattern_buffer.
69575         The old names are still supported if !_REGEX_SOURCE.
69576         The new names are always supported, regardless of _REGEX_SOURCE.
69577         (re_buffer): Renamed from buffer.
69578         (re_allocated): Renamed from allocated.
69579         (re_used): Renamed from used.
69580         (re_syntax): Renamed from syntax.
69581         (re_fastmap): Renamed from fastmap.
69582         (re_translate): Renamed from translate.
69583         (re_can_be_null): Renamed from can_be_null.
69584         (re_regs_allocated): Renamed from regs_allocated.
69585         (re_fastmap_accurate): Renamed from fastmap_accurate.
69586         (re_no_sub): Renamed from no_sub.
69587         (re_not_bol): Renamed from not_bol.
69588         (re_not_eol): Renamed from not_eol.
69589         (re_newline_anchor): Renamed from newline_anchor.
69590
69591         Change the following member names in struct re_registers.
69592         The old names are still supported if !_REGEX_SOURCE.
69593         The new names are always supported, regardless of _REGEX_SOURCE.
69594         (rm_num_regs): Renamed from num_regs.
69595         (rm_start): Renamed from start.
69596         (rm_end): Renamed from end.
69597
69598         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69599         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69600         Prepend __ to parameter names.
69601
69602         Undo yesterday's changes.
69603
69604 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69605
69606         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69607         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69608         lib/regex.c.
69609
69610 2005-08-24  Jim Meyering  <jim@meyering.net>
69611
69612         Sync from coreutils.
69613         * m4/fcntl-safer.m4: New file.
69614
69615         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69616         and object files for this module.
69617
69618 2005-08-24  Jim Meyering  <jim@meyering.net>
69619
69620         Sync from coreutils.
69621         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69622
69623 2005-08-24  Jim Meyering  <jim@meyering.net>
69624
69625         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69626         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69627
69628 2005-08-24  Jim Meyering  <jim@meyering.net>
69629
69630         * modules/fcntl-safer: New module.
69631         * modules/fts (Depends-on): Add fcntl-safer.
69632         * MODULES.html.sh (File descriptor based Input/Output):
69633         Add fcntl-safer.
69634
69635 2005-08-24  Bruno Haible  <bruno@clisp.org>
69636
69637         Support for unit test modules.
69638         * modules/README: Mention tests modules.
69639         * modules/TEMPLATE-TESTS: New file.
69640         * gnulib-tool: New options --extract-tests-module, --with-tests and
69641         --tests-base (unused for the moment).
69642         (testsbase, inctests): New variables.
69643         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69644         (func_verify_module): Exclude TEMPLATE-TESTS.
69645         (func_verify_nontests_module, func_verify_tests_module): New functions.
69646         (func_get_dependencies): Add implicit dependency for tests modules.
69647         (func_get_tests_module): New function.
69648         (func_modules_transitive_closure): When --with-tests was specified,
69649         include the unit tests as well, unless explicitly avoided.
69650         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69651         (func_emit_tests_Makefile_am): New function.
69652         (func_create_testdir): When --with-tests was specified, emit a
69653         tests/ directory.
69654         * MODULES.html.sh (Future developments): Update.
69655
69656 2005-08-24  Bruno Haible  <bruno@clisp.org>
69657
69658         * modules/tls-tests: New file.
69659         * tests/test-tls.c: New file, from GNU gettext.
69660
69661 2005-08-24  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/lock-tests: New file.
69664         * tests/test-lock.c: New file, from GNU gettext.
69665
69666 2005-08-24  Bruno Haible  <bruno@clisp.org>
69667
69668         * lib/lock.h: Add multiple inclusion guard.
69669         * lib/tls.h: Add multiple inclusion guard.
69670
69671 2005-08-24  Bruno Haible  <bruno@clisp.org>
69672
69673         * gnulib-tool: Add support for the --aux-dir option to
69674         --create-testdir, --create-megatestdir, --test, --megatest.
69675         (func_create_testdir, func_create_megatestdir): Optionally emit a
69676         AC_CONFIG_AUX_DIR directive.
69677         (create-testdir, create-megatestdir, test, megatest): Provide a
69678         default value for $auxdir.
69679
69680 2005-08-24  Bruno Haible  <bruno@clisp.org>
69681
69682         * gnulib-tool (import): Use compound statement instead of subshell
69683         where possible.
69684
69685 2005-08-24  Bruno Haible  <bruno@clisp.org>
69686
69687         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69688
69689 2005-08-24  Bruno Haible  <bruno@clisp.org>
69690
69691         * gnulib-tool (func_version): Update.
69692
69693 2005-08-24  Bruno Haible  <bruno@clisp.org>
69694
69695         * gnulib-tool (func_import, func_create_testdir,
69696         func_create_megatestdir): Quote all autoconf macro arguments.
69697
69698 2005-08-24  Bruno Haible  <bruno@clisp.org>
69699
69700         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69701         option --force, because --force causes the aclocal.m4 of each
69702         subdirectory to be newer than the corresponding config.h.in.
69703
69704 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69707         All contents moved to gl_REGEX.
69708         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69709         assume that it does.
69710
69711 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * lib/regex.h (REG_NOSYS)
69714         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69715         Define, since POSIX requires it as of 2001.
69716         (_REG_ENOSYS)
69717         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69718         New private symbol, used to keep the enum signed in all cases.
69719         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69720         Youngman in
69721         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69722
69723         * lib/regex_internal.c (re_string_skip_chars, register_state):
69724         (calc_state_hash):
69725         Remove forward decls; no longer needed now that we use prototypes.
69726         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69727         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69728         (clean_state_log_if_needed): Likewise.
69729
69730 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * config/srclist.txt: Add glibc bugs 1231-1233.
69733
69734 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         Fix problems reported by Sam Steingold in
69737         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69738         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69739         assumed that reg_errcode_t is a signed type, which is not
69740         necessarily true if _XOPEN_SOURCE is not defined.
69741         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69742         since some compilers warn about it otherwise.
69743
69744 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69747         (init_word_char, create_initial_state, duplicate_node_closure):
69748         (fetch_token, peek_token_bracket, build_range_exp):
69749         (build_collating_symbol): Remove forward decls; no longer needed
69750         now that we use prototypes.
69751
69752         * lib/regcomp.c:
69753         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69754         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69755         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69756         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69757         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69758         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69759         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69760         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69761         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69762         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69763         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69764         (build_charclass, build_charclass_op, fetch_number, create_tree):
69765         (create_token_tree, mark_opt_subexp, duplicate_tree):
69766         Use prototypes rather than old-style definitions.
69767
69768         * lib/regex_internal.c:
69769         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69770         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69771         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69772         (re_string_reconstruct, re_string_peek_byte_case):
69773         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69774         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69775         (re_node_set_init_copy, re_node_set_add_intersect):
69776         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69777         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69778         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69779         (re_acquire_state, re_acquire_state_context, register_state):
69780         (create_ci_newstate, create_cd_newstate, free_state):
69781         Likewise.
69782         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69783         re_search_2):
69784         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69785         (re_search_internal, prune_impossible_nodes):
69786         (acquire_init_state_context, check_matching, static):
69787         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69788         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69789         (update_regs, sift_states_backward, build_sifted_states):
69790         (clean_state_log_if_needed, merge_state_array):
69791         (update_cur_sifted_state, add_epsilon_src_nodes):
69792         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69793         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69794         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69795         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69796         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69797         (check_arrival, check_arrival_add_next_nodes):
69798         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69799         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69800         (check_node_accept_bytes, check_node_accept, extend_buffers):
69801         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69802         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69803         (sift_ctx_init):
69804         Likewise.
69805
69806         * lib/regex_internal.h:
69807         (re_string_allocate, re_string_construct, re_string_reconstruct):
69808         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69809         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69810         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69811         (re_string_context_at, re_string_peek_byte_case):
69812         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69813         is defined, since we now use prototypes always.
69814
69815         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69816         C89 or better.  All uses removed.
69817
69818 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * config/srclist.txt: Add glibc bugs 1220-1227.
69821
69822 2005-08-20  Jim Meyering  <jim@meyering.net>
69823
69824         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69825         of unused local, dfa.
69826
69827 2005-08-20  Bruno Haible  <bruno@clisp.org>
69828
69829         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69830
69831 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69834         (re_node_set_insert_last, re_dfa_add_node):
69835         Rename local variables to avoid GCC shadowing warnings.
69836
69837 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69840         [defined lint]: Suppress bogus uninitialized-variable warnings.
69841
69842         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69843         and let the caller return REG_ESPACE if out of space.  This
69844         removes an uninitialied-variable warning with GCC 4.0.1, and also
69845         avoids taking the address of a local variable.  All callers
69846         changed.
69847
69848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69849
69850         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69851         $LIBCSRC/posix/regexec.c.
69852         Add glibc bug 1217 for regcomp.c.
69853
69854 2005-08-19  Jim Meyering  <jim@meyering.net>
69855
69856         * lib/regexec.c (proceed_next_node): Redo local variables to
69857         avoid GCC shadowing warnings.
69858
69859 2005-08-18  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/strstr.c (strstr): Fix return value in multibyte case.
69862         * lib/strcasestr.c (strcasestr): Likewise.
69863
69864 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69867
69868 2005-08-17  Jim Meyering  <jim@meyering.net>
69869
69870         Make the %s format (seconds since the epoch) work for a negative
69871         number and when used with a zero-padded field width, e.g. %015s.
69872
69873         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69874         label so that it precedes the code to set `digits'.  Otherwise,
69875         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69876         print `00-22'.  Now, it prints `-0022', as it should.
69877
69878 2005-08-17  Bruno Haible  <bruno@clisp.org>
69879
69880         * modules/strstr (Files): Add m4/mbrtowc.m4.
69881         (Depends-on): Add mbuiter.
69882
69883 2005-08-17  Bruno Haible  <bruno@clisp.org>
69884
69885         * modules/strcasestr: New file.
69886         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69887         strcasestr.
69888
69889 2005-08-17  Bruno Haible  <bruno@clisp.org>
69890
69891         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69892
69893 2005-08-17  Bruno Haible  <bruno@clisp.org>
69894
69895         * modules/mbuiter: New file.
69896         * MODULES.html.sh (Extended multibyte and wide character utilities):
69897         Add mbuiter.
69898
69899 2005-08-17  Bruno Haible  <bruno@clisp.org>
69900
69901         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69902         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69903
69904 2005-08-17  Bruno Haible  <bruno@clisp.org>
69905
69906         * m4/strcasestr.m4: New file.
69907
69908 2005-08-17  Bruno Haible  <bruno@clisp.org>
69909
69910         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69911         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69912
69913 2005-08-17  Bruno Haible  <bruno@clisp.org>
69914
69915         * lib/strcasestr.h: New file.
69916         * lib/strcasestr.c: New file.
69917
69918 2005-08-17  Bruno Haible  <bruno@clisp.org>
69919
69920         * lib/strcasecmp.c: Use mbuiter.h.
69921
69922 2005-08-17  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/mbuiter.h: New file.
69925
69926 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69929         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69930         and gl_GETOPT are both invoked via different paths (as happens
69931         with GNU tar CVS because it uses both argp and getopt), the former
69932         wins.
69933
69934 2005-08-16  Bruno Haible  <bruno@clisp.org>
69935
69936         * modules/tls: New file.
69937         * MODULES.html.sh (Multithreading): Add tls.
69938
69939 2005-08-16  Bruno Haible  <bruno@clisp.org>
69940
69941         * modules/strnlen1: New file.
69942         * MODULES.html.sh (String handling): Add strnlen1.
69943
69944 2005-08-16  Bruno Haible  <bruno@clisp.org>
69945
69946         * modules/strcase (Files): Add m4/mbrtowc.m4.
69947         (Depends-on): Add strnlen1, mbchar.
69948
69949 2005-08-16  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/mbiter: New file.
69952         * MODULES.html.sh (Extended multibyte and wide character utilities):
69953         Add mbiter.
69954
69955 2005-08-16  Bruno Haible  <bruno@clisp.org>
69956
69957         * modules/mbfile: New file.
69958         * MODULES.html.sh (Extended multibyte and wide character utilities):
69959         Add mbfile.
69960
69961 2005-08-16  Bruno Haible  <bruno@clisp.org>
69962
69963         * modules/mbchar: New file.
69964         * MODULES.html.sh (Extended multibyte and wide character utilities):
69965         New section.
69966
69967 2005-08-16  Bruno Haible  <bruno@clisp.org>
69968
69969         * m4/tls.m4: New file, from GNU gettext.
69970
69971 2005-08-16  Bruno Haible  <bruno@clisp.org>
69972
69973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69974         always.
69975         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69976
69977 2005-08-16  Bruno Haible  <bruno@clisp.org>
69978
69979         * m4/mbiter.m4: New file.
69980
69981 2005-08-16  Bruno Haible  <bruno@clisp.org>
69982
69983         * m4/mbfile.m4: New file.
69984
69985 2005-08-16  Bruno Haible  <bruno@clisp.org>
69986
69987         * m4/mbchar.m4: New file.
69988
69989 2005-08-16  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/tls.h: New file, from GNU gettext.
69992         * lib/tls.c: New file, from GNU gettext.
69993
69994 2005-08-16  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/strnlen1.h: New file.
69997         * lib/strnlen1.c: New file.
69998
69999 2005-08-16  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70002         (mbi_init): Update.
70003         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70004         NUL byte, not after it.
70005
70006 2005-08-16  Bruno Haible  <bruno@clisp.org>
70007
70008         * lib/strcase.h (strcasecmp): Add note in comments.
70009         * lib/strncasecmp.c: Use code from strcasecmp.c.
70010         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70011         (strcasecmp): Work correctly in multibyte locales.
70012
70013 2005-08-16  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/mbiter.h: New file.
70016
70017 2005-08-16  Bruno Haible  <bruno@clisp.org>
70018
70019         * lib/mbfile.h: New file.
70020
70021 2005-08-16  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/mbchar.h: New file.
70024         * lib/mbchar.c: New file.
70025
70026 2005-08-16  Bruno Haible  <bruno@clisp.org>
70027
70028         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70029         the valid ones. Makes the comparison operations transitive:
70030         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70031         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70032
70033 2005-08-15  Simon Josefsson  <jas@extundo.com>
70034
70035         * modules/ssize_t (License): Change to 'unlimited'.
70036
70037         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70038
70039 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70042         Add comments for each pending glibc patch.
70043
70044 2005-08-15  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70047         __cplusplus is defined.
70048
70049 2005-08-14  Jim Meyering  <jim@meyering.net>
70050
70051         Sync from coreutils.
70052
70053         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70054         Use the hash-table-based cycle-detection code not just when
70055         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70056         Reported by James Youngman in
70057         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70058         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70059         FTS_TIGHT_CYCLE_CHECK.
70060         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70061         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70062         once again.
70063         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70064         * lib/fts.c (fd_safer): Remove decl.
70065         Include fcntl--.h rather than unistd-safer.h
70066         (fts_safe_changedir): Don't call fd_safer; no longer needed
70067         now that we include fcntl--.h.
70068
70069 2005-08-12  Simon Josefsson  <jas@extundo.com>
70070
70071         * modules/getndelim2: Use ssize_t module.
70072         * modules/getnline: Likewise.
70073         * modules/safe-read: Likewise.
70074         * modules/xreadlink: Likewise.
70075
70076         * modules/ssize_t: New file.
70077
70078 2005-08-12  Simon Josefsson  <jas@extundo.com>
70079
70080         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70081
70082 2005-08-12  Simon Josefsson  <jas@extundo.com>
70083
70084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70085         ssize_t.
70086
70087 2005-08-12  Simon Josefsson  <jas@extundo.com>
70088
70089         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70090         readline, getdelim and check_version.
70091         (Support for systems lacking ISO C 99: Sizes of integer types):
70092         Add size_max.
70093
70094 2005-08-12  Bruno Haible  <bruno@clisp.org>
70095
70096         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70097
70098 2005-08-11  Simon Josefsson  <jas@extundo.com>
70099
70100         * modules/readline: New file.
70101
70102         * modules/strnlen (Files): Add strnlen.h.
70103
70104 2005-08-11  Simon Josefsson  <jas@extundo.com>
70105
70106         * m4/readline.m4: New file.
70107
70108 2005-08-11  Simon Josefsson  <jas@extundo.com>
70109
70110         * lib/readline.h, readline.c: New file.
70111
70112 2005-08-11  Simon Josefsson  <jas@extundo.com>
70113
70114         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70115         gl_AVOID.
70116
70117 2005-08-11  Bruno Haible  <bruno@clisp.org>
70118
70119         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70120
70121 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70122
70123         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70124
70125 2005-08-10  Simon Josefsson  <jas@extundo.com>
70126
70127         * tests/test-iconvme.c: New file.
70128
70129 2005-08-10  Simon Josefsson  <jas@extundo.com>
70130
70131         * m4/strnlen.m4: New file.
70132
70133         * m4/strndup.m4: Don't check for strnlen declaration, done in
70134         strnlen.m4.
70135
70136 2005-08-10  Simon Josefsson  <jas@extundo.com>
70137
70138         * lib/strndup.c: Use strnlen.h.
70139
70140         * lib/strnlen.h: New file.
70141
70142 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70143
70144         * README: Typos.
70145
70146 2005-08-02  Simon Josefsson  <jas@extundo.com>
70147
70148         * modules/readline: New file.
70149
70150 2005-08-02  Simon Josefsson  <jas@extundo.com>
70151
70152         * modules/getdelim: New file.
70153
70154         * modules/getline: Rewrite, don't use getndelim2.
70155
70156 2005-08-02  Simon Josefsson  <jas@extundo.com>
70157
70158         * m4/getline.m4: Separate out getdelim stuff into separate module.
70159
70160         * m4/getdelim.m4: New file.
70161
70162 2005-08-02  Simon Josefsson  <jas@extundo.com>
70163
70164         * lib/getline.h, getline.c: Rewrite.
70165
70166         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70167
70168 2005-07-31  Bruno Haible  <bruno@clisp.org>
70169
70170         * lib/lock.h (gl_lock_initializer): New macro.
70171         (gl_lock_define_initialized): Use it.
70172         (gl_rwlock_initializer): New macro.
70173         (gl_rwlock_define_initialized): Use it.
70174         (gl_recursive_lock_initializer): New macro.
70175         (gl_recursive_lock_define_initialized): Use it.
70176
70177 2005-07-30  Karl Berry  <karl@gnu.org>
70178
70179         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70180         Report from Ben Pfaff, regarding getopt.
70181
70182 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70185         normal way.
70186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70187         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70188         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70189         (gl_GETOPT): Use the new macros.  Most of the implementation
70190         is moved to the new macros.  This is for programs like Emacs
70191         that don't want all the functionality of gl_GETOPT.
70192
70193 2005-07-26  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/lock.m4: Update from GNU gettext.
70196
70197 2005-07-26  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/lock.h: Update from GNU gettext.
70200         * lib/lock.c: Update from GNU gettext.
70201
70202 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70205         obsolescent AC_TRY_RUN.  Include the default includes files, for
70206         'exit'.
70207
70208 2005-07-24  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/visibility: New file.
70211         * MODULES.html.sh (Misc): Add visibility.
70212
70213 2005-07-24  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/visibility.m4: New file.
70216
70217 2005-07-24  Bruno Haible  <bruno@clisp.org>
70218
70219         * doc/visibility.texi: New file.
70220
70221 2005-07-22  Bruno Haible  <bruno@clisp.org>
70222
70223         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70224         $(ALLOCA_H), redundant through BUILT_SOURCES.
70225         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70226         redundant through BUILT_SOURCES.
70227         * modules/byteswap (Makefile.am): Remove explicit dependency on
70228         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70229         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70230         $(FNMATCH_H), redundant through BUILT_SOURCES.
70231         * modules/getopt (Makefile.am): Remove explicit dependency on
70232         $(GETOPT_H), redundant through BUILT_SOURCES.
70233         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70234         redundant through BUILT_SOURCES.
70235         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70236         redundant through BUILT_SOURCES.
70237         * modules/stdbool (Makefile.am): Remove explicit dependency on
70238         $(STDBOOL_H), redundant through BUILT_SOURCES.
70239         * modules/stdint (Makefile.am): Remove explicit dependency on
70240         $(STDINT_H), redundant through BUILT_SOURCES.
70241         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70242         Remove explicit dependency on $(SYSEXITS_H).
70243         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70244
70245 2005-07-18  Simon Josefsson  <jas@extundo.com>
70246
70247         * lib/check-version.c (check_version): Accept identical versions too.
70248
70249 2005-07-18  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/lock: New file.
70252         * MODULES.html.sh (Multithreading): New section.
70253
70254 2005-07-18  Bruno Haible  <bruno@clisp.org>
70255
70256         * m4/lock.m4: New file, from GNU gettext.
70257
70258 2005-07-18  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/lock.h: New file, from GNU gettext.
70261         * lib/lock.c: New file, from GNU gettext.
70262
70263 2005-07-18  Bruno Haible  <bruno@clisp.org>
70264
70265         * lib/lock.h (gl_once_t): New type.
70266         (gl_once_define, gl_once): New macros.
70267         * lib/lock.c (fresh_once): New variable.
70268         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70269         functions.
70270
70271 2005-07-16  Simon Josefsson  <jas@extundo.com>
70272
70273         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70274         workaround, suggested by Bruno.
70275
70276 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * modules/xalloc (Depends-on): Add xalloc-die.
70279         * modules/xvasprintf (Depends-on): Add xalloc-die.
70280
70281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70284         with a minor change.
70285
70286 2005-07-15  Bruno Haible  <bruno@clisp.org>
70287
70288         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70289         When using lib/poll.c, define poll as rpl_poll.
70290
70291 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70292
70293         * modules/argp (Depends-on): Remove unlocked-io.
70294
70295 2005-07-14  Derek Price  <derek@ximbiot.com>
70296
70297         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70298         for glob symlink bug.
70299
70300 2005-07-14  Bruno Haible  <bruno@clisp.org>
70301
70302         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70303         Instead, test for *_unlocked function declarations directly.
70304
70305 2005-07-11  Simon Josefsson  <jas@extundo.com>
70306
70307         * modules/size_max: New file.
70308
70309         * modules/xsize: Depend on size_max module for size_max.m4.
70310
70311 2005-07-11  Simon Josefsson  <jas@extundo.com>
70312
70313         * lib/size_max.h: New file.
70314
70315 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70318         copyright symbol and the year.
70319         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70320         (version_etc_va): Use parameterized copyright notice.
70321         Reword to conform to the current GNU coding standards.
70322
70323 2005-07-11  Karl Berry  <karl@gnu.org>
70324
70325         * doc/gnulib.texi (Quoting): new node.
70326         (Initial import): more info, from Patrice.
70327
70328 2005-07-11  Bruno Haible  <bruno@clisp.org>
70329
70330         * gnulib-tool (func_usage): Document option --avoid.
70331         (Command line options): Handle --avoid.
70332         (func_acceptable): New function.
70333         (func_modules_transitive_closure): Use it.
70334
70335 2005-07-11  Bruno Haible  <bruno@clisp.org>
70336
70337         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70338         Reported by Jim Meyering.
70339
70340 2005-07-10  Bruno Haible  <bruno@clisp.org>
70341
70342         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70343         Needed when size_t is smaller than 'unsigned int'.
70344         Reported by Paul Eggert.
70345
70346 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70347
70348         * modules/argp (Depends-on): Add unlocked-io
70349
70350 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70351
70352         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70353         block of defines.
70354
70355 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70358         fix now.
70359
70360 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70361         and Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70364         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70365
70366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * modules/regex (Files): Add lib/regex_internal.c,
70369         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70370         (Depends-on): Add extensions.
70371         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70372
70373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70376         pathconf.
70377         * m4/same.m4 (gl_SAME): Likewise.
70378         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70379
70380         * m4/regex.m4: Adjust to new libc regex implementation.
70381         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70382         all the .c and .h parts of (the new) regex.
70383         Quote the m4 stuff better.
70384         Check for RE_ICASE bug of old gnulib.
70385         Check for REG_STARTEND of recent libc.
70386         Rename local variables from jm_* to gl_*.
70387         Quote operand of "test -f".
70388         Say "recent enough" version of libc, not "version 2".
70389         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70390         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70391         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70392         Remove check for btowc, isascii.
70393         Require AM_LANGINFO_CODESET.
70394
70395 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         * lib/regex.c, regex.h: Sync from libc.
70398         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70399         * lib/regexec.c:
70400         New files, synced from libc, except that regex_internal.h
70401         currently has a small porting fix.
70402
70403 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70406         regex_internal.c, regexec.c.
70407         Add regex_internal.h too, but as a comment, since the libc version
70408         is currently broken in gnulib mode.
70409
70410 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         Support programs like Emacs that use gnulib but not gettext.
70413         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70414         * modules/gettext-h: New file.
70415         * modules/gettext (Files): Remove lib/gettext.h.
70416         (Depends-on): Add gettext-h.
70417         (Makefile.am): Remove lib_SOURCES.
70418         * modules/argmatch, modules/c-stack, modules/closeout:
70419         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70420         * modules/execute, modules/file-type, modules/getaddrinfo:
70421         * modules/getopt, modules/human, modules/javacomp:
70422         * modules/javaexec, modules/mkdir-p, modules/obstack:
70423         * modules/openat, modules/pagealign_alloc, modules/pipe:
70424         * modules/quotearg, modules/regex, modules/rpmatch:
70425         * modules/unicodeio, modules/userspec, modules/version-etc:
70426         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70427         * modules/xsetenv:
70428         Depend on gettext-h, not gettext.
70429
70430 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * gnulib-tool (func_import): Add support for 'public domain' license.
70433         * modules/alloca, modules/atexit, modules/memmove:
70434         Now public domain, not GPL.
70435         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70436         * modules/realloc, modules/strerror, modules/strtod:
70437         Now LGPL, not GPL.
70438
70439 2005-07-05  Bruno Haible  <bruno@clisp.org>
70440
70441         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70442         autoconf CVS. Needed for mingw.
70443
70444 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         Remove the dependency of the strftime module on the tzset module.
70447         * modules/strftime (Depends-on): Remove dependency on tzset.
70448
70449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         Remove the dependency of the strftime module on the tzset module.
70452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70453         gl_FUNC_TZSET_CLOBBER.
70454
70455 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         Remove the dependency of the strftime module on the tzset module.
70458         * lib/strftime.c (my_strftime)
70459         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70460         Copy the input structure, to work around some of the bug with
70461         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70462         Solaris releases, you should also use the tzset module, but we won't
70463         require it as a dependency any more since we don't want LGPLed code
70464         to depend on GPLed code.
70465
70466 2005-07-02  Jim Meyering  <jim@meyering.net>
70467
70468         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70469         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70470         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70471         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70472
70473 2005-07-02  Jim Meyering  <jim@meyering.net>
70474
70475         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70476
70477 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70480         declares only 'struct timespec;' (!).
70481
70482 2005-07-01  Jim Meyering  <jim@meyering.net>
70483
70484         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70485         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70486         * lib/save-cwd.c, tempname.c:
70487         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70488         and don't include <sys/file.h>).
70489
70490 2005-06-29  Jim Meyering  <jim@meyering.net>
70491
70492         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70493         type name.  Use the variable name instead.
70494         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70495         Likewise.
70496
70497 2005-06-28  Simon Josefsson  <jas@extundo.com>
70498
70499         * modules/check-version (Files): Add check-version.m4.
70500
70501 2005-06-28  Simon Josefsson  <jas@extundo.com>
70502
70503         * m4/check-version.m4: New file, suggested by Jim Meyering
70504         <jim@meyering.net>.
70505
70506 2005-06-28  Simon Josefsson  <jas@extundo.com>
70507
70508         * lib/check-version.h, lib/check-version.c: New files.
70509
70510 2005-06-28  Simon Josefsson  <jas@extundo.com>
70511
70512         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70513         collision with global variable.  Better indentation.  Don't
70514         increment buffer pointer beyond buffer end.  Based on comments
70515         from Paul Eggert <eggert@cs.ucla.edu>.
70516
70517         * lib/base64.h: Indent.
70518
70519 2005-06-28  Simon Josefsson  <jas@extundo.com>
70520
70521         * doc/gnulib.texi (Library version handling): New section.
70522
70523 2005-06-28  Jim Meyering  <jim@meyering.net>
70524
70525         * check-module (find_included_lib_files): Hard-code another
70526         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70527         but modules/fts-lgpl (correctly) does not list those files.
70528
70529         * modules/canonicalize (Files): Add lib/pathmax.h.
70530
70531 2005-06-25  Simon Josefsson  <jas@extundo.com>
70532
70533         * modules/check-version: New file.
70534
70535 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70538         initializer of struct addrinfo, as an indication that we don't
70539         care how many members the structure has.
70540
70541 2005-06-24  Derek Price  <derek@ximbiot.com>
70542         and Bruno Haible  <bruno@clisp.org>
70543
70544         Remove stat module & update lstat.
70545         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70546         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70547         * m4/stat.m4: Remove this file.
70548
70549 2005-06-24  Derek Price  <derek@ximbiot.com>
70550         and Bruno Haible  <bruno@clisp.org>
70551
70552         Remove stat module & update lstat.
70553         * lib/stat.c: Remove this file...
70554         (slash_aware_lstat): ...moving this content and its support...
70555         * lib/lstat.c (rpl_lstat): ...into here.
70556         * lib/lstat.h: New file.
70557
70558 2005-06-24  Derek Price  <derek@ximbiot.com>
70559         and Bruno Haible  <bruno@clisp.org>
70560
70561         Remove stat module & update lstat.
70562         * config/srclist.txt (libc sources): Remove stat.
70563
70564 2005-06-24  Derek Price  <derek@ximbiot.com>
70565         and Bruno Haible  <bruno@clisp.org>
70566
70567         Remove stat module & update lstat.
70568         * MODULES.html.sh (stat): Remove.
70569         * MODULES.html: Regenerated.
70570         * modules/lstat (Description): Correct function name.
70571         (Files): Add "lstat.h".
70572         (Depends-on): Remove stat, add xalloc, stat-macros.
70573         * modules/stat: Remove this file.
70574         (Include): Add "lstat.h", remove <sys/stat.h>.
70575
70576 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70577
70578         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70579         (ranged_convert): Don't save conversion in a temporary struct.
70580         This causes a warning with GCC 4.0.0, and anyway in the typical
70581         case it's not worth the extra 100 bytes or so of code.
70582         (ranged_convert, __mktime_internal): When calling a function via a
70583         pointer P, use P () rather than (*P) (), as we now assume C89 or
70584         better.
70585
70586 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70589         "who -r" failed to give output.  Problem reported by Tim Waugh.
70590
70591         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70592         (xcalloc): Use it to avoid needless tests.
70593         Problem reported by Jim Meyering.
70594
70595 2005-06-20  Derek Price  <derek@ximbiot.com>
70596
70597         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70598         unnecessary for Autoconfs > 2.59c.
70599
70600 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70601
70602         * lib/argp.h (__option_is_short): Check upper limit of
70603         __key. Isprint() requires its argument to have the value
70604         of an unsigned char or EOF.
70605
70606 2005-06-16  Jim Meyering  <jim@meyering.net>
70607
70608         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70609         when either N or S is zero.
70610
70611 2005-06-16  Derek Price  <derek@ximbiot.com>
70612
70613         * m4/bison.m4: Declare YACC & YFLAGS precious.
70614
70615 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70618         multibyte string or pattern, fall back on unibyte matching.
70619         Problem reported by James Youngman.
70620
70621 2005-06-08  Bruno Haible  <bruno@clisp.org>
70622
70623         * modules/csharpcomp: New file.
70624         * MODULES.html.sh (C#): Add csharpcomp.
70625
70626 2005-06-08  Bruno Haible  <bruno@clisp.org>
70627
70628         * m4/csharpcomp.m4: New file, from GNU gettext.
70629
70630 2005-06-08  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/csharpcomp.h: New file, from GNU gettext.
70633         * lib/csharpcomp.c: New file, from GNU gettext.
70634         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70635
70636 2005-06-08  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70639         warning on mingw.
70640
70641 2005-06-07  Derek Price  <derek@ximbiot.com>
70642
70643         Sync from CVS.
70644         * lib/glob_.h: Indent nested #ifdef.
70645
70646 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         Sync from coreutils.
70649         Use "file name" when talking about file names, instead of "filename"
70650         or "path", as per the GNU coding standards.
70651         * lib/mkdir-p.c: Renamed from makepath.c.
70652         (make_dir_parents): Renamed from make_path.  All callers changed.
70653         * lib/mkdir-p.h: Likewise.  All includers changed.
70654         * lib/filenamecat.c: Renamed from path-concat.c.
70655         (file_name_concat): Renamed from path_concat.  All callers changed.
70656         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70657         * lib/filenamecat.h: Likewise.  All includers changed.
70658         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70659         in comments or local variable names.
70660         * lib/basename.c: Likewise.
70661         * lib/canonicalize.c, canonicalize.h: Likewise.
70662         * lib/dirname.c, dirname.h: Likewise.
70663         * lib/euidaccess.c: Likewise.
70664         * lib/exclude.c: Likewise
70665         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70666         * lib/fsusage.c, fsuage.h: Likewise.
70667         * lib/fts.c, fts_.h: Likewise.
70668         * lib/getcwd.c: Likewise.
70669         * lib/getloadavg.c: Likewise.
70670         * lib/mkstemp.c: Likewise.
70671         * lib/mountlist.c, mountlist.h: Likewise.
70672         * lib/openat.c, openat.h: Likewise.
70673         * lib/readlink-stub.c: Likewise.
70674         * lib/readutmp.c, readutmp.h: Likewise.
70675         * lib/rename.c: Likewise.
70676         * lib/rmdir.c: Likewise.
70677         * lib/same.c: Likewise.
70678         * lib/savedir.c: Likewise.
70679         * lib/stripslash.c: Likewise.
70680         * lib/tempname.c: Likewise.
70681         * lib/xreadlink.c: Likewise.
70682         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70683         All uses changed.
70684         * lib/exclude.h: Likewise.
70685
70686         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70687         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70688         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70689         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70690         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70691         files have been getting away with it for years (MORE/BSD 4.3
70692         is extinct now).
70693         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70695
70696         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70697         Define to 256, not 255, as per modern POSIX.
70698
70699 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         Sync from coreutils.
70702         Use "file name" when talking about file names, instead of "filename"
70703         or "path", as per the GNU coding standards.
70704         * MODULES.html.sh: mkdir-p renamed from makepath.
70705         filenamecat renamed from path-concat.
70706         * modules/filenamecat: Renamed from modules/path-concat.
70707         (Files): filenamecat.h and filenamecat.c renamed from
70708         path-concat.h and path-concat.c.
70709         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70710         (Include): filenamecat.h, not path-concat.h.
70711         * modules/mkdir-p: Renamed from modules/makepath.
70712         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70713         makepath.c.
70714         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70715         (Include): mkdir-p.h, not makepath.h.
70716
70717 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         Sync from coreutils.
70720         * m4/mkdir-p.m4: Renamed from makepath.m4.
70721         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70722         Rename files from makepath.c to mkdir-p.c, and from
70723         makepath.h to mkdir-p.h.
70724         * m4/filenamecat.m4: Renamed from path-concat.m4.
70725         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70726         Rename files from path-concat.c to filenamecat.c,
70727         and from path-concat.h to filenamecat.h.
70728         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70729         "file name" in local variables or comments.
70730         * m4/rename.m4: Likewise.
70731
70732 2005-06-01  Bruno Haible  <bruno@clisp.org>
70733
70734         * modules/csharpexec: New file.
70735         * MODULES.html.sh (C#): New section.
70736
70737 2005-06-01  Bruno Haible  <bruno@clisp.org>
70738
70739         * m4/csharp.m4: New file, from GNU gettext.
70740         * m4/csharpexec.m4: New file, from GNU gettext.
70741
70742 2005-06-01  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/csharpexec.h: New file, from GNU gettext.
70745         * lib/csharpexec.c: New file, from GNU gettext.
70746         * lib/csharpexec.sh.in: New file, from GNU gettext.
70747
70748 2005-05-31  Derek Price  <derek@ximbiot.com>
70749             Paul Eggert  <eggert@cs.ucla.edu>
70750
70751         Sync from cvs.
70752         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70753
70754 2005-05-31  Derek Price  <derek@ximbiot.com>
70755             Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         Sync from cvs.
70758         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70759
70760 2005-05-29  Derek Price  <derek@ximbiot.com>
70761
70762         * config/srclist.txt (glob_.h, glob.c): Add these files.
70763
70764 2005-05-29  Derek Price  <derek@ximbiot.com>
70765
70766         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70767         * modules/glob: New file.
70768         * modules/getlogin_r: Add link to POSIX spec in description.
70769
70770 2005-05-29  Derek Price  <derek@ximbiot.com>
70771             Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * m4/glob.m4: New file.
70774
70775 2005-05-29  Derek Price  <derek@ximbiot.com>
70776             Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * lib/glob_.h, lib/glob.c: New files.
70779
70780 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70783         * modules/fts-lgpl (Depends-on): Remove gettext.
70784
70785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70786
70787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70788         and don't require gt_INTTYPES_PRI.
70789
70790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70793
70794         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70795         the configuration hassle isn't worth it.
70796         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70797         (LONGEST_MODIFIER, PRIuMAX): Remove.
70798
70799 2005-05-27  Bruno Haible  <bruno@clisp.org>
70800
70801         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70802
70803 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70806         _POSIX_PTHREAD_SEMANTICS for Solaris.
70807
70808 2005-05-25  Derek Price  <derek@ximbiot.com>
70809
70810         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70811
70812 2005-05-25  Derek Price  <derek@ximbiot.com>
70813             Paul Eggert  <eggert@cs.ucla.edu>
70814
70815         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70816         * lib/getlogin_r.c, getlogin_r.h: New files.
70817
70818 2005-05-25  Bruno Haible  <bruno@clisp.org>
70819             Derek Price  <derek@ximbiot.com>
70820
70821         * lib/getlogin_r.h: Simplify API documentation.
70822
70823 2005-05-23  Derek Price  <derek@ximbiot.com>
70824
70825         * modules/minmax (Files): Add m4/minmax.m4.
70826         (configure.ac): Add gl_MINMAX.
70827
70828 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70831         so that unistd-safer.h (GPL'ed code) need not be included.
70832
70833 2005-05-22  Bruno Haible  <bruno@clisp.org>
70834
70835         * m4/minmax.m4: New file.
70836         Based on a patch by Derek Price <derek@ximbiot.com>.
70837
70838 2005-05-22  Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70841         (INT64_MIN): Fix definition.
70842         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70843
70844         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70845         NEED_SIGNED_INT_TYPES.
70846
70847         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70848         HAVE_SYSTEM_INTTYPES.
70849
70850 2005-05-22  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70853         Also include <sys/param.h> if it defines MIN, MAX.
70854         Based on a patch by Derek Price <derek@ximbiot.com>.
70855
70856 2005-05-21  Jim Meyering  <jim@meyering.net>
70857
70858         * modules/fts (Files): Add m4/inttypes-pri.m4.
70859         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70860
70861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         New fts module.
70864         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70865         (setup_dir, free_dir): New functions.
70866         (enter_dir, leave_dir): Define trivial
70867         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70868         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70869         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70870         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70871         Move to fts-cycle.c.
70872         (fts_open): Use setup_dir.
70873         (fts_close): Use free_dir.
70874         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70875         This adds a label and some gotos, but the alternatives were messier.
70876         Check for memory allocation failure when entering a dir.
70877         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70878         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70879         (FTS): New member fts_cycle, that is a union that contains the
70880         old active_dir_ht and cycle_state.  All uses changed to mention
70881         fts_cycle.ht and fts_cycle.state.
70882         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70883         fts.c, with the following changes:
70884         (setup_dir, free_dir): New functions.
70885         (enter_dir): Now returns bool.  Return true if successful, false
70886         if memory exhausted.  All callers changed.
70887         Do not bother partly cleaning up on
70888         memory allocation failure; that is free_dir's job.
70889         However, free ad if hash_insert fails, to avoid memory leak.
70890         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70891         fts->fts_options to see which union member to use.
70892
70893 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70896         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70897
70898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70901
70902 2005-05-20  Jim Meyering  <jim@meyering.net>
70903
70904         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70905         Now a macro, to pacify GCC.
70906
70907 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70908
70909         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70910         of -1.
70911
70912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70913
70914         * lib/chown.c (rpl_chown): Return -1 on failure.
70915
70916 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70919         Don't check for stddef.h.
70920         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70921         don't use its results.
70922         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70923         since we include them unconditionally.  Don't require
70924         AM_STDBOOL_H, since stdbool is a prerequisite.
70925         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70926         since we assume C89 or better.
70927         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70928         as we don't use their results.
70929         Don't check for fchdir, memmove, memset, strrchr, as we use
70930         them unconditionally.
70931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70932         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70933
70934 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70937         Include <stddef.h> unconditionally, since we assume C89 now.
70938         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70939         * lib/fts.c: Include fts_.h first, to check interface.
70940         Do not include intprops.h; no longer needed.
70941         Include cycle-check.h and hash.h, since fts_.h no longer does.
70942         Remove unnecessary casts of closedir to void.
70943         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70944         decide whether to decrement nlinks.
70945         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70946         (FTS): Use struct hash_table * instead of Hash_table, so that
70947         we no longer need to include hash.h here.
70948
70949 2005-05-18  Jim Meyering  <jim@meyering.net>
70950
70951         * modules/dirfd (License): Change to LGPL.  Most of the code
70952         is already in the public domain.
70953
70954 2005-05-18  Jim Meyering  <jim@meyering.net>
70955
70956         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70957         Reported by Yoann Vandoorselaere.
70958
70959 2005-05-17  Jim Meyering  <jim@meyering.net>
70960
70961         * m4/fts.m4: New file, from coreutils.
70962
70963 2005-05-17  Jim Meyering  <jim@meyering.net>
70964
70965         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70966
70967 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         Sync from coreutils.
70970         * m4/unlinkdir.m4: New file.
70971
70972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         Sync from coreutils.
70975         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70976         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70977         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70978         White space changes only.
70979         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70980         special.
70981         * lib/yesno.c: Include getline.h, not ctype.h.
70982         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70983         Use getline to remove arbitrary restriction on response length.
70984
70985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * config/srclist-update: Spell out "Street" in FSF postal
70988         mail address; this is the style the FSF seems to prefer.
70989
70990         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70991         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70992         this updates FSF postal mail address.
70993
70994         Sync from coreutils.
70995         * modules/unlinkdir: New file.
70996         * modules/yesno (Depends-on): Add getline.
70997         * MODULES.html.sh (File system functions): Add unlinkdir.
70998
70999 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71002         lib/strsep.h:
71003         Change the initial comment to refer to GPL, not LGPL.
71004         gnulib-tool will change it to LGPL as needed.
71005
71006         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71007         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71008         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71009         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71010         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71011         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71012         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71013         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71014         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71015         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71016         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71017         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71018         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71019         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71020         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71021         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71022         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71023         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71024         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71025         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71026         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71027         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71028         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71029         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71030         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71031         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71032         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71033         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71034         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71035         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71036         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71037         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71038         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71039         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71040         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71041         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71042         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71043         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71044         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71045         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71046         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71047         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71048         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71049         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71050         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71051         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71052         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71053         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71054         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71055         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71056         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71057         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71058         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71059         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71060         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71061         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71062         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71063         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71064         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71065         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71066         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71067         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71068         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71069         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71070         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71071         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71072         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71073         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71074         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71075         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71076         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71077         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71078         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71079         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71080         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71081         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71082         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71083         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71084         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71085         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71086         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71087         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71088         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71089         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71090         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71091         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71092         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71093         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71094         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71095         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71096         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71097         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71098         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71099         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71100         lib/yesno.c, lib/yesno.h:
71101         Update FSF postal mail address.
71102
71103 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71106         tests/test-memmem.c, tests/test-stpncpy.c:
71107         Update FSF postal mail address.
71108
71109 2005-05-13  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71112         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71113         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71114         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71115         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71116         Add support for 64-bit integers in the MSVC compiler.
71117
71118 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71119
71120         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71121
71122 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71123
71124         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71125
71126 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * doc/getdate.texi (General date syntax): Don't say that date
71129         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71130         Problem reported by Nic Ferrier.
71131
71132 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71133
71134         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71135         specified in ai_socktype. Fix invalid ai_protocol
71136         check. ai_protocol is usually set to 0 or depending on
71137         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71138         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71139         ai_socktype / ai_protocol in the returned addrinfo structure.
71140
71141 2005-05-10  Simon Josefsson  <jas@extundo.com>
71142
71143         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71144         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71145
71146 2005-05-10  Karl Berry  <karl@gnu.org>
71147
71148         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71149         (from http://www.gnu.org/licenses).
71150         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71151         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71152         fdl.texi suffices.
71153
71154 2005-05-10  Karl Berry  <karl@gnu.org>
71155
71156         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71157         (COPYING.DOC): remove.
71158
71159         * config/srclist-update: new FSF address.
71160
71161 2005-05-10  Derek Price  <derek@ximbiot.com>
71162
71163         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71164         possible.
71165
71166 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71167             Bruno Haible  <bruno@clisp.org>
71168
71169         * modules/inet_ntop: New file.
71170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71171         inet_ntop.
71172
71173 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71174             Bruno Haible  <bruno@clisp.org>
71175
71176         * m4/inet_ntop.m4: New file.
71177
71178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71179             Bruno Haible  <bruno@clisp.org>
71180
71181         * lib/inet_ntop.h: New file.
71182         * lib/inet_ntop.c: New file, from glibc with modifications.
71183
71184 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         * modules/time_r (License): Change to LGPL.
71187         * modules/extensions (License): Change to LGPL.  Actually,
71188         the license is more permissive than that, but currently gnulib-tool
71189         doesn't know how to handle more-permissive licenses.
71190
71191         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71192         Problem reported by Dave Love.
71193
71194 2005-05-08  Jim Meyering  <jim@meyering.net>
71195
71196         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71197         blank.
71198
71199 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * modules/argmatch (Depends-on): Add stdbool.
71202         * modules/backupfile (Depends-on): Likewise.
71203         * modules/chdir-long (Depends-on): Likewise.
71204         * modules/closeout (Depends-on): Likewise.
71205         * modules/cycle-check (Depends-on): Likewise.
71206         * modules/dirname (Depends-on): Likewise.
71207         * modules/fnmatch (Depends-on): Likewise.
71208         * modules/fsusage (Depends-on): Likewise.
71209         * modules/fwriteerror (Depends-on): Likewise.
71210         * modules/getcwd (Depends-on): Likewise.
71211         * modules/getloadavg (Depends-on): Likewise.
71212         * modules/hard-locale (Depends-on): Likewise.
71213         * modules/makepath (Depends-on): Likewise.
71214         * modules/mountlist (Depends-on): Likewise.
71215         * modules/nanosleep (Depends-on): Likewise.
71216         * modules/posixtm (Depends-on): Likewise.
71217         * modules/quotearg (Depends-on): Likewise.
71218         * modules/readtokens (Depends-on): Likewise.
71219         * modules/readtokens0 (Depends-on): Likewise.
71220         * modules/readutmp (Depends-on): Likewise.
71221         * modules/save-cwd (Depends-on): Likewise.
71222         * modules/strftime (Depends-on): Likewise.
71223         * modules/userspec (Depends-on): Likewise.
71224         * modules/utimecmp (Depends-on): Likewise.
71225         * modules/xgetcwd (Depends-on): Likewise.
71226         * modules/xnanosleep (Depends-on): Likewise.
71227         * modules/xstrtod (Depends-on): Likewise.
71228         * modules/yesno (Depends-on): Likewise.
71229
71230 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71233         needless checks.
71234
71235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         Merge from coreutils.  Among other things,
71238         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71239         * lib/fd-safer.c: New file.
71240         * lib/fcntl-safer.h, open-safer.c: Remove.
71241         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71242         * lib/dup-safer.c: Include unistd-safer.h first.
71243         Don't include errno.h.
71244         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71245         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71246         * lib/file-type.c: Rely on file-type.h change.
71247         * lib/getloadavg.c: Include unistd-safer.h.
71248         (getloadavg): Use safer open.
71249         * lib/getusershell.c: Include "stdio-safer.h".
71250         (getusershell): Use safer fopen.
71251         * lib/long-options.c (long_options): Use NULL rather than 0.
71252         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71253         'free'.
71254         * lib/modechange.c: Likewise.
71255         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71256         (MODE_DONE): New constant.
71257         (struct mode_change): Remove 'next' member.
71258         (make_node_op_equals): New function; like the old one of the
71259         same name, except it allocates an array.
71260         (mode_compile, mode_create_from_ref): Use it.
71261         (mode_compile): Allocate result as an array, not a linked list.
71262         Parse octal string ourself, so that we catch mistakes like "+0".
71263         (mode_adjust): Arg is an array, not a linked list.
71264         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71265         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71266         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71267         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71268         Remove.  This is now stat-macros.h's job.
71269         (talloc): Remove.  All callers replaced by xalloc, so that
71270         our invokers don't have to worry about reporting memory failures.
71271         (make_node_op_equals): Remove.
71272         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71273         New constants.
71274         (struct mode_change): Moved here from modechange.h.
71275         (mode_append_entry): Remove.
71276         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71277         apps to have incorrect behavior.  Use simpler algorithm for head
71278         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71279         Detect more invalid usages rather than having somewhat-random behavior.
71280         Don't insert an "a=" action, as that leads to incorrect behavior.
71281         (mode_compile, mode_create_from_ref): Return NULL on error instead
71282         of an enum, since now there's only one way to have an error.  All
71283         callers changed.
71284         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71285         at the correct time.  Simplify calculation of "+u" and its ilk.
71286         Don't mishandle "+X".
71287         (mode_free): Remove "register" and localize decls.
71288         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71289         (struct mode_change): Move to modechange.c; callers don't
71290         need to see this stuff.
71291         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71292         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71293         (mode_change, mode_adjust): Reflect the new signatures noted above.
71294         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71295         that might redefine system include files.
71296         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71297         (my_usleep): Use NULL rather than (void *) 0.
71298         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71299         Use siginterrupt to specify that system calls should be interrupted.
71300         (rpl_nanosleep): Move initialization of suspended closer to call of
71301         my_usleep.
71302         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71303         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71304         (desirable_utmp_entry): New function.
71305         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71306         using x2nrealloc, to simplify logic.
71307         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71308         size calculation.  Do not assume utmp file is a regular file.
71309         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71310         (READ_UTMP_CHECK_PIDS): New constant.
71311         * lib/save-cwd.c: Include unistd-safer.h.
71312         (save_cwd): Use fd_safer.
71313         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71314         [!_LIBC] Include "stat-macros.h" instead.
71315         * lib/unistd-safer.h (fd_safer): New decl.
71316
71317 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * modules/getloadavg (Depends-on): Add unistd-safer.
71320         * modules/getusershell (Depends-on): Add stdio-safer.
71321         * modules/lstat (Depends-on): Remove xalloc.
71322         * modules/mkstemp (Depends-on): Add stat-macros.
71323         * modules/modechange (Depends-on): Remove xstrtol.
71324         Add stat-macros, xalloc.
71325         * modules/save-cwd (Depends-on): Add unistd-safer.
71326         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71327         * modules/unistd-safer (Files): Add lib/fd-safer.c
71328         (Makefile.am): Remove lib_SOURCES.
71329
71330         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71331         Remove fcntl-safer; unistd-safer supersedes it.
71332
71333 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71336         AC_HEADER_STAT.
71337         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71338         (gl_PREREQ_CHOWN): Remove.
71339         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71340         it.  Don't require AC_HEADER_STAT.
71341         (gl_PREREQ_LSTAT): Remove.
71342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71343         Don't require AC_HEADER_STAT.
71344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71345         (gl_PREREQ_RMDIR): Remove.
71346         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71347         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71348         the stat-macros module a prerequisite.
71349         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71350         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71351         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71352         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71353         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71354         variable names.
71355         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71356         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71357         variable prefixes.
71358         * m4/fcntl-safer.m4: Remove.
71359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71360         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71361         Invoke gl_PREREQ_FD_SAFER.
71362         (gl_PREREQ_FD_SAFER): New macro.
71363         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71364         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71365         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71366         Remove duplicate call to AC_LIBOBJ(readutmp).
71367         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71368
71369         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71370         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71371
71372 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * MODULES.html.sh (Misc): Add byteswap.
71375
71376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71377
71378         * modules/getcwd (Depends-on): Add extensions.
71379         * modules/openat (Depends-on): Likewise.
71380
71381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71382
71383         * modules/byteswap: New file.
71384
71385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71386
71387         * m4/byteswap.m4: New file.
71388
71389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71390
71391         * lib/byteswap_.h: New file.
71392
71393 2005-04-25  Karl Berry  <karl@gnu.org>
71394
71395         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71396
71397 2005-04-25  Albert Chin  <china@thewrittenword.com>
71398
71399         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71400         Toolkit C bug.
71401
71402 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71403
71404         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71405         (func_ln_if_changed): Remove forcibly for no error message
71406         in case file does not exist.
71407
71408 2005-04-19  Simon Josefsson  <jas@extundo.com>
71409
71410         * gnulib-tool (Options): Make --symlink mean --symbolic.
71411
71412 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71413
71414         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71415
71416 2005-04-16  Simon Josefsson  <jas@extundo.com>
71417
71418         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71419
71420 2005-04-15  Simon Josefsson  <jas@extundo.com>
71421
71422         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71423
71424 2005-04-15  Simon Josefsson  <jas@extundo.com>
71425
71426         * gnulib-tool: Rename --symlink to --symbolic.
71427
71428 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71429
71430         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71431         symbolic links to files instead of copying/moving.  Add --aux-dir,
71432         specifying directory relative --dir where auxiliary build tools
71433         are placed.
71434
71435 2005-04-14  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/allocsa (License): Change to LGPL.
71438         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71439
71440 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71443         that "UTC +1 second" continues to work.  Problem reported
71444         by Dmitry V. Levin.
71445         (relunit_snumber): New rule.
71446         (relunit): Use it.
71447
71448 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/getdate.y (universal_time_zone_table): New constant.
71451         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71452         universal_time_zone_table.
71453         (lookup_zone): Prefer universal_time_zone_table to
71454         local_time_zone_table, so that "GMT" time stamps are allowed in
71455         London during the summer.  Problem reported by Ian Abbott.
71456
71457 2005-04-12  Jim Meyering  <jim@meyering.net>
71458
71459         * lib/human.c (humblock): Set *options even when returning due to
71460         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71461         warning from gcc-4.
71462
71463 2005-04-09  Jim Meyering  <jim@meyering.net>
71464
71465         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71466         -Wuninitialized: initialize tm0.tm_year.
71467
71468 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71471         count, since there's no maximum.  All uses changed.
71472         Add member dsts_seen.
71473         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71474         not being INT_MAX.
71475         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71476         Use pc_rels_seen to decide whther a date is absolute.
71477
71478         * lib/getdate.y (number): Don't overwrite year.
71479         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71480         check.
71481
71482 2005-04-02  Simon Josefsson  <jas@extundo.com>
71483
71484         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71485         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71486
71487 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71488
71489         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71490         where no absolute path name can be longer than PATH_MAX.
71491
71492 2005-03-27  Jim Meyering  <jim@meyering.net>
71493
71494         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71495
71496 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71499         "one's complement" -> "ones' complement" in comment, as per Knuth.
71500         "value of type" -> "type or expression" in comment.
71501         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71502
71503 2005-03-26  Jim Meyering  <jim@meyering.net>
71504
71505         Comment nits.
71506         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71507         Correct typos: s/or/of/.
71508
71509 2005-03-26  Jim Meyering  <jim@meyering.net>
71510
71511         * modules/check-include-files: Move to ../ and rename to...
71512         * check-module: ...this.
71513
71514 2005-03-25  Jim Meyering  <jim@meyering.net>
71515
71516         * modules/xvasprintf (Files): Add xalloc.h.
71517
71518 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * modules/gettext (Files): config/config.rpath ->
71521         build-aux/config.rpath
71522         * modules/iconv (Files): Likewise.
71523         Problem reported by Oskar Liljeblad.
71524
71525 2005-03-23  Jim Meyering  <jim@meyering.net>
71526
71527         * modules/check-include-files: New script to check for
71528         missing dependencies, multiple includes, etc.
71529
71530         * modules/c-strtold (Depends-on): Add xalloc.
71531         * modules/c-strtod (Depends-on): Add xalloc.
71532         * modules/hash (Depends-on): Add xalloc.
71533         (Files): Remove lib/xalloc.h.
71534
71535         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71536         * modules/userspec (Files): Add lib/inttostr.h.
71537
71538 2005-03-23  Jim Meyering  <jim@meyering.net>
71539
71540         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71541
71542 2005-03-22  Jim Meyering  <jim@meyering.net>
71543
71544         * modules/stat-macros: New module.
71545         * modules/canonicalize, modules/euidaccess, modules/file-type,
71546         * modules/filemode, modules/lchown, modules/makepath,
71547         * modules/rmdir, modules/stat: Depend on new stat-macros module
71548         rather than listing lib/stat-macros.h manually.
71549         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71550
71551 2005-03-22  Jim Meyering  <jim@meyering.net>
71552
71553         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71554
71555 2005-03-22  Bruno Haible  <bruno@clisp.org>
71556
71557         * config/srclist.txt: Replace target directory 'config' with
71558         'build-aux'.
71559         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71560         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71561         ../build-aux/.
71562
71563 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * modules/chdir-long (Depends-on): Add mempcpy.
71566
71567         * modules/acl, modules/backupfile, modules/c-strtod,
71568         modules/c-strtold, modules/canon-host, modules/canonicalize,
71569         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71570         modules/exclude, modules/exitfail, modules/file-type,
71571         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71572         modules/getdate, modules/getline, modules/getpagesize,
71573         modules/getpass, modules/getugroups, modules/group-member,
71574         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71575         modules/inttostr, modules/long-options, modules/makepath,
71576         modules/md5, modules/memcasecmp, modules/memcoll,
71577         modules/modechange, modules/mountlist, modules/path-concat,
71578         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71579         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71580         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71581         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71582         modules/strftime, modules/strndup, modules/strverscmp,
71583         modules/timespec, modules/unlocked-io, modules/userspec,
71584         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71585         modules/yesno:
71586         Remove lib_SOURCES line from Makefile.am section, as this is now
71587         done automatically by the corresponding Autoconf macro.
71588
71589 2005-03-21  Jim Meyering  <jim@meyering.net>
71590
71591         Changes imported from coreutils.
71592
71593         * lib/cycle-check.c: Don't include xalloc.h.
71594
71595         * lib/path-concat.c: Don't include assert.h.
71596         (path_concat): Remove assertion that would have triggered
71597         for ABASE starting with more than one slash.
71598         Reported by Andreas Schwab.
71599
71600         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71601         properly when ABASE is an absolute file name.
71602         Correct the description of this function.
71603         Include <assert.h>.
71604         Add an assertion and a test driver.
71605         This fixes a bug introduced on 2004-07-02.
71606         Andreas Schwab reported the resulting failure of cp --parents:
71607         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71608
71609 2005-03-21  Jim Meyering  <jim@meyering.net>
71610
71611         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71612         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71613
71614 2005-03-21  Jim Meyering  <jim@meyering.net>
71615         and  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71618         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71619         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71620         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71621         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71622         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71623         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71624         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71625         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71626         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71627         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71628         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71629         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71630         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71631         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71632         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71633         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71634         for these modules.
71635
71636 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71639         (which shouldn't happen), generate nothing instead of returning 0
71640         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71641
71642 2005-03-16  Bruno Haible  <bruno@clisp.org>
71643
71644         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71645         HAVE_LONGLONG_64BIT.
71646
71647 2005-03-16  Bruno Haible  <bruno@clisp.org>
71648
71649         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71650         HAVE_LONGLONG_64BIT.
71651
71652 2005-03-16  Bruno Haible  <bruno@clisp.org>
71653
71654         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71655         HAVE_LONGLONG_64BIT.
71656
71657 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71660         reliably distinguish strftime failure from empty output on POSIX
71661         hosts.
71662
71663 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71666         (iconv_string): Don't guess a size-zero buffer, as that might cause
71667         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71668         result would be 'too large', where 'too large' is (heuristically)
71669         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71670         overflow concerns.  This will prevent some unwanted malloc failures
71671         when the inputs are very large.
71672
71673 2005-03-15  Karl Berry  <karl@gnu.org>
71674
71675         * config/srclist.txt (config.rpath): from gettext.
71676         * config/config.rpath: update.
71677
71678 2005-03-15  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71681         to 'negate'.
71682
71683         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71684         variable.
71685
71686         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71687         results.
71688
71689 2005-03-14  Simon Josefsson  <jas@extundo.com>
71690
71691         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71692         <fx@gnu.org>.
71693
71694 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71697         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71698         intprops.h.
71699         * lib/strtol.c: Likewise.
71700
71701 2005-03-14  Jim Meyering  <jim@meyering.net>
71702
71703         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71704         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71705         to be nonzero so that we (and caller) can detect the difference
71706         between a valid zero-length expansion and an error return, even
71707         when the underlying strftime fails before writing anything into
71708         that location.
71709
71710 2005-03-14  Bruno Haible  <bruno@clisp.org>
71711
71712         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71713         Update from GNU gettext 0.14.3.
71714
71715 2005-03-10  Jim Meyering  <jim@meyering.net>
71716
71717         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71718
71719 2005-03-10  Jim Meyering  <jim@meyering.net>
71720
71721         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71722         so that this module works on systems without fchdir.
71723
71724 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         Factor int-properties macros into a single file, except for
71727         glibc-related files.
71728         * lib/intprops.h: New file.
71729         * lib/getloadavg.c: Include it instead of limits.h.
71730         (INT_STRLEN_BOUND): Remove.
71731         * lib/human.c: Include intprops.h.
71732         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71733         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71734         302/1000.
71735         * lib/inttostr.h: Include intprops.h instead of limits.h.
71736         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71737         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71738         for consistency with intprops.h.
71739         (time_t_is_integer, twos_complement_arithmetic): Use them.
71740         * lib/sig2str.h: Include <signal.h>, intprops.h.
71741         (INT_STRLEN_BOUND): Remove.
71742         * lib/strftime.c (TYPE_SIGNED): Remove.
71743         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71744         * lib/strtol.c: Adjust comments to match intprops.h.
71745         * lib/userspec.c: Include intprops.h.
71746         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71747         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71748         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71749         instead of rolling our own expressions.
71750         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71751
71752         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71753         instead of int.
71754         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71755         the right thing even if adding 1900 would overflow.  Similarly
71756         for tm_mon + 1 and tm_yday + 1.
71757         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71758         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71759         (DO_SIGNED_NUMBER): New macro.
71760         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71761
71762 2005-03-07  Bruno Haible  <bruno@clisp.org>
71763
71764         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71765
71766 2005-03-07  Bruno Haible  <bruno@clisp.org>
71767
71768         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71769
71770 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71771
71772         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71773         (func_import): Only replace files via --import when they have actually
71774         changed.
71775
71776 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71777
71778         * m4/mmap-anon.m4: New file.
71779         * m4/pagealign_alloc.m4: New file.
71780
71781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71782             Bruno Haible  <bruno@clisp.org>
71783
71784         * modules/pagealign_alloc: New file.
71785         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71786
71787 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71788             Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/pagealign_alloc.h: New file.
71791         * lib/pagealign_alloc.c: New file.
71792
71793 2005-03-03  Bruno Haible  <bruno@clisp.org>
71794
71795         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71796         Use an all-permissive copyright notice, recommended by RMS.
71797
71798 2005-03-02  Bruno Haible  <bruno@clisp.org>
71799
71800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71801         of AIX, the replacement has to be done only after <string.h> is
71802         included, therefore not in config.h. stpncpy.h does the replacement,
71803         and stpncpy.c uses it.
71804
71805 2005-03-02  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71808         stpncpy.c uses it.
71809
71810 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71813         The workaround isn't strictly needed for POSIX conformance, and
71814         it's too much of a pain to configure and maintain.  We'll ask
71815         people to fix their kernels instead.
71816         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71817         (NANOSLEEP_BUG_WORKAROUND): Remove.
71818         (xnanosleep): Remove the workaround.
71819
71820 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71823         Reported by Derek Price.
71824         (Include): Add "timespec.h".
71825
71826         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71827
71828 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71829
71830         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71831         to detect nanosleep bug.
71832
71833 2005-03-01  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71836
71837 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * modules/gethrxtime: New file.
71840         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71841         (Depends-on): Add gethrxtime.
71842         (configure.ac): Add gl_XNANOSLEEP.
71843         (Makefile.am): Remove lib_SOURCES line.
71844
71845 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71848         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71849
71850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71853         * lib/timespec.h (gettime): Return void, since it always
71854         succeeds now.  All uses changed.
71855         * lib/gettime.c (gettime): Likewise.
71856         [HAVE_NANOTIME]: Prefer nanotime.
71857         Assume gettimeofday succeeds, as POSIX requires.
71858         Assime time () succeeds, since other code already does.
71859         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71860         (timespec_subtract): Remove.
71861         (NANOSLEEP_BUG_WORKAROUND): New constant.
71862         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71863         things considerably.  Use it only on GNU/Linux hosts, since the
71864         workaround shouldn't be needed elsewhere.
71865
71866 2005-02-24  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/gettext (Files): Add m4/glibc2.m4.
71869
71870 2005-02-24  Bruno Haible  <bruno@clisp.org>
71871
71872         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71873         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71874         * m4/progtest.m4:
71875         Update from GNU gettext 0.14.2.
71876         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71877
71878 2005-02-24  Bruno Haible  <bruno@clisp.org>
71879
71880         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71881         * lib/config.charset: Update from GNU gettext 0.14.2.
71882
71883 2005-02-24  Bruno Haible  <bruno@clisp.org>
71884
71885         * lib/gettext.h: Update from GNU gettext 0.14.2.
71886
71887 2005-02-23  Simon Josefsson  <jas@extundo.com>
71888
71889         * m4/iconvme.m4: New file.
71890
71891 2005-02-23  Jim Meyering  <jim@meyering.net>
71892
71893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71894         change.
71895         Thanks to Bruno Haible for catching it.
71896
71897 2005-02-22  Simon Josefsson  <jas@extundo.com>
71898
71899         * modules/iconvme: New file.
71900
71901         * MODULES.html.sh: Add iconvme.
71902
71903 2005-02-22  Simon Josefsson  <jas@extundo.com>
71904
71905         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71906
71907 2005-02-22  Simon Josefsson  <jas@extundo.com>
71908
71909         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71910
71911 2005-02-22  Jim Meyering  <jim@meyering.net>
71912
71913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71914         s/ifndef/ifdef/.
71915
71916 2005-02-20  Neil Conway  <neilc@samurai.com>
71917
71918         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71919         returned by OSX/Darwin if the specified buffer is not large
71920         enough for the hostname.
71921
71922 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71923
71924         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71925         pass it to _help, otherwise the latter coredumps trying to
71926         dereference state.root_argp.
71927
71928 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * modules/chdir-long (Depends-on): Add memrchr.
71931         * modules/memrchr (Files): Add lib/memrchr.h.
71932         (Include): "memrchr.h".
71933
71934 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71937
71938 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * lib/memrchr.h: New file.
71941         * lib/chdir-long.c: Include it.
71942         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71943         Don't bother including stddef.h.
71944
71945 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71948         inclusion.
71949         Include <sys/types.h>, for dev_t.
71950         (ME_DUMMY, ME_REMOTE): Move from here....
71951         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71952         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71953         Dmitry V. Levin.
71954         Include mountlist.h first, to test the interface.
71955
71956 2005-01-29  Bruno Haible  <bruno@clisp.org>
71957
71958         * lib/progname.c (program_name): Initialize.
71959         Needed when linking statically on MacOS X.
71960
71961 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         Sync from coreutils.
71964         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71965         (Depends-on): Add c-strtod.
71966         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71967
71968 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71969
71970         Sync from coreutils.
71971         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71972
71973         Remove files that are specific to coreutils.
71974         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71975
71976 2005-01-28  Bruno Haible  <bruno@clisp.org>
71977
71978         * modules/javacomp: New file.
71979         * MODULES.html.sh (Java): Add javacomp.
71980
71981 2005-01-28  Bruno Haible  <bruno@clisp.org>
71982
71983         * m4/javacomp.m4: New file, from GNU gettext.
71984
71985 2005-01-28  Bruno Haible  <bruno@clisp.org>
71986
71987         * lib/javacomp.sh.in: New file, from GNU gettext.
71988         * lib/javacomp.h: New file, from GNU gettext.
71989         * lib/javacomp.c: New file, from GNU gettext.
71990
71991 2005-01-26  Simon Josefsson  <jas@extundo.com>
71992
71993         * lib/gai_strerror.c: Use GPL in header.
71994
71995 2005-01-26  Bruno Haible  <bruno@clisp.org>
71996
71997         * modules/javaexec: New file.
71998         * MODULES.html.sh (Java): Add javaexec.
71999
72000 2005-01-26  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/javaexec.m4: New file, from GNU gettext.
72003
72004 2005-01-26  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/javaexec.sh.in: New file, from GNU gettext.
72007         * lib/javaexec.h: New file, from GNU gettext.
72008         * lib/javaexec.c: New file, from GNU gettext.
72009
72010 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72011
72012         * modules/lchown (Depends-on): Remove lchown.h
72013
72014 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72015
72016         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72017         must be defined if the header file was not found, in order
72018         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72019
72020 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72021
72022         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72023         initializers for struct pentry_state.
72024         (__argp_error): Check return value of __asprintf
72025         (__argp_failure): Translate error message
72026
72027         * lib/argp-parse.c: Removed braces around the expansion of N_()
72028
72029 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72032         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72033         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72034         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72035         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72036         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72037         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72038         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72039         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72040         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72041         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72042         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72043         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72044         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72045         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72046         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72047         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72048         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72049         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72050         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72051         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72052         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72053         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72054         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72055         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72056         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72057         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72058         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72059         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72060         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72061         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72062         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72063         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72064         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72065         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72066         Use an all-permissive copyright notice, recommended by RMS.
72067
72068 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * modules/chdir-long (Depends-on): Remove mempcpy.
72071
72072 2005-01-21  Jim Meyering  <jim@meyering.net>
72073
72074         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72075         same value as for Solaris 9.
72076
72077         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72078         component length.  This included changing the parameter to be
72079         of type `char *' rather than `char const *'.
72080         * lib/chdir-long.h (chdir_long): Update prototype.
72081
72082         * lib/openat.c (fdopendir, fstatat): New functions.
72083         * lib/openat.h: Include headers required for use of DIR and struct
72084         stat.
72085         [AT_SYMLINK_NOFOLLOW]: Define.
72086         (fdopendir, fstatat): Add prototypes.
72087
72088 2005-01-21  Bruno Haible  <bruno@clisp.org>
72089
72090         * modules/classpath: New file.
72091         * MODULES.html.sh (Java): Add classpath.
72092
72093 2005-01-21  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/classpath.h: New file, from GNU gettext.
72096         * lib/classpath.c: New file, from GNU gettext.
72097
72098 2005-01-20  Simon Josefsson  <jas@extundo.com>
72099
72100         * modules/version-etc-fsf: New file.
72101
72102 2005-01-20  Simon Josefsson  <jas@extundo.com>
72103
72104         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72105         * lib/version-etc.c: Remove version_etc_copyright.
72106         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72107         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72108
72109 2005-01-20  Simon Josefsson  <jas@extundo.com>
72110
72111         * lib/base64.h (isbase64): Add.
72112
72113         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72114         using a unsigned prototype, don't inline.
72115         (base64_decode): Use it.
72116
72117 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72120         it.
72121
72122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * lib/save-cwd.c (save_cwd): Remove code to support the case
72125         where fchdir is missing or flaky.
72126
72127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72130
72131 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72134         AC_LIBSOURCES now does this.
72135         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72136         with new ullong_max module.
72137
72138 2005-01-19  Bruno Haible  <bruno@clisp.org>
72139
72140         * modules/sh-quote: New file.
72141         * MODULES.html.sh (Executing programs): Add sh-quote.
72142
72143 2005-01-19  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/sh-quote.h: New file, from GNU gettext.
72146         * lib/sh-quote.c: New file, from GNU gettext.
72147
72148 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         Merge from coreutils.
72151         * m4/ullong_max.m4: New file.
72152         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72153         (gl_MACROS): Assume localeconv exists.
72154
72155 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72156
72157         Merge changes from coreutils, as described below in several
72158         changelogs dated today.
72159
72160         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72161         (O_DIRECTORY): Remove; not needed here, since "." must be
72162         a directory.  All uses removed.
72163         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72164         universal on Suns, and we also need to test for IRIX.
72165         Revamp code to use 'if' rather than '#if'.
72166         Avoid unnecessary comparison of cwd->desc to 0.
72167
72168         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72169         for known valid error numbers rather than observed invalid ones.
72170
72171 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72172
72173         * modules/ullong_max: New file.
72174
72175         * modules/chdir-long, modules/openat: New files.
72176         * modules/save-cwd (Depends-on): Depend on chdir-long.
72177         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72178
72179 2005-01-18  Jim Meyering  <jim@meyering.net>
72180
72181         Merge from coreutils.
72182         * m4/chdir-long.m4, m4/openat.m4: New files.
72183         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72184         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72185         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72186         is sane and DOES follow symlinks.  Besides, testing 20 different
72187         systems found no broken chown implementations.
72188         Prompted by a change in rsync's copy of this macro.
72189         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72190
72191         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72192
72193         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72194         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72195         NULL-means-set-to-current-time semantics.
72196         Remove temporary file immediately, rather than waiting
72197         for configure's at-exit trap code to do it.
72198
72199 2005-01-18  Jim Meyering  <jim@meyering.net>
72200
72201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72202
72203         * lib/utimens.c (futimens): Account for the fact that futimes
72204         can also fail with errno == ENOSYS or errno == ENOENT.
72205         Patch from Dmitry V. Levin.
72206
72207         Change the name of the robust chdir function from chdir to chdir_long.
72208         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72209         (restore_cwd): Use chdir_long, not chdir.
72210         * lib/chdir-long.c: Renamed from chdir.c.
72211         * lib/chdir-long.h: Renamed from chdir.h.
72212         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72213         Hurd.
72214
72215 2005-01-18  Bruno Haible  <bruno@clisp.org>
72216
72217         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72218         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72219         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72220         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72221         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72222         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72223         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72224         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72225         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72226         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72227         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72228         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72229         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72230         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72231         Use an all-permissive copyright notice, recommended by RMS.
72232
72233 2005-01-18  Bob Proulx  <bob@proulx.com>
72234
72235         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72236         simplify offsetof() macro construct to avoid compile failure with
72237         native HP-UX 11.0 ANSI C compiler.
72238
72239 2005-01-17  Bruno Haible  <bruno@clisp.org>
72240
72241         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72242         redundant because stpncpy.m4 takes care of it.
72243
72244 2005-01-17  Bruno Haible  <bruno@clisp.org>
72245
72246         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72247
72248 2005-01-17  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72251         used.
72252
72253 2005-01-17  Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/fwriteerror.h (fwriteerror): Change specification to include
72256         fclose.
72257         * lib/fwriteerror.c: Include <stdbool.h>.
72258         (fwriteerror): At the end, close the file stream. Record whether
72259         stdout was already closed.
72260
72261 2005-01-17  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/execute.c (environ): Declare if needed.
72264         * lib/pipe.c (environ): Likewise.
72265         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72266
72267 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72268
72269         * modules/argp: Depend on vsnprintf
72270
72271 2005-01-10  Jim Meyering  <jim@meyering.net>
72272
72273         * modules/closeout (Depends-on): Add atexit.
72274
72275 2005-01-06  Bruno Haible  <bruno@clisp.org>
72276
72277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72278
72279 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72282         definitions to be after all include files, to avoid collisions.
72283         Problem reported by Bob Proulx.
72284
72285 2005-01-04  Jim Meyering  <jim@meyering.net>
72286
72287         Changes imported from coreutils.
72288         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72289         as the mkstemp template, use a temporary directory and an
72290         8.3-friendly template to avoid trouble on systems like DJGPP.
72291         Reported by Juan M. Guerrero via Stepan Kasal.
72292         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72293         close. Remove the temporary directory right away, rather than waiting
72294         for configure's at-exit trap code to do it.
72295         Suggestion from Stepan Kasal.
72296
72297 2005-01-01  Simon Josefsson  <jas@extundo.com>
72298
72299         * gnulib-tool: Print #include directives when --import'ing.
72300
72301 2004-12-28  Simon Josefsson  <jas@extundo.com>
72302
72303         * tests/test-base64.c: Include required header files.  Remove
72304         unused variables.
72305
72306 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         * modules/error (Depends-on): Remove gettext.
72309
72310 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72311
72312         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72313         not needed.  This removes a dependency on the gettext module.
72314         [defined _LIBC]: Do not include <libintl.h>; not needed.
72315
72316 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72319         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72320
72321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72324         HAVE_DECL_STRTOLD.
72325
72326 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * modules/getdate (Depends-on): Remove alloca-opt.
72329
72330 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72333
72334 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/argp-parse.c: Include <stddef.h>.
72337         (alignof, alignto): New macros.
72338         (parser_init): Don't assume that void * is aligned sufficiently
72339         for struct option.
72340
72341         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72342         need to extend the stack.
72343         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72344         large.
72345
72346 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72347
72348         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72349
72350 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72353         (2004-10-24) change.  Apparently this was a false alarm.
72354
72355         * modules/getdate: Depend on alloca-opt, not alloca.
72356
72357 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72360         Remove now-obsolete comment about AIX.
72361         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72362         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72363         (YYMAXDEPTH): New macro.
72364
72365 2004-12-18  Simon Josefsson  <jas@extundo.com>
72366
72367         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72368
72369 2004-12-18  Bruno Haible  <bruno@clisp.org>
72370
72371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72372
72373 2004-12-18  Bruno Haible  <bruno@clisp.org>
72374
72375         * lib/fatal-signal.c (fatal_signals): Make non-const.
72376         (init_fatal_signals): New function.
72377         (uninstall_handlers, install_handlers): Ignore signals that were set to
72378         SIG_IGN.
72379         (at_fatal_signal): Call init_fatal_signals.
72380         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72381         SIG_IGN.
72382         Reported by Paul Eggert.
72383
72384 2004-12-18  Bruno Haible  <bruno@clisp.org>
72385
72386         * doc/alloca.texi: New file.
72387         * doc/alloca-opt.texi: New file.
72388
72389 2004-12-17  Jim Meyering  <jim@meyering.net>
72390
72391         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72392         Otherwise, install-sh could exit with improper exit status when
72393         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72394
72395 2004-12-16  Simon Josefsson  <jas@extundo.com>
72396
72397         * tests/test-base64.c: Add license.
72398
72399 2004-12-15  Stepan Kasal  <address@hidden>
72400
72401         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72402
72403 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * modules/getcwd (Files): Add m4/d-ino.m4.
72406         Suggested by Mark D. Baushke.
72407
72408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/getdate.y (textint): New member "negative".
72411         (time_zone_hhmm): New function.
72412         Expect 14 shift-reduce conflicts, not 13.
72413         (o_colon_minutes): New rule.
72414         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72415         (yylex): Set the "negative" member of signed numbers.
72416
72417 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * doc/getdate.texi (Time of day items, Time zone items):
72420         Describe new formats +00:00, UTC+00:00.
72421
72422 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72425         spurious "-l"s.  Problem reported by Stepan Kasal.
72426
72427 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72430         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72431
72432 2004-12-04  Simon Josefsson  <jas@extundo.com>
72433
72434         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72435         Vandoorselaere <yoann@prelude-ids.org>.
72436
72437 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         Changes imported from coreutils.
72440         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72441         exist.
72442         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72443
72444 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         Changes imported from coreutils.
72447         * lib/hard-locale.c: Assume <locale.h> exists.
72448         Include "strdup.h".
72449         (GLIBC_VERSION): New macro.
72450         (hard_locale): Assume setlocale exists.
72451         Rewrite to avoid #ifdef.
72452         Use strdup rather than malloc + strcpy.
72453         * lib/human.c: Assume <locale.h> exists.
72454         (human_readable): Assume localeconv exists.
72455
72456 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * modules/hard-locale (Depends-on): Add strdup.
72459
72460 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72461
72462         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72463         convert T2, not T.  (Imported from libc.)
72464
72465 2004-11-30  Simon Josefsson  <jas@extundo.com>
72466
72467         * modules/restrict (License): Change to LGPL.
72468
72469 2004-11-30  Simon Josefsson  <jas@extundo.com>
72470
72471         * m4/restrict.m4: Add copyright and copying conditions.
72472
72473 2004-11-30  Simon Josefsson  <jas@extundo.com>
72474
72475         * m4/base64.m4: New file.
72476
72477 2004-11-30  Simon Josefsson  <jas@extundo.com>
72478
72479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72480         base64.
72481
72482         * tests/test-base64.c: New file.
72483
72484         * modules/base64: New file.
72485
72486 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72489         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72490
72491         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72492
72493 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72496         (__getcwd.c): Don't restore errno; glibc doesn't.
72497         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72498         first, falling back to our code only if its results look suspicious.
72499         Ensure that the resulting buffer is only as large as necessary.
72500
72501         * lib/readutmp.c: Include readutmp.h first.
72502         Include <errno.h>, since readutmp.h no longer does that.
72503         * lib/readutmp.h: Don't include <errno.h>,
72504         <sys/param.h>, <time.h>; not needed to establish interface.
72505         (errno): Remove decl.
72506         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72507         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72508         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72509
72510 2004-11-28  Simon Josefsson  <jas@extundo.com>
72511
72512         * lib/base64.h, base64.c: New file.
72513
72514 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72517
72518 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72521         (Depends-on): Remove pathmax, same.  Add mempcpy.
72522         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72523         (Makefile.am): Append getcwd.h to lib_SOURCES.
72524         (Include): Add getcwd.h.
72525         (Maintainer): Change from Jim Meyering to "all, glibc",
72526         since getdate now uses intended-for-glibc code.
72527         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72528         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72529
72530 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72533         HP's ANSI C compiler.
72534         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72535         Declaring int functions causes warnings on some modern systems and
72536         shouldn't be needed to compile on ancient ones.
72537         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72538         defined.
72539
72540         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72541         with the following changes.
72542         (__set_errno): Parenthesize properly.
72543         Include <stdbool.h>.
72544         (MIN, MAX, MATCHING_INO): New macros.
72545         (__getcwd): Define with prototype, not K&R form.
72546         Use heuristics to allocate default buffer on stack if possible.
72547         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72548         behavior, and to avoid the PATH_MAX limit when computing
72549         ../../../../...
72550         Use MATCHING_INO to compare inode number to file.
72551         Check for arithmetic overflow in size calculations.
72552         Fix bug in reallocation of dot array that caused getcwd to fail
72553         on directories nested deeper than 75.
72554         Be more careful about saving errno on error.
72555         Do not use realloc; use only free+malloc, as this is a bit
72556         more flexible and avoids a needless copy operation.
72557         Do not inspect st_dev and st_ino for symbolic links; POSIX
72558         doesn't specify the latter.
72559         Check for closedir errors.
72560         Avoid needless casts.
72561         Use "#ifdef weak_alias" around weak_alias, to be like other
72562         glibc code.
72563         The following changes to getcwd.c have effect only when used in
72564         gnulib; they have no effect inside glibc proper.
72565         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72566         as alloca isn't used.
72567         (alloca, __alloca): Likewise.
72568         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72569         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72570         unconditionally, as gnulib assumes C89 or better.
72571         Do not include <sys/param.h>.
72572         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72573         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72574         better.
72575         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72576         Include <dirent.h> in a way that is compatible with modern Autoconf.
72577         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72578         New macros, if not already defined.
72579         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72580         Use "_LIBC", not "defined _LIBC", for consistency.
72581         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72582         a mempcpy module.
72583         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72584         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72585         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72586         credit only to Jim Meyering and adjust the copyright dates.
72587         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72588         <stdlib.h>, <unistd.h>, "pathmax.h".
72589         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72590         (INITIAL_BUFFER_SIZE): Remove.
72591         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72592
72593 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72596         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72597         Use the _ONCE methods, for efficiency.
72598         Check for fcntl.h.  In test program, include <errno.h>
72599         and <fcntl.h> if available.  Remove old K&R cruft from
72600         test program.  Check for common errors in GNU/Linux,
72601         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72602         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72603         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72604         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72605         name accordingly.
72606         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72607         accommodate new getcwd.c.
72608         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72609         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72610         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72611         that's all we need now.
72612
72613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72614
72615         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72616         argp-parse.c depends on getopt internals, that means we should
72617         always use our getopt, to be on the safe side.
72618         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72619         order not to spoil the result of an eventual previous invocation
72620         of gl_GETOPT_SUBSTITUTE.
72621
72622 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72623
72624         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72625         redefinition warnings. To avoid them, include the defines
72626         in `#if !defined __need_getopt ... #endif'. The only place
72627         where __getopt_argv_const is used is in definitions
72628         of getopt_long and getopt_long_only below, which are as well
72629         protected by `#ifndef __need_getopt'.
72630         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72631         __need_getopt after including <stdio.h> and <unistd.h> These
72632         headers might have defined it.
72633
72634 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72637
72638 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72641         (futimens): New function, which uses futimes if available.
72642         (futimens, utimens): Support timespec==NULL, with same semantics
72643         as utime and utimens.
72644         * lib/utimens.h (futimens): New decl.
72645
72646 2004-11-23  Jim Meyering  <jim@meyering.net>
72647
72648         * lib/getopt_.h: Remove trailing blanks.
72649
72650 2004-11-23  Jim Meyering  <jim@meyering.net>
72651
72652         * lib/__fpending.c: Add comment.
72653
72654 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * modules/canonicalize (Depends-on): Add xreadlink.
72657         Problem reported by James Youngman.
72658
72659 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72662         New macros.
72663         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72664         optopt): Use them instead of invoking ## directly; otherwise, the
72665         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72666
72667 2004-11-19  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/strtok_r.c: Move comments from here...
72670         * lib/strtok_r.h: ... to here.
72671
72672 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72675         implementations that mishandle size_t overflow.
72676
72677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72680         might fail.  Problem reported by Yoann Vandoorselaere.
72681         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72682         implementations that mishandle size_t overflow.
72683
72684 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * modules/canon-host (Depends-on): Add strdup.
72687
72688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72689
72690         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72691
72692 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * lib/canon-host.c: Include "strdup.h".
72695         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72696         Use strdup instead of malloc/strcpy to duplicate strings.
72697
72698         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72699         (human_space_before_unit): New constant.
72700         * lib/human.c (human_readable): Support it.
72701
72702         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72703         (xgetcwd): Set errno correctly when failing.
72704         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72705         the failure is actually due to a PATH_MAX problem.
72706
72707         Further getopt changes to make it more likely that glibc will
72708         buy the changes back.
72709         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72710         (getopt): Use it, so to preserve glibc semantic
72711         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72712         when compiling for libc.
72713         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72714         (getopt_long, getopt_long_only): Use it.
72715
72716         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72717         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72718         (getopt): Argv is now char * const *, as per standard.
72719         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72720         not char *__getopt_argv_const *.
72721         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72722         _getopt_long_only_r): Likewise.
72723         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72724         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72725         _getopt_long_r, _getopt_long_only_r): Likewise.
72726         * lib/getopt_.h (__getopt_argv_const): Remove.
72727         (getopt): Argv is now char * const *, as per standard.
72728
72729         * lib/getdate.y (tORDINAL): New token.
72730         (day, relunit): Allow it for relative times.
72731         (relative_time_table): Use tORDINAL for ordinals.
72732
72733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72736         Document that "second" isn't allowed as an ordinal number.
72737
72738 2004-11-16  Jim Meyering  <jim@meyering.net>
72739
72740         * modules/closeout (Depends-on): Add fpending.
72741
72742 2004-11-15  Jim Meyering  <jim@meyering.net>
72743
72744         * lib/closeout.c: Include "__fpending.h" once again.
72745         Include <stdbool.h>.
72746         (close_stdout): Don't fail just because stdout was closed initially,
72747         since some programs don't write to stdout in the normal course of
72748         operation (other than --version and --help), and we don't want this
72749         function to make e.g. `touch file >&-' fail.
72750         But do fail if it was closed and someone has tried to write to it.
72751         E.g., `printf foo >&-' must fail.
72752
72753 2004-11-13  Jim Meyering  <jim@meyering.net>
72754
72755         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72756
72757 2004-11-12  Simon Josefsson  <jas@extundo.com>
72758
72759         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72760         small doc fix is still pending.
72761
72762 2004-11-11  Simon Josefsson  <jas@extundo.com>
72763
72764         * modules/strtok_r: New file.
72765
72766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72767         strtok_r.
72768
72769 2004-11-11  Simon Josefsson  <jas@extundo.com>
72770
72771         * m4/strtok_r.m4: New file.
72772
72773         * m4/getopt.m4: Replace opterr.
72774
72775 2004-11-11  Simon Josefsson  <jas@extundo.com>
72776
72777         * lib/strtok_r.h, strtok_r.c: New file.
72778
72779 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72782         of replacing opterr, getopt, etc.  This should handle the
72783         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72784
72785 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72788         we can stop lying to compilers about the constness of argv when we
72789         are compiled outside glibc.
72790         (getopt, getopt_long, getopt_long_only): Use it.
72791         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72792         _getopt_internal, getopt): Likewise.
72793         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72794         _getopt_long_only_r): Likewise.
72795         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72796         _getopt_long_r, _getopt_long_only_r): Likewise.
72797
72798         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72799         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72800         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72801         the other external symbols.
72802         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72803         declaration, since the above renaming now works around collisions.
72804
72805 2004-11-11  Jim Meyering  <jim@meyering.net>
72806
72807         * lib/linebreak.c: Remove trailing blanks.
72808         * lib/alloca_.h: Likewise.
72809         * lib/acosl.c: Likewise.
72810         * lib/euidaccess.c: Likewise.
72811         * lib/allocsa.h: Likewise.
72812
72813 2004-11-10  Simon Josefsson  <jas@extundo.com>
72814
72815         * m4/getaddrinfo.m4: New file.
72816
72817 2004-11-10  Simon Josefsson  <jas@extundo.com>
72818
72819         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72820
72821 2004-11-10  Simon Josefsson  <jas@extundo.com>
72822
72823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72824         getaddrinfo.
72825
72826         * modules/getaddrinfo: New file.
72827
72828 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72831
72832 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72833
72834         * lib/mktime.c (SHR): New macro, which is a portable
72835         substitute for >> that should work even on Crays.
72836         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72837         Problem reported by Mark D. Baushke in
72838         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72839         * lib/getdate.y (SHR): Likewise.
72840         (tm_diff): Use it.
72841         * lib/strftime.c (SHR): Likewise.
72842         (tm_diff): Use it.
72843         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72844         quote_these_too, so that right shifts are well defined.  All uses
72845         changed.
72846
72847 2004-11-10  Jim Meyering  <jim@meyering.net>
72848
72849         Ensure that no close failure goes unreported.
72850         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72851         return early when it seems there's nothing to flush.
72852         Don't include __fpending.h.
72853
72854 2004-11-10  Jim Meyering  <jim@meyering.net>
72855
72856         * modules/closeout (Depends-on): Remove fpending.
72857
72858 2004-11-10  Jim Meyering  <jim@meyering.net>
72859
72860         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72861
72862 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72865         gl_FUNC_STRFTIME.
72866         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72867         and AC_REQUIRE when possible, to avoid duplicate checks.
72868         Check for <wchar.h>.
72869
72870 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72873
72874 2004-11-09  Bruno Haible  <bruno@clisp.org>
72875
72876         * m4/sockpfaf.m4: New file.
72877
72878 2004-11-05  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72881         Reported by Mark D. Baushke <mdb@cvshome.org>.
72882
72883 2004-11-04  Bruno Haible  <bruno@clisp.org>
72884
72885         2004-09-11  Bruno Haible  <bruno@clisp.org>
72886                 * allocsa.valgrind: New file.
72887         2004-02-06  Bruno Haible  <bruno@clisp.org>
72888                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72889                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72890                 Reported by Christopher Seip <chris.seip@hp.com>.
72891
72892 2004-11-04  Bruno Haible  <bruno@clisp.org>
72893
72894         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72895         (Makefile.am): Distribute it.
72896
72897 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72900         with errno == ERANGE if the buffer is too small.
72901         Problem reported by Mark D. Baushke.
72902
72903 2004-11-03  Albert Chin  <china@thewrittenword.com>
72904             Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72907         equivalent, substitute $ac_type for equivalent type rather than
72908         blindly using uint32_t *always* which won't work if uint32_t is not
72909         available.  Define _UINT32_T to work around typedef of uint32_t if
72910         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72911         2.5.1.
72912
72913 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72914
72915         * m4/jm-macros.m4: Sync from coreutils.
72916         (gl_MACROS): Check for mbrlen, for pathchk.
72917         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72918
72919 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         * lib/xreadlink.c (MAXSIZE): New macro.
72922         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72923         size does not exceed MAXSIZE.  Avoid cast.
72924         As suggested by Mark D. Baushke in
72925         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72926         if readlink fails with buffer size just under MAXSIZE, try again
72927         with MAXSIZE.
72928
72929 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72932
72933 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72934         and  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72937         (get_date): Overparenthesize to avoid GCC warning.
72938
72939 2004-11-02  Bruno Haible  <bruno@clisp.org>
72940
72941         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72942         returns void.
72943
72944 2004-11-02  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72947         function returns void.
72948
72949 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72952         fflush_unlocked, flockfile, funlockfile, funlockfile,
72953         fputs_unlocked, putc_unlocked.
72954
72955 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72958         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72959         already declared.
72960
72961 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         * modules/getdate (Files): Add doc/getdate.texi.
72964         (Depends-on): Add setenv, xalloc.
72965
72966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/getdate.y: Add support for TZ="foo" within a date string.
72969         Fix some bugs near time_t boundaries.  Reject dates with
72970         out-of-range components, e.g., "Sept 31".
72971         Include <stdlib.h>, "setenv.h", "xalloc.h".
72972         (ISDIGIT_LOCALE): Remove; unused.
72973         Note that the TZ and time functions used here are not reentrant.
72974         (mktime_ok, get_tz): New functions.
72975         (TZBUFSIZE): New constant.
72976         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72977         This requires that we sometimes generate our own TZ="XXX..." setting.
72978
72979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * doc/getdate.texi: New file, from coreutils with modifications for
72982         the new TZ parsing.
72983
72984 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72985
72986         * lib/mktime.c (not_equal_tm): Remove redundant check.
72987
72988 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * modules/regex (lib_SOURCES): Add regex.c.
72991         Reported by James Youngman in
72992         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72993
72994 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * lib/getdate.y: Use Bison 1.875 features, and some minor
72997         code cleanups.  This change does not affect semantics.
72998         Don't include <stdlib.h>; no longer needed.
72999         Don't include unlocked-io.h; only the "#if TEST" code uses
73000         stdio, and performance isn't crucial there.
73001         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73002         Bison 1.875 features as described below.
73003         All uses of "PC." replaced by "pc->".
73004         (YYSTYPE): Add a forward declaration.
73005         (yylex, yyerror): Use full prototypes in forward decls.
73006         Use "%pure-parser" rather than obsolescent "%pure_parser".
73007         Use %parse-param and %lex-param instead of obsolescent
73008         YYPARSE_PARAM and YYLEX_PARAM.
73009         (meridian_table, month_and_day_table, time_units_table,
73010         relative_time_table, time_zone_table, military_table,
73011         lookup_zone, lookup_word, get_date):
73012         Use NULL instead of 0 where appropriate.
73013         (to_hour): Avoid abort (), to avoid a dependency on
73014         stdlib.h.
73015         (yyerror, yylex): Now accepts parser_control * arg.
73016         (main) [TEST]: Use '\0' rather than 0 for char.
73017
73018 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73021
73022 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73025         It's now the caller's responsibility to handle the case where
73026         !HAVE_GETPAGESIZE && !defined getpagesize.
73027
73028         * lib/mktime.c (leapyear): Arg is long int, not int.
73029
73030 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73031
73032         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73033
73034 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73035
73036         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73037         missing.  Problem reported by James Youngman.
73038
73039 2004-10-16  Simon Josefsson  <jas@extundo.com>
73040
73041         * gnulib-tool: Fix comments.  Fix parse problem.
73042         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73043
73044 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73047         implementation of getopt_long.  Problem reported by Alexander Taler in:
73048         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73049
73050 2004-10-15  Bruno Haible  <bruno@clisp.org>
73051
73052         * gnulib-tool: Untabify. Initialize supplied_libname.
73053         (func_usage): More homogenous output.
73054         (func_modules_transitive_closure, func_modules_to_filelist,
73055         func_emit_lib_Makefile_am): New functions.
73056         (func_import): New function, extracted from big case statement. Use
73057         func_get_license, func_modules_transitive_closure,
73058         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73059         opt_lgpl. Don't use test -a, as it's not portable.
73060         (func_create_testdir): Use func_modules_transitive_closure,
73061         func_modules_to_filelist, func_emit_lib_Makefile_am.
73062
73063 2004-10-15  Bruno Haible  <bruno@clisp.org>
73064
73065         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73066
73067 2004-10-15  Bruno Haible  <bruno@clisp.org>
73068
73069         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73070         the portions belonging to each module.
73071         Suggested by Derek Robert Price <derek@ximbiot.com>.
73072
73073 2004-10-12  Simon Josefsson  <jas@extundo.com>
73074
73075         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73076         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73077         to real functions.
73078
73079 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73080
73081         * modules/vsnprintf: New file.
73082
73083 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73084
73085         * m4/vsnprintf.m4: New file.
73086
73087 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73088
73089         * lib/vsnprintf.h: New file.
73090         * lib/vsnprintf.c: New file.
73091
73092 2004-10-11  Bruno Haible  <bruno@clisp.org>
73093
73094         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73095         vsnprintf.
73096
73097 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73100
73101 2004-10-07  Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73104         fits into the provided buffer.
73105
73106 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * lib/diacrit.c, diacrit.h: Add GPL notice.
73109
73110         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73111         notice.
73112         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73113         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73114         This avoids a potential constant-folding bug.
73115
73116 2004-10-05  Bruno Haible  <bruno@clisp.org>
73117
73118         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73119         for the declaration of strsep.
73120
73121 2004-10-05  Bruno Haible  <bruno@clisp.org>
73122
73123         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73124
73125 2004-10-04  Simon Josefsson  <jas@extundo.com>
73126
73127         * modules/memmem: New file.
73128         * tests/test-memmem.c: New file.
73129         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73130
73131 2004-10-04  Simon Josefsson  <jas@extundo.com>
73132
73133         * m4/memmem.m4: New file.
73134
73135 2004-10-04  Simon Josefsson  <jas@extundo.com>
73136
73137         * lib/memmem.h: New file.
73138         * lib/memmem.c: New file, taken from glibc.
73139
73140 2004-10-04  Simon Josefsson  <jas@extundo.com>
73141
73142         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73143         '#ifdef USE_UNLOCKED_IO'.
73144
73145 2004-10-04  Simon Josefsson  <jas@extundo.com>
73146
73147         * config/srclist.txt: Add memmem from glibc.
73148
73149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73152
73153         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73154         modules/exclude, modules/getdate, modules/getline,
73155         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73156         modules/getusershell, modules/linebuffer, modules/md5,
73157         modules/mountlist, modules/posixtm, modules/readtokens,
73158         modules/readutmp, modules/regex, modules/sha1,
73159         modules/version-etc, modules/yesno:
73160         Remove dependency on unlocked-io.
73161
73162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73165
73166         * m4/unlocked-io.m4: Add copyright notice.
73167         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73168
73169 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73172         * lib/xmalloc.c (xmemdup): Likewise.
73173         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73174         XFREE): Remove these long-obsolescent macros.
73175         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73176         * lib/xstrdup.c: Remove.
73177
73178         * lib/regex.c (re_comp): Cast gettext return value to char *,
73179         Problem reported by Martin Neitzel via Mark D. Baushke.
73180
73181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73184         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73185         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73186         regex.c, sha1.c, version-etc.c, yesno.c:
73187         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73188         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73189         the includer's responsibility.
73190
73191         Sync from coreutils.
73192
73193         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73194         points to the start of a string, as the C Standard says the
73195         resulting behavior is undefined.
73196
73197         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73198         simple -> simple_backups, numbered_existing ->
73199         numbered_existing_backups, numbered -> numbered_backups
73200         to avoid shadowing problems.  All uses changed.
73201         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73202         * lib/backupfile.c (check_extension, numbered_backup):
73203         Rename locals to avoid shadowing 'basename'.
73204         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73205         once.
73206
73207         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73208         * lib/.cvsignore: Add getopt.h.
73209
73210 2004-10-04  Bruno Haible  <bruno@clisp.org>
73211
73212         * modules/README: New file.
73213         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73214         not a module.
73215
73216 2004-10-02  Jim Meyering  <jim@meyering.net>
73217
73218         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73219
73220 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73221
73222         * modules/strsep: New file.
73223
73224 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73225
73226         * m4/strsep.m4: New file.
73227
73228 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73229
73230         * lib/strsep.h: New file.
73231         * lib/strsep.c: New file.
73232
73233 2004-10-01  Simon Josefsson  <jas@extundo.com>
73234
73235         * lib/snprintf.c (snprintf): Handle size==0.
73236
73237 2004-10-01  Simon Josefsson  <jas@extundo.com>
73238             Bruno Haible  <bruno@clisp.org>
73239
73240         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73241         (snprintf): Declare 'args'.
73242
73243 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * lib/snprintf.c: Remove comments as to why each header is needed.
73246
73247 2004-10-01  Bruno Haible  <bruno@clisp.org>
73248
73249         * MODULES.html.sh: Add strsep.
73250
73251 2004-09-30  Simon Josefsson  <jas@extundo.com>
73252
73253         * modules/snprintf: New file.
73254
73255 2004-09-30  Simon Josefsson  <jas@extundo.com>
73256
73257         * m4/snprintf.m4: New file.
73258
73259 2004-09-30  Simon Josefsson  <jas@extundo.com>
73260
73261         * lib/snprintf.h, lib/snprintf.c: New files.
73262
73263 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73264
73265         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73266         (hol_entry_help): Never translate an empty string.
73267         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73268         * lib/argp.h (OPTION_NO_TRANS): New option.
73269
73270 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * modules/argp (Maintainer): Replace Simon Josefsson
73273         by Sergey Poznyakoff.
73274
73275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73278         changes merged back into glibc.
73279
73280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73283
73284 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73285
73286         * lib/xvasprintf.c: Include xalloc.h.
73287         (xvasprintf): Use xalloc_die, not xmalloc_die.
73288
73289 2004-09-29  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/alloca-opt: New file, derived from modules/alloca.
73292         * modules/allocsa: Depend on alloca-opt instead of alloca.
73293         * modules/setenv: Likewise.
73294         * modules/vasnprintf: Likewise.
73295         * MODULES.html.sh: Add alloca-opt.
73296
73297 2004-09-28  Simon Josefsson  <jas@extundo.com>
73298
73299         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73300         LGPL, and to replace license template from GPL to LGPL.
73301
73302 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * modules/dummy: Change license to LGPL.
73305
73306 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73309
73310 2004-09-24  Simon Josefsson  <jas@extundo.com>
73311
73312         * modules/minmax (License): Change from GPL to LGPL.
73313
73314 2004-09-23  Simon Josefsson  <jas@extundo.com>
73315
73316         * gnulib-tool (--import): Typo.
73317
73318 2004-09-23  Simon Josefsson  <jas@extundo.com>
73319
73320         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73321
73322 2004-09-22  Bruno Haible  <bruno@clisp.org>
73323
73324         * modules/*: Add 'License' field.
73325         * gnulib-tool: Accept --extract-license option.
73326         (func_get_license): New function.
73327
73328 2004-09-21  Bruno Haible  <bruno@clisp.org>
73329
73330         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73331         Reported by Simon Josefsson.
73332
73333 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73336         gl_AC_TYPE_LONG_LONG.
73337
73338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73341
73342 2004-09-18  Simon Josefsson  <jas@extundo.com>
73343         and  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73346         calls with autoreconf.  Define GL_LIB.
73347
73348 2004-09-14  Karl Berry  <karl@gnu.org>
73349
73350         * config/srclist.txt: unsync setenv.c, sigh.
73351
73352 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73355         Problem reported by Bruno Haible in:
73356         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73357
73358 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * config/srclist.txt: Comment out argp-pvh.c.
73361
73362 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73365         in case some system header has #define'd it.  Problem reported by
73366         Soeren D. Schulze in
73367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73368
73369 2004-09-09  Karl Berry  <karl@gnu.org>
73370
73371         * regex.[ch]: delete from the root.  These were supposed to be
73372                 synced with emacs cvs, but this has not happened for about
73373                 a year, and anyway nothing else uses emacs regex.[ch].
73374                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73375                 lib/regex[.ch] is untouched.
73376
73377 2004-09-09  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73380
73381 2004-09-09  Bruno Haible  <bruno@clisp.org>
73382
73383         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73384         modifications.
73385         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73386
73387 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73388
73389         * modules/xvasprintf: New file.
73390         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73391
73392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73393
73394         * lib/xvasprintf.h: New file.
73395         * lib/xvasprintf.c: New file.
73396         * lib/xasprintf.c: New file.
73397
73398 2004-09-08  Bruno Haible  <bruno@clisp.org>
73399
73400         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73401
73402 2004-09-08  Bruno Haible  <bruno@clisp.org>
73403
73404         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73405         length is > INT_MAX.
73406         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73407         more.
73408
73409 2004-09-08  Bruno Haible  <bruno@clisp.org>
73410
73411         * lib/stdint_.h: New file, taken from GNU clisp.
73412
73413 2004-09-08  Bruno Haible  <bruno@clisp.org>
73414             Oskar Liljeblad  <oskar@osk.mine.nu>
73415
73416         * modules/stdint: New file.
73417         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73418
73419 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         Import from coreutils.
73422         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73423         strings on unbounded length.  alloca's performance benefits aren't
73424         that important here.
73425         (V_STRDUP): Remove.
73426         (parse_with_separator): New function, with most of the internals
73427         of the old parse_user_spec.  Allow user to omit both user and group,
73428         for compatibility with FreeBSD.
73429         Clone only the user name, not the entire spec.
73430         Do not set *uid, *gid unless entirely successful.
73431         Avoid memory leak in some failing cases.
73432         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73433         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73434         (parse_user_spec): Rewrite to use parse_with_separator.
73435
73436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * modules/userspec: Don't depend on alloca.
73439
73440 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73443
73444 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73447         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73448         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73449
73450 2004-08-16  Simon Josefsson  <jas@extundo.com>
73451
73452         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73453         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73454         Add --dry-run for --import.
73455         Let user provided command line parameters override configure.ac
73456         settings.
73457
73458 2004-08-12  Simon Josefsson  <jas@extundo.com>
73459
73460         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73461         as discussed with Paul Eggert in threads rooted at
73462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73463         and
73464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73465         Before, the test was empty, and relied on ELIDE_CODE in source
73466         code.)
73467         (gl_PREREQ_GETOPT): New macro.
73468         (gl_GETOPT): Use them.
73469
73470 2004-08-12  Simon Josefsson  <jas@extundo.com>
73471
73472         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73473         * lib/getopt_.h: Renamed from getopt.h.
73474
73475 2004-08-12  Simon Josefsson  <jas@extundo.com>
73476
73477         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73478         Change default library name from libfoo to libgnu.
73479         Now, if you have a configure.ac that says:
73480                 gl_SOURCE_BASE(gl)
73481                 gl_M4_BASE(gl/m4)
73482                 gl_MODULES(error getopt etcetera)
73483                 gl_INIT
73484         you can import all you need by running:
73485                 ../gnulib/gnulib-tool --import
73486
73487         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73488         (Makefile.am): Rewrite, use logic from argz.
73489         (Include): Use <getopt.h> instead of "getopt.h".
73490
73491 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * modules/argp (Files): Add m4/unlocked-io.m4.
73494         (Depends-on): Add extensions.
73495
73496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73499         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73500         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73501         Check for program_invocation_name, program_invocation_short_name,
73502         flockfile, funlockfile, features.h, _getopt_long_only_r.
73503
73504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73507         its complicated substitute.
73508         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73509         and program_invocation_name.
73510         (__argp_basename) [!_LIBC]: Remove; the only use was
73511         replaced by its body.
73512         (__argp_short_program_name): Change condition from
73513         !defined __argp_short_program_name to
73514         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73515         to match argp-namefrob.h.
73516         (__argp_failure): Don't assume strerror_r returns char *.
73517         * lib/argp-parse.c (N_): Define unconditionally.
73518         (argp_default_options): Fill out initializers with 0 to avoid
73519         gcc warnings.
73520
73521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73524         getopt1.c.
73525
73526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73527
73528         Merge from coreutils.
73529
73530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73531
73532         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73533         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73534
73535 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         Merge from coreutils.
73538
73539         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73540         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73541         for Reliant Unix 5.43.
73542
73543         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73544         (union fooround): Use uintmax_t, not long int.
73545         The rest is a merge from libc:
73546         [defined _LIBC]: Include <shlib-compat.h>.
73547         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73548
73549         * lib/settime.c (settime): Recode to avoid warning with
73550         Sun Forte C 6U2.
73551
73552         * lib/strverscmp.c: Convert to UTF-8.
73553
73554 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73557         m4/uintmax_t.m4.
73558
73559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * modules/xalloc-die: New file.
73562         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73563
73564         * modules/md5 (Files): Add m4/uint32_t.m4.
73565         * modules/sha1: Renamed from modules/sha.
73566         (Files):
73567         Rename lib/sha.h to lib/sha1.h.
73568         Rename lib/sha.c to lib/sha1.c.
73569         Rename m4/sha.m4 to m4/sha1.m4.
73570         (lib_SOURCES): Likewise.
73571         (configure.ac): Rename gl_SHA to gl_SHA1.
73572         (Include): sha.h -> sha1.h.
73573
73574 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73575
73576         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73577         * m4/sha1.m4: Renamed from sha.m4.
73578         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73579
73580 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * lib/obstack.h (obstack_empty_p):
73583         Don't assume that chunk->contents is suitably aligned.
73584         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73585         Likewise. Problem reported by Benno in
73586         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73587
73588         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73589         readable.  This could be improved further but it'd take some work.
73590
73591 2004-08-08  Simon Josefsson  <jas@extundo.com>
73592
73593         * modules/xgethostname (Depends-on): Remove exit and error (not
73594         used).
73595
73596         * modules/getpass-gnu: Add getpass.h.
73597         (Depends-on): Add stdbool.
73598         * modules/getpass: Add getpass.h.
73599
73600 2004-08-08  Simon Josefsson  <jas@extundo.com>
73601
73602         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73603         Check getpass declaration.
73604
73605 2004-08-08  Simon Josefsson  <jas@extundo.com>
73606
73607         * lib/xgethostname.c: Don't include error.h (not used).
73608
73609         * lib/getpass.h: Add.
73610         * lib/getpass.c: Include getpass.h first.
73611
73612 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         * lib/xalloc-die.c: New file.
73615         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73616         All uses removed.
73617         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73618         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73619         xalloc-die.c.
73620         (_, N_, xalloc_die): Move to xalloc-die.c.
73621         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73622         so that we needn't mess with xalloc_msg_memory_exhausted.
73623
73624         * lib/sha1.h: Renamed from sha.h.
73625         (SHA1_H): Renamed from _SHA_H.
73626         (sha1_ctx): Renamed from sha_ctx.
73627         (sha1_init_ctx): Renamed from sha_init_ctx.
73628         (sha1_process_block): Renamed from sha_process_block.
73629         (sha1_process_bytes): Renamed from sha_process_bytes.
73630         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73631         (sha1_read_ctx): Renamed from sha_read_ctx.
73632         (sha1_stream): Renamed from sha_stream.
73633         (sha1_buffer): Renamed from sha_buffer.
73634         * lib/sha1.c: Likewise; renamed from sha.c.
73635         Do not include <sys/types.h>.
73636         Include <stddef.h> rather than <stdlib.h>.
73637
73638 2004-08-08  Bruno Haible  <bruno@clisp.org>
73639
73640         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73641         FILESYSTEM_PREFIX_LEN.
73642         * lib/progreloc.c: Likewise.
73643         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73644
73645 2004-08-06  Simon Josefsson  <jas@extundo.com>
73646
73647         * modules/progname (Depends-on): Don't depend on stdbool.
73648
73649 2004-08-06  Simon Josefsson  <jas@extundo.com>
73650
73651         * modules/getsubopt: New file.
73652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73653         getsubopt.
73654
73655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         More merge from coreutils.
73658
73659         * m4/utimens.m4, m4/utimecmp.m4: New files.
73660         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73661         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73662         prereq.m4, sha.m4: Import changes from coreutils.
73663
73664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         More merge from coreutils.
73667         * modules/raise, modules/readtokens0, modules/utimens:
73668         * modules/utimecmp, module/xnanosleep: New files.
73669         * modules/strftime: Add lib/strftime.h.
73670         Change include from <time.h> to "strftime.h".
73671         * modules/yesno: Add lib/yesno.h.
73672         * modules/backupfile: Remove lib/addext.c.
73673         * modules/euidaccess: Add stat-macros.h.
73674         * modules/canonicalize, modules/euidaccess,
73675         modules/filemode, modules/lchown, modules/makepath,
73676         modules/rmdir, modules/stat: Likewise.
73677
73678 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         Merge from tar.
73681         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73682         SIZE_MAX is a valid preprocessor constant.
73683         (__argp_basename): Change from "#ifndef _LIBC"
73684         to "#ifndef __argp_short_program_name", so that
73685         we don't compile these functions for tar.
73686
73687         More merges from coreutils.
73688         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73689         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73690         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73691         * lib/addext.c: Remove; no longer needed.
73692         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73693         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73694         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73695         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73696         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73697         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73698         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73699         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73700         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73701         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73702         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73703         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73704         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73705         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73706         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73707         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73708         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73709         Import changes from coreutils.
73710
73711 2004-08-05  Simon Josefsson  <jas@extundo.com>
73712
73713         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73714
73715 2004-08-05  Simon Josefsson  <jas@extundo.com>
73716
73717         * m4/getsubopt.m4: New file.
73718
73719 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73720
73721         Merge from coreutils.
73722
73723         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73724         * m4/getcwd-path-max.m4: New files.
73725
73726         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73727         FILESYSTEM_PREFIX_LEN ->
73728         FILE_SYSTEM_PREFIX_LEN.
73729         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73730         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73731         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73732         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73733
73734         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73735         prerequisite modules now handle the DOS stuff.
73736         Don't check for unistd.h.
73737
73738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73739
73740         Merge from coreutils.
73741
73742         * lib/.gdb-history: Remove; this doesn't belong here.
73743
73744         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73745         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73746         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73747         * lib/getcwd.c: New files.
73748
73749         * lib/dirname.h: Include <stdbool.h>.
73750         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73751         for consistency with POSIX terminology.  All uses changed.
73752         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73753         (strip_trailing_slashes): Use bool for booleans.
73754         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73755
73756         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73757         sometimes returns a positive errno value even when it succeeds.
73758         (print_errno_message) [!LIBC]: Fall back on strerror if
73759         __strerror_r fails.
73760
73761         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73762         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73763         (longest_relative_suffix): New function.
73764         (path_concat): Use it.  Assume first argument is not NULL.
73765         Port to DOS.  Omit redundant separators.
73766         Report an error instead of returning NULL.
73767         Use mempcpy instead of memcpy.
73768         (xpath_concat): Remove: not declared or used.
73769
73770         * lib/same.h: Include <stdbool.h>
73771         (same_name): Return bool, not int.
73772         * lib/same.c (same_name): Likewise.
73773         (errno): Don't declare; we assume C89 or better now.
73774
73775         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73776         if not already defined.
73777
73778         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73779         * lib/dup-safer.c (errno): Likewise.
73780
73781 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73782
73783         Merge from coreutils.
73784         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73785         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73786         * modules/path-concat: Don't depend on strdup.
73787
73788 2004-08-03  Simon Josefsson  <jas@extundo.com>
73789
73790         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73791         * lib/progname.h: Don't include stdbool.h.
73792
73793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73796         * MODULES.html.sh (func_all_modules): Remove fatal.
73797
73798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73801
73802 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73805         working.
73806
73807 2004-08-02  Simon Josefsson  <jas@extundo.com>
73808
73809         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73810         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73811         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73812
73813 2004-08-01  Simon Josefsson  <jas@extundo.com>
73814
73815         * lib/xgetdomainname.c: Include stdlib.h, for free().
73816
73817 2004-07-19  Bruno Haible  <bruno@clisp.org>
73818
73819         * MODULES.html.sh (func_all_modules): Add dummy.
73820
73821 2004-07-16  Simon Josefsson  <jas@extundo.com>
73822
73823         * modules/dummy: New file.
73824
73825 2004-07-16  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/dummy.c: New file.
73828
73829 2004-07-16  Bruno Haible  <bruno@clisp.org>
73830
73831         * lib/backupfile.h: Add extern "C" for C++.
73832         * lib/closeout.h: Likewise.
73833         * lib/copy-file.h: Likewise.
73834         * lib/findprog.h: Likewise.
73835         * lib/full-write.h: Likewise.
73836         * lib/pathname.h: Likewise.
73837         * lib/progname.h: Likewise.
73838         * lib/stpcpy.h: Likewise.
73839         * lib/stpncpy.h: Likewise.
73840         * lib/strcase.h: Likewise.
73841         * lib/strstr.h: Likewise.
73842         * lib/xalloc.h: Likewise.
73843
73844         * lib/mbswidth.h: Add extern "C" for C++.
73845         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73846
73847 2004-07-13  Robert Millan  <robertmh@gnu.org>
73848
73849         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73850
73851 2004-07-09  Simon Josefsson  <jas@extundo.com>
73852
73853         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73854         failed without this.)
73855
73856 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * modules/chown (Files): Add lib/fchown-stub.c, since
73859         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73860
73861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/fchown-stub.c: New file.
73864
73865 2004-06-24  Jim Meyering  <jim@meyering.net>
73866
73867         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73868
73869 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73870
73871         * modules/argz: Omit "#include".
73872
73873         * MODULES.html.sh (func_all_modules): Add calloc, to match
73874         2004-06-01 addition of calloc module.
73875
73876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         * m4/argz.m4: New file, which is autoupdated from libtool.
73879
73880 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73881
73882         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73883         libtool.
73884
73885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         * config/srclist-update: Don't insist on "USA." before the
73888         close-comment, as libtool omits the period and puts the */ on a
73889         separate line.
73890         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73891         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73892
73893 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73894
73895         * modules/argz: New file.
73896         * MODULES.html.sh (func_all_modules): Add argz.
73897
73898 2004-06-12  Jim Meyering  <jim@meyering.net>
73899         and  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * modules/hash (Files): Add lib/xalloc.h.
73902         * modules/pipe (Depends-on): Add wait-process.
73903         * modules/stat (Depends-on): Add xalloc.
73904         * modules/userspec (Files): Add lib/userspec.h.
73905         * modules/xstrto
73906
73907         Upgrade from gettext-0.13.
73908         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73909         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73910         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73911
73912 2004-06-10  Jim Meyering  <jim@meyering.net>
73913
73914         * lib/calloc.c: New file.
73915
73916 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         * lib/getdate.y (yylex): Allow space between sign and number.
73919         Problem reported by Dan Jacobson.
73920
73921 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         Merge from coreutils CVS.
73924
73925         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73926         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73927         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73928         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73929         xstrtol.m4: Fix copyright date and/or serial number.
73930
73931         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73932         See if we need an fchown replacement.
73933         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73934         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73935         and use the replacement function if we detect either defect.
73936
73937         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73938         gl_UTIMECMP.
73939
73940 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73941         and  Jim Meyering  <jim@meyering.net>
73942
73943         Merge from coreutils CVS.
73944
73945         * lib/stat-macros.h: New file, with contents from file-type.h
73946         and coreutils' system.h.
73947         * lib/file-type.c: Include "stat-macros.h".
73948         * lib/file-type.h (file_type): Move all macro definitions to new file,
73949         stat-macros.h.
73950
73951         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73952         Wrap old code with this conditional.
73953         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73954         function that does not dereference symlinks.
73955         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73956
73957         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73958         dependency problems.
73959         (xreadlink): Accept new arg SIZE, for efficiency.
73960         All decls and uses changed.
73961         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73962
73963         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73964         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73965
73966         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73967         sysexits.h.
73968
73969 2004-06-01  Jim Meyering  <jim@meyering.net>
73970
73971         * m4/calloc.m4: New file.
73972
73973 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73976         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73977         Also, fix a typo in a diagnostic.
73978
73979 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73982         or AC_FUNC_REALLOC.
73983
73984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73987         macros to be defined.
73988         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73989         the allocator returns NULL because the requested size is zero.
73990
73991 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73994         var.  Add comment explaining why libc still defines it.  This
73995         merges the following patch from glibc:
73996         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73997
73998 2004-05-20  Andreas Schwab  <schwab@suse.de>
73999
74000         * m4/free.m4: Replace free if it not known to work, not the other
74001         way round.
74002
74003 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74006         present in glibc since revision 1.1 of this file.
74007         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74008         obstack_alignment_mask, obstack_alloc, obstack_base,
74009         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74010         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74011         obstack_grow0, obstack_init, obstack_int_grow,
74012         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74013         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74014         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74015         nonexistent functions.
74016
74017 2004-05-18  Karl Berry  <karl@gnu.org>
74018
74019         * config/srclist.txt: break link for vasnprintf.c.
74020
74021 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         Port obstack to the AS/400, where pointers are 16 bytes wide and
74024         you cannot cast an integer to a valid pointer.  This patch is
74025         currently waiting to be integrated into glibc; see
74026         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74027
74028         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74029         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74030         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74031         (struct obstack): temp member is now a union of a pointer and
74032         an integer, instead of an integer.  All integer uses changed.
74033         This does not affect the physical layout of struct obstack,
74034         except on hosts (like the AS/400) where the size or alignment of
74035         void * is greater than that of ptrdiff_t.
74036         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74037         __STDC__)]: Store temporary in pointer member of union, not
74038         integer member.
74039         * lib/obstack.c: Include <stddef.h>, for offsetof.
74040         (struct fooalign): Remove; it doesn't need a name.
74041         (union fooround): Change double to long double, and add void *.
74042         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74043         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74044         not a macro.  Hence the values are always int; so remove all
74045         casts-to-int in uses.
74046
74047 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74050         we can get this patch merged into glibc.
74051
74052 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74053             Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * m4/argp: Depend on alloca.
74056
74057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74058             Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74061         freecoding.
74062
74063 2004-05-17  Bruno Haible  <bruno@clisp.org>
74064
74065         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74066         precision that consists of a '.' followed by an empty digit string.
74067         Patch by Tor Lillqvist <tml@iki.fi>.
74068
74069 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74072         for backward compatibility with older code.  We need our own
74073         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74074         it under some other name, and our alloca.h will define it.
74075
74076 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74077             Derek Price  <derek@ximbiot.com>
74078
74079         * lib/alloca.c: Include <alloca.h>, to get our interface.
74080         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74081         include <alloca.h> first.  Use C89 prototype for alloca; this
74082         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74083         Use #elif for simplicity, since we can assume C89 now.
74084         Don't try to source the system alloca.h since it will not be found
74085         and to prevent recursively including its replacement.
74086         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74087         * lib/regex.c: Likewise.
74088
74089 2004-05-16  Derek Price  <derek@ximbiot.com>
74090             Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         getline cleanup.  This changes the getndelim2 API: both order of
74093         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74094         no delimiter).
74095
74096         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74097         interface does that.
74098         (getline): Always use getdelim, so that we don't have two
74099         copies of this code.
74100         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74101         if available.
74102         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74103         (GETNDELIM2_MAXIMUM): New macro.
74104         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74105         instead of the old practice of delim2==0.  All callers changed.
74106         Return -1 on overflow, instead of returning junk.
74107         Do not set *linesize unless allocation succeeds.
74108         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74109         that we include sys/types.h.
74110         * lib/getnline.h: Likewise.
74111         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74112         (getndelim2): Reorder arguments.
74113         * lib/getnline.c (getnline, getndelim):
74114         Don't discard the NMAX argument.
74115         (getnline): Invoke getndelim, to avoid code duplication.
74116         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74117         of (size_t) -1 by callers of the getnline family.
74118
74119 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74122         Check for gettimeofday.
74123         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74124         Check for settimeofday, stime.
74125
74126 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * lib/nanosleep.c (suspended): Change its type from int to
74129         sig_atomic_t volatile.
74130         (first_call): Make it private to rpl_nanosleep, and have it
74131         be zero initially as that's a bit faster.
74132         (my_usleep): Round up fractional times instead of truncating them,
74133         as this is the usual meaning for 'sleep'.
74134
74135         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74136         doesn't work.
74137         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74138         (ENOSYS): Define if not defined.
74139         (settime): Fall back on stime if it exists and settimeofday fails.
74140         But don't bother with fallbacks if a method fails with errno == EPERM.
74141
74142 2004-05-11  Jim Meyering  <jim@meyering.net>
74143
74144         Prior to this change, the save_cwd caller required read access to the
74145         current directory on most systems (ones with the fchdir function).
74146
74147         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74148         fails, try write-only, and finally, resort to using xgetcwd.
74149
74150 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * lib/obstack.c, obstack.h: Import changes from libc.
74153
74154 2004-04-28  Bruno Haible  <bruno@clisp.org>
74155
74156         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74157         also implicitly appends .exe to executables.
74158         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74159         accepts Windows pathnames.
74160         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74161         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74162         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74163         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74164         Reported by Derek Robert Price <derek@ximbiot.com>.
74165
74166 2004-04-21  Karl Berry  <karl@gnu.org>
74167
74168         * config/srclist.txt (localcharset.c): break sync.
74169
74170 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74171
74172         * m4/host-os.m4: Add a copyright notice.
74173
74174 2004-04-20  Jim Meyering  <jim@meyering.net>
74175
74176         Change UTILS_ to gl_ in AC_DEFINE'd names.
74177         Change utils_- and jm_-prefixed variables, too.
74178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74179         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74180         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74181
74182         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74183         Don't emit trailing blanks.
74184         Also rename jm_-prefixed variables to have gl_ prefix.
74185
74186         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74187         Also rename jm_-prefixed variables to have gl_ prefix.
74188
74189         * m4/jm-macros.m4: Reflect the renamings.
74190         * m4/prereq.m4: Likewise.
74191
74192 2004-04-20  Jim Meyering  <jim@meyering.net>
74193
74194         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74195         memory.
74196
74197 2004-04-20  Jim Meyering  <jim@meyering.net>
74198             Bruno Haible  <bruno@clisp.org>
74199
74200         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74201         memory when realloc fails.
74202
74203 2004-04-19  Jim Meyering  <jim@meyering.net>
74204
74205         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74206         now that readutmp.c may call `free (0)'.
74207
74208 2004-04-19  Bruno Haible  <bruno@clisp.org>
74209
74210         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74211         * m4/inttypes_h.m4: Likewise.
74212         * m4/stdint_h.m4: Likewise.
74213         * m4/intmax_t.m4: Likewise.
74214         * m4/uintmax_t.m4: Likewise.
74215
74216 2004-04-18  Jim Meyering  <jim@meyering.net>
74217
74218         * m4/prereq.m4: Don't forbid jm_ prefix.
74219
74220         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74221         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74222         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74223         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74224         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74225         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74226         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74227         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74228         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74229         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74230         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74231         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74232         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74233         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74234         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74235         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74236         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74237         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74238         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74239
74240 2004-04-18  Jim Meyering  <jim@meyering.net>
74241
74242         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74243         failure, don't leak memory and do call END_UTMP_ENT.
74244
74245 2004-04-16  Jim Meyering  <jim@meyering.net>
74246
74247         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74248         coreutils' stat program.
74249         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74250
74251 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74252
74253         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74254         C89.
74255         (CHAR_BIT): Remove, since we assume C89.
74256         Include <stdint.h> if available, as per current Autoconf CVS advice.
74257
74258 2004-03-31  Jim Meyering  <jim@meyering.net>
74259
74260         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74261         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74262         * m4/xalloc.m4: Likewise.
74263
74264 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74265
74266         Merge from coreutils.
74267
74268         * m4/inttostr.m4: New file.
74269         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74270         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74271         Require gl_CLOCK_TIME.
74272         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74273
74274 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74275
74276         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74277         not bool, to be more consistent with Unix conventions.
74278         Suggested by Bruno Haible.
74279
74280         Merge from coreutils.
74281
74282         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74283         * lib/umaxtostr.c: New files.
74284
74285         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74286         the usual <time.h> dance.
74287         (get_date): Change signature to support fractional time stamps.
74288         All callers changed.
74289         * lib/getdate.y: Include "getdate.h" first, as we can now
74290         assume C89 and don't need to worry about 'const'.
74291         Similarly, include "unlocked-io.h" near start, not in middle.
74292         Include <limits.h>.
74293         (textint.value): Use long int rather than int.
74294         (textint.digits): Use size_t rather than int.
74295         (BILLION, LOG10_BILLION): New constants.
74296         (parser_control): New member rel_ns.  Members day_ordinal,
74297         time_zone, month, day, hour, minutes, rel_year, rel_month,
74298         rel_day, rel_hour, rel_minutes, rel_seconds
74299         are now long int, not int.  Member seconds is now struct timespec,
74300         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74301         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74302         not int.
74303         (%union.intval): Now long int, not int.
74304         New member timespec.
74305         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74306         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74307         (spec): Now is a timespec or an item list.
74308         (timespec, items): New nonterminals.
74309         (time, rel, relunit, number, get_date):
74310         Add support for fractional seconds.
74311         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74312         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74313         (to_hour): First arg is now long int, not int.
74314         (to_year): Returns long int, not int.
74315         Don't treat year -70 like 70.
74316         (tm_diff): Returns long int, not int.
74317         (lookup_word): Use bool instead of int when appropriate.
74318         (yylex): Use size_t for count, not int.
74319         Detect overflow when parsing large integer constants.
74320         Add support for fractions.
74321         (get_date): Make pointers 'const' if possible.
74322         Use more-portable code to detect integer overflow.
74323         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74324         Don't use ctime; it's not reliable if the year has >4 digits.
74325
74326         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74327         This is for compatibility with BSD.
74328
74329         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74330         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74331         From coreutils' system.h.
74332
74333         * lib/userspec.c: Don't include "posixver.h".
74334         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74335         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74336         compatible extension.  Simplify code by removing a boolean int
74337         that was always nonzero if a string was nonnull.
74338
74339 2004-03-30  Jim Meyering  <jim@meyering.net>
74340
74341         Merge from coreutils.
74342
74343         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74344         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74345         on some systems one must include <grp.h> before it.
74346         Reported by Christian Krackowizer.
74347
74348 2004-03-30  Jim Meyering  <jim@meyering.net>
74349
74350         Merge from coreutils.
74351
74352         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74353
74354         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74355         an empty input stream.
74356
74357         * lib/readtokens.c: Include <stdbool.h>.
74358         (readtoken): Use `size_t' rather than int/long.
74359         All callers adjusted.
74360         Use `bool' rather than `int' where appropriate.
74361         Use memset rather than an explicit loop.
74362         Use x2nrealloc rather than xrealloc.
74363         Allow the use of `\0' as a delimiter.
74364         (readtokens): Likewise.
74365         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74366
74367 2004-03-30  Jim Meyering  <jim@meyering.net>
74368
74369         * m4/realloc.m4: Remove file, since now it does no more than
74370         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74371         the `configure.ac' section of module/realloc.
74372         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74373
74374 2004-03-30  Bruno Haible  <bruno@clisp.org>
74375
74376         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74377         nonnull.
74378
74379 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74380
74381         Merge changes to getloadavg.c from coreutils and Emacs.
74382
74383         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74384         Define to an expression, not to the empty string.
74385         Include cloexec.h and xalloc.h.
74386         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74387         Use set_cloexec_flag rather than rolling our own.
74388         * lib/cloexec.c, lib/cloexec.h: New files.
74389
74390 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74391
74392         * m4/cloexec.m4: New file.
74393
74394 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74395
74396         * lib/getopt.h: Sync with libc CVS.
74397
74398 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74399             Bruno Haible  <bruno@clisp.org>
74400
74401         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74402         mbswidth.
74403
74404 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74405             Bruno Haible  <bruno@clisp.org>
74406
74407         * lib/mbswidth.h: Include <wchar.h> only if
74408         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74409         <wchar.h>.
74410         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74411
74412 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74413
74414         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74415         Sync with libc CVS.
74416         * lib/getopt_int.h: New file, also synced from libc.
74417
74418 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74419
74420         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74421         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74422         Bring back getopt.c, getopt.h, getopt1.c.
74423
74424 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74425
74426         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74427         All uses changed.  Check for sa_sigaction member; this fixes
74428         a bug first reported by Jason Andrade in
74429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74430
74431 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74432
74433         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74434         '#if' expressions.  Unlike the code it replaces, it does not
74435         depend on (defined _SC_PAGESIZE).  However, it does depend on
74436         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74437         first reported by Jason Andrade in
74438         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74439
74440 2004-02-25  Simon Josefsson  <jas@extundo.com>
74441
74442         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74443
74444 2004-02-25  Simon Josefsson  <jas@extundo.com>
74445
74446         * lib/strdup.h: New file.
74447         * lib/strdup.c: Include it.
74448         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74449         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74450
74451 2004-02-23  Karl Berry  <karl@gnu.org>
74452
74453         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74454         (from fencepost.gnu.org:/gd/gnuorg).
74455
74456 2004-02-23  Karl Berry  <karl@gnu.org>
74457
74458         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74459         * config/srclist.txt: add maintain/standards documents.
74460
74461 2004-02-18  Bruno Haible  <bruno@clisp.org>
74462
74463         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74464         Reported by Derek Robert Price <derek@ximbiot.com>.
74465
74466 2004-02-16  Karl Berry  <karl@gnu.org>
74467
74468         * config/mkinstalldirs, install-sh: update from automake.
74469
74470 2004-02-06  Karl Berry  <karl@gnu.org>
74471
74472         * m4/po.m4: update from gettext 0.14.1.
74473
74474 2004-02-06  Karl Berry  <karl@gnu.org>
74475
74476         * lib/config.charset: update from gettext 0.14.1.
74477
74478 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74479
74480         Add comments and code, prompted by suggestions from Bruno Haible
74481         for sh-quote.
74482         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74483         describing the enum quoting_style values.
74484         * lib/quotearg.c (quotearg_alloc): New function.
74485         (quotearg_buffer_restyled): Treat lone { and } as special.
74486         Treat = as special.  Work around bug with older shells
74487         that "see" a '\' that is really the 2nd byte of a multibyte char.
74488         Quote empty string with shell_quoting_style.
74489
74490 2004-02-03  Bruno Haible  <bruno@clisp.org>
74491
74492         * m4/pipe.m4: New file, from GNU gettext.
74493
74494 2004-02-03  Bruno Haible  <bruno@clisp.org>
74495
74496         * lib/pipe.h: New file, from GNU gettext.
74497         * lib/pipe.c: New file, from GNU gettext.
74498
74499 2004-01-27  Bruno Haible  <bruno@clisp.org>
74500
74501         * m4/execute.m4: New file, from GNU gettext.
74502
74503 2004-01-27  Bruno Haible  <bruno@clisp.org>
74504
74505         * lib/execute.h: New file, from GNU gettext.
74506         * lib/execute.c: New file, from GNU gettext.
74507         * lib/w32spawn.h: New file, from GNU gettext.
74508
74509 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74510
74511         Merge from diffutils.
74512
74513         * lib/file-type.c (file_type): Add typed memory objects.
74514         * lib/file-type.h (S_TYPEISTMO): New macro.
74515
74516         * lib/c-stack.h (c_stack_action): Remove argv argument.
74517         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74518         (die): Don't calculate message unless segv_action returns.
74519         (get_stack_location, min_address_from_argv, max_address_from_argv,
74520         volatile stack_base, volatile_stack_size): Remove.
74521         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74522         that every segmentation violation is a stack overflow.  (Ouch!)
74523         See Debian bug 136249 (still outstanding) for more info about why
74524         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74525
74526 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74527
74528         Exit-status fix from coreutils.
74529
74530         Use exit_failure consistently in place of EXIT_FAILURE,
74531         so that program exit statuses are consistent on failure.
74532
74533         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74534         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74535         * lib/argmatch.h: Comment fix to match the above.
74536         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74537         Now a macro referring to exit_failure, instead of a separate
74538         variable.  Include "exitfail.h" to get it.
74539         * lib/xstrtol.h: Include "exitfail.h".
74540         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74541
74542         * lib/long-options.c (parse_long_options): Use prototype
74543         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74544         for clarity.
74545
74546 2004-01-21  Jim Meyering  <jim@meyering.net>
74547
74548         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74549         so as not to conflict with a different-sized __mktime_internal
74550         function in GNU libc.
74551         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74552         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74553
74554 2004-01-20  Karl Berry  <karl@gnu.org>
74555
74556         * config/config.guess: update from config.
74557
74558         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74559
74560 2004-01-20  Bruno Haible  <bruno@clisp.org>
74561
74562         Safer stack allocation.
74563         * lib/setenv.c: Include allocsa.h.
74564         (alloca): Remove fallback definition.
74565         (freea): Remove macro.
74566         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74567         instead of freea.
74568
74569 2004-01-20  Bruno Haible  <bruno@clisp.org>
74570
74571         * m4/eealloc.m4: New file, from GNU gettext.
74572
74573 2004-01-20  Bruno Haible  <bruno@clisp.org>
74574
74575         * m4/allocsa.m4: New file, from GNU gettext.
74576
74577 2004-01-20  Bruno Haible  <bruno@clisp.org>
74578
74579         * lib/xallocsa.h: New file, from GNU gettext.
74580         * lib/xallocsa.c: New file, from GNU gettext.
74581
74582 2004-01-20  Bruno Haible  <bruno@clisp.org>
74583
74584         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74585
74586 2004-01-20  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74589         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74590         specially.
74591
74592 2004-01-20  Bruno Haible  <bruno@clisp.org>
74593
74594         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74595         patch.
74596
74597 2004-01-20  Bruno Haible  <bruno@clisp.org>
74598
74599         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74600
74601 2004-01-20  Bruno Haible  <bruno@clisp.org>
74602
74603         * lib/eealloc.h: New file.
74604
74605 2004-01-20  Bruno Haible  <bruno@clisp.org>
74606
74607         * lib/binary-io.h: Avoid warnings on Cygwin.
74608
74609 2004-01-20  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/allocsa.h: New file, from GNU gettext.
74612         * lib/allocsa.c: New file, from GNU gettext.
74613
74614 2004-01-18  Karl Berry  <karl@gnu.org>
74615
74616         * doc/gpl.texi, doc/lgpl.texi: new files.
74617
74618 2004-01-18  Karl Berry  <karl@gnu.org>
74619
74620         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74621         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74622
74623 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74624
74625         Merge from coreutils.
74626
74627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74628         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74629         (gl_DEFAULT_POSIX2_VERSION): Move
74630         the documentation from 'configure' into 'config.hin',
74631         so that 'configure --help' isn't burdened by it and
74632         we don't have to worry about its formatting there.
74633         Reword the documentation so that it's more succinct
74634         and can be run together into a single paragraph.
74635         * m4/same.m4 (gl_SAME): Check for pathconf.
74636
74637 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74638
74639         Merge from coreutils.
74640
74641         * lib/posixver.c: Include posixver.h.
74642
74643         * lib/same.c: Include <stdbool.h>, <limits.h>.
74644         (_POSIX_NAME_MAX): Define if not defined.
74645         (MIN): New macro.
74646         (same_name): If file names are silently truncated, report
74647         that the file names are the same if they are the same after
74648         the silent truncation.
74649
74650         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74651         conversion function.
74652         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74653         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74654         longer needed.
74655
74656 2004-01-15  Jim Meyering  <jim@meyering.net>
74657
74658         Merge from coreutils.
74659
74660         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74661         if no library is required.
74662         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74663         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74664         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74665         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74666         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74667         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74668         value, $ac_cv_search_crypt, if it's "none required".
74669         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74670         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74671         not gl_FUNC_GETLOADAVG.
74672         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74673         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74674
74675 2004-01-15  Jim Meyering  <jim@meyering.net>
74676
74677         Merge from coreutils.
74678
74679         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74680         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74681         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74682
74683         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74684         optional configure-time default.
74685
74686         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74687
74688         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74689
74690 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74691
74692         Merge from coreutils.
74693
74694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74695         value, $ac_cv_search_nanosleep, if it's "none required".
74696
74697 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74698
74699         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74700         with like-named macro in fnmatch.c.
74701         (EXT): Use an internal constant instead.
74702
74703         Merge fnmatch patches from glibc.
74704         * lib/fnmatch.c (mbsinit): Remove define.
74705         Add libc_hidden_ver (__fnmatch, fnmatch).
74706         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74707         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74708
74709 2004-01-14  Karl Berry  <karl@gnu.org>
74710
74711         * config/install-sh: update from automake.
74712
74713 2004-01-13  Karl Berry  <karl@gnu.org>
74714
74715         * config/install-sh: update from automake.
74716
74717 2004-01-09  Karl Berry  <karl@gnu.org>
74718
74719         * config/install-sh: update from automake.
74720
74721 2004-01-05  Karl Berry  <karl@gnu.org>
74722
74723         * config/config.{sub,guess}: update from config.
74724
74725 2003-12-31  Karl Berry  <karl@gnu.org>
74726
74727         * config/depcomp: update from automake.
74728
74729 2003-12-14  Karl Berry  <karl@gnu.org>
74730
74731         * lib/config.charset: update from gettext-runtime.
74732
74733 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74734
74735         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74736         Bug reported by Alfred M. Szmidt.
74737
74738 2003-12-03  Bruno Haible  <bruno@clisp.org>
74739
74740         * m4/gettext.m4: Upgrade from gettext-0.13.
74741         * m4/po.m4: Upgrade from gettext-0.13.
74742         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74743         * m4/intmax.m4: New file, from gettext-0.13.
74744         * m4/printf-posix.m4: New file, from gettext-0.13.
74745
74746 2003-11-29  Karl Berry  <karl@gnu.org>
74747
74748         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74749
74750 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74751             Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/printf-parse.h: Don't include sys/types.h.
74754         (ARG_NONE): New macro.
74755         (char_directive): Change type of *arg_index fields to size_t.
74756         * lib/printf-parse.c: Don't include sys/types.h.
74757         (SSIZE_MAX): Remove macro.
74758         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74759         Remove unnecessary overflow check.
74760         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74761         fields.
74762
74763 2003-11-25  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74766
74767 2003-11-25  Bruno Haible  <bruno@clisp.org>
74768
74769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74770         gt_TYPE_SSIZE_T.
74771
74772 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74773
74774         * modules/alloca: Remove dependency on xalloc.
74775
74776 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74777
74778         * lib/alloca.c: Remove dependency on xalloc module.
74779         (xalloc_die): Remove.
74780         (memory_full) [!defined emacs]: New macro.
74781         [!defined emacs]: Don't include xalloc.h.
74782         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74783         address arithmetic overflows.  Change datatypes a bit to avoid
74784         unnecessary casts.
74785
74786 2003-11-22  Jim Meyering  <jim@meyering.net>
74787
74788         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74789         s/size/size_t/.
74790
74791 2003-11-21  Karl Berry  <karl@gnu.org>
74792
74793         * config/config.{sub,guess}: update from config.
74794
74795 2003-11-18  Karl Berry  <karl@gnu.org>
74796
74797         * config/config.{sub,guess}: update from config.
74798
74799         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74800
74801 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74802
74803         * README: Mention that S+T cannot overflow if S is the size of
74804         an existing object and T is sufficiently small.
74805
74806 2003-11-17  Jim Meyering  <jim@meyering.net>
74807
74808         On systems without utime and without a utimes function capable of
74809         dealing with a NULL struct utimbuf* argument, this utime replacement
74810         could -- in unusual circumstances -- leak a file descriptor.
74811         * lib/utime.c: Include <unistd.h> and <errno.h>.
74812         (utime_null): Be sure to close `fd' and to preserve errno.
74813         Reported by Geoff Collyer via Arnold Robbins.
74814
74815 2003-11-17  Bruno Haible  <bruno@clisp.org>
74816
74817         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74818         (Depends-on): Add xsize.
74819
74820 2003-11-17  Bruno Haible  <bruno@clisp.org>
74821
74822         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74823
74824 2003-11-17  Bruno Haible  <bruno@clisp.org>
74825
74826         * lib/vasnprintf.c (alloca): Remove fallback definition.
74827         (freea): Remove definition.
74828         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74829         Reported by Paul Eggert.
74830
74831 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74832             Bruno Haible  <bruno@clisp.org>
74833
74834         Protect against address arithmetic overflow.
74835         * lib/printf-args.h: Include stddef.h.
74836         (arguments): Change type of field 'count' to size_t.
74837         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74838         'unsigned int' where appropriate.
74839         * lib/printf-parse.h: Include sys/types.h.
74840         (char_directive): Change type of *arg_index fields to ssize_t.
74841         (char_directives): Change type of fields 'count', max_*_length to
74842         size_t.
74843         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74844         (SSIZE_MAX): Define fallback value.
74845         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74846         instead of 'int' where appropriate. Check a_allocated, d_allocated
74847         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74848         * lib/vasnprintf.c: Include xsize.h.
74849         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74850         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74851         overflow. Avoid wraparound when converting a width or precision from
74852         decimal to binary.
74853
74854 2003-11-16  Bruno Haible  <bruno@clisp.org>
74855
74856         Update from GNU gettext.
74857         * lib/printf-parse.c: Generalize to it can be compiled for wide
74858         strings.
74859         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74860         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74861         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74862         SNPRINTF): New macros.
74863         Don't include <alloca.h> if the file is used inside libintl.
74864         (local_wcslen): New function, for Solaris 2.5.1.
74865         (VASNPRINTF): Use it instead of wcslen.
74866
74867 2003-11-16  Bruno Haible  <bruno@clisp.org>
74868
74869         * lib/xsize.h (xmax): New function.
74870         (xsum, xsum3, xsum4): Declare as "pure" functions.
74871
74872 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74873
74874         * modules/xalloc (Files): Undo latest change, since xalloc.h
74875         no longer needs SIZE_MAX or PTRDIFF_MAX.
74876
74877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74878
74879         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74880         gl_PTRDIFF_MAX.
74881
74882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74883
74884         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74885         "return", to pacify some unknown compiler.  Problem reported
74886         by Joerg Schilling.
74887
74888 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74889
74890         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74891         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74892         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74893         heuristic is just as accurate as far as we know, and it removes a
74894         dependency on size_max.m4 and ptrdiff_max.m4.
74895
74896 2003-11-11  Bruno Haible  <bruno@clisp.org>
74897
74898         * modules/xsize (Files): Add m4/size_max.m4.
74899         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74900
74901 2003-11-11  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/size_max.m4: New file.
74904         * m4/ptrdiff_max.m4: New file.
74905         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74906         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74907         (gl_XALLOC): Invoke it.
74908
74909 2003-11-11  Bruno Haible  <bruno@clisp.org>
74910
74911         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74912         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74913         defined.
74914
74915 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74916
74917         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74918         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74919         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74920         From Bruno Haible.
74921         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74922         not (size_t) -1, since it's defined here.
74923
74924 2003-11-09  Karl Berry  <karl@gnu.org>
74925
74926         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74927
74928 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74929
74930         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74931         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74932         Reject sizes of exactly SIZE_MAX bytes.
74933         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74934         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74935
74936 2003-11-05  Bruno Haible  <bruno@clisp.org>
74937
74938         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74939         SIZE_MAX defined in <limits.h> on Solaris.
74940
74941 2003-11-04  Jim Meyering  <jim@meyering.net>
74942
74943         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74944         variable names, rather than @VAR@.
74945         * modules/poll: Likewise.
74946
74947 2003-11-04  Bruno Haible  <bruno@clisp.org>
74948
74949         * modules/xsize: New file.
74950         * modules/linebreak: Depend on xsize.
74951         * MODULES.html.sh (func_all_modules): Add xsize.
74952
74953 2003-11-04  Bruno Haible  <bruno@clisp.org>
74954
74955         * m4/xsize.m4: New file.
74956
74957 2003-11-04  Bruno Haible  <bruno@clisp.org>
74958
74959         * lib/xsize.h: New file.
74960         * lib/linebreak.c: Include xsize.h.
74961         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74962         argument for overflow.
74963         Suggested by Paul Eggert.
74964
74965 2003-11-03  Karl Berry  <karl@gnu.org>
74966
74967         * config/config.{guess,sub}: update from config.
74968
74969 2003-11-03  Jim Meyering  <jim@meyering.net>
74970
74971         * modules/userspec (lib_SOURCES): Add userspec.h.
74972         (Include): Add "userspec.h".
74973         Improve description.
74974
74975 2003-11-03  Jim Meyering  <jim@meyering.net>
74976
74977         * lib/userspec.c: Include "userspec.h".
74978         * lib/userspec.h: New file.
74979
74980 2003-11-03  Bruno Haible  <bruno@clisp.org>
74981
74982         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74983
74984 2003-11-03  Bruno Haible  <bruno@clisp.org>
74985
74986         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74987         available, to avoid (extremely rare) race condition.
74988         Suggested by Paul Eggert.
74989
74990 2003-11-02  Karl Berry  <karl@gnu.org>
74991
74992         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74993
74994 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74995
74996         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74997         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74998         (read_filesystem_list): Set and use me_type_malloced.
74999         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75000         whatever the type happens to be), for brevity and consistency.
75001         Check for size calculation overflow on Alphas running OSF/1.
75002
75003 2003-10-31  Jim Meyering  <jim@meyering.net>
75004
75005         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75006
75007         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75008
75009 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75010             Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75013         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75014
75015 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75018         netbsd*-gnu*.  Suggested by Robert Millan.
75019
75020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75021
75022         * modules/group-member: Depend on stdbool.
75023
75024 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75025
75026         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75027
75028 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75029
75030         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75031         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75032         after the 'gnu' in these cases.  This fixes some bugs in the
75033         previous change, and is based on suggestions by Robert Millan.
75034
75035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75036
75037         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75038         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75039         no longer needed.
75040         * lib/quotearg.c (quotearg_n_options): Use it.
75041         * lib/group-member.c: Include <stdbool.h>.
75042         (free_group_info): Arg is now const *; don't free arg.
75043         (get_group_info): Now returns bool and accepts struct group_info *,
75044         rather than returning a malloc'ed struct group_info *.
75045         All uses changed.  Check for overflow in internal size calculation.
75046
75047         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75048         rather than xmalloc/xrealloc.
75049         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75050         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75051         conformance bug: the old code used a pointer after freeing the
75052         storage that it addressed.
75053         * lib/hash.c (hash_initialize): Simplify the code by using
75054         xalloc_oversized rather than doing it by hand.
75055         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75056         the buffer preserved.  Use free and xmalloc instead.
75057         * lib/quotearg.c (quotearg_n_options): Likewise.
75058         Use a simpler test for size overflow.  Don't use xalloc_oversized
75059         because unsigned int might be wider than size_t (!); this suggests
75060         that we should switch from unsigned int to size_t for slot numbers.
75061
75062 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75063
75064         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75065         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75066         NetBSD kernels.  Requested by Richard Stallman.
75067
75068 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75069
75070         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75071         to allocate the returned structure.  Do not allocate a subarray,
75072         as x2nrealloc will do that.
75073         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75074         instead of xnrealloc.
75075         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75076
75077 2003-10-27  Bruno Haible  <bruno@clisp.org>
75078
75079         * lib/stdbool_.h: Better support for BeOS.
75080
75081 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75082
75083         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75084         now uses inline.
75085
75086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75087
75088         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75089         callers that want to do their own size-overflow checking.  Include
75090         <stdbool.h>, since xalloc_oversized returns bool.
75091         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75092         to use xalloc_oversized.
75093
75094         Add two functions x2realloc, x2nrealloc, for programs that grow
75095         arrays dynamically by doubling their sizes.
75096         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75097         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75098         New functions.
75099
75100         Port to C99 semantics for 'inline' of external functions.
75101         Bug reported by Bruno Haible.
75102         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75103         with the old contents of xnmalloc.
75104         (xnmalloc, xmalloc): Use it.
75105         (xnrealloc_inline): New static inline function,
75106         with the old contents of xnrealloc.
75107         (xnrealloc, xrealloc): Use it.
75108
75109         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75110         that.
75111
75112 2003-10-26  Karl Berry  <karl@gnu.org>
75113
75114         * config/srclist.txt (COPYING.DOC): no longer available from
75115         /gd/gnuorg; don't know where the ultimate source is.
75116
75117 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75118
75119         Fix several address-calculation bugs in the hash modules,
75120         plus some minor code cleanup.
75121
75122         * lib/hash.h: Include <stdbool.h>, for bool.
75123         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75124         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75125         hash_get_n_entries, hash_get_max_bucket_length,
75126         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75127         hash_rehash): Use size_t rather than unsigned.
75128         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75129         hash_get_n_buckets_used, hash_get_n_entries,
75130         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75131         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75132         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75133         Likewise.
75134         (SIZE_MAX): Define if not defined.
75135         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75136         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75137         hash_print):
75138         Use const * when possible.
75139         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75140         (check_tuning): Fix bug: if tuning parameters were very close to
75141         0 or 1, rounding errors could have caused subscript violations.
75142         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75143         (hash_initialize): Add 'fail:' label
75144         to free table and return NULL, and use it to simplify code.
75145         Use calloc rather than clearing the storage ourself.
75146         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75147         buffer size calculations.
75148         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75149         Include <stddef.h>, for size_t.
75150         * lib/hash-pjw.c (hash_pjw): Likewise.
75151         Switch to method described by Bruno Haible.
75152         Include <limits.h>, for CHAR_BIT.
75153         (SIZE_BITS): New macro.
75154
75155 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75156
75157         * m4/getline.m4 (AM_FUNC_GETLINE):
75158         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75159         hosts.  Problem reported by Derek Robert Price in
75160         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75161         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75162         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75163
75164 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75165
75166         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75167         ceiling the allocation at NMAX bytes rather than silently
75168         discarding input bytes before NMAX is reached.  This makes
75169         a difference only if NMAX exceeds SIZE_MAX / 2.
75170
75171         * lib/obstack.c: Merge from glibc.
75172         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75173         Add libc_hidden_def (_obstack_newchunk).
75174         (_obstack_free) [! defined _LIBC]: Remove.
75175         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75176         a clone of the function body.
75177         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75178         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75179
75180         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75181         glibc.
75182         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75183         arg to memcpy.
75184
75185         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75186         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75187         Don't use lvalue casts, as GCC plans to remove support for them
75188         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75189         was also present in the non-GCC version, indicating that this
75190         code had always been buggy and had never been widely used.
75191         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75192         Use the fast variant of each macro, rather than copying the
75193         definiens of the fast variant; that way, we'll be more likely to
75194         catch future bugs in the fast variants.
75195
75196 2003-10-20  Bruno Haible  <bruno@clisp.org>
75197
75198         * modules/wait-process: New file.
75199         * MODULES.html.sh (func_all_modules): Add wait-process.
75200
75201 2003-10-20  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/wait-process.m4: New file.
75204
75205 2003-10-20  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/wait-process.h: New file, from GNU gettext.
75208         * lib/wait-process.c: New file, from GNU gettext.
75209
75210 2003-10-19  Jim Meyering  <jim@meyering.net>
75211
75212         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75213         HPUX 10.20.
75214
75215 2003-10-18  Karl Berry  <karl@gnu.org>
75216
75217         * config/config.guess: update from config.
75218
75219 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75220
75221         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75222         (getgroups): First arg is int, not size_t.
75223         Don't let 'free' mangle errno.
75224
75225 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75226
75227         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75228
75229 2003-10-16  Karl Berry  <karl@gnu.org>
75230
75231         * config/config.{guess,sub}: update from config.
75232
75233 2003-10-16  Jim Meyering  <jim@meyering.net>
75234
75235         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75236         memcpy.
75237
75238 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75239
75240         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75241         (SIZE_MAX): Remove.
75242         (new_exclude, add_exclude_file): Initial size no longer needs to
75243         be a power of 2.
75244         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75245         our own address arithmetic overflow checking.
75246
75247         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75248         (fnmatch): Do not alloca more than 2000 wide characters;
75249         instead, use malloc for large buffers.
75250         Check for address arithmetic overflow, and return -1
75251         with errno set to ENOMEM in that case.
75252         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75253         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75254         instead, return -1.  Check for address arithmetic overflow.
75255
75256 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75257
75258         Handle invalid suffixes and overflow independently, so that
75259         callers can treat them independently as needed.  Fix some bugs in
75260         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75261         suffix for a human-readable blocksize.  The major caller-visible
75262         change is the addition of a new
75263         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75264         that both overflow and suffix chars were found.
75265
75266         * lib/human.c (humblock): Don't check separately for invalid suffix
75267         char; that is xstrtoumax's job (now that its bug is fixed).
75268         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75269         INTMAX_MAX]: New macros.
75270         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75271         TYPE_MAXIMUM): New macros.
75272         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75273         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75274         if overflow occurs, as it's what __strtol does and it's more useful
75275         in practice.
75276         (__xstrtol): If __strtol reports some error other than ERANGE,
75277         reflect it to the caller as LONGINT_INVALID.  If it reports
75278         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75279         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75280         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75281         value.
75282         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75283         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75284         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75285         [defined UINTMAX_MAX]: New macros.
75286
75287 2003-10-14  Bruno Haible  <bruno@clisp.org>
75288
75289         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75290
75291 2003-10-14  Bruno Haible  <bruno@clisp.org>
75292
75293         * m4/sig_atomic_t: New file, from GNU gettext.
75294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75295
75296 2003-10-14  Bruno Haible  <bruno@clisp.org>
75297
75298         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75299         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75300         Also use volatile where needed.
75301
75302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75303
75304         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75305         Change maintainer from Bruno Haible to 'all'.
75306
75307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75308
75309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75310
75311 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75312
75313         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75314         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75315         and define in terms of the other primitives.
75316         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75317         (SIZE_MAX): Define if not already defined.
75318         (array_size_overflow): New function.
75319         (xalloc_die): Abort instead of exiting if 'error' returns.
75320         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75321         (xmalloc, xrealloc): Use them.
75322         (xcalloc): Check for address arithmetic overflow.
75323         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75324         a bit faster than strcpy.
75325
75326 2003-10-10  Simon Josefsson  <jas@extundo.com>
75327
75328         * modules/argp (Depends-on): Add restrict and strcase.
75329
75330 2003-10-10  Simon Josefsson  <jas@extundo.com>
75331
75332         * m4/argp.m4: Add AC_C_INLINE.
75333
75334 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75335
75336         Merge getpass from libc, plus a few fixes.
75337
75338         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75339         Include <stdbool.h>.
75340         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75341         __fsetlocking to empty.
75342         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75343         do include <bits/libc-lock.h>.
75344         Do not include <fcntl.h>; not needed.
75345         [_LIBC]: Include <wchar.h>.
75346         (NOTCANCEL_MODE): New macro.
75347         (flockfile, funlockfile) [_LIBC]: New macros.
75348         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75349         [!_LIBC]: New macros.
75350         (call_fclose): New function.
75351         (getpass): Use it.  Save tty stream separately; this simplifies the
75352         code and makes it more reliable if stdin happens to equal stdout.
75353         Invoke __fsetlocking on tty.
75354         Handle thread cancellation if needed.
75355         Namespace cleanup (use __tcgetattr, __getline).
75356         Use bool for Booleans.
75357         [USE_IN_LIBIO]: Handle wide streams.
75358         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75359         stream might go where.
75360
75361         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75362         doesn't have to include <stdio.h> before us.
75363         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75364         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75365         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75366         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75367         if not declared, so that we can use getpass.c code from libc without
75368         rewriting it.
75369         (flockfile, ftrylockfile, funlockfile): New macros.
75370
75371 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75372
75373         * modules/getpass: Depend on stdbool.
75374
75375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75376
75377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75378
75379 2003-10-07  Karl Berry  <karl@gnu.org>
75380
75381         * config/config.{guess,sub}: update from config.
75382
75383 2003-10-06  Jim Meyering  <jim@meyering.net>
75384             Bruno Haible  <bruno@clisp.org>
75385
75386         This lets translators provide better translations for the
75387         "Written by ..." part of --version output.
75388         * lib/version-etc.h: Include stdarg.h.
75389         (version_etc_copyright): Declare as readonly.
75390         (version_etc): Make this function variadic with a NULL-terminated list
75391         of author name strings.
75392         (version_etc_va): New declaration.
75393         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75394         (version_etc_copyright): Declare as readonly.
75395         (version_etc_va): New function. Provide a different translatable string
75396         for each possible number of authors < 10. Abbreviate when there are 10
75397         authors or more.
75398         (version_etc): Make this function variadic. Call version_etc_va.
75399         Suggestion from Gary V. Vaughan.
75400
75401         * lib/long-options.h (parse_long_options): Change prototype: the
75402         authors string is moved to the end and becomes variadic.
75403         * lib/long-options.c: Include stdarg.h.
75404         (parse_long_options): Make this function variadic, too.
75405         Call version_etc_va, not version_etc.
75406
75407 2003-10-06  Bruno Haible  <bruno@clisp.org>
75408
75409         * modules/version-etc-2: Remove file.
75410         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75411
75412 2003-10-06  Bruno Haible  <bruno@clisp.org>
75413
75414         * modules/fatal-signal: New file.
75415         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75416
75417 2003-10-06  Bruno Haible  <bruno@clisp.org>
75418
75419         * m4/fatal-signal.m4: New file.
75420         * m4/signalblocking.m4: New file, from GNU gettext.
75421
75422 2003-10-06  Bruno Haible  <bruno@clisp.org>
75423
75424         * lib/version-etc-2.h: Remove file.
75425         * lib/version-etc-2.c: Remove file.
75426
75427 2003-10-06  Bruno Haible  <bruno@clisp.org>
75428
75429         * lib/fatal-signal.h: New file, from GNU gettext.
75430         * lib/fatal-signal.c: New file, from GNU gettext.
75431
75432 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75433
75434         * README: Rework advice for preventing empty .o files.
75435         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75436         not <sys/types.h>.
75437
75438 2003-10-04  Karl Berry  <karl@gnu.org>
75439
75440         * lib/argp*: update from libc.
75441
75442 2003-10-04  Karl Berry  <karl@gnu.org>
75443
75444         * config/config.{guess,sub}: update from config.
75445
75446 2003-10-02  Bruno Haible  <bruno@clisp.org>
75447
75448         * modules/lchown (Include): Add lchown.h.
75449         * modules/time_r (Include): Use "..." syntax.
75450         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75451
75452 2003-10-01  Simon Josefsson  <jas@extundo.com>
75453
75454         * MODULES.html.sh (func_all_modules): Move gethostname from section
75455         'based on' to section 'lacking' POSIX:2001.
75456
75457 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75458
75459         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75460         to output mode on the same stream.
75461
75462 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75463
75464         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75465         Fix arg typo in previous patch.
75466
75467 2003-09-28  Jim Meyering  <jim@meyering.net>
75468
75469         * lib/error.c: Correct cpp indentation.
75470
75471 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75472
75473         * modules/free: New file.
75474
75475 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75476
75477         * m4/free.m4: New file.
75478
75479 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75480
75481         * lib/minmax.h (MIN, MAX)
75482         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75483         Omit the special code that used __typeof__, since we worry that
75484         it could be more trouble than it's worth.  See:
75485         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75486         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75487
75488         * lib/free.c: New file.
75489
75490 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75491
75492         Trivial fixes to Makefile.am parts of module listings.
75493         * modules/strstr: Append strstr.h to lib_SOURCES.
75494         * modules/strcase: Likewise, for strcase.h.
75495
75496 2003-09-27  Karl Berry  <karl@gnu.org>
75497
75498         * config/mkinstalldirs: update from automake.
75499
75500 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75501
75502         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75503         (error_tail): Do not loop, reallocating temporary buffer, since
75504         the output cannot contain more wide characters than the input
75505         contains bytes, the size must be big enough already.  This avoids
75506         one potential size overflow calculation.  Check for size overflow
75507         when calculating temporary buffer size.  Free temporary buffer
75508         when done, if it was allocated with malloc; this plugs a memory
75509         leak.  Remove casts from void * to pointers, that are no longer
75510         needed now that we're assuming C89 or better.
75511
75512         Merge error changes from glibc.
75513
75514         * lib/error.c, error.h: Update copyright notice header to match glibc.
75515         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75516         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75517         Disable cancellation while printing error.
75518         * lib/error.h: Prepend __ to parameter names.
75519
75520 2003-09-26  Jim Meyering  <jim@meyering.net>
75521
75522         * lib/error.c (error_tail): Move some declarations
75523         into inner scope where the local variables are used.
75524
75525 2003-09-26  Bruno Haible  <bruno@clisp.org>
75526
75527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75528         stpncpy().
75529         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75530
75531 2003-09-26  Bruno Haible  <bruno@clisp.org>
75532
75533         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75534         (stpncpy): Define as alias for gnu_stpncpy.
75535         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75536
75537 2003-09-25  Simon Josefsson  <jas@extundo.com>
75538
75539         * lib/xgetdomainname.h: New file.
75540         * lib/xgetdomainname.c: New file.
75541
75542 2003-09-25  Simon Josefsson  <jas@extundo.com>
75543             Bruno Haible  <bruno@clisp.org>
75544
75545         * modules/getdomainname: New file.
75546         * modules/xgetdomainname: New file.
75547         * MODULES.html.sh (func_all_modules): Add getdomainname,
75548         xgetdomainname.
75549
75550 2003-09-25  Simon Josefsson  <jas@extundo.com>
75551             Bruno Haible  <bruno@clisp.org>
75552
75553         * m4/getdomainname.m4: New file.
75554
75555 2003-09-25  Simon Josefsson  <jas@extundo.com>
75556             Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/getdomainname.h: New file.
75559         * lib/getdomainname.c: New file.
75560
75561 2003-09-25  Karl Berry  <karl@gnu.org>
75562
75563         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75564
75565 2003-09-25  Karl Berry  <karl@gnu.org>
75566
75567         * config/install-sh: update from automake.
75568
75569 2003-09-25  Bruno Haible  <bruno@clisp.org>
75570
75571         * modules/version-etc-2: New file, from modules/version-etc with
75572         modifications.
75573         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75574
75575 2003-09-25  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75578         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75579
75580 2003-09-24  Simon Josefsson  <jas@extundo.com>
75581
75582         * modules/xgethostname: Add xgethostname.h.
75583
75584 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75585
75586         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75587         the buffer associated with the argument.  Bug reported by
75588         Simon Josefsson.
75589
75590 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75591
75592         * README: Document assumptions that 'int' is at least 32 bits
75593         wide, that integer arithmetic is 2's complement without overflow,
75594         that there are no holes in integer values, that adding sizes of
75595         two nonoverlapping objects can't overflow, and that all-bits-zero
75596         yields scalar zero.  Fix spelling and capitalization typos.
75597
75598 2003-09-19  Karl Berry  <karl@gnu.org>
75599
75600         * lib/argp.h: update from libc.
75601
75602 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75603
75604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75605         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75606         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75607
75608 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75609
75610         * gnulib-tool: Use "test -h", not "test -L", for portability
75611         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75612         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75613         (sed_extract_prog): Issue s commands one-by-one, rather than
75614         using \| in one s command.
75615
75616 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75617
75618         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75619         input error, instead of returning NULL the next time we are called
75620         (and therefore losing track of errno).
75621
75622 2003-09-16  Bruno Haible  <bruno@clisp.org>
75623
75624         * gnulib-tool (func_create_testdir): Warn about duplicated
75625         dependencies.
75626
75627 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75628
75629         * modules/argmatch, modules/fatal, modules/obstack,
75630         modules/xalloc, modules/xgethostname: Sort dependencies by
75631         importance, not alphabetically.
75632
75633 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75634
75635         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75636         fails, so that the caller gets the proper errno.
75637
75638         * lib/readutmp.c (read_utmp): Likewise.
75639         Check for fstat error.  Close stream and free storage
75640         when failing.
75641
75642 2003-09-14  Karl Berry  <karl@gnu.org>
75643
75644         * config/srclist.txt (strdup.c): disable for c89 changes.
75645
75646 2003-09-14  Jim Meyering  <jim@meyering.net>
75647
75648         * lib/getloadavg.c: Correct cpp indentation.
75649         * lib/strdup.c: Likewise.
75650         * lib/vasnprintf.c: Likewise.
75651
75652 2003-09-14  Bruno Haible  <bruno@clisp.org>
75653
75654         * modules/fwriteerror: New file.
75655         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75656
75657 2003-09-14  Bruno Haible  <bruno@clisp.org>
75658
75659         * lib/fwriteerror.h: New file.
75660         * lib/fwriteerror.c: New file.
75661
75662 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75663
75664         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75665         modules/xgethostname, modules/xalloc: Depend on exit.
75666
75667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75668
75669         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75670
75671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75672         and AC_MINIX, too, so that their extensions are available.
75673
75674         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75675         This macro has been superseded by gl_BACKUPFILE.
75676
75677         More patches to assume C89 or better.
75678
75679         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75680
75681         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75682         unconditionally.
75683         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75684         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75685         Include <string.h>, <stdlib.h> unconditionally.
75686         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75687         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75688         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75689         headers or for string.h.
75690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75691         or strtoul.
75692
75693         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75694         headers.
75695         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75696         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75697         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75698         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75700         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75701         memcpy, memset.
75702         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75703         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75704         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75705         strtol.
75706         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75707         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75709         strtoul.
75710
75711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75712
75713         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75714         * lib/obstack.c [!defined _LIBC]: Likewise.
75715         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75716         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75717         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75718
75719         More changes to assume C89 or better.
75720
75721         * lib/error.c (error_tail): Assume vprintf.
75722
75723         * lib/argmatch.c (getenv): Remove decl.
75724         * lib/progreloc.c (get_full_program_name): Define via prototype.
75725         * lib/setenv.c (clearenv): Likewise.
75726         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75727         needed.
75728         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75729         (malloc, memcpy): Remove decls.
75730         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75731         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75732         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75733         (memcpy): Remove macro.
75734         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75735         (__P): Remove.  All uses removed.
75736         (PTR): Remove.  All uses changed to void *.
75737         (CHAR_BIT, NULL): Remove.
75738         (spaces, zeros, memset_space, memset_zero)
75739         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75740         Remove.
75741         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75742         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75743         Define with prototype.
75744         Remove now-unnecessary prototype decl.
75745         (extra_args_spec): Assume ANSI C.  All uses changed.
75746         (extra_args_spec_iso): Remove.
75747         (my_strftime, emacs_strftimeu): Define via prototype.
75748         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75749         unconditionally.
75750         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75751         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75752         (strtoul, strtol): Remove decls.
75753         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75754         LONG_MAX): Remove.
75755         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75756         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75757         (LOCALE_PARAM_PROTO): New macro.
75758         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75759         (INTERNAL (strtol), strtol): Define with a prototype.
75760         (PARAMS): Remove.  All uses removed.
75761         * lib/tempname.c: Include <string.h> unconditionally.
75762         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75763         * lib/xgethostname.c (main): Define with a prototype.
75764         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75765         Include <stdlib.h> unconditionally.
75766         (calloc, malloc, realloc, free): Remove decls.
75767         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75768         Include <stdlib.h> unconditionally.  Sort include file names.
75769         (strtod): Remove.
75770         (xstrtod): Define with a prototype.
75771         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75772         (strtol, strtoul): Remove decls.
75773
75774 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75775
75776         More patches to assume C89 or better.
75777         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75778         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75779         string.h, memchr, STDC_HEADERS.
75780
75781 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75782
75783         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75784         Include <stdlib.h>, <string.h> unconditionally.
75785         Remove now-unnecessary cast to char *.
75786         * lib/strnlen.c: Include <string.h> unconditionally.
75787         * lib/yesno.c (yesno): Define with a prototype.
75788
75789 2003-09-11  Bruno Haible  <bruno@clisp.org>
75790
75791         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75792
75793 2003-09-10  Jim Meyering  <jim@meyering.net>
75794
75795         * lib/error.c: Correct indentation of cpp directives.
75796
75797 2003-09-10  Bruno Haible  <bruno@clisp.org>
75798
75799         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75800         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75801         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75802         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75803         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75804         <stdlib.h> and <string.h> checks.
75805         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75806         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75807
75808 2003-09-10  Bruno Haible  <bruno@clisp.org>
75809
75810         * lib/strcspn.c: Include <string.h> unconditionally.
75811         * lib/strpbrk.c: Include <string.h> unconditionally.
75812         * lib/strstr.c: Include <string.h> unconditionally.
75813         * lib/unicodeio.c: Include <string.h> unconditionally.
75814         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75815         * lib/unsetenv.c: Likewise.
75816         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75817         * lib/yesno.c: Include <stdlib.h> unconditionally.
75818         (rpmatch): Add prototype.
75819
75820 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75821
75822         More patches to assume C89 or better.
75823         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75824         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75825         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75826         or for string.h.
75827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75828         stdlib.h.
75829         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75830         C headers.
75831         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75832         string.h.
75833         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75834         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75835         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75836         or for string.h.
75837         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75838         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75839         C headers.
75840         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75841         memcpy.
75842         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75843         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75844         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75845         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75846         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75847         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75848         string.h, free.
75849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75850         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75851         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75852         C headers, or for string.h.
75853         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75854         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75855         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75856         headers, memory.h, stdlib.h, string.h, strings.h.
75857         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75858         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75859         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75860         strchr.
75861         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75862         headers, memory.h, string.h.
75863         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75864         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75865         free.
75866         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75867         headers.
75868         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75869         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75870         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75871         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75872         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75873
75874 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75875
75876         More K&R removal.
75877
75878         * lib/acosl.c (main): Use a prototype.
75879         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75880         tanl.c: Likewise.
75881
75882         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75883
75884         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75885         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75886         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75887         with a prototype.
75888         * lib/getopt.c (const): Remove macro.
75889         Include <string.h> unconditionally.
75890         (my_index): Remove; all uses changed to strchr.
75891         (strlen): Remove decl.
75892         (exchange): Remove forward decl; no longer needed.
75893         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75894         Define with prototype.
75895         * lib/getopt1.c (const): Remove macro.
75896         (getopt_long, getopt_long_only, main): Define with prototype.
75897
75898         * lib/getugroups.c: Include <string.h> unconditionally.
75899
75900         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75901         (getusershell, setusershell, endusershell, readname, main):
75902         Define with prototypes.
75903
75904         * lib/group-member.c: Include group-member.h first.
75905         Include <stdlib.h> unconditionally.
75906
75907         * lib/hard-locale.c: Include hard-locale.h first.
75908         Include <stdlib.h>, <string.h> unconditionally.
75909
75910         * lib/hash.c (free, malloc): Remove decls.
75911         Include <stdlib.h> unconditionally.
75912
75913         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75914         (getenv): Do not declare.
75915
75916         * lib/idcache.c: Include <string.h> unconditionally.
75917
75918         * lib/long-options.c: Include long-options.h first, to test interface.
75919         Include <stdlib.h> unconditionally.
75920
75921         * lib/makepath.c: Include makepath.h first, to test interface.
75922         Include <stdlib.h> and <string.h> unconditionally.
75923
75924         * lib/linebuffer.c: Include <stdlib.h>.
75925         (free): Remove decl.
75926
75927         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75928         stddef.h. rpl_malloc returns void *, not char *.
75929         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75930         prototype.
75931
75932         * lib/md5.h: Include <limits.h> unconditionally.
75933         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75934         (__P): Remove; all uses removed.
75935         * lib/md5.c: Include "md5.h" first.
75936         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75937         md5_buffer, md5_process_bytes, md5_process_block):
75938         Define with prototypes.
75939         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75940         * lib/sha.c: Include "sha.h" first.
75941         Include <stdlib.h>, <string.h> unconditionally.
75942
75943         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75944         * lib/memcmp.c (__ptr_t): Likewise.
75945         * lib/memrchr.c (__ptr_t): Likewise.
75946         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75947         Include <string.h> unconditionally.
75948         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75949         * lib/memchr.c: Include <stdlib.h> unconditionally.
75950         * lib/memchr.c (LONG_MAX): Remove.
75951         * lib/memrchr.c (LONG_MAX): Likewise.
75952         * lib/memchr.c (__memchr): Define via a prototype.
75953         * lib/memrchr.c (__memrchr): Likewise.
75954         * lib/memcmp.c (__P): Remove, and remove all uses.
75955         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75956         Remove forward decls; no longer needed.
75957         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75958         Use types required by C89 in prototype.
75959
75960         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75961         * lib/savedir.c: Likewise.
75962         * lib/mkdir.c (free): Remove decl.
75963         * lib/rmdir.c (rmdir): Define with a prototype.
75964         * lib/savedir.c: Include savedir.h first, to test interface.
75965
75966         * lib/mktime.c (STDC_HEADERS): Remove.
75967         Include <stdlib.h>, <string.h> unconditionally.
75968
75969         * lib/modechange.c: Include <stdlib.h> unconditionally.
75970         (malloc): Remove decl.
75971
75972         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75973         (free): Remove decl.
75974
75975         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75976         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75977         (This type really should be intptr_t, but that's a C99ism.)
75978         (_obstack_memcpy): Remove: all uses changed to memcpy.
75979         Include <string.h> unconditionally.
75980         (struct obstack): Assume __STDC__ for types of members
75981         chunkfun, freefun, extra_arg.
75982         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75983         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75984         obstack_begin, obstack_specify_allocation,
75985         obstack_specify_allocation_with_arg, obstack_chunkfun,
75986         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75987         Remove unprototyped decls and the macros that use them.
75988         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75989         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75990         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75991         (defined __STDC__ && __STDC__)]:
75992         Remove nonprototyped code.
75993         Include <stdlib.h> unconditionally.
75994         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75995         _obstack_allocated_p, _obstack_free, obstack_free,
75996         _obstack_memory_used, print_and_abort):
75997         Define using prototypes.
75998         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75999         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76000         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76001         obstack_next_free, obstack_object_size, obstack_room) [0]:
76002         Remove unused, unprototyped code.
76003
76004         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76005
76006         * lib/physmem.c (physmem_total, physmem_available, main): Define
76007         with prototypes.
76008
76009         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76010         (main): Define with a prototype.
76011
76012         * lib/posixver.c (getenv): Remove decl.
76013
76014         * lib/putenv.c (malloc): Returns void *, not char *.
76015         Include <string.h> unconditionally.
76016         (strchr, memcpy, NULL): Do not define.
76017
76018         * lib/readtokens.c: Include readtokens.h first, to test interface.
76019         Include <stdlib.h>, <string.h> unconditionally.
76020         (init_tokenbuffer): Define with a prototype.
76021
76022         * lib/regex.c (PARAMS): Remove.  All uses removed.
76023         All uses of _RE_ARGS removed, too.
76024         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76025         unconditionally.
76026         (bzero): Assume memset exists.
76027         (memcmp, memcpy, NULL): Remove.
76028         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76029         char, or assignments to local vars of type signed char.
76030         (init_syntax_once, PREFIX(extract_number_and_incr),
76031         PREFIX(print_partial_compiled_pattern),
76032         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76033         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76034         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76035         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76036         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76037         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76038         wcs_compile_range, byte_compile_range, truncate_wchar,
76039         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76040         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76041         count_mbs_length, wcs_re_match_2_internal,
76042         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76043         PREFIX(alt_match_null_string_p),
76044         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76045         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76046         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76047         now-unnecessary declaration, if any.
76048         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76049         regcomp, regexec):
76050         Remove now-unnecessary casts among pointer types.
76051         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76052
76053         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76054         (free): Remove decl.
76055
76056         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76057
76058         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76059         (free): Remove decl.
76060
76061         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76062         * lib/xgetcwd.c: Likewise.
76063
76064         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76065         (free): Remove decl.
76066
76067         * lib/strchrnul.c (strchrnul): Define with a prototype.
76068         Fix bug: c_in was not converted to char before searching.
76069
76070         The following changes are not K&R related:
76071
76072         * lib/group-member.h: Include <sys/types.h>, so that this file is
76073         self-contained.
76074         * lib/makepath.h: Likewise.
76075
76076         * lib/getusershell.c (readname, default_index, line_size, readname):
76077         Use size_t, not int, for sizes.
76078         (readname): If the size overflows, report an error instead of
76079         looping forever.
76080
76081 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76082
76083         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76084         libc.
76085
76086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76087
76088         * README: New section: portability guidelines.
76089
76090 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76091
76092         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76093         C89 spec.
76094
76095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76096
76097         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76098
76099 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76100
76101         Assume C89 or better; remove K&R cruft.
76102         A few of these changes were first proposed by Derek Robert Price
76103         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76104
76105         * lib/addext.c: Include <string.h> unconditionally.
76106         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76107         Don't declare getenv or malloc.
76108
76109         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76110         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76111         (NULL): Remove.
76112         (find_stack_direction, alloca): Use prototypes.
76113
76114         * lib/atexit.c (atexit): Define using a prototype.
76115
76116         * lib/basename.c, dirname.c, stripslash.c:
76117         Include <string.h> unconditionally.
76118
76119         * lib/bcopy.c: Include <stddef.h>.
76120         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76121
76122         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76123
76124         * lib/error.h (error, error_at_line, error_print_progname)
76125         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76126         * lib/error.c: Include error.h first, to check interface.
76127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76128         (VA_START): Remove; all uses changeed to va_start.
76129         (exit, strerror): Remove decls.
76130         (error_print_progname): Prototype uncondionally.
76131         Don't include <errno.h>; no longer needed.
76132         (private_strerror): Remove.
76133         (error_tail): Always define.
76134         (error, error_at_line): Assume C89 or better; always use prototypes.
76135         * lib/fatal.c: Include "fatal.h" first, to test interface.
76136         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76137         (VA_START): Remove; all uses changed to va_start.
76138         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76139         this case.
76140         (exit): Remove decl.
76141         (fatal): Prototype unconditionally.  Assume va_start works.
76142         Abort at end, to pacify gcc.
76143
76144         * lib/euidaccess.c (main): Define with a prototype.
76145
76146         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76147
76148         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76149
76150         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76151         prototypes.
76152         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76153         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76154         (getenv): Remove decl.
76155         (fnmatch): Define using a prototype.
76156         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76157         (FCT): Define using a prototype.
76158
76159         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76160
76161         * lib/gethostname.c: Include <stddef.h>.
76162         (gethostname): Define with prototype.  Length is size_t, not int.
76163
76164 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76165
76166         Assume C89 or better; remove K&R cruft.
76167         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76168         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76169         string.h, getenv, malloc.
76170         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76171         headers.
76172         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76173         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76174         do not check for strerror.
76175         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76176         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76177         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76178         do not check for doprnt or vprintf.
76179         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76180         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76181
76182 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76183
76184         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76185         getversion.c should have been removed then, but was accidentally
76186         preserved.
76187
76188         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76189         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76190
76191 2003-09-08  Karl Berry  <karl@gnu.org>
76192
76193         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76194                 config, forget about prep.
76195
76196         * config/depcomp, missing: update from automake.
76197
76198 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76199
76200         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76201         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76202
76203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76204
76205         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76206         copy_tm_result.  Bug reported by Simon Josefsson in
76207         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76208
76209 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76210
76211         * m4/time_r.m4: New file.
76212         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76213         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76214         is. Check for timegm declaration.
76215         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76216         Do not check for gmtime_r.
76217         Replace mktime if __mktime_internal does not exist and if mktime
76218         hasn't been replaced already.
76219
76220 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76221
76222         * lib/time_r.c, lib/time_r.h: New files.
76223
76224         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76225         __localtime_r.
76226         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76227         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76228
76229         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76230         __gmtime_r.
76231         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76232         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76233         Include <time_r.h>.
76234
76235         * lib/timegm.c: Switch to glibc implementation, with the following
76236         changes:
76237         [defined HAVE_CONFIG_H]: Include <config.h>.
76238         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76239         (__mktime_internal) [!defined _LIBC]: New decl.
76240         (__gmtime_r) [!defined _LIBC]: New macro and function.
76241         (timegm): Use a prototype, since gnulib assumes C89.
76242         Do not bother declaring tmp to be const, as it's not really usefu.
76243         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76244         (timegm): Declare only if HAVE_DECL_TIMEGM.
76245
76246 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76247
76248         * MODULES.html.sh (func_all_modules): Add time_r.
76249         * modules/time_r: New file.
76250         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76251         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76252
76253 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76254
76255         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76256         Bug reported by Lute Kamstra in
76257         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76258
76259         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76260         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76261         course with correspondingly smaller numbers for tomorrow and
76262         yesterday.  From Tadayoshi Funaba.  Originally installed into
76263         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76264         coreutils merge?).
76265
76266 2003-08-31  Simon Josefsson  <jas@extundo.com>
76267
76268         * modules/timegm: New file.
76269         * MODULES.html.sh (func_all_modules): Add timegm.
76270
76271 2003-08-31  Simon Josefsson  <jas@extundo.com>
76272
76273         * m4/timegm.m4: New file.
76274
76275 2003-08-31  Simon Josefsson  <jas@extundo.com>
76276
76277         * lib/timegm.h: New file.
76278         * lib/timegm.c: New file.  Based on
76279         wget-1.8.2/src/http.c:mktime_from_utc.
76280
76281 2003-08-31  Karl Berry  <karl@gnu.org>
76282
76283         * lib/argp.h: update from libc.
76284
76285 2003-08-28  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76288         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76289         followed by '#define fnmatch fnmatch_posix' gives an error.
76290
76291 2003-08-28  Bruno Haible  <bruno@clisp.org>
76292
76293         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76294         warning on QNX, which defines O_BINARY to 000000.
76295
76296 2003-08-27  Jim Meyering  <jim@meyering.net>
76297
76298         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76299         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76300         would fail after 32.  Reported by Danny Levinson.  Details here:
76301         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76302
76303 2003-08-24  Bruno Haible  <bruno@clisp.org>
76304
76305         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76306         MSVC7 <stdio.h> is included later.
76307
76308 2003-08-22  Simon Josefsson  <jas@extundo.com>
76309
76310         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76311
76312 2003-08-20  Karl Berry  <karl@gnu.org>
76313
76314         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76315
76316 2003-08-20  Bruno Haible  <bruno@clisp.org>
76317
76318         * modules/progname: New file.
76319         * MODULES.html.sh (func_all_modules): Add progname.
76320
76321 2003-08-20  Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/progname.h: New file, from GNU gettext.
76324         * lib/progname.c: New file, from GNU gettext.
76325         * lib/progreloc.c: New file, from GNU gettext.
76326
76327 2003-08-19  Jim Meyering  <jim@meyering.net>
76328
76329         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76330         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76331
76332 2003-08-19  Bruno Haible  <bruno@clisp.org>
76333
76334         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76335         more.
76336
76337 2003-08-19  Bruno Haible  <bruno@clisp.org>
76338
76339         * lib/xstrdup.c: Assume <string.h> exists.
76340
76341 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76342
76343         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76344         in makefile rules.
76345
76346 2003-08-18  Jim Meyering  <jim@meyering.net>
76347
76348         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76349         * m4/lib-ld.m4: Likewise.
76350
76351 2003-08-18  Jim Meyering  <jim@meyering.net>
76352
76353         * lib/setenv.h: Indent nested cpp directive.
76354         * lib/vasnprintf.c: Remove trailing blanks.
76355
76356 2003-08-17  Simon Josefsson  <jas@extundo.com>
76357
76358         * modules/xstrndup: New file.
76359         * MODULES.html.sh (func_all_modules): Add xstrndup.
76360
76361 2003-08-17  Simon Josefsson  <jas@extundo.com>
76362
76363         * modules/argp: Fix autoconf macro name. Add more dependencies.
76364
76365 2003-08-17  Simon Josefsson  <jas@extundo.com>
76366
76367         * m4/xstrndup.m4: New file.
76368
76369 2003-08-17  Simon Josefsson  <jas@extundo.com>
76370
76371         * m4/argp.m4: New file.
76372
76373 2003-08-17  Simon Josefsson  <jas@extundo.com>
76374             Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/xstrndup.h: New file.
76377         * lib/xstrndup.c: New file.
76378
76379 2003-08-17  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/strndup (Files, Include): Add lib/strndup.h.
76382
76383 2003-08-17  Bruno Haible  <bruno@clisp.org>
76384
76385         * modules/euidaccess (Files): Add lib/euidaccess.h.
76386
76387 2003-08-17  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/strndup.h: New file.
76390
76391 2003-08-17  Bruno Haible  <bruno@clisp.org>
76392
76393         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76394         like AC_GNU_SOURCE.
76395         * modules/extensions (configure.ac): Comment out the invocation of
76396         gl_USE_SYSTEM_EXTENSIONS.
76397
76398 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76399
76400         Merges from coreutils, etc.
76401         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76402         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76403         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76404         fixing a typo.
76405         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76406         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76407
76408 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76409
76410         Document merge from coreutils.
76411         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76412         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76413         * modules/utime: Add m4/utimes-null.m4.
76414
76415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76416
76417         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76418         space, undoing this 2003-08-12 change:
76419         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76420
76421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76422
76423         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76424         strtoul.c from libc, undoing this 2003-08-12 change:
76425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76426
76427 2003-08-16  Jim Meyering  <jim@meyering.net>
76428
76429         Merges from coreutils.
76430         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76431         prefix.  Adjust cache variables similarly.  Create 500 rather than
76432         just 300 files, to exercise bug on Darwin6.5, too.
76433         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76434         $missing_dir.
76435         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76436         AM_SYS_POSIX_TERMIOS.
76437         Reported by mkc@mathdogs.com.
76438         Also change use of $am_cv_sys_posix_termios
76439         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76440         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76441         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76442         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76443         in /proc/mounts until it finds one with matching device number.  This
76444         is unnecessary when the FILE argument *is* a mount point.  No stat call
76445         is necessary in that case.  So, disable the statvfs-testing code on
76446         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76447         as RedHat bug# 84846.
76448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76449         to 1MB, so as not to render systems with no stack size limit (e.g.,
76450         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76451         Include <unistd.h>.  On some systems,
76452         it is required for the definition of _SC_PAGESIZE.
76453
76454 2003-08-16  Jim Meyering  <jim@meyering.net>
76455
76456         Merge from coreutils.
76457         * lib/xstrtoimax.c: #else #if -> #elif.
76458         * lib/xstrtoumax.c: Likewise.
76459
76460 2003-08-16  Jim Meyering  <jim@meyering.net>
76461
76462         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76463         * m4/utimes.m4: Removed.
76464         * m4/utimes-null.m4: Renamed from utimes.m4.
76465
76466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76467         to 1MB, so as not to render systems with no stack size limit (e.g.,
76468         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76469         Include <unistd.h>.  On some systems,
76470         it is required for the definition of _SC_PAGESIZE.
76471
76472 2003-08-16  Jim Meyering  <jim@meyering.net>
76473         and Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         Merges from coreutils, etc.
76476
76477         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76478         using the latest version from cvs.  This avoids problems with #line
76479         directives using a vendor (Sun) compiler.
76480         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76481         Don't set GETGROUPS_LIB here; now it's
76482         done via getgroups.m4's wrapper function.
76483         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76484         rather than just in sh-util/configure.in, so that the
76485         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76486         same.
76487         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76488         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76489         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76490         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76491         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76492         Remove code that is now done by the newly-required macros.
76493         Append $(EXEEXT) to DF_PROG.
76494         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76495         Do not invoke or require the following here,
76496         since prereq.m4 or some gnulib .m4 now does this for us:
76497         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76498         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76499         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76500         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76501         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76502         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76503         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76504         AC_FUNC_OBSTACK.
76505         Do not replace the following functions, as this is now the job
76506         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76507         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76508         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76509         atexit getpass, strdup, getpagesize.
76510         Replace 'raise'.
76511         Do not check for the following functions, as this is now the job
76512         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76513         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76514         setregid.
76515         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76516         Check for sys/sysctl.h.
76517         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76518         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76519         of checking for ssize_t ourselves.
76520
76521         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76522         Require every macro that gnulib/modules/* suggests for us.
76523         (jm_PREREQ_ADDEXT): New macro.
76524         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76525         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76526
76527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76528         (gl_PHYSMEM): Use it.
76529         Also check for `table' function.
76530         Check for new headers and functions.
76531         Add check for sys/sysmp.h.
76532         With suggestions from Kaveh Ghazi.
76533         Ignore headers that are present but cannot be compiled.  This
76534         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76535         C 5.4.
76536
76537 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76538
76539         Document merge from coreutils.
76540         * modules/userspec: Depend on posixver.
76541         * modules/strftime: Depend on tzset.
76542
76543 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76544
76545         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76546         rather than tab, after '#' in shell-script copyright notices.
76547         Suggested by Bruno Haible.
76548
76549 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76550
76551         * config/srclist-update: Use three spaces, rather than tab, after '#'
76552         in shell-script copyright notices.  Suggested by Bruno Haible.
76553         Remove unnecessary parenthesization in regular expression.
76554
76555 2003-08-15  Jim Meyering  <jim@meyering.net>
76556
76557         Merge from coreutils.
76558         * lib/xgethostname.c: Include <stdlib.h>.
76559         (xghostname): Don't exit for anything other than memory-related
76560         failure; just return NULL.
76561         * lib/userspec.c: Include "posixver.h".
76562         (parse_user_spec): Accept `.' as a separator only
76563         in pre-POSIX-200112 mode.
76564         * lib/strtoimax.c: Use #elif rather than #else #if.
76565         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76566         Remove function, now that we can rely on a working tzset function.
76567         [!_LIBC]: Ensure that the required autoconf test has been run.
76568         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76569         Use underlying_strftime for %r.
76570         * lib/sha.c: Merge in some clean-up and optimization changes from
76571         glibc.
76572         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76573         Ensure that it is a multiple of 64.
76574         Rearrange loop exit tests so as to avoid performing an
76575         additional fread after encountering an error or EOF.
76576         * lib/realloc.c: Update copyright date.
76577
76578 2003-08-15  Jim Meyering  <jim@meyering.net>
76579         and Paul Eggert  <eggert@twinsun.com>
76580
76581         Merge from coreutils.
76582         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76583         member but strut utmpx does not.  Needed for AIX 4.3.3.
76584         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76585
76586 2003-08-15  Jim Meyering  <jim@meyering.net>
76587         and Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         Merges from coreutils, etc.
76590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76591         Require gl_FUNC_TZSET_CLOBBER.
76592         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76593         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76594         members.
76595
76596 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76597
76598         Help the merge from coreutils.
76599         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76600         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76601         * m4/tzset.m4: Use it too.
76602
76603 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76604
76605         * modules/tzset: New file.
76606
76607 2003-08-14  Jim Meyering  <jim@meyering.net>
76608
76609         Merges from coreutils.
76610         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76611         variable names, rather than @FNMATCH_H@.
76612         * modules/alloca: Likewise for $(ALLOCA_H).
76613
76614         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76615         the three copies of the literal target, `fnmatch.h'.
76616         * modules/alloca (alloca.h): Likewise.
76617
76618 2003-08-14  Jim Meyering  <jim@meyering.net>
76619
76620         Merge from coreutils.
76621         * m4/tzset.m4: New file.
76622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76623         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76624         otherwise, AIX 5.1 systems would end up using the latter.
76625         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76626         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76627         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76628         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76629
76630 2003-08-14  Jim Meyering  <jim@meyering.net>
76631
76632         Merge from coreutils.
76633         * lib/obstack.h: Whitespace changes.
76634         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76635         and xcalloc return values.
76636         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76637         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76638         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76639         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76640         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76641         error from mntctl.
76642         Use mntctl's return value to drive the entry-processing loop, since
76643         we can't rely on the value of the vmt_length member in the last
76644         entry.  On some systems doing so could result in exhausting
76645         virtual memory.  Based in part on a patch from Mike Jetzer.
76646
76647 2003-08-14  Jim Meyering  <jim@meyering.net>
76648         and Paul Eggert  <eggert@twinsun.com>
76649
76650         Merges from coreutils, plus other fixes.
76651         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76652         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76653         for credits and details.  Thanks to Kaveh Ghazi for helping
76654         to keep these files in sync.
76655         (ARRAY_SIZE): Define it.
76656         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76657         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76658         (memcasecmp): Don't assume size_t fits in unsigned int.
76659         Remove casts and duplicate code.
76660         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76661         (memcpy): Remove definition.
76662         Merge in some clean-up and optimization changes from glibc.
76663         [BLOCKSIZE]: Move definition to top of file.
76664         Ensure that it is a multiple of 64.
76665         Rearrange loop exit tests so as to avoid performing an
76666         additional fread after encountering an error or EOF.
76667         * lib/md5.h (md5_uintptr): Define.
76668         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76669         return to the initial working directory.  Preserve errno
76670         for caller.
76671         * lib/idcache.c: Include "xalloc.h".
76672         (xmalloc, xrealloc): Remove decls.
76673         (getuser): Remove casts no longer required in C89.
76674         * lib/human.c: Include stdio.h, for sprintf.
76675         * lib/group-member.c: Include "xalloc.h".
76676         (xmalloc, xrealloc): Remove decls.
76677         (get_group_info): Remove casts no longer required in C89.
76678         * lib/getusershell.c (readname): Remove casts no longer required in
76679         C89.
76680         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76681         * lib/getline.c: Whitespace fix, from coreutils.
76682
76683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76684
76685         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76686         Check for isascii.
76687
76688         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76689         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76690         Undo previous (whitespace-only) change.
76691
76692 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76693
76694         * lib/exclude.c: Include <ctype.h>
76695         (IN_CTYPE_DOMAIN): New macro.
76696         (is_space): New fn.
76697         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76698         and empty lines.
76699
76700         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76701         Undo previous (whitespace-only) change.
76702
76703 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76704
76705         * config/srclist-update: Change update back to the old behavior,
76706         leaving whitespace alone.  Use one 'sed' command rather than a
76707         pipeline.
76708         (fixlicense): Now a variable, not a function.
76709         (remove_trailing_blanks): Remove.
76710         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76711         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76712         Undo previous (whitespace-only) change.
76713
76714 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76715
76716         Merge from coreutils.
76717         * modules/euidaccess: Add lib_SOURCES, include for new
76718         file euidaccess.h
76719
76720 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76721
76722         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76723         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76724         Normalize leading white space and remove trailing white space.
76725
76726         Merge from coreutils
76727         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76728
76729         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76730         0.12.1.  These files are now being upgraded automatically by
76731         ../config/srclist-update.
76732
76733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76734
76735         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76736         Normalize leading white space and remove trailing white space.
76737         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76738         notice, as per ../config/srclist-update.
76739
76740         Merge from coreutils.
76741         * lib/euidaccess.h: New file.
76742         * lib/euidaccess.c: Include it.
76743         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76744         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76745         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76746
76747 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76748
76749         * config/srclist-update: Add copyright notice.
76750         (remove_id_lines, remove_trailing_blanks): New constants.
76751         (fixfile): Use them to normalize spacing a bit in copied files.
76752         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76753         Normalize leading white space and remove trailing white space.
76754
76755         * config/texinfo.tex: Sync with texinfo.
76756
76757         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76758         strtoul.c from libc, to merge coreutils whitespace changes.
76759
76760         * config/srclist.txt: Get the following m4 files from gettext:
76761         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76762         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76763         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76764         wint_t.m4.
76765
76766 2003-08-12  Karl Berry  <karl@gnu.org>
76767
76768         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76769         been made.
76770
76771 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76772
76773         * modules/gnu-source, m4/gnu-source.m4:
76774         Remove; we're assuming Autoconf 2.54 or later now.
76775         Suggested by Bruno Haible.
76776         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76777
76778 2003-08-11  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76781
76782 2003-08-11  Bruno Haible  <bruno@clisp.org>
76783
76784         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76785         (vasnprintf): Use it instead of wcslen.
76786
76787 2003-08-11  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76790         value to ensure that _Bool promotes to int. Use #define for _Bool when
76791         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76792
76793 2003-08-10  Karl Berry  <karl@gnu.org>
76794
76795         * lib/regex.h: update from libc (whitespace fix).
76796
76797 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76798
76799         Merge some files from coreutils.  These changes were
76800         originally made by Jim Meyering.
76801         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76802         many older Unixes require this.
76803         * lib/alloca.c (alloca): Remove cast to argument of free;
76804         no longer needed in C89.
76805         * lib/alloca_.h, regex.h: Fix white space to match
76806         what GNU indent does.
76807
76808 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76809
76810         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76811         apparently Emacs's Unicode mode got confused before my 2003-08-05
76812         checkin.
76813
76814 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76815
76816         * m4/extensions.m4: New file.
76817         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76818         Require gl_USE_SYSTEM_EXTENSIONS.
76819         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76820         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76821
76822 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76823
76824         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76825         * modules/extensions, modules/gnu-source: New files.
76826         * modules/timespec, modules/unlocked-io: Depend on extensions.
76827
76828 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76829
76830         * modules/restrict: New file.
76831         * MODULES.html.sh (func_all_modules): Add restrict.
76832         * modules/regex: Depend on restrict.
76833
76834 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76835
76836         * m4/restrict.m4: New file.
76837         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76838
76839 2003-08-07  Bruno Haible  <bruno@clisp.org>
76840
76841         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76842         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76843
76844 2003-08-07  Bruno Haible  <bruno@clisp.org>
76845
76846         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76847         makes the module 'getndelim2' compatible with the module 'getline'.
76848
76849 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76850
76851         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76852         byte with "\201" to avoid glitches when editing that source file
76853         with multi-gnome-terminal.
76854
76855 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76856
76857         * lib/bumpalloc.h: Remove.
76858
76859 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76860
76861         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76862         * modules/bumpalloc: Remove.
76863
76864 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76865
76866         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76867         GNU coding style.
76868
76869         Merge from coreutils.
76870         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76871         1. From glibc.
76872         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76873         from Karl Berry, implemented by Jim Meyering.
76874         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76875         from Dmitry V. Levin.
76876         Remove anachronistic cast of xrealloc.
76877         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76878         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76879         type. Otherwise, it wouldn't compile with at least /bin/cc on
76880         ymp-cray-unicos9.0.2.X.
76881         Combine two mostly-identical uses of alloca into one.
76882         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76883
76884 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76885
76886         [From Emacs.]
76887
76888         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76889         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76890         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76891         obsolete NLIST_NAME_UNION.
76892         [__GNU__]: Undef BSD and FSCALE.
76893         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76894
76895 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76896
76897         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76898         an enum type, so that it's guaranteed to promote to int.  See:
76899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76900
76901 2003-08-03  Karl Berry  <karl@gnu.org>
76902
76903         * config/depcomp: update from automake.
76904
76905 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76906
76907         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76908         (strerror): Don't assume that a printable int fits in 14 bytes.
76909
76910 2003-07-31  Bruno Haible  <bruno@clisp.org>
76911
76912         * modules/getpass-gnu: New file.
76913         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76914
76915 2003-07-31  Bruno Haible  <bruno@clisp.org>
76916
76917         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76918
76919 2003-07-24  Karl Berry  <karl@gnu.org>
76920
76921         * config/missing: update from automake.
76922
76923 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76924             Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76927         * lib/getline.c (getline, getdelim): Likewise.
76928         Remove _GNU_SOURCE define; now it's defined in config.h through
76929         m4/getline.m4.
76930
76931 2003-07-23  Karl Berry  <karl@gnu.org>
76932
76933         * config/config.sub: update from prep.
76934
76935 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76936
76937         * modules/xalloc (Depends-on): Add exitfail.
76938         * modules/xmemcoll: Likewise.
76939
76940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76941
76942         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76943         over-parenthesization in macros.
76944
76945         Sync with coreutils.
76946
76947         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76948         required by C99.
76949
76950         Use `exit_failure' for xalloc and xmemcoll instead of their own
76951         private exit-failure variables.
76952         * lib/xalloc.h (xalloc_exit_failure): Remove.
76953         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76954         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76955         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76956         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76957         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76958
76959 2003-07-20  Jim Meyering  <jim@meyering.net>
76960
76961         * modules/closeout (Depends-on): Add exitfail.
76962         Suggestion from Bruno Haible.
76963
76964 2003-07-19  Karl Berry  <karl@gnu.org>
76965
76966         * config/config.sub: update from prep.
76967
76968 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76969
76970         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76971         Remove.
76972         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76973         to test that it can stand by itself.  Include "exitfail.h".
76974         Clients should set exit_failure instead.
76975         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76976
76977 2003-07-18  Bruno Haible  <bruno@clisp.org>
76978
76979         * modules/getndelim2: New file.
76980         * modules/getline: Share files with module getndelim2.
76981         * modules/getnline: Depend on getndelim2 instead of sharing files with
76982         it. Add getnline.c to lib_SOURCES.
76983         * MODULES.html.sh (func_all_modules): Add getndelim2.
76984
76985 2003-07-18  Bruno Haible  <bruno@clisp.org>
76986
76987         * m4/getndelim2.m4: New file.
76988         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76989         invoke gl_PREREQ_GETNDELIM2.
76990         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76991         gl_PREREQ_GETNDELIM2.
76992         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76993         gl_GETNDELIM2.
76994
76995 2003-07-18  Bruno Haible  <bruno@clisp.org>
76996
76997         * lib/getndelim2.h: New file.
76998         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76999         getndelim2.h.
77000         (getndelim2): Make non-static. Change return type to ssize_t.
77001         * lib/getline.h: Change argument names.
77002         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77003         * lib/getnline.c: Include getndelim2.h.
77004
77005 2003-07-18  Andreas Schwab  <schwab@suse.de>
77006
77007         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77008
77009 2003-07-17  Karl Berry  <karl@gnu.org>
77010
77011         * config/config.sub: update from prep.
77012
77013 2003-07-17  Bruno Haible  <bruno@clisp.org>
77014
77015         * modules/getnline: New file.
77016         * modules/getline: Add lib/getndelim2.c to source file list.
77017         * MODULES.html.sh (func_all_modules): Add getnline.
77018
77019 2003-07-17  Bruno Haible  <bruno@clisp.org>
77020
77021         * m4/getnline.m4: New file.
77022
77023 2003-07-17  Bruno Haible  <bruno@clisp.org>
77024
77025         * m4/Makefile.am.in: Remove file.
77026         * m4/Makefile.am: Remove file.
77027         * m4/Makefile.in: Remove file.
77028
77029 2003-07-17  Bruno Haible  <bruno@clisp.org>
77030
77031         * lib/getnline.h: New file.
77032         * lib/getnline.c: New file.
77033         * lib/getndelim2.c: New file, extracted from getline.c.
77034         (getndelim2): Renamed from getdelim2, with added nmax argument.
77035         * lib/getline.c: Include getndelim2.c.
77036         (getdelim2): Moved out to getndelim2.c.
77037         (getline, getdelim): Update.
77038
77039 2003-07-17  Bruno Haible  <bruno@clisp.org>
77040
77041         * lib/Makefile.am: Remove file.
77042         * lib/Makefile.in: Remove file.
77043
77044 2003-07-17  Bruno Haible  <bruno@clisp.org>
77045
77046         * configure.in: Remove file.
77047         * Makefile.in: Remove file.
77048
77049 2003-07-17  Bruno Haible  <bruno@clisp.org>
77050
77051         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77052
77053 2003-07-16  Karl Berry  <karl@gnu.org>
77054
77055         * config/srclist-update: was running fixlicense twice, which caused
77056                 texinfo.tex to be nullified for some reason.  Simplify,
77057                 $gplsrc is no longer needed as far as I can see?
77058
77059 2003-07-16  Jim Meyering  <jim@meyering.net>
77060
77061         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77062
77063 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77064
77065         * config/srclist.txt: Get the following files from gettext-runtime/intl
77066         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77067         ref-del.sin.  From Bruno Haible.
77068         * config/srclist-update (fixfile): Change grep pattern again, since the
77069         previous fix didn't work (there was another trailing $).  Use
77070         '[$]' to escape the $s.
77071
77072 2003-07-15  Karl Berry  <karl@gnu.org>
77073
77074         * lib/vasnprintf.c: update from gettext.
77075
77076 2003-07-15  Karl Berry  <karl@gnu.org>
77077
77078         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77079         gets expanded when surrounded by '$'.
77080
77081 2003-07-15  Jim Meyering  <jim@meyering.net>
77082
77083         * modules/save-cwd: Don't depend on error.  From Derek Price.
77084
77085 2003-07-15  Jim Meyering  <jim@meyering.net>
77086
77087         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77088
77089 2003-07-14  Simon Josefsson  <jas@extundo.com>
77090
77091         * modules/mempcpy: New file.
77092         * MODULES.html.sh (func_all_modules): Add mempcpy.
77093
77094 2003-07-14  Simon Josefsson  <jas@extundo.com>
77095
77096         * m4/mempcpy.m4: New file.
77097
77098 2003-07-14  Simon Josefsson  <jas@extundo.com>
77099
77100         * lib/mempcpy.h: New file.
77101         * lib/mempcpy.c: New file.
77102
77103 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77104
77105         * modules/getdate, modules/posixtm: Depend on mktime.
77106
77107 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77108
77109         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77110         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77111         unicodeio.c, unicodeio.h, unlocked-io.h:
77112         Switch from LGPL to GPL.
77113
77114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77115
77116         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77117         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77118         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77119         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77120         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77121         updated automatically by ../config/srclist-update.  This changes
77122         their license from LPGL to GPL.
77123
77124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77125
77126         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77127         assumed to refer to the root of the most recent stable gettext version.
77128         * config/srclistvars.sh: Add defaults for eggert.
77129         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77130         Match "This program" as well as "The program".  This is needed
77131         for gettext.
77132
77133 2003-07-14  Jim Meyering  <jim@meyering.net>
77134
77135         Don't emit diagnostics.  Let callers do that.
77136         * lib/save-cwd.c: Don't include "error.h".
77137         (save_cwd): Don't call error.  Ensure that errno is valid
77138         when returning nonzero.
77139
77140         * lib/save-cwd.h (restore_cwd): Update prototype.
77141         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77142         Simplify.  Don't call error upon failure.  Let callers do that.
77143         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77144         when auditing is enabled.  But don't bother updating the #if.
77145
77146 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77147
77148         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77149         it breaks C++ compilation.
77150         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77151
77152 2003-07-10  Simon Josefsson  <jas@extundo.com>
77153
77154         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77155
77156 2003-07-10  Jim Meyering  <jim@meyering.net>
77157
77158         * m4/clock_time.m4: Remove trailing blank.
77159         * m4/intmax_t.m4: Likewise.
77160
77161 2003-07-10  Jim Meyering  <jim@meyering.net>
77162
77163         * lib/vasnprintf.c: Remove trailing blanks.
77164         Make cpp indentation consistent.
77165
77166 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77167
77168         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77169         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77170         Switch from LGPL to GPL.
77171
77172 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77173
77174         * config/srclist.txt: Sort sublists.  Add
77175         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77176         that differ from gnulib for one reason or another; we'd like this list
77177         to be smaller but for now let's document what we have.
77178
77179 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77180
77181         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77182         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77183         and sweeter "eval x=$x".
77184         * config/srclist.txt: Get lib/argp* from glibc.
77185
77186 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77187
77188         * lib/mktime.c: Fix some boundary cases and remove need for floating
77189         point.
77190
77191         Issue a compile-time diagnostic if time_t is floating point, or if
77192         two's complement arithmetic is not in effect, or if arithmetic
77193         right shift does not propagate the sign.  These assumptions were
77194         all in the original code but they weren't checked.
77195
77196         (TIME_T_MIDPOINT, verify): New macros.
77197         (__isleap): Remove; it has integer overflow problems.
77198         (leapyear): New function, without those problems.
77199         (ydhms_tm_diff): Remove; splitting into two parts.
77200         (ydhms_diff): New function, containing the arithmetic part of
77201         the old ydhms_tm_diff function.  Issue a compile-time
77202         diagnostic if we are not using C99 integer division.
77203         Avoid casts when possible.
77204         (guess_time_tm): New function, containing the checking part of
77205         the old ydhms_tm_diff function.  Return the new value, rather than
77206         the difference between it and the old.  Accept a new argument T
77207         so that *T specifies the old value.  Check for overflow in the result.
77208
77209         (__mktime_internal): Use a time_t offset, not a long int offset.
77210         This undoes the 2003-06-04 change, which is no longer needed now
77211         that we have better overflow checking.
77212         (localtime_offset): Likewise.
77213
77214         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77215         and long are 64-bit but int is only 32-bit.
77216         (ydhms_diff): Use long int to store year1 and yday1.
77217         Issue a compile-time diagnostic if long int is not wide enough.
77218
77219         (__mktime_internal): Use long int to store adjusted year and yday.
77220         Use plain C rather than preprocessor commands, if that doesn't
77221         affect efficiency.
77222         Check for overflow (and try to repair) after each probe
77223         rather than checking only at the very end.  This avoids some bugs
77224         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77225         does not equal GMT offset at maximum time).
77226         Use integer to check for overflow rather than floating point; this
77227         is more portable to non-IEEE hosts, and is a tad faster.
77228         When we detect that we are oscillating between two values,
77229         don't check whether tm_isdst has the requested value, since
77230         we already know the answer.  When tm_isdst has the wrong value,
77231         use a different heuristic to find the right one, based on the
77232         extreme values actually observed in practice in tz2003a,
77233         rather than the (overly optimistic) "previous 3 calendar quarters".
77234
77235         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77236         "T const" to accommodate glibc style.
77237         (check_result): Use less-confusing report format.  "long" -> "long int.
77238         (main): Likewise.
77239         Don't loop if the iteration overflows time_t.
77240         Allow a negative step in the iteration.
77241
77242 2003-07-06  Karl Berry  <karl@gnu.org>
77243
77244         * config/depcomp: update from automake.
77245         * config/config.sub: update from prep.
77246
77247 2003-07-03  Karl Berry  <karl@gnu.org>
77248
77249         * config/config.guess: update from prep.
77250
77251 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77252
77253         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77254         xreadlink.c now includes it unconditionally.
77255
77256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77257
77258         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77259         having it depend on HAVE_SYS_TYPES_H.
77260
77261 2003-07-01  Bruno Haible  <bruno@clisp.org>
77262
77263         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77264         <sys/types.h> should be sufficient.
77265         Reported by Paul Eggert.
77266
77267 2003-06-26  Karl Berry  <karl@gnu.org>
77268
77269         * config/depcomp: update from automake.
77270
77271 2003-06-26  Bruno Haible  <bruno@clisp.org>
77272
77273         * modules/human: Depend on module stdbool.
77274
77275 2003-06-25  Bruno Haible  <bruno@clisp.org>
77276
77277         * modules/readlink: New file.
77278         * modules/xreadlink: Depend on it.
77279         * MODULES.html.sh (func_all_modules): Add readlink.
77280
77281 2003-06-25  Bruno Haible  <bruno@clisp.org>
77282
77283         * m4/readlink.m4: New file.
77284
77285 2003-06-25  Bruno Haible  <bruno@clisp.org>
77286
77287         * lib/readlink.c: New file.
77288
77289 2003-06-22  Karl Berry  <karl@gnu.org>
77290
77291         * config/srclist.txt: update mkinstalldirs from automake.
77292         * config/mkinstalldirs: update.
77293
77294 2003-06-22  Bruno Haible  <bruno@clisp.org>
77295
77296         Portability to mingw32.
77297         * m4/ssize_t.m4: New file, from GNU gettext.
77298         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77299         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77300
77301 2003-06-22  Bruno Haible  <bruno@clisp.org>
77302
77303         * modules/safe-read: Add m4/ssize_t.m4.
77304         * modules/xreadlink: Add m4/ssize_t.m4.
77305
77306 2003-06-20  Bruno Haible  <bruno@clisp.org>
77307
77308         Assume C89, so PARAMS isn't needed.
77309         * lib/unicodeio.h (PARAMS): Remove.
77310         * lib/unicodeio.c: Don't use PARAMS.
77311
77312 2003-06-18  Karl Berry  <karl@gnu.org>
77313
77314         * config/config.{guess,sub}: update from prep.
77315
77316 2003-06-18  Jim Meyering  <jim@meyering.net>
77317
77318         Merge changes from coreutils.
77319         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77320         Remove explicit declarations of xmalloc and realloc.
77321         Include xalloc.h.
77322         (read_utmp): Remove anachronistic cast of xmalloc.
77323
77324 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77325
77326         Assume C89, so PARAMS isn't needed.
77327         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77328         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77329         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77330         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77331         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77332         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77333         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77334         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77335         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77336         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77337         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77338         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77339         no longer needed. Anyway, config.h should always be included before any
77340         other file.
77341
77342 2003-06-11  Simon Josefsson  <jas@extundo.com>
77343
77344         * modules/sysexits: New file.
77345         * MODULES.html.sh (func_all_modules): Add sysexits.
77346
77347 2003-06-11  Simon Josefsson  <jas@extundo.com>
77348
77349         * lib/sysexit_.h: New file.
77350
77351 2003-06-11  Derek Price  <derek@ximbiot.com>
77352
77353         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77354         necessary.
77355
77356 2003-06-11  Bruno Haible  <bruno@clisp.org>
77357
77358         * m4/sysexits.m4: New file.
77359
77360 2003-06-10  Simon Josefsson  <jas@extundo.com>
77361
77362         * lib/argp.h: New file, from glibc.
77363         * lib/argp-ba.c: New file, from glibc.
77364         * lib/argp-eexst.c: New file, from glibc.
77365         * lib/argp-fmtstream.c: New file, from glibc.
77366         * lib/argp-fmtstream.h: New file, from glibc.
77367         * lib/argp-fs-xinl.c: New file, from glibc.
77368         * lib/argp-help.c: New file, from glibc.
77369         * lib/argp-namefrob.h: New file, from glibc.
77370         * lib/argp-parse.c: New file, from glibc.
77371         * lib/argp-pv.c: New file, from glibc.
77372         * lib/argp-pvh.c: New file, from glibc.
77373         * lib/argp-xinl.c: New file, from glibc.
77374
77375 2003-06-10  Simon Josefsson  <jas@extundo.com>
77376
77377         * modules/strchrnul: New file.
77378
77379 2003-06-10  Simon Josefsson  <jas@extundo.com>
77380
77381         * modules/argp: New file.
77382
77383 2003-06-10  Simon Josefsson  <jas@extundo.com>
77384
77385         * m4/strchrnul.m4: New file.
77386
77387 2003-06-10  Simon Josefsson  <jas@extundo.com>
77388
77389         * lib/strchrnul.h: New file.
77390         * lib/strchrnul.c: New file.
77391
77392 2003-06-10  Bruno Haible  <bruno@clisp.org>
77393
77394         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77395
77396 2003-06-07  Karl Berry  <karl@gnu.org>
77397
77398         * config/config.{guess,sub}: update from prep.
77399
77400 2003-06-07  Jim Meyering  <jim@meyering.net>
77401
77402         * modules/strtod: Use $(...) notation, not @...@ for
77403         AC_REPLACE'd variables.
77404         * modules/localcharset: Likewise.
77405
77406 2003-06-07  Jim Meyering  <jim@meyering.net>
77407
77408         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77409         in place of my name in the copyright comment.
77410         Remove definition and uses of __P.
77411
77412         From coreutils.
77413         * lib/stat.c: Don't declare xmalloc explicitly.
77414         Instead, include "xalloc.h".
77415         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77416         xrealloc, and xcalloc return values.
77417         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77418         Improve comment.
77419         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77420
77421 2003-06-07  Bruno Haible  <bruno@clisp.org>
77422
77423         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77424         avoid AC_CONFIG_LINKS.
77425         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77426         fnmatch.h, to avoid AC_CONFIG_LINKS.
77427         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77428
77429 2003-06-07  Bruno Haible  <bruno@clisp.org>
77430
77431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77432         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77434         directory.
77435         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77436         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77437         directory.
77438
77439 2003-06-06  Jim Meyering  <jim@meyering.net>
77440
77441         Merge from coreutils.
77442         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77443         Consolidate declarations and initializations of *_base* locals.
77444
77445         Merge from coreutils.
77446         This avoids a core dump on systems without GNU putenv,
77447         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77448         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77449         (unsetenv): New static function, from GNU libc.
77450         (rpl_putenv): Use it.
77451
77452         * lib/modechange.c: Remove trailing blanks.
77453
77454         Merge from coreutils.
77455         * lib/fsusage.c: Remove declaration of statfs.
77456         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77457
77458         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77459
77460 2003-06-06  Jim Meyering  <jim@meyering.net>
77461
77462         * lib/stdbool_.h: Renamed from stdbool.h.in.
77463
77464 2003-06-06  Jim Meyering  <jim@meyering.net>
77465             Bruno Haible  <bruno@clisp.org>
77466
77467         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77468         Adjust Makefile.am snippet not to redirect directly to target.
77469         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77470
77471 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77472
77473         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77474         mismatch, look in future quarters as well as past.  This fixes a
77475         bug when processing fall-backwards gaps immediately after a long
77476         period of daylight-saving time.
77477
77478         * lib/mktime.c: Assume freestanding C89 or better.
77479         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77480         (__P): Remove; not used.
77481         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77482         (mktime, not_equal_tm, print_tm, check_result,
77483         main): Use prototypes.  Use const * where appropriate.
77484         (main): Fix typo in testing code that uncovered by above changes.
77485         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77486
77487 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77488
77489         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77490         locale.h, localeconv.  This merges changes from coreutils.
77491
77492         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77493         It can be removed after the next Autoconf is released.
77494         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77495         needed.
77496
77497 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77498
77499         * lib/mktime.c: Fix Debian bug 177940
77500         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77501         (localtime_offset): Now long int, not time_t, because we want it
77502         to be guaranteed to be signed.  All uses changed.
77503         (__mktime_internal): If overflow would occur when adding offset,
77504         don't add it.
77505
77506         Merge 'human' changes from coreutils.  Rewrite to support
77507         locale-specific notations like thousands separators.
77508         * lib/human.c: Simplify authorship notice.
77509         Include human.h immediately after config.h.
77510         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77511         <limits.h>: Do not include, since human.h does.
77512         (SIZE_MAX, UINTMAX_MAX): New macros.
77513         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77514         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77515         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77516         (power_letter): Renamed from suffixes.
77517         (generate_suffix_backwards): Remove.
77518         (adjust_value): Now takes int style (because of human.h changes)
77519         and long double value (for greater precision on some platforms).
77520         (group_number): New function.
77521         (human_readable): Use it.  Use integer options, not enum.
77522         Put the options before the sizes in the arg list.
77523         Support all the new options.
77524         The old human_readable function has been removed;
77525         use inttostr.h instead.
77526         (human_readable, default_block_size, humblock):
77527         Use uintmax_t, not int, for block sizes.
77528         (human_readable_inexact, block_size_types): Remove.
77529         (block_size_opts): New constant.
77530         (human_options): Renamed from human_block_size, with new signature
77531         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77532         * lib/human.h: Add copyright and authorship notice.
77533         Include <limits.h> and <stdbool.h> unconditionally.
77534         (PARAMS): Remove.  All uses removed.
77535         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77536         (enum human_inexact_style): Remove tag; now a nameless enum.
77537         (human_floor, human_ceiling, human_round_to_even): Now have
77538         values 2, 0, 1 rather than -1, 1, 0.
77539         (human_group_digits, human_suppress_point_zero, human_autoscale,
77540         human_base_1024, human_SI, human_B): New constants.
77541         (human_readable_inexact, human_block_size): Remove.
77542         (human_readable): Size args are now uintmax_t, not int.
77543         (human_options): New decl.
77544
77545         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77546         unnecessary now that we assume C89 or better.  This change
77547         imported from coreutils.
77548
77549         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77550         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77551         in the 2003-05-30 sync from glibc.
77552
77553         .h files should stand alone, but we shouldn't include <sys/types.h>
77554         if we can get away with just <stddef.h>.
77555
77556         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77557         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77558         rather than <sys/types.h>, as we merely need size_t.
77559         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77560         to get size_t.
77561         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77562         Include <stdio.h>, to get FILE.
77563         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77564         memcasecmp.h has included <stddef.h> and all we need is size_t.
77565         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77566         our interface, instead of including <sys/types.h>
77567
77568 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77569
77570         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77571         now, as glibc mktime is buggy on non-glibc systems.
77572
77573 2003-06-03  Karl Berry  <karl@gnu.org>
77574
77575         * config/config.sub: update from prep.
77576
77577 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77578
77579         [from coreutils]
77580         Fix some minor time-related bugs with POSIX time arguments.
77581         Some valid time stamps were being rejected (notably -1, and
77582         time stamps before 1900 on 64-bit hosts).  And some invalid
77583         time stamps were being accepted, e.g. September 31.
77584
77585         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77586         that we can return (time_t) -1 successfully.
77587         * lib/posixtm.c: Likewise.
77588         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77589         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77590         (t): Remove static var.
77591         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77592         of static var.  All uses changed.
77593         (year): Do not reject years before 1900; they can occur with
77594         64-bit time_t.
77595         (posix_time_parse): Do not check for out-of-range components;
77596         that is now the caller's responsibility, since our checks were
77597         only approximations.
77598         (posixtime): Use mktime to check for out-of-range components,
77599         since it knows them exactly.
77600         If mktime returns (time_t) -1, check whether an error actually occurred
77601         by invoking localtime on -1.
77602         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77603         posixtime failures better.
77604         Improve the test data (in comments only).
77605
77606 2003-06-02  Karl Berry  <karl@gnu.org>
77607
77608         * config/mkinstalldirs (version): new variable.
77609         (--version): new option.
77610         (usage): improve message.
77611
77612 2003-05-30  Karl Berry  <karl@gnu.org>
77613
77614         * lib/mktime.c: update from libc.
77615
77616 2003-05-30  Bruno Haible  <bruno@clisp.org>
77617
77618         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77619         * config/config.rpath: Upgrade to gettext-0.12.1.
77620
77621 2003-05-30  Bruno Haible  <bruno@clisp.org>
77622
77623         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77624         * m4/nls.m4: New file, from gettext-0.12.1.
77625         * m4/po.m4: New file, from gettext-0.12.1.
77626         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77627
77628 2003-05-30  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77631         * lib/localcharset.h: Likewise.
77632         * lib/localcharset.c: Likewise.
77633
77634 2003-05-29  Karl Berry  <karl@gnu.org>
77635
77636         * config/config.rpath: update from gettext.
77637
77638 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77639
77640         Assume the headers required for C89 freestanding compilers.
77641         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77642         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77643         * m4/human.m4 (gl_HUMAN): Likewise.
77644         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77645         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77646         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77647         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77649         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77650
77651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77652
77653         Assume the headers required for C89 freestanding compilers.
77654         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77655         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77656         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77657         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77658         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77659         define, since <limits.h> is guaranteed to do that.
77660         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77661         * lib/exclude.c: Include <stdbool.h> unconditionally.
77662         * lib/tempname.c: Include <stddef.h> unconditionally.
77663         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77664         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77665         <stddef.h> does that.
77666         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77667         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77668         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77669         needed.
77670         * lib/xstrtol.c: Likewise.
77671         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77672         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77673
77674         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77675         warnings on some platforms.
77676
77677         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77678         arbitrarily.
77679
77680 2003-05-26  Jim Meyering  <jim@meyering.net>
77681
77682         Merge in a change from coreutils:
77683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77684         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77685         that condition, rather than `-1' which is slightly misleading.
77686         Change the name of the cache variable to have the gl_ prefix.
77687         Prompted by a patch from Richard Dawe for DJGPP.
77688
77689 2003-05-24  Karl Berry  <karl@gnu.org>
77690
77691         * config/config.guess: update from prep.
77692
77693 2003-05-22  Karl Berry  <karl@gnu.org>
77694
77695         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77696
77697 2003-05-20  Karl Berry  <karl@gnu.org>
77698
77699         * config/config.guess: update from prep.
77700
77701 2003-05-18  Karl Berry  <karl@gnu.org>
77702
77703         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77704         might actually be set by the user.
77705
77706         * config/depcomp, install-sh, mdate-sh: update from automake.
77707
77708 2003-05-17  Bruno Haible  <bruno@clisp.org>
77709
77710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77711         invalid expansion for AC_EGREP_CPP.
77712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77714         Suggested by Akim Demaille <akim@epita.fr> in
77715         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77716
77717 2003-05-12  Jim Meyering  <jim@meyering.net>
77718
77719         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77720         the space-padded-by-default conversion specifiers, %e, %k, %l.
77721
77722 2003-05-12  Bruno Haible  <bruno@clisp.org>
77723
77724         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77725         the string is longer than 4 KB.
77726
77727 2003-05-11  Karl Berry  <karl@gnu.org>
77728
77729         * config/config.{guess,sub}: update from prep.
77730
77731 2003-05-09  Bruno Haible  <bruno@clisp.org>
77732
77733         * modules/error: Add m4/strerror_r.m4 to file list.
77734
77735 2003-05-03  Bruno Haible  <bruno@clisp.org>
77736
77737         Upgrade to Unicode-4.0.
77738         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77739         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77740         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77741         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77742         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77743         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77744         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77745         Change width of U+E0100..U+E01EF from 1 to 0.
77746
77747 2003-04-25  Jim Meyering  <jim@meyering.net>
77748
77749         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77750         of type size_t, not int.
77751
77752 2003-04-25  Bruno Haible  <bruno@clisp.org>
77753
77754         * lib/copy-file.c: Include <stddef.h>, for size_t.
77755
77756 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77757
77758         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77759         code which expansion is under static control.  Patch imported from
77760         Akim Demaille's patch to Bison; see
77761         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77762
77763 2003-04-14  Bruno Haible  <bruno@clisp.org>
77764
77765         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77766
77767 2003-04-11  Jim Meyering  <jim@meyering.net>
77768
77769         Merge changes from Coreutils.
77770
77771         2003-03-22  Jim Meyering  <jim@meyering.net>
77772
77773         * lib/strftime.c (widen): Cast alloca return value to proper type.
77774
77775         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77776
77777         From GNU libc.
77778         * lib/strftime.c (my_strftime): Handle very large width
77779         specifications for numeric values correctly.  Improve checks for
77780         overflow.
77781
77782         2003-01-19  Jim Meyering  <jim@meyering.net>
77783
77784         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77785         definitions.
77786         (nl_get_alt_digit) [! defined my_strftime]: Define.
77787         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77788         _nl_get_alt_digit and _nl_get_walt_digit.
77789
77790         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77791         libc. These changes have no effect outside of _LIBC.
77792
77793 2003-04-10  Bruno Haible  <bruno@clisp.org>
77794
77795         * modules/findprog: New file.
77796         * MODULES.html.sh (func_all_modules): Add it.
77797
77798 2003-04-10  Bruno Haible  <bruno@clisp.org>
77799
77800         * m4/findprog.m4: New file.
77801         * m4/eaccess.m4: New file.
77802
77803 2003-04-10  Bruno Haible  <bruno@clisp.org>
77804
77805         * lib/findprog.h: New file, from GNU gettext.
77806         * lib/findprog.c: New file, from GNU gettext.
77807
77808 2003-04-05  Jim Meyering  <jim@meyering.net>
77809
77810         Merge changes from Coreutils.
77811
77812         * lib/exclude.h (PARAMS): Remove definition and uses.
77813         * lib/exclude.c: Remove uses of `PARAMS'.
77814
77815         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77816         Add test-cases for DOS filenames. Declare program_name.
77817         (main): Set up program_name.  Patch by Rich Dawe.
77818
77819         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77820         error from mntctl.
77821         Use mntctl's return value to drive the entry-processing loop, since
77822         we can't rely on the value of the vmt_length member in the last
77823         entry.  On some systems doing so could result in exhausting
77824         virtual memory.  Based in part on a patch from Mike Jetzer.
77825
77826 2003-04-04  Bruno Haible  <bruno@clisp.org>
77827
77828         * modules/linebreak: New file.
77829         * MODULES.html.sh (func_all_modules): Add it.
77830
77831 2003-04-04  Bruno Haible  <bruno@clisp.org>
77832
77833         * m4/linebreak.m4: New file.
77834
77835 2003-04-04  Bruno Haible  <bruno@clisp.org>
77836
77837         * lib/linebreak.h: New file, from GNU gettext.
77838         * lib/linebreak.c: New file, from GNU gettext with slight
77839         modifications.
77840         * lib/lbrkprop.h: New file, from GNU gettext.
77841
77842 2003-04-03  Bruno Haible  <bruno@clisp.org>
77843
77844         * modules/utf8-ucs4: New file.
77845         * modules/utf16-ucs4: New file.
77846         * modules/ucs4-utf8: New file.
77847         * modules/ucs4-utf16: New file.
77848         * MODULES.html.sh (func_all_modules): Add them.
77849
77850 2003-04-03  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/utf-ucs4.m4: New file.
77853         * m4/ucs4-utf.m4: New file.
77854
77855 2003-04-03  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/utf8-ucs4.h: New file, from GNU gettext.
77858         * lib/utf16-ucs4.h: New file, from GNU gettext.
77859         * lib/ucs4-utf8.h: New file, from GNU gettext.
77860         * lib/ucs4-utf16.h: New file, from GNU gettext.
77861
77862 2003-04-02  Bruno Haible  <bruno@clisp.org>
77863
77864         * modules/binary-io: New file.
77865         * MODULES.html.sh (func_all_modules): Add it.
77866
77867 2003-04-02  Bruno Haible  <bruno@clisp.org>
77868
77869         * lib/binary-io.h: New file, from GNU gettext.
77870
77871 2003-04-01  Bruno Haible  <bruno@clisp.org>
77872
77873         * modules/pathname: New file.
77874         * MODULES.html.sh (func_all_modules): Add it.
77875
77876 2003-04-01  Bruno Haible  <bruno@clisp.org>
77877
77878         * lib/pathname.h: New file, from GNU gettext.
77879         * lib/concatpath.c: New file, from GNU gettext.
77880
77881 2003-03-30  Bruno Haible  <bruno@clisp.org>
77882
77883         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77884
77885 2003-03-30  Bruno Haible  <bruno@clisp.org>
77886
77887         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77888         function chown() doesn't exist.
77889
77890 2003-03-28  Bruno Haible  <bruno@clisp.org>
77891
77892         * modules/copy-file: New file.
77893         * MODULES.html.sh (func_all_modules): Add it.
77894
77895 2003-03-28  Bruno Haible  <bruno@clisp.org>
77896
77897         * m4/copy-file.m4: New file.
77898
77899 2003-03-28  Bruno Haible  <bruno@clisp.org>
77900
77901         * lib/copy-file.h: New file, from GNU gettext.
77902         * lib/copy-file.c: New file, from GNU gettext.
77903
77904 2003-03-18  Jim Meyering  <jim@meyering.net>
77905
77906         * lib/quote.c (quote_n): Fix typo in comment.
77907
77908 2003-03-18  Bruno Haible  <bruno@clisp.org>
77909
77910         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77911         checking.
77912         * m4/onceonly_2_57.m4: Likewise.
77913
77914 2003-03-17  Bruno Haible  <bruno@clisp.org>
77915
77916         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77917         (m4_quote): Remove macro.
77918         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77919
77920 2003-03-14  Jim Meyering  <jim@meyering.net>
77921
77922         Merge changes from Coreutils.
77923         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77924         to be const, in order to avoid warnings.
77925         (obstack_room): Likewise.
77926         (obstack_empty_p): Likewise.
77927
77928 2003-03-14  Bruno Haible  <bruno@clisp.org>
77929
77930         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77931         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77932
77933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77934
77935         Merge changes from Bison.
77936         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77937         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77938         when compiling Bison 1.875's `bitset bset = obstack_alloc
77939         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77940         * lib/hash.c: Include <stdbool.h> unconditionally.
77941
77942 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77943
77944         * m4/onceonly.m4 (m4_quote): New macro.
77945         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77946         Quote AC_FOREACH variable-expansions properly.
77947
77948 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77949
77950         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77951
77952 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77953
77954         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77955         Reported by Bruce Becker; see:
77956         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77957
77958 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77959             Bruno Haible  <bruno@clisp.org>
77960
77961         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77962         Reported by John Hughes, see
77963         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77964
77965 2003-02-20  Bruno Haible  <bruno@clisp.org>
77966
77967         * MODULES.html.sh (func_all_modules): Add poll.
77968
77969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77970
77971         * modules/poll: New file.
77972
77973 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77974
77975         * lib/poll_.h: New file.
77976         * lib/poll.c: New file.
77977
77978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77979
77980         * m4/poll.m4: New file.
77981
77982 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77983
77984         * modules/mathl: New file.
77985
77986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77987
77988         * lib/mathl.h: New file.
77989         * lib/acosl.c: New file.
77990         * lib/asinl.c: New file.
77991         * lib/atanl.c: New file.
77992         * lib/ceill.c: New file.
77993         * lib/cosl.c: New file.
77994         * lib/expl.c: New file.
77995         * lib/floorl.c: New file.
77996         * lib/frexpl.c: New file.
77997         * lib/ldexpl.c: New file.
77998         * lib/logl.c: New file.
77999         * lib/sincosl.c: New file.
78000         * lib/sinl.c: New file.
78001         * lib/sqrtl.c: New file.
78002         * lib/tanl.c: New file.
78003         * lib/trigl.c: New file.
78004         * lib/trigl.h: New file.
78005
78006 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78007
78008         * m4/mathl.m4: New file.
78009
78010 2003-02-18  Bruno Haible  <bruno@clisp.org>
78011
78012         * MODULES.html.sh (func_all_modules): Add mathl.
78013
78014 2003-02-17  Bruno Haible  <bruno@clisp.org>
78015
78016         * modules/mkdtemp: New module.
78017         * MODULES.html.sh (func_all_modules): Add it.
78018
78019 2003-02-17  Bruno Haible  <bruno@clisp.org>
78020
78021         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78022
78023 2003-02-17  Bruno Haible  <bruno@clisp.org>
78024
78025         * lib/mkdtemp.h: New file, from GNU gettext.
78026         * lib/mkdtemp.c: New file, from GNU gettext.
78027
78028 2003-02-02  Jim Meyering  <jim@meyering.net>
78029
78030         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78031         e.g. glibc-2.2.93.
78032
78033 2003-01-31  Bruno Haible  <bruno@clisp.org>
78034
78035         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78036         'rpl_rename'.
78037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78038         'rpl_strnlen'.
78039         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78040         'rpl_strtod'.
78041         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78042         'rpl_utime'.
78043
78044 2003-01-31  Bruno Haible  <bruno@clisp.org>
78045
78046         * lib/rename.c: #undef rename before defining rpl_rename.
78047         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78048
78049 2003-01-30  Bruno Haible  <bruno@clisp.org>
78050
78051         * modules/vasnprintf, modules/vasprintf: New modules.
78052         * MODULES.html.sh (func_all_modules): Add them.
78053
78054 2003-01-30  Bruno Haible  <bruno@clisp.org>
78055
78056         * m4/signed.m4: New file, from GNU gettext.
78057         * m4/longdouble.m4: New file, from GNU gettext.
78058         * m4/wchar_t.m4: New file, from GNU gettext.
78059         * m4/wint_t.m4: New file, from GNU gettext.
78060         * m4/vasnprintf.m4: New file.
78061         * m4/vasprintf.m4: New file.
78062
78063 2003-01-30  Bruno Haible  <bruno@clisp.org>
78064
78065         * lib/printf-args.h: New file, from GNU gettext.
78066         * lib/printf-args.c: New file, from GNU gettext.
78067         * lib/printf-parse.h: New file, from GNU gettext.
78068         * lib/printf-parse.c: New file, from GNU gettext.
78069         * lib/vasnprintf.h: New file, from GNU gettext.
78070         * lib/vasnprintf.c: New file, from GNU gettext.
78071         * lib/asnprintf.c: New file, from GNU gettext.
78072         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78073         * lib/vasprintf.c: New file, from GNU gettext.
78074         * lib/asprintf.c: New file, from GNU gettext.
78075
78076 2003-01-29  Bruno Haible  <bruno@clisp.org>
78077
78078         * modules/stpncpy: New module.
78079         * MODULES.html.sh (func_all_modules): Add it.
78080
78081 2003-01-29  Bruno Haible  <bruno@clisp.org>
78082
78083         * m4/stpncpy.m4: New file.
78084
78085 2003-01-29  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78088         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78089
78090 2003-01-28  Bruno Haible  <bruno@clisp.org>
78091
78092         * modules/c-ctype: New module.
78093         * MODULES.html.sh (func_all_modules): Add it.
78094
78095 2003-01-28  Bruno Haible  <bruno@clisp.org>
78096
78097         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78098         Paul Eggert.
78099         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78100         Paul Eggert.
78101
78102 2003-01-27  Bruno Haible  <bruno@clisp.org>
78103
78104         * modules/xsetenv: New module.
78105         * MODULES.html.sh (func_all_modules): Add it.
78106
78107 2003-01-27  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/xsetenv.h: New file, from GNU gettext.
78110         * lib/xsetenv.c: New file, from GNU gettext.
78111
78112 2003-01-23  Jim Meyering  <jim@meyering.net>
78113
78114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78115         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78116
78117 2003-01-23  Bruno Haible  <bruno@clisp.org>
78118
78119         * modules/minmax: New module.
78120         * MODULES.html.sh (func_all_modules): Add it.
78121
78122 2003-01-23  Bruno Haible  <bruno@clisp.org>
78123
78124         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78125         Eggert.
78126
78127 2003-01-22  Bruno Haible  <bruno@clisp.org>
78128
78129         * modules/exit: New module.
78130         * MODULES.html.sh (func_all_modules): Add it.
78131
78132 2003-01-22  Bruno Haible  <bruno@clisp.org>
78133
78134         * lib/exit.h: New file, from GNU gettext.
78135
78136 2003-01-19  Bruno Haible  <bruno@clisp.org>
78137
78138         * gnulib-tool: Recognize option --extract-maintainer.
78139         (func_get_maintainer): New function.
78140         * modules/*: Add Maintainer entry.
78141
78142 2003-01-16  Jim Meyering  <jim@meyering.net>
78143
78144         * m4/regex.m4: The `regex' struct is both input and output.
78145         Initialize it before each use.  Patch by Tim Waugh.
78146
78147 2003-01-16  Bruno Haible  <bruno@clisp.org>
78148
78149         * MODULES.html.sh: Add a table of contents. Add the module name as
78150         leftmost column. Add hyperlinks.
78151
78152 2003-01-15  Bruno Haible  <bruno@clisp.org>
78153
78154         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78155
78156 2003-01-15  Bruno Haible  <bruno@clisp.org>
78157
78158         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78159         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78160         suffix.
78161
78162 2003-01-15  Bruno Haible  <bruno@clisp.org>
78163
78164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78165
78166 2003-01-15  Bruno Haible  <bruno@clisp.org>
78167
78168         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78169         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78170
78171 2003-01-14  Jim Meyering  <jim@meyering.net>
78172
78173         * lib/same.c (same_name): Tweak a comment.
78174
78175 2003-01-14  Bruno Haible  <bruno@clisp.org>
78176
78177         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78178         when a string comparison is sufficient.
78179
78180 2003-01-14  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78183         'unsigned int'.
78184
78185 2003-01-14  Bruno Haible  <bruno@clisp.org>
78186
78187         * lib/hash-pjw.c: Add comment about low quality of this function.
78188
78189 2003-01-13  Bruno Haible  <bruno@clisp.org>
78190
78191         * modules/stpcpy: Distribute lib/stpcpy.h.
78192         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78193
78194 2003-01-13  Bruno Haible  <bruno@clisp.org>
78195
78196         * modules/*: Add a description.
78197         * modules/strpbrk: Fix Makefile.am snippet.
78198         * modules/strtoimax: Fix dependencies.
78199         * modules/strtoumax: Likewise.
78200
78201 2003-01-13  Bruno Haible  <bruno@clisp.org>
78202
78203         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78204         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78205         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78206
78207 2003-01-13  Bruno Haible  <bruno@clisp.org>
78208
78209         * gnulib-tool (func_create_testdir): Store config/* files in the main
78210         directory.
78211         * config.rpath: Move to ...
78212         * config/config.rpath: ... here.
78213         * modules/gettext: Contains config/config.rpath, not config.rpath.
78214         * modules/iconv: Likewise.
78215
78216 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78217
78218         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78219         to avoid collisions with libcurses and libreadline.
78220
78221         * m4/getstr.m4: Remove.
78222         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78223
78224 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78225
78226         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78227         to avoid collisions with libcurses and libreadline.
78228
78229         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78230         * lib/getstr.h, getstr.c: Remove.
78231         * lib/getline.c: Include "getline.h", to check interface.
78232         Move body of old getstr.c here: this defines MIN_CHUNK and
78233         declares getdelim2, which is renamed from getstr.
78234         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78235
78236         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78237         All uses changed.
78238         * lib/linebuffer.h: Likewise.
78239         (readline): Remove backward-compatibility macro.
78240
78241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78242
78243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78244         to avoid collisions with libcurses and libreadline.
78245         * getstr: Remove.
78246         * MODULES.html.sh: Remove getstr.
78247         * modules/getline: Depend on unlocked-io, not getstr.
78248
78249 2003-01-12  Jim Meyering  <jim@meyering.net>
78250
78251         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78252
78253 2003-01-10  Bruno Haible  <bruno@clisp.org>
78254
78255         * modules/alloca: Change Makefile.am requirements. Simplify Include
78256         requirements. Add lib/alloca_.h to file list.
78257
78258 2003-01-10  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78261
78262 2003-01-10  Bruno Haible  <bruno@clisp.org>
78263
78264         * lib/alloca_.h: New file.
78265         * lib/getdate.y: Unconditionally include alloca.h.
78266         * lib/makepath.c: Likewise.
78267         * lib/setenv.c: Likewise.
78268         * lib/userspec.c: Likewise.
78269
78270 2003-01-09  Karl Berry  <karl@gnu.org>
78271
78272         * MODULES.html.sh: include `dirname $0` in PATH, to find
78273         gnulib-tool.
78274
78275 2003-01-09  Bruno Haible  <bruno@clisp.org>
78276
78277         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78278         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78279
78280 2003-01-09  Bruno Haible  <bruno@clisp.org>
78281
78282         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78283
78284 2003-01-09  Bruno Haible  <bruno@clisp.org>
78285
78286         * lib/stdbool.h.in: New file.
78287
78288 2003-01-09  Bruno Haible  <bruno@clisp.org>
78289
78290         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78291         * MODULES.html.sh: Likewise.
78292
78293 2003-01-08  Jim Meyering  <jim@meyering.net>
78294
78295         * lib/full-write.c: Undefine and define-away `const' after inclusion
78296         of errno.h, not before.  Suggestion from Bruno Haible.
78297
78298 2003-01-08  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/full-read: Depend on full-write.
78301
78302 2003-01-08  Bruno Haible  <bruno@clisp.org>
78303
78304         * lib/safe-read.c: Include specification header first, to ensure its
78305         selfcontainedness.
78306         * lib/full-write.c: Likewise.
78307
78308 2003-01-07  Jim Meyering  <jim@meyering.net>
78309
78310         * lib/full-write.c: Rework so that it may serve to define full_read,
78311         too.
78312         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78313
78314 2003-01-07  Bruno Haible  <bruno@clisp.org>
78315
78316         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78317         <inttypes.h>.
78318         * lib/xstrtol.h: Likewise.
78319         * lib/xstrtoimax.c: Likewise.
78320         * lib/xstrtoumax.c: Likewise.
78321         * lib/human.h: Likewise.
78322
78323         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78324         on systems that have <inttypes.h> but not <stdint.h>.
78325
78326 2003-01-07  Bruno Haible  <bruno@clisp.org>
78327
78328         * MODULES.html.sh: Add copyright notice.
78329         (missed_files): Omit CVS directory entries.
78330         (func_module): Make it work with sed-3.02.
78331         * MODULES.txt: Remove file.
78332
78333 2003-01-06  Jim Meyering  <jim@meyering.net>
78334
78335         * lib/version-etc.c: Update year in translatable copyright string.
78336
78337 2003-01-03  Karl Berry  <karl@gnu.org>
78338
78339         * config/config.{guess,sub}: update from prep.
78340
78341 2003-01-02  Karl Berry  <karl@gnu.org>
78342
78343         * doc/COPYING.DOC: belatedly updated to 1.2.
78344
78345 2003-01-01  Karl Berry  <karl@gnu.org>
78346
78347         * gnulib-tool (func_verify_module): report module name $module in
78348         error message, not $1.
78349         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78350         be created, only if it doesn't exist.
78351         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78352
78353 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78354
78355         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78356
78357 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78358
78359         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78360         memcmp if strcoll doesn't work.
78361
78362 2002-12-31  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78365         nonempty.
78366
78367 2002-12-31  Bruno Haible  <bruno@clisp.org>
78368
78369         * lib/memcoll.c (STRCOLL): New macro.
78370         (memcoll): Use it.
78371
78372 2002-12-31  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/localcharset.h: New file.
78375         * lib/localcharset.c: Include it.
78376         * lib/unicodeio.c: Likewise.
78377
78378 2002-12-31  Bruno Haible  <bruno@clisp.org>
78379
78380         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78381         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78382
78383 2002-12-31  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/getline.h: Include <stddef.h>, for size_t.
78386
78387         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78388         * lib/unicodeio.c: Don't include <stddef.h>.
78389
78390 2002-12-31  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78393         HAVE_TM_ZONE.
78394
78395 2002-12-24  Karl Berry  <karl@gnu.org>
78396
78397         * config/config.guess: update from prep.
78398
78399 2002-12-24  Bruno Haible  <bruno@clisp.org>
78400
78401         General infrasructure.
78402         * m4/README: Rewritten.
78403         * m4/onceonly.m4: New file.
78404         * m4/onceonly_2_57.m4: New file.
78405
78406         Module atexit.
78407         * m4/atexit.m4: New file.
78408
78409         Module strtod.
78410         * m4/strtod.m4: New file.
78411
78412         Module strtol.
78413         * m4/strtol.m4: New file.
78414
78415         Module strtoul.
78416         * m4/strtoul.m4: New file.
78417
78418         Module memchr.
78419         * m4/memchr.m4: New file.
78420
78421         Module memcmp.
78422         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78423         (jm_FUNC_MEMCMP): Invoke it.
78424
78425         Module memcpy.
78426         * m4/memcpy.m4: New file.
78427
78428         Module memmove.
78429         * m4/memmove.m4: New file.
78430
78431         Module memset.
78432         * m4/memset.m4: New file.
78433
78434         Module strcspn.
78435         * m4/strcspn.m4: New file.
78436
78437         Module strpbrk.
78438         * m4/strpbrk.m4: New file.
78439
78440         Module strstr.
78441         * m4/strstr.m4: New file.
78442
78443         Module strerror.
78444         * m4/strerror.m4: New file.
78445
78446         Module mktime.
78447         * m4/mktime.m4: Renamed from jm-mktime.m4.
78448         (gl_PREREQ_MKTIME): New macro.
78449         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78450
78451         Module malloc.
78452         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78453         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78454         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78455
78456         Module realloc.
78457         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78458         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78459         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78460
78461         Module strftime.
78462         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78463         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78464         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78465         gl_TM_GMTOFF.
78466         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78467
78468         Module xalloc.
78469         * m4/xalloc.m4: New file.
78470
78471         Module alloca.
78472         * m4/alloca.m4: New file.
78473
78474         Module putenv.
78475         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78476         (jm_FUNC_PUTENV): Invoke it.
78477
78478         Module setenv.
78479         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78480         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78481         when invoked twice.
78482         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78483         gt_FUNC_SETENV.
78484
78485         Module memrchr.
78486         * m4/memrchr.m4: New file.
78487
78488         Module stpcpy.
78489         * m4/stpcpy.m4: New file.
78490
78491         Module strcase.
78492         * m4/strcase.m4: New file.
78493
78494         Module strdup.
78495         * m4/strdup.m4: New file.
78496
78497         Module strnlen.
78498         * m4/strnlen.m4: New file.
78499
78500         Module strndup.
78501         * m4/strndup.m4: New file.
78502
78503         Module xstrtod.
78504         * m4/xstrtod.m4: New file.
78505
78506         Module xstrtol.
78507         * m4/xstrtol.m4: New file.
78508
78509         Module getdate.
78510         * m4/getdate.m4: New file.
78511
78512         Module unlocked-io.
78513         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78514         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78515         * m4/jm-glibc-io.m4n: Remove file.
78516
78517         Module long-options.
78518         * m4/long-options.m4: New file.
78519
78520         Module md5.
78521         * m4/md5.m4: New file.
78522
78523         Module sha.
78524         * m4/sha.m4: New file.
78525
78526         Module getstr.
78527         * m4/getstr.m4: New file.
78528
78529         Module getline.
78530         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78531         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78532         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78533         simply getline. Infoke gl_PREREQ_GETLINE.
78534
78535         Module obstack.
78536         * m4/obstack.m4: New file.
78537
78538         Module hash.
78539         * m4/hash.m4: New file.
78540
78541         Module readtokens.
78542         * m4/readtokens.m4: New file.
78543
78544         Module strverscmp.
78545         * m4/strverscmp.m4: New file.
78546
78547         Module stdbool.
78548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78549         OSF/1.
78550
78551         Module strtoll.
78552         * m4/strtoll.m4: New file.
78553
78554         Module strtoull.
78555         * m4/strtoull.m4: New file.
78556
78557         Module strtoimax.
78558         * m4/strtoimax.m4: New file.
78559
78560         Module strtoumax.
78561         * m4/strtoumax.m4: New file.
78562
78563         Module xstrtoimax.
78564         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78565         jm_AC_PREREQ_XSTRTOIMAX.
78566         Moved the strtol prerequisites to strtol.m4.
78567         Moved the strtoll prerequisites to strtoll.m4.
78568         Moved the strtoimax prerequisites to strtoimax.m4.
78569
78570         Module xstrtoumax.
78571         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78572         jm_AC_PREREQ_XSTRTOUMAX.
78573         Moved the strtoul prerequisites to strtoul.m4.
78574         Moved the strtoull prerequisites to strtoull.m4.
78575         Moved the strtoumax prerequisites to strtoumax.m4.
78576
78577         Module chown.
78578         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78579         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78580
78581         Module dup2.
78582         * m4/dup2.m4: New file.
78583
78584         Module ftruncate.
78585         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78586         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78587
78588         Module getgroups.
78589         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78590         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78591
78592         Module gettimeofday.
78593         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78594         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78595         gl_PREREQ_GETTIMEOFDAY.
78596
78597         Module mkdir.
78598         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78599         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78600
78601         Module mkstemp.
78602         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78603         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78604         jm_AC_TYPE_UINTMAX_T.
78605         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78606
78607         Module stat.
78608         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78609         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78610
78611         Module lstat.
78612         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78613         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78614
78615         Module timespec.
78616         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78617         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78618         * m4/st_mtim.m4: Indentation.
78619
78620         Module nanosleep.
78621         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78622         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78623         gl_PREREQ_NANOSLEEP.
78624
78625         Module regex.
78626         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78627         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78628         (gl_REGEX): New macro.
78629
78630         Module rename.
78631         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78632         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78633
78634         Module rmdir.
78635         * m4/rmdir.m4: New file.
78636
78637         Module utime.
78638         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78639         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78640         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78641
78642         Module dirname.
78643         * m4/dirname.m4: New file.
78644
78645         Module getopt.
78646         * m4/getopt.m4: New file.
78647
78648         Module unistd-safer.
78649         * m4/unistd-safer.m4: New file.
78650
78651         Module fnmatch.
78652         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78653         declaration.
78654         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78655         (gl_FUNC_FNMATCH_POSIX): New macro.
78656         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78657         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78658         simply fnmatch.
78659
78660         Module exclude.
78661         * m4/exclude.m4: New file.
78662
78663         Module human.
78664         * m4/human.m4: New file.
78665
78666         Module acl.
78667         * m4/acl.m4: Nop.
78668
78669         Module backupfile.
78670         * m4/backupfile.m4: New file.
78671         * m4/d-ino.m4: Indentation.
78672
78673         Module fsusage.
78674         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78675         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78676         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78677
78678         Module dirfd.
78679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78680         requirements.
78681
78682         Module euidaccess.
78683         * m4/euidaccess.m4: New file.
78684
78685         Module file-type.
78686         * m4/file-type.m4: New file.
78687
78688         Module fileblocks.
78689         * m4/fileblocks.m4: New file.
78690
78691         Module filemode.
78692         * m4/filemode.m4: New file.
78693
78694         Module isdir.
78695         * m4/isdir.m4: New file.
78696
78697         Module lchown.
78698         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78699         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78700
78701         Module makepath.
78702         * m4/makepath.m4: New file.
78703
78704         Module modechange.
78705         * m4/modechange.m4: New file.
78706
78707         Module mountlist.
78708         * m4/mountlist.m4: New file.
78709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78710         Indentation.
78711
78712         Module path-concat.
78713         * m4/path-concat.m4: New file.
78714
78715         Module pathmax.
78716         * m4/pathmax.m4: New file.
78717
78718         Module same.
78719         * m4/same.m4: New file.
78720
78721         Module save-cwd.
78722         * m4/save-cwd.m4: New file.
78723
78724         Module savedir.
78725         * m4/savedir.m4: New file.
78726
78727         Module xgetcwd.
78728         * m4/xgetcwd.m4: New file.
78729         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78730
78731         Module xreadlink.
78732         * m4/xreadlink.m4: New file.
78733
78734         Module safe-read.
78735         * m4/safe-read.m4: New file.
78736
78737         Module safe-write.
78738         * m4/safe-write.m4: New file.
78739
78740         Module closeout.
78741         * m4/closeout.m4: New file.
78742
78743         Module stdio-safer.
78744         * m4/stdio-safer.m4: New file.
78745
78746         Module getpass.
78747         * m4/getpass.m4: New file.
78748
78749         Module getugroups.
78750         * m4/getugroups.m4: New file.
78751
78752         Module group-member.
78753         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78754         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78755
78756         Module idcache.
78757         * m4/idcache.m4: New file.
78758
78759         Module userspec.
78760         * m4/userspec.m4: New file.
78761
78762         Module gettime.
78763         * m4/clock_time.m4: New file.
78764         * m4/gettime.m4: New file.
78765
78766         Module settime.
78767         * m4/settime.m4: New file.
78768
78769         Module posixtm.
78770         * m4/posixtm.m4: New file.
78771
78772         Module gethostname.
78773         * m4/gethostname.m4: New file.
78774
78775         Module canon-host.
78776         * m4/canon-host.m4: New file.
78777
78778         Module gettext.
78779         * m4/codeset.m4: New file, from gettext-0.11.5.
78780         * m4/gettext.m4: New file, from gettext-0.11.5.
78781         * m4/glibc21.m4: New file, from gettext-0.11.5.
78782         * m4/iconv.m4: New file, from gettext-0.11.5.
78783         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78784         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78785         * m4/inttypes.m4: New file, from gettext-0.11.5.
78786         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78787         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78788         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78789         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78790         * m4/lib-link.m4: New file, from gettext-0.11.5.
78791         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78792         * m4/progtest.m4: New file, from gettext-0.11.5.
78793         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78794         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78795         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78796
78797         Module localcharset.
78798         * m4/localcharset.m4: New file.
78799
78800         Module hard-locale.
78801         * m4/hard-locale.m4: New file.
78802
78803         Module mbswidth.
78804         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78805         onceonly macros.
78806         * m4/mbrtowc.m4: Add comment.
78807
78808         Module memcasecmp.
78809         * m4/memcasecmp.m4: New file.
78810
78811         Module memcoll.
78812         * m4/memcoll.m4: New file.
78813
78814         Module unicodeio.
78815         * m4/unicodeio.m4: New file.
78816
78817         Module rpmatch.
78818         * m4/rpmatch.m4: New file.
78819
78820         Module yesno.
78821         * m4/yesno.m4: New file.
78822
78823         Module exitfail.
78824         * m4/exitfail.m4: New file.
78825
78826         Module c-stack.
78827         * m4/c-stack.m4 (gl_C_STACK): New macro.
78828         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78829
78830         Module error.
78831         * m4/error.m4 (gl_ERROR): New macro.
78832         (jm_PREREQ_ERROR): Use onceonly macros.
78833
78834         Module fatal.
78835         * m4/fatal.m4: New file.
78836
78837         Module getloadavg.
78838         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78839         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78840
78841         Module getpagesize.
78842         * m4/getpagesize.m4: New file.
78843
78844         Module getusershell.
78845         * m4/getusershell.m4: New file.
78846
78847         Module physmem.
78848         * m4/physmem.m4: New file.
78849
78850         Module posixver.
78851         * m4/posixver.m4: New file.
78852
78853         Module quotearg.
78854         * m4/quotearg.m4: New file.
78855
78856         Module quote.
78857         * m4/quote.m4: New file.
78858
78859         Module readutmp.
78860         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78861
78862         Module sig2str.
78863         * m4/sig2str.m4: New file.
78864
78865         Other.
78866         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78867         ulonglong.m4.
78868         * m4/intmax_t.m4: New file.
78869         * m4/d-type.m4: Indentation.
78870         * m4/jm-macros.m4: Update.
78871         * m4/prereq.m4 (jm_PREREQ): Update.
78872         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78873         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78874         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78875         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78876         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78877         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78878         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78879         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78880         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78881         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78882         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78883         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78884         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78885         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78886         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78887         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78888         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78889         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78890         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78891
78892 2002-12-24  Bruno Haible  <bruno@clisp.org>
78893
78894         * MODULES.txt: Update according to m4/ changes.
78895
78896         Module gettext.
78897         * config.rpath: New file, from gettext-0.11.5.
78898
78899         * modules/*: New module descriptions.
78900         * gnulib-tool: New file.
78901         * MODULES.html.sh: New file.
78902
78903 2002-12-21  Karl Berry  <karl@gnu.org>
78904
78905         * doc/fdl.texi: update to version 1.2.
78906
78907 2002-12-19  Karl Berry  <karl@gnu.org>
78908
78909         * config/config.guess: update from prep.
78910
78911 2002-12-18  Bruno Haible  <bruno@clisp.org>
78912
78913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78914         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78915
78916 2002-12-17  Bruno Haible  <bruno@clisp.org>
78917
78918         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78919         stdlib.h, string.h.
78920
78921 2002-12-17  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/canon-host.c (strdup): Remove unused declaration.
78924
78925         * lib/fsusage.c: Include full_read.h.
78926         (get_fs_usage): Use full_read instead of safe_read.
78927
78928         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78929
78930 2002-12-12  Karl Berry  <karl@gnu.org>
78931
78932         * config/config.guess: update from prep.
78933
78934 2002-12-11  Bruno Haible  <bruno@clisp.org>
78935
78936         * m4/setenv.m4: New file, from gettext-0.11.5.
78937
78938 2002-12-11  Bruno Haible  <bruno@clisp.org>
78939
78940         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78941         not unsetenv().
78942         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78943         modifications:
78944
78945         2002-12-11  Bruno Haible  <bruno@clisp.org>
78946
78947                 * setenv.c (alloca): Fall back to malloc.
78948                 (freea): New macro.
78949                 (setenv): Use freea() to free memory allocated with alloca().
78950
78951         2002-11-13  Bruno Haible  <bruno@clisp.org>
78952
78953                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78954                 function declarations.
78955                 * unsetenv.c (unsetenv): Likewise.
78956
78957         2002-03-04  Bruno Haible  <bruno@clisp.org>
78958
78959                 Portability to AIX 4.3.3.
78960                 * unsetenv.c: New file, extracted from setenv.c.
78961                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78962
78963         2001-12-20  Bruno Haible  <bruno@clisp.org>
78964
78965                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78966                 use malloc instead. For SunOS 4.
78967
78968         2001-12-11  Bruno Haible  <bruno@clisp.org>
78969
78970                 * setenv.c: Declare alloca.
78971                 (compar_fn_t): New typedef.
78972                 (KNOWN_VALUE, STORE_VALUE): Use it.
78973
78974         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78975         setenv.h.
78976
78977 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78978
78979         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78980         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78981         Choose values that are less likely to collide with system fnmatch
78982         options.
78983         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78984         defined (e.g., a pure POSIX system).
78985         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78986         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78987
78988 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78989
78990         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78991         a pain in practice to deal with generated m4 files.  This change
78992         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78993
78994         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78995         and jm-glibc-io.m4, as they are no longer a special case.
78996         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78997         kludge and the auto-generation stuff.  Check only whether the
78998         functions are declared, not whether they exist, since older hosts
78999         that don't declare the functions can't use the optimization anyway.
79000
79001 2002-12-06  Jim Meyering  <jim@meyering.net>
79002
79003         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79004
79005         Merge in changes from libc's misc/error.c, in preparation
79006         for the merge of gnulib's changes back into libc.
79007
79008         * lib/error.c (_): Define only if not already defined.
79009         Move definition to follow all #include directives.
79010         Include unlocked-io.h only if !_LIBC.
79011         [_LIBC]: Include <libio/libioP.h>.
79012         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79013         (fflush): Tweak definition to use INTUSE.
79014         (putc): Define.
79015
79016 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79017
79018         * lib/alloca.c [defined emacs]: Include "lisp.h".
79019         (xalloc_die) [defined emacs]: New macro.
79020         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79021         [! defined emacs]: Include <xalloc.h>.
79022         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79023         (pointer): Typedef to POINTER_TYPE *.
79024         (malloc): Remove decl; we now always use xmalloc.
79025         (alloca): Use old-style definition, since Emacs needs this.
79026         Check for arithmetic overflow when computing combined size.
79027
79028 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79029
79030         Do not generate unlocked-io.h automatically, since it's easier to
79031         maintain it by hand.
79032
79033         * lib/unlocked-io.h: New file, from GNU diffutils,
79034         but with proper copyright notice and attribution.
79035         * lib/gen-uio: Remove.
79036         * lib/Makefile.am: Add copyright notice.
79037         (libfetish_a_SOURCES): Add unlocked-io.h.
79038         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79039         (DISTCLEANFILES, io_functions): Remove macros.
79040         (EXTRA_DIST): Remove gen_uio.
79041         (unlocked-io.h): Remove rule.
79042
79043 2002-12-04  Jim Meyering  <jim@meyering.net>
79044
79045         Reflect the fact that stat.c and lstat.c are no longer generated.
79046         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79047         (DISTCLEANFILES): Likewise.
79048         (EXTRA_DIST): Likewise.
79049         (all_local): Don't depend on stat.c or lstat.c.
79050         (stat.c, lstat.c): Remove rules.
79051         (EXTRA_DIST): Remove xstat.in.
79052
79053         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79054         * lib/stat.c: New file.  Contents mostly from xstat.in.
79055         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79056         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79057
79058         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79059         too.
79060         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79061
79062 2002-12-03  Jim Meyering  <jim@meyering.net>
79063
79064         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79065         but not semantics, to minimize the differences between these two files.
79066         (safe_read): Change comment to mention SAFE_READ_ERROR.
79067
79068         * lib/safe-read.c (IS_EINTR): Define.
79069         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79070
79071 2002-12-02  Jim Meyering  <jim@meyering.net>
79072
79073         * lib/safe-read.c (EINTR): Define.
79074         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79075         (INT_MAX): Provide fallback.
79076         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79077
79078         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79079
79080 2002-12-02  Bruno Haible  <bruno@clisp.org>
79081
79082         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79083         Define, taken from safe-read.c.
79084         (INT_MAX): Provide fallback.
79085         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79086         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79087
79088         * lib/safe-read.c (EINTR): Remove definition.
79089         (safe_read): Don't use EINTR if it is absent.
79090
79091 2002-12-01  Jim Meyering  <jim@meyering.net>
79092
79093         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79094         zero.
79095         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79096
79097 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79098
79099         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79100         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79101         with `if (! (value < limit)) abort ();', for readability.
79102
79103 2002-11-26  Karl Berry  <karl@gnu.org>
79104
79105         * lib/strdup.c: copy from libc again, with jim's ok.
79106         * lib/.cppi-disable: re-add strdup.c
79107
79108 2002-11-25  Karl Berry  <karl@gnu.org>
79109
79110         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79111         instead of "strtol.c".
79112
79113 2002-11-25  Karl Berry  <karl@gnu.org>
79114
79115         * config/install-sh: update from automake for variable quoting, $0 in
79116         error msgs, etc.
79117
79118         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79119         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79120         entry.
79121
79122 2002-11-25  Jim Meyering  <jim@meyering.net>
79123
79124         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79125
79126 2002-11-24  Karl Berry  <karl@gnu.org>
79127
79128         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79129         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79130
79131 2002-11-24  Jim Meyering  <jim@meyering.net>
79132
79133         Update from coreutils:
79134
79135         * lib/mktime.c: Merge in changes from libc.
79136
79137         Avoid a link-time failure on some Linux systems.
79138         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79139         (otherwise).
79140         (__mon_yday): Declare with the STATIC attribute.
79141         (__mktime_internal): Likewise.
79142         Based on a report from Greg Schafer.
79143
79144 2002-11-23  Jim Meyering  <jim@meyering.net>
79145
79146         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79147         Use `unsigned', not `int', as type of index.
79148
79149         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79150
79151         * lib/fsusage.c: Remove unneeded parentheses around operands of
79152         `defined'.
79153
79154 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79155
79156         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79157         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79158         so that we can be included first.
79159         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79160         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79161         No need to include stddef.h or sys/types.h any more.
79162         Surround local include files with "", not "<>".
79163         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79164         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79165         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79166         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79167         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79168         (ISPRINT): Remove; no longer needed now that we assume C89.
79169
79170         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79171         Preserve errno.
79172
79173         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79174         quotearg_char): Use SIZE_MAX rather than
79175         (size_t) -1 when we are talking about "infinity".
79176
79177         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79178
79179 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79180
79181         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79182         hint that one should use `if (! x) abort ();' rather than `assert
79183         (x);', and anyway it's one less thing to worry about configuring.
79184         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79185         hash_rehash, hash_insert): Use abort rather than assert.
79186
79187 2002-11-22  Bruno Haible  <bruno@clisp.org>
79188
79189         * lib/safe-read.h: Assume C89. Add comments.
79190         (safe_read): Change return type to size_t.
79191         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79192         byte counts > SSIZE_MAX correctly.
79193         * lib/safe-write.h: New file.
79194         * lib/safe-write.c: New file.
79195         * lib/full-read.h: New file.
79196         * lib/full-read.c: New file.
79197         * lib/full-write.h: Assume C89. Add comments.
79198         * lib/full-write.c: Include safe-write.h.
79199         (full_write): Rewritten to use safe_write.
79200         Suggested by Jim Meyering and Paul Eggert.
79201
79202 2002-11-21  Jim Meyering  <jim@meyering.net>
79203
79204         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79205
79206         Merge in changes from the coreutils.
79207
79208         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79209         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79210         <stdint.h>.
79211         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79212         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79213         int.  Work more efficiently if X is the same width as uintmax_t.
79214         Do not compare X to -1, to avoid bogus compiler warning.
79215         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79216         Don't assume that f_frsize and f_bsize are the same type.
79217
79218         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79219         warning on FreeBSD.
79220
79221         * lib/makepath.c (make_path): Restore umask *before* creating the final
79222         component.
79223         (make_path): Minor reformatting.
79224
79225         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79226         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79227         HAVE_MALLOC/HAVE_REALLOC.
79228
79229         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79230         dummy ones.  At least on GNU/Linux systems, `auto' means something
79231         else.
79232         From Michael Stone.
79233
79234 2002-11-21  Bruno Haible  <bruno@clisp.org>
79235
79236         Remove case insensitive option matching.
79237         * lib/argmatch.h (argcasematch): Remove declaration.
79238         (ARGCASEMATCH): Remove macro.
79239         (__xargmatch_internal): Remove case_sensitive argument.
79240         (XARGMATCH): Update.
79241         (XARGCASEMATCH): Remove macro.
79242         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79243         case_sensitive argument.
79244         (argcasematch): Remove function.
79245         (__xargmatch_internal): Remove case_sensitive argument.
79246         (main): Use XARGMATCH instead of XARGCASEMATCH.
79247
79248         * lib/xmalloc.c: Change compile-time error message. Add comment about
79249         required autoconf version.
79250
79251 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79252
79253         Merge argmatch cleanups from Bison.  Assume C89.
79254
79255         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79256         Include stdlib.h, for EXIT_FAILURE.
79257         Always include <string.h>, since we assume C89.
79258         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79259         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79260         Include <stddef.h> instead, since it's all we need for size_t.
79261         (PARAMS): Remove.  All uses removed.
79262         (ARRAY_CARDINALITY): Do not bother to #undef.
79263         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79264         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79265         Remove unnecessary parentheses.
79266         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79267         Insert necessary parentheses.
79268         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79269         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79270
79271 2002-11-19  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79274         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79275
79276         * lib/mbswidth.h (PARAMS): Remove macro.
79277         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79278         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79279
79280         * lib/gcd.h (PARAMS): Remove macro.
79281         (gcd): Use ANSI C function declarations.
79282         * lib/gcd.c (gcd): Likewise.
79283
79284 2002-11-15  Bruno Haible  <bruno@clisp.org>
79285
79286         * lib/strcspn.c: Include <stddef.h>.
79287         (strcspn): Use ANSI C function declaration. Change return type to
79288         size_t. Use NULL.
79289         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79290         (strpbrk): Use NULL.
79291         * lib/strpbrk.h (PARAMS): Remove macro.
79292         (strpbrk): Use ANSI C function declaration.
79293         * lib/strstr.c: Don't include <sys/types.h>.
79294         * lib/strstr.h (PARAMS): Remove macro.
79295         (strstr): Use ANSI C function declarations.
79296
79297 2002-11-14  Karl Berry  <karl@gnu.org>
79298
79299         * config/mkinstalldirs: `do' on separate line, instead of
79300         `for var; do'.
79301
79302 2002-11-06  Bruno Haible  <bruno@clisp.org>
79303
79304         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79305         * lib/gcd.c (gcd): Likewise.
79306
79307 2002-11-05  Bruno Haible  <bruno@clisp.org>
79308
79309         * lib/gcd.h: New file, from gettext-0.11.5.
79310         * lib/gcd.c: New file, from gettext-0.11.5.
79311
79312 2002-11-05  Bruno Haible  <bruno@clisp.org>
79313
79314         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79315         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79316         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79317         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79318
79319         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79320         <libintl.h>.
79321         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79322         <libintl.h>.
79323
79324         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79325         * lib/human.c: Include gettext.h instead of <libintl.h>.
79326         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79327         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79328         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79329         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79330         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79331         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79332         (textdomain): Remove definition.
79333         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79334
79335         * lib/long-options.c: Remove include of <libintl.h> and definition of
79336         _.
79337         * lib/same.c: Remove include of <libintl.h> and definition of _.
79338
79339 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79340
79341         * lib/config.charset: A few additions for Solaris.
79342
79343 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79344
79345         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79346         * lib/localcharset.c (locale_charset): Declare as extern "C".
79347
79348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79349
79350         * lib/config.charset: msdos in uk_UA uses CP1125.
79351
79352 2002-11-04  Bruno Haible  <bruno@clisp.org>
79353
79354         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79355         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79356         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79357         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79358         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79359
79360 2002-11-04  Bruno Haible  <bruno@clisp.org>
79361
79362         * lib/localcharset.c (locale_charset): Don't return an empty string.
79363
79364 2002-11-04  Bruno Haible  <bruno@clisp.org>
79365
79366         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79367         aliases.
79368
79369 2002-11-04  Bruno Haible  <bruno@clisp.org>
79370
79371         * lib/config.charset: Update for newest glibc. Add canonical names
79372         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79373
79374 2002-11-04  Bruno Haible  <bruno@clisp.org>
79375
79376         * lib/config.charset: Add support for NetBSD.
79377
79378 2002-11-04  Bruno Haible  <bruno@clisp.org>
79379
79380         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79381
79382 2002-11-01  Bruno Haible  <bruno@clisp.org>
79383
79384         * configure.in: Add AC_CONFIG_AUX_DIR call.
79385         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79386         test/Makefile.
79387         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79388
79389 2002-09-28  Karl Berry  <karl@gnu.org>
79390
79391         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79392         installed automake until the next release, since changes have been
79393         made.
79394
79395 2002-09-25  Karl Berry  <karl@gnu.org>
79396
79397         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79398         * lib/getopt*: copy from libc/posix.
79399         * lib/gettext.h: copy from gettext.
79400         * lib/.cppi-disable: add strdup.c, gettext.h.
79401
79402 2002-09-25  Karl Berry  <karl@gnu.org>
79403
79404         * config/srclist.txt: enable gettext.h check.
79405         * config/config.{guess,sub}: update from prep.
79406         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79407                 from automake 1.6.3.
79408         See srclist*.
79409
79410 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79411
79412         * regex.c (PATFETCH): Remove the translating fetch.
79413         (PATFETCH_RAW): Rename to PATFETCH.
79414         (set_image_of_range): New fun.
79415         (SET_RANGE_TABLE_WORK_AREA): Use it.
79416         (regex_compile): Don't translate the pattern chars so eagerly.
79417         Only do it when inserting an `exactn' bytecode or when handling
79418         a char-range.
79419         (mutually_exclusive_p): Avoid empty statement.
79420
79421 2002-07-06  Jim Meyering  <meyering@lucent.com>
79422
79423         * m4/README: Don't mention Makefile.am.in.
79424         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79425
79426 2002-07-01  Jim Meyering  <meyering@lucent.com>
79427
79428         * lib/c-stack.c: Include sys/time.h.
79429         From Volker Borchert.
79430
79431 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79432
79433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79434
79435 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79436
79437         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79438         New macro.  Use it uniformly instead of
79439         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79440         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79441         reported by Vin Shelton.
79442
79443 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79444
79445         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79446         Do not assume SA_SIGINFO behavior.
79447         Bug reported by Jim Meyering on NetBSD 1.5.2.
79448
79449 2002-06-22  Jim Meyering  <meyering@lucent.com>
79450
79451         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79452         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79453
79454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79455         now that configure.ac uses AC_GNU_SOURCE.
79456         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79457         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79458
79459         Update to latest tools.  Suggestions from Paul Eggert.
79460         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79461         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79462         * m4/fnmatch.m4: Likewise.
79463         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79464         to AC_HEADER_STDBOOL
79465
79466 2002-06-22  Jim Meyering  <meyering@lucent.com>
79467
79468         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79469         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79470
79471 2002-06-22  Jim Meyering  <meyering@lucent.com>
79472
79473         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79474
79475         * lib/exitfail.c, exitfail.h: Likewise.
79476         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79477
79478         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79479         of fnmatch.h.
79480         (EXTRA_DIST): Add fnmatch_loop.c.
79481         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79482
79483         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79484         * lib/fnmatch.c: Update from diffutils-2.8.2.
79485         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79486         * lib/fnmatch.h: Remove file.
79487
79488 2002-06-21  Jim Meyering  <meyering@lucent.com>
79489
79490         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79491         * m4/mbrtowc.m4: Likewise.
79492
79493         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79494         * m4/mbswidth.m4: Reflect name change:
79495         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79497
79498         * m4/lib-link.m4: Update from gettext-0.11.2.
79499         * m4/gettext.m4: Likewise.
79500
79501         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79502         From Alfred M. Szmidt.
79503
79504 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79505
79506         * lib/file-type.h: Report an error if neither S_ISREG nor
79507         S_IFREG is defined, instead of using a test specific to glibc
79508         2.2.  This should be safe, since POSIX requires S_ISREG and
79509         Unix Version 7 had S_IFREG.  We don't need to check for
79510         <sys/types.h> since we don't use any symbols that it defines.
79511
79512 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79513
79514         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79515         $@-t, so that each temporary file name is unique and valid in the first
79516         8 characters, for operation under DOS.
79517
79518 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79519
79520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79521
79522 2002-06-15  Jim Meyering  <meyering@lucent.com>
79523
79524         Work even with DJGPP 2.03, which lacks support for symlinks.
79525         From Richard Dawe.
79526         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79527         is defined.
79528         * lib/lchown.c (S_ISLNK): Likewise.
79529
79530 2002-06-15  Jim Meyering  <meyering@lucent.com>
79531
79532         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79533         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79534         have been included before this file.
79535
79536 2002-06-14  Jim Meyering  <meyering@lucent.com>
79537
79538         * lib/file-type.h: Use the version from diffutils-2.8.2.
79539         * lib/file-type.c: Likewise.
79540
79541 2002-06-07  Jim Meyering  <meyering@lucent.com>
79542
79543         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79544         They're needed at least for NetBSD 1.5.2.
79545         ($statxfs_includes): Include those same headers.
79546         ($statxfs_includes): Include sys/vfs.h if available.
79547         ($statxfs_includes): Likewise for sys/statvfs.h.
79548         Check for the following members in both structs statfs and statvfs:
79549         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79550
79551 2002-06-01  Jim Meyering  <meyering@lucent.com>
79552
79553         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79554         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79555
79556 2002-05-28  Jim Meyering  <meyering@lucent.com>
79557
79558         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79559         Reported by Volker Borchert.
79560
79561 2002-05-27  Jim Meyering  <meyering@lucent.com>
79562
79563         Fix a problem seen only on nonconforming systems whereby ls.c's
79564         use of localtime, and then of gettimeofday would cause trouble:
79565         the localtime call used to initialize rpl_gettimeofday's save
79566         mechanism would clobber ls's current local time information so
79567         that in any long listing the first file would always be listed
79568         with date 1970-01-01.  Analysis by Volker Borchert.
79569
79570         * lib/gettimeofday.c (localtime): Undefine.
79571         (rpl_localtime): New function.
79572
79573 2002-05-27  Jim Meyering  <meyering@lucent.com>
79574
79575         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79576         localtime.
79577
79578         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79579         use the replacement function; it wouldn't resolve at link time.
79580         Reported by Volker Borchert.
79581
79582 2002-05-22  Jim Meyering  <meyering@lucent.com>
79583
79584         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79585         file-type.h.
79586         * lib/file-type.h: New file.
79587         * lib/file-type.c (file_type): New file/function.  Extracted from
79588         diffutils.
79589
79590 2002-04-30  Jim Meyering  <meyering@lucent.com>
79591
79592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79593
79594 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79595
79596         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79597
79598 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79599
79600         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79601         Do not check for alloca.h (no longer used) or stdbool.h (was never
79602         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79603
79604 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79605
79606         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79607
79608 2002-04-29  Jim Meyering  <meyering@lucent.com>
79609
79610         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79611         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79612         Use AC_FUNC_STRNLEN here instead.
79613
79614         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79615         With autoconf-2.53a, it's part of AC_PROG_CC.
79616
79617 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79618
79619         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79621
79622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79623
79624         * lib/sig2str.h, lib/sig2str.c: New files.
79625         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79626
79627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79630         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79631         of 127, since 64 is the largest conceivable number for ancient
79632         nonstandard hosts.
79633         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79634
79635 2002-04-28  Jim Meyering  <meyering@lucent.com>
79636
79637         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79638
79639 2002-04-24  Jim Meyering  <meyering@lucent.com>
79640
79641         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79642         (jm_PREREQ): Use it.
79643
79644         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79645         mach/mach.h fcntl.h.
79646         Check for this function: setlocale.
79647
79648 2002-04-24  Jim Meyering  <meyering@lucent.com>
79649
79650         * lib/gettext.h: New file, from Gettext.
79651         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79652         (libfetish_a_SOURCES): Add gettext.h.
79653
79654 2002-04-16  Jim Meyering  <meyering@lucent.com>
79655
79656         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79657         ut_pid, ut_id, ut_exit.
79658
79659 2002-04-16  Jim Meyering  <meyering@lucent.com>
79660
79661         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79662         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79663         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79664
79665 2002-04-12  Jim Meyering  <meyering@lucent.com>
79666
79667         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79668         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79669         existence of the getmntinfo function.  Needed for Darwin 5.3.
79670
79671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79672         This is necessary at least on Darwin 5.3.
79673
79674         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79675         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79676         strnlen.o in the library, and that makes some versions of ranlib
79677         object.
79678
79679 2002-04-12  Jim Meyering  <meyering@lucent.com>
79680
79681         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79682
79683 2002-04-09  Jim Meyering  <meyering@lucent.com>
79684
79685         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79686         to be more precise.  Rather than saying we're checking whether the
79687         function `works', say what we're testing.
79688         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79689         Reported by Bruno Haible.
79690
79691 2002-03-10  Jim Meyering  <meyering@lucent.com>
79692
79693         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79694         Suggestion from Santiago Vila.
79695
79696 2002-03-08  Jim Meyering  <meyering@lucent.com>
79697
79698         * lib/rename.c: Mention that this wrapper is needed also on
79699         mips-dec-ultrix4.4 systems.
79700
79701 2002-03-02  Jim Meyering  <meyering@lucent.com>
79702
79703         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79704         not HAVE_CLOCK_SETTIME.
79705
79706 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79707
79708         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79709         Check for clock_settime.
79710
79711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/nanosleep.h: Rename to....
79714         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79715
79716         * lib/gettime.c: New file.
79717         * lib/settime.c: New file.
79718         * lib/stime.c: Remove.
79719
79720         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79721         timespec.h.  Remove nanosleep.h.
79722
79723 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79724
79725         * m4/acl.m4: New file.
79726         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79727         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79728
79729 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79730
79731         * lib/acl.c, lib/acl.h: New files.
79732         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79733
79734 2002-02-24  Jim Meyering  <meyering@lucent.com>
79735
79736         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79737         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79738         cause trouble.  Reported by Nelson Beebe.
79739
79740 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79741
79742         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79743         compilers that don't know that xalloc_die never returns.
79744
79745 2002-02-20  Jim Meyering  <meyering@lucent.com>
79746
79747         * lib/getdate.c: Regenerate using bison-1.33.
79748
79749 2002-02-17  Jim Meyering  <meyering@lucent.com>
79750
79751         * config/config.guess (main): Don't use `head -1'; it's no longer
79752         portable. Use `sed 1q' instead.
79753
79754 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79755
79756         * m4/codeset.m4: Upgrade to gettext-0.11.
79757         * m4/gettext.m4: Upgrade to gettext-0.11.
79758         * m4/glibc21.m4: Upgrade to gettext-0.11.
79759         * m4/iconv.m4: Upgrade to gettext-0.11.
79760         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79761         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79762         * m4/lib-ld.m4: New file, from gettext-0.11.
79763         * m4/lib-link.m4: New file, from gettext-0.11.
79764         * m4/lib-prefix.m4: New file, from gettext-0.11.
79765         * m4/progtest.m4: Upgrade to gettext-0.11.
79766
79767 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79768
79769         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79770         (jm_PREREQ): Use it.
79771
79772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79773
79774         * lib/posixver.c, lib/posixver.h: New files.
79775         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79776
79777 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79778             Bruno Haible  <bruno@clisp.org>
79779
79780         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79781         (fwrite_success_callback): New declaration.
79782         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79783         print_unicode_char. Call failure callback instead of error.
79784         (fwrite_success_callback): New function.
79785         (exit_failure_callback): New function.
79786         (fallback_failure_callback): New function.
79787         (print_unicode_char): Call unicode_to_mb.
79788
79789 2002-01-26  Jim Meyering  <meyering@lucent.com>
79790
79791         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79792         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79793
79794 2002-01-26  Jim Meyering  <meyering@lucent.com>
79795
79796         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79797
79798 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79799
79800         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79801
79802 2002-01-22  Jim Meyering  <meyering@lucent.com>
79803
79804         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79805         Otherwise, some versions of automake would omit the rule that makes
79806         Makefile from Makefile.in.
79807
79808 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79809
79810         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79811         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79812         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79813         (memcoll): Set errno to zero if there is no error.
79814
79815         * lib/quotearg.c (quotearg_buffer_restyled):
79816         Fix bug with quoting buffers containing NUL when backslashing escapes.
79817         This bug was exposed by the other changes in this patch.
79818         (quotearg_n_options): New arg ARGSIZE.
79819         All callers changed.
79820         (quoting_options_from_style): New function.
79821         (quotearg_n_style): Use it.
79822         (quotearg_n_style_mem): New function.
79823
79824         * lib/quotearg.h (quotearg_n_style_mem): New function.
79825
79826 2002-01-19  Jim Meyering  <meyering@lucent.com>
79827
79828         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79829         Remove useless quotes: DF_PROG="df".
79830         * m4/strnlen.m4: New file.
79831
79832 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79833
79834         * lib/backupfile.c (ISDIGIT): Comment fix.
79835         * lib/getdate.y (ISDIGIT): Likewise.
79836         * lib/posixtm.c (ISDIGIT, year): Likewise.
79837         * lib/strverscmp.c (ISDIGIT): Likewise.
79838         * lib/userspec.c (ISDIGIT): Likewise.
79839
79840 2002-01-16  Jim Meyering  <meyering@lucent.com>
79841
79842         * lib/getdate.y: Add three semicolons, each just before a closing
79843         brace. Bison (as of version 1.31) no longer papers over that mistake.
79844
79845 2002-01-05  Jim Meyering  <meyering@lucent.com>
79846
79847         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79848
79849 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79850
79851         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79852         not silently exit merely because the output buffer happens to
79853         have nothing pending.
79854
79855 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79856
79857         See the big note in ../ChangeLog.
79858         * lib/human.c (suffixes): Prefer K to k for 1024.
79859         (generate_suffix_backwards): New function.
79860         (human_readable_inexact): Use it.
79861         * lib/xstrtol.c (__xstrtol): If there is no number but there
79862         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79863         Accept 'K' as well as 'k'.
79864
79865 2001-12-15  Jim Meyering  <meyering@lucent.com>
79866
79867         * lib/regex.h (__restrict_arr): Update from libc.
79868
79869         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79870         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79871         (STREQ): Define.
79872
79873 2001-12-14  Jim Meyering  <meyering@lucent.com>
79874
79875         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79876         Suggestion from Bruno Haible.
79877
79878 2001-12-10  Jim Meyering  <meyering@lucent.com>
79879
79880         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79881         xrealloc, Instead, include "xalloc.h".
79882         (initbuffer): Don't cast xmalloc return value to char*.
79883         (readline): Reword comment.
79884         Don't cast xrealloc return value to char*
79885         Return NULL, not 0.
79886
79887 2001-12-09  Jim Meyering  <meyering@lucent.com>
79888
79889         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79890         about `signed and unsigned type in conditional expression'.
79891         * lib/posixtm.c (posix_time_parse): Likewise.
79892
79893         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79894
79895         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79896         to avoid a pedantic warning.
79897
79898         * lib/getstr.c: Don't include assert.h.
79899         (getstr): Remove warning-evoking assertions.
79900         Return -1 if offset parameter is out of bounds.
79901         Change the type of a local from int to size_t.
79902
79903         * lib/strftime.c (my_strftime_localtime_r): Include this function
79904         definition in the `#if ! HAVE_TM_GMTOFF' block.
79905
79906         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79907         Include xalloc.h instead.
79908
79909 2001-12-02  Jim Meyering  <meyering@lucent.com>
79910
79911         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79912         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79913         included.
79914
79915         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79916         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79917
79918 2001-11-30  Akim Demaille  <akim@epita.fr>
79919
79920         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79921         before being defined.
79922
79923 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79924
79925         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79926         First arg is int, not unsigned.
79927         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79928         (SIZE_MAX, UINT_MAX): New macros.
79929         (quotearg_n_options): Abort if N is negative.
79930         Avoid overflow check on hosts where size_t is 64 bits and int
79931         is 32 bits, as overflow is impossible there.
79932         Fix off-by-one typo that caused unnecessary reallocation.
79933
79934 2001-11-27  Jim Meyering  <meyering@lucent.com>
79935
79936         * lib/tempname.c: Merge with version from libc.
79937         * lib/regex.c: Likewise.
79938
79939         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79940         systems for which STDC_HEADERS is 0, it was not included, resulting in
79941         a warning about an integer-to-pointer conversion problem with getenv.
79942         Reported by Volker Borchert.
79943
79944 2001-11-26  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/gtod.h: Remove file.
79947         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79948         * lib/gettimeofday.c: Don't include gtod.h.
79949         (GTOD_init): Remove function.
79950         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79951         Suggestion from Volker Borchert.
79952
79953 2001-11-23  Jim Meyering  <meyering@lucent.com>
79954
79955         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79956         it.
79957         * lib/hash.c (struct hash_table): Define it here instead.
79958
79959 2001-11-22  Jim Meyering  <meyering@lucent.com>
79960
79961         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79962
79963 2001-11-20  Jim Meyering  <meyering@lucent.com>
79964
79965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79966         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79967
79968 2001-11-19  Jim Meyering  <meyering@lucent.com>
79969
79970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79971         directory.  Use "conftestXXXXXX" as the template.
79972         Suggestion from Paul Eggert.
79973
79974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79975         immediately, so the test doesn't mistakenly hit the max-open-files
79976         limit.
79977
79978 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79979
79980         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79981         (TEMPORARIES): New macro.
79982         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79983         removes an artificial limitation (e.g. HP-UX 10.20, where
79984         TMP_MAX is 17576).
79985
79986 2001-11-18  Jim Meyering  <meyering@lucent.com>
79987
79988         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79989
79990 2001-11-18  Jim Meyering  <meyering@lucent.com>
79991
79992         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79993         on SunOS 4.
79994
79995         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79996         files will be created before anything else.
79997
79998 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79999
80000         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80001         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80002
80003 2001-11-17  Jim Meyering  <meyering@lucent.com>
80004
80005         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80006         Prompted by a report from Bob Proulx.
80007
80008         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80009         Instead, require UTILS_FUNC_MKSTEMP.
80010
80011 2001-11-17  Jim Meyering  <meyering@lucent.com>
80012
80013         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80014         Now, that's done as part of AC_FUNC_STRTOD.
80015
80016 2001-11-17  Jim Meyering  <meyering@lucent.com>
80017
80018         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80019         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80020         rather than group writable.  Patch by Juan F. Codagnone.
80021
80022         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80023         xrealloc, Instead, include "xalloc.h".
80024
80025         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80026         Remove explicit declarations of xmalloc, xrealloc,
80027         and xstrdup.  Instead, include "xalloc.h".
80028
80029         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80030         unlocked-io.h.
80031         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80032         Likewise.
80033         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80034
80035         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80036         Reported by Padraig Brady.
80037
80038         * lib/mkstemp.c: #undef mkstemp.
80039         Include config.h.
80040         (rpl_mkstemp): Rename from mkstemp.
80041         Protoize.
80042
80043 2001-11-16  Jim Meyering  <meyering@lucent.com>
80044
80045         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80046         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80047         determine the amount of total physical memory, use pstat_getstatic.
80048         HPUX-11 doesn't define _SC_PHYS_PAGES.
80049         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80050         If sysconf couldn't be used to determine the amount of available
80051         physical memory, use both pstat_getstatic and pstat_getdynamic.
80052         Based on a patch from Bob Proulx.
80053
80054 2001-11-10  Jim Meyering  <meyering@lucent.com>
80055
80056         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80057         (jm_PREREQ): Use it.
80058
80059 2001-11-09  Jim Meyering  <meyering@lucent.com>
80060
80061         * m4/jm-macros.m4: Require autoconf-2.52f.
80062         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80063         Use these AC_-prefixed names, not the AM_-prefixed ones.
80064
80065         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80066
80067 2001-11-05  Jim Meyering  <meyering@lucent.com>
80068
80069         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80070
80071 2001-11-04  Jim Meyering  <meyering@lucent.com>
80072
80073         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80074         $DEFS.
80075
80076 2001-11-03  Jim Meyering  <meyering@lucent.com>
80077
80078         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80079         of AC_DEFUN.
80080
80081         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80082         know the name of the variable in the macro definition.
80083
80084 2001-11-03  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80087         in argmatch_to_argument call.
80088
80089         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80090         argument.
80091
80092         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80093         e.g., a fault due to an attempt to free a NULL pointer.
80094
80095 2001-11-01  Jim Meyering  <meyering@lucent.com>
80096
80097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80098         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80099
80100 2001-11-01  Jim Meyering  <meyering@lucent.com>
80101
80102         * lib/dirfd.c, lib/dirfd.h: New files.
80103         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80104
80105         * lib/hash.c (hash_print) [TESTING]: Clean up.
80106
80107 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80108
80109         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80110         to avoid a warning if -Wall.
80111
80112 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80113
80114         * README: New file
80115         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80116         (per RMS's instructions, this is now the canonical source)
80117         * lgpl/, gpl/: New directories.
80118
80119 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80120
80121         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80122
80123 2001-10-21  Jim Meyering  <meyering@lucent.com>
80124
80125         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80126         this code would end up calling gettext even in packages built
80127         with --disable-nls.
80128         * lib/getopt.c (_): Likewise.
80129         * lib/regex.c (_): Likewise.
80130
80131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80132
80133         * m4/error.m4 (jm_PREREQ_ERROR):
80134         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80135         AC_FUNC_STRERROR_R does that.
80136         Check for strerror declaration.
80137
80138         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80139         are supposed to have them these days.
80140         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80141         Merge changes from latest Autoconf CVS.
80142         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80143         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80144         POSIX decided to standardize on the int flavor of strerror_r.
80145
80146 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80147
80148         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80149         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80150         Use strerror_r that is only a macro, even if it is not a function.
80151         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80152         (private_strerror): Use prototypes, not old-style function definition.
80153         (print_errno_message): New function.
80154         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80155         char*-flavored one.
80156         (error_tail, error, error_at_line): Use it.
80157
80158 2001-10-11  Jim Meyering  <meyering@lucent.com>
80159
80160         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80161         and quote_n (1, ... to avoid clobbering a buffer.
80162
80163 2001-10-05  Jim Meyering  <meyering@lucent.com>
80164
80165         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80166         hash-pjw.h.
80167         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80168         * lib/hash-pjw.h: New file.
80169
80170 2001-09-30  Jim Meyering  <meyering@lucent.com>
80171
80172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80173         `struct fsstat' has the `f_fstypename' member.
80174         Use that to define FS_TYPE, which is now used to make
80175         the getfsstat link test tighter.
80176
80177 2001-09-30  Jim Meyering  <meyering@lucent.com>
80178
80179         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80180         Include <sys/ucred.h>, for Apple Darwin.
80181         Include sys/mount.h and sys/fs_types.h only if available.
80182         (FS_TYPE): Define.
80183         (read_filesystem_list): Use FS_TYPE.
80184
80185 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80186
80187         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80188         a boolean context.
80189
80190 2001-09-29  Jim Meyering  <meyering@lucent.com>
80191
80192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80193         [one-argument getmntent function]): Include stdio.h before mntent.h.
80194         SunOS 4.1.x needs it for the declaration of `FILE'.
80195         Patch by Volker Borchert.
80196
80197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80198         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80199         sys/fs_types.h, and make the link-test for getfsstat guard #include
80200         directives with appropriate #if HAVE_*_H tests so that we can
80201         detect getfsstat on Apple Darwin1.3.7 systems.
80202         Reported by Nelson Beebe.
80203         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80204
80205 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80206
80207         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80208         #defines strtoimax.  Also treat the other strto* functions
80209         like strtoimax.
80210
80211         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80212         Check for strtoul and strtoumax,
80213         as those declarations are made even in the signed case.
80214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80215         Likewise, for strtol and strtoimax.
80216
80217 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80218
80219         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80220         #defines strtoimax.  Also treat the other strto* functions
80221         like strtoimax.
80222
80223         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80224         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80225         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80226
80227 2001-09-26  Jim Meyering  <meyering@lucent.com>
80228
80229         Most macros in unlocked-io.h had the wrong number of arguments.
80230         * lib/gen-uio: New script.
80231         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80232         * lib/unlocked-io.hin: Remove file.
80233         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80234         rather than trying to embed it here.
80235         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80236         Reported by Padraig Brady.
80237
80238 2001-09-25  Volker Borchert  <bt@teknon.de>
80239
80240         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80241         `result'.
80242
80243 2001-09-24  Jim Meyering  <meyering@lucent.com>
80244
80245         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80246
80247 2001-09-23  Jim Meyering  <meyering@lucent.com>
80248
80249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80250         instead of the mere test for existence of mntent.h.  The latter
80251         would get a false-positive on AIX 3.4 systems.
80252         In the outer getmntent if-block, don't die if neither of the getmntent
80253         tests succeeds.  Instead, just fall through and continue with the
80254         remaining tests.
80255
80256 2001-09-23  Jim Meyering  <meyering@lucent.com>
80257
80258         * lib/mountlist.c: Remove useless parentheses in #if directives.
80259         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80260         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80261
80262 2001-09-22  Jim Meyering  <meyering@lucent.com>
80263
80264         * m4/gettext.m4: New file.  From gettext.
80265         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80266         * m4/progtest.m4: Likewise
80267         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80268         * m4/glibc21.m4: Likewise.
80269
80270         * m4/libintl.m4: Remove.  No longer used.
80271
80272 2001-09-22  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/localcharset.c: Update from latest gettext.
80275         * lib/config.charset: Likewise.
80276
80277 2001-09-20  Jim Meyering  <meyering@lucent.com>
80278
80279         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80280         strtoimax.
80281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80282         strtoumax.
80283
80284 2001-09-20  Jim Meyering  <meyering@lucent.com>
80285
80286         * lib/xstrtol.c (strtoimax): Guard declaration with
80287         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80288         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80289         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80290         (strtoumax): Likewise, for completeness (it wasn't necessary).
80291
80292 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80293
80294         * lib/strtoimax.c (HAVE_LONG_LONG):
80295         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80296         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80297         to work around bug in IBM C compiler.
80298
80299 2001-09-17  Jim Meyering  <meyering@lucent.com>
80300
80301         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80302         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80303         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80304         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80305         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80306         whenever the right hand side need not be expanded by the shell.
80307
80308 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80309
80310         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80311         library.  It's not correct, as some older glibcs are buggy.
80312         fnmatch wasn't fixed until glibc 2.2.
80313
80314         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80315         special shell magic here.
80316
80317 2001-09-16  Jim Meyering  <meyering@lucent.com>
80318
80319         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80320         * m4/jm-macros.m4: Require it.
80321
80322 2001-09-16  Jim Meyering  <meyering@lucent.com>
80323
80324         * lib/mkdir.c: New file.
80325
80326 2001-09-15  Jim Meyering  <meyering@lucent.com>
80327
80328         * m4/jm-macros.m4: Check for help2man.
80329
80330 2001-09-11  Jim Meyering  <meyering@lucent.com>
80331
80332         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80333         The body, by Paul Eggert, was moved here from configure.in.
80334         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80335
80336 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80337
80338         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80339         (jm_PREREQ): Use it.
80340
80341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80342
80343         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80344         Use ssize_t, not int, to store result of readlink.
80345         Check for ssize_t overflow as well as size_t overflow,
80346         as POSIX says the result of readlink is implementation-defined
80347         when ssize_t overflows.
80348         Remove unnecessary cast to char*.
80349         Use free+malloc instead of realloc, as the storage doesn't need
80350         to be preserved and it's clearer and can be more efficient that way.
80351         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80352         * lib/xreadlink.h (xreadlink): Update prototype.
80353
80354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80355
80356         * lib/xgetcwd.c: Revert some of the previous change; intead,
80357         fix the HAVE_GETCWD_NULL code to behave more like the
80358         !HAVE_GETCWD_NULL code used to.
80359
80360         Include "xalloc.h".
80361         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80362         invoke xalloc_die.
80363
80364 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80365
80366         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80367         sys/param.h, as pathmax.h includes them.
80368
80369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80370
80371         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80372         (jm_PREREQ_XGETCWD): New macro.
80373
80374         * m4/getcwd.m4: New file.
80375
80376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80377
80378         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80379         like the HAVE_GETCWD_NULL code.
80380         Include pathmax.h if not HAVE_GETCWD.
80381         Do not include xalloc.h.
80382         (INITIAL_BUFFER_SIZE): New symbol.
80383         Do not use xmalloc / xrealloc, since the caller is responsible for
80384         handling errors.  Preserve errno around `free' during failure.
80385         Do not overrun buffer when using getwd.
80386
80387 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80388
80389         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80390         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80391         getcwd (NULL, 0).
80392
80393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80394
80395         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80396         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80397         spotted by Jim Meyering.
80398
80399 2001-09-03  Jim Meyering  <meyering@lucent.com>
80400
80401         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80402         failure.
80403
80404 2001-09-02  Jim Meyering  <meyering@lucent.com>
80405
80406         * lib/error.c: Update from GNU libc.
80407
80408 2001-09-01  Jim Meyering  <meyering@lucent.com>
80409
80410         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80411         Used by df.
80412
80413 2001-09-01  Jim Meyering  <meyering@lucent.com>
80414
80415         * lib/xreadlink.c: New file.
80416         * lib/xreadlink.h: New file.
80417         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80418         xreadlink.h.
80419
80420         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80421         doesn't conflict with sparc Solaris 7's definition in
80422         /usr/include/sys/int_types.h.
80423
80424         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80425         files.
80426         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80427         and strncasecmp as r-values.  Unixware didn't have declarations.
80428
80429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80430
80431         * lib/xstrtol.h: Add copyright notice.
80432         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80433         LONGINT_INVALID_SUFFIX_CHAR.
80434
80435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80436
80437         * lib/xstrtol.c (strtoimax): New decl.
80438
80439 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80440
80441         * lib/xgetcwd.c: Don't include pathmax.h.
80442         Include stdlib.h and unistd.h if available.
80443         Include xalloc.h.
80444         (xmalloc, xstrdup, free): Remove decls.
80445         (xgetcwd): Don't assume sizes fit in unsigned.
80446         Check for overflow when computing sizes.
80447         Simplify reallocation code.
80448
80449 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80450
80451         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80452         a directory's st_size can have an arbitrary value, so the old
80453         usage could waste an arbitrary amount of memory.  All uses
80454         changed.
80455         * lib/savedir.h: Update prototype.
80456
80457 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80458
80459         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80460
80461         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80462         old strtoimax.c.
80463
80464         Also, make the following further changes to make this file's
80465         configuration more similar to that of strtol.c:
80466         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80467         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80468         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80469         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80470         changed to signed values.
80471
80472         And make the following changes as well:
80473         Fix copyright notice, as 1999 was missing.
80474         (verify): New macro.
80475         (strtoimax): Check sizes at compile-time, not run-time.
80476         Prefer strtol to strtoll if both work.
80477         (main): Remove; it was not that useful and was a pain to maintain.
80478
80479         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80480
80481 2001-08-31  Jim Meyering  <meyering@lucent.com>
80482
80483         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80484         Use an initial, malloc'd, buffer of length 128 rather than
80485         a statically allocated one of length 1024.
80486
80487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80488
80489         Simplify code, partly by assuming autoconf 2.52 semantics.
80490
80491         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80492
80493         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80494         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80495         All uses removed.
80496         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80497         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80498         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80499         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80500         jm_AC_HEADER_INTTYPES_H.
80501         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80502
80503         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80504
80505         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80506         Quote first arg of AC_DEFUN.
80507         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80508         since they are needed to parse the include file even if we need
80509         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80510         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80511         but with opposite signedness.
80512
80513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80514
80515         Merge 'exclude' changes from tar 1.13.22.
80516         This fixes one or two unlikely storage allocation overflow bugs,
80517         but doesn't change user-visible behavior otherwise.
80518
80519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80520
80521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80522         (jm_PREREQ_EXCLUDE): New macro.
80523
80524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80525
80526         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80527         tm to be declared.
80528
80529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80530
80531         * lib/hash.c: Remove '2001' from copyright notice.
80532
80533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80534
80535         * lib/full-write.h: New file.
80536         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80537         * lib/full-write.c: Correct credits, as cccp.c no longer
80538         exists and anyway it was so heavily changed from the old cccp
80539         code as to be unrecognizable.  Include full-write.h.
80540         (full_write): Return size_t, with short writes meaning failure.
80541         All callers changed.  This fixes a bug with large buffers
80542         on 64-bit hosts.
80543         * lib/utime.c: Include full-write.h.
80544
80545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80546
80547         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80548         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80549         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80550         Include if available.
80551         (<xalloc.h>): Include
80552         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80553         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80554         collide with FNM macros.
80555         (struct patopts): New struct.
80556         (struct exclude): Use it, as exclude patterns now come with options.
80557         (new_exclude): Support above changes.
80558         (new_exclude, add_exclude_file):
80559         Initial size must now be a power of two to simplify overflow checking.
80560         (free_exclude, fnmatch_no_wildcards): New function.
80561         (excluded_filename): No longer requires options arg, as the options
80562         are determined by add_exclude.  Now returns bool, not int.
80563         (excluded_filename, add_exclude):
80564         Add support for the fancy new exclusion options.
80565         (add_exclude, add_exclude_file): Now takes int options arg.
80566         Check for arithmetic overflow when computing sizes.
80567         (add_exclude_file): xrealloc might modify errno, so don't
80568         realloc until after errno might be used.
80569
80570         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80571         New macros.
80572         (free_exclude): New decl.
80573         (add_exclude, add_exclude_file): Now takes int options arg.
80574         (excluded_filename): No longer requires options arg, as the options
80575         are determined by add_exclude.  Now returns bool, not int.
80576
80577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80578
80579         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80580
80581 2001-08-27  Jim Meyering  <meyering@lucent.com>
80582
80583         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80584
80585         * lib/version-etc.c (N_): Remove definition.
80586         Revert most of last change.
80587         Instead, simply don't mark the `Copyright...' string for translation.
80588         Based on advice from Paul Eggert.
80589
80590         * lib/strtoxmax.c: Tweak comment.
80591
80592 2001-08-26  Jim Meyering  <meyering@lucent.com>
80593
80594         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80595
80596         * m4/xstrtoimax.m4: New file.
80597         * m4/xstrtoumax.m4: Add comments explaining why we
80598         AC_REPLACE_FUNCS(strtol).
80599
80600 2001-08-26  Jim Meyering  <meyering@lucent.com>
80601
80602         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80603         of copyright with `%s' so translators don't get an untranslated
80604         message in 2002.
80605         (COPYRIGHT_YEAR): Define.
80606         (version_etc): Use fprintf rather than fputs.
80607         Suggestion from Ulrich Drepper.
80608
80609         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80610
80611         * lib/strtoll.c: New file, from GNU libc.
80612         * lib/xstrtoimax.c: New file.
80613
80614         * lib/xstrtol.h: Add xstrtoimax.
80615         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80616         * lib/strtoimax.c: New file.  Likewise, but first define
80617         STRTOUXMAX_SIGNED.
80618
80619         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80620         ...
80621         * lib/strtoxmax.c: ... then renamed to this.
80622
80623 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80624
80625         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80626         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80627         (jm_AC_TYPE_INTMAX_T): New macro.
80628         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80629
80630         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80631
80632         * m4/longlong.m4: Renamed from ulonglong.m4.
80633         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80634         * m4/uintmax_t.m4: Removed.
80635
80636 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80637
80638         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80639         Port to Solaris 8, where 'sed' requires a space after the 'r'
80640         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80641         Redirect output to $tmp just once.
80642
80643 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80644
80645         * lib/addext.c (<errno.h>): Include.
80646         (errno): Declare if not defined.
80647         (addext): Work correctly when pathconf returns -1 and leaves
80648         errno alone because there is no limit.  Also, work even if
80649         pathconf returns a value greater than SIZE_MAX.
80650
80651 2001-08-12  Jim Meyering  <meyering@lucent.com>
80652
80653         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80654         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80655         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80656         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80657         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80658         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80659         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80660         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80661         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80662         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80663         utime.m4, utimes.m4, xstrtoumax.m4:
80664         Quote the first argument in each use of AC_DEFUN.
80665
80666 2001-08-12  Jim Meyering  <meyering@lucent.com>
80667
80668         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80669         Simply `return getcwd (NULL, 0);'.
80670         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80671         Use 1300 as initial value for length, not PATH_MAX.
80672
80673         * lib/pathmax.h: Clean up cpp syntax.
80674
80675 2001-08-12  Jim Meyering  <meyering@lucent.com>
80676
80677         * lib/gettimeofday.c: New file.
80678         * lib/gtod.h: New file.
80679         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80680
80681 2001-08-05  Jim Meyering  <meyering@lucent.com>
80682
80683         * m4/jm-macros.m4: Require autoconf-2.52.
80684
80685 2001-08-04  Jim Meyering  <meyering@lucent.com>
80686
80687         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80688         stmt, to get in sync with glibc.
80689
80690 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80691
80692         The following changes are from gettext 0.10.39 as maintained by
80693         Bruno Haible.
80694
80695         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80696         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80697         with inverted sense.  All uses changed.
80698
80699         * lib/mbswidth.c: Don't include <limits.h>.
80700         Include <stdlib.h> and <string.h> unconditionally.
80701         (iswcntrl, mbsinit, ISCNTRL): New macros.
80702         (mbsnwidth): Use K&R style function declarations.
80703         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80704         can optimize it when MB_CUR_MAX == 1.
80705         The width of control characters is zero, not 1.
80706
80707 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80708
80709         The following changes are from gettext 0.10.39 as maintained by
80710         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80711
80712         * m4/codeset.m4: Upgrade to serial AM1.
80713         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80714         all uses changed.  Quote first arg of AC_DEFUN.
80715         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80716
80717         * m4/iconv.m4: Upgrade to serial AM2.
80718         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80719         Add --with-libconv-prefix.
80720         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80721         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80722         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80723         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80724         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80725
80726         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80727         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80728         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80729         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80730         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80731         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80732         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80733         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80734         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80735
80736         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80737         string.h any more.
80738
80739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80740         not the default value.
80741
80742         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80744         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80745         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80746         Also check for iswcntrl, used for wcwidth fallback.
80747         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80748         to Autoconf 2.13.
80749
80750 2001-08-03  Jim Meyering  <meyering@lucent.com>
80751
80752         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80753         as it was in the original.  Reported by Paul Eggert.
80754
80755 2001-07-16  Jim Meyering  <meyering@lucent.com>
80756
80757         * m4/gettimeofday.m4: New file.
80758         Prompted by a report from Bernhard Baehr.
80759
80760 2001-07-15  Jim Meyering  <meyering@lucent.com>
80761
80762         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80763         stuff. Now it's in ../Makefile.cfg.
80764
80765 2001-07-15  Jim Meyering  <meyering@lucent.com>
80766
80767         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80768         (BUILT_SOURCES): Add unlocked-io.h.
80769         (io_functions): Define.
80770         (unlocked-io.h): New rule.
80771         (DISTCLEANFILES): Add unlocked-io.h.
80772         (all-local): Depend on unlocked-io.h, to ensure it is created.
80773
80774         * lib/unlocked-io.hin: New file
80775
80776         * lib/regex.c: Update from glibc.
80777
80778 2001-07-05  Jim Meyering  <meyering@lucent.com>
80779
80780         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80781         recommendation.
80782         (libfetish_a_SOURCES): Put all .h files here instead.
80783         Remove a thus-exposed (better checks in automake) duplicate and
80784         two unnecessary .h files.
80785
80786 2001-07-04  Jim Meyering  <meyering@lucent.com>
80787
80788         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80789         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80790         distcheck failure.
80791
80792 2001-07-02  Jim Meyering  <meyering@lucent.com>
80793
80794         The following changes were prompted by suggestions from Bruno Haible.
80795
80796         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80797         is now generated.
80798         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80799         definition of EXTRA_DIST.
80800         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80801         ensure that the generated file is created/updated whenever the list
80802         of $(unlocked_functions) is changed.
80803         (jm-glibc-io.m4): New rule.
80804         (unlocked-io.h): New rule -- currently unused.
80805
80806 2001-06-24  Jim Meyering  <meyering@lucent.com>
80807
80808         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80809         unmatched right bracket, rather than kludging it with an extra,
80810         falsely-matching quote in a comment.  Patch by Akim Demaille.
80811
80812 2001-06-11  Jim Meyering  <meyering@lucent.com>
80813
80814         * lib/regex.c: Update from GNU libc.
80815
80816 2001-05-27  Jim Meyering  <meyering@lucent.com>
80817
80818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80819         Check for ut_type in struct utmp.
80820
80821 2001-05-27  Jim Meyering  <meyering@lucent.com>
80822
80823         * lib/readutmp.h (UT_TYPE): Define.
80824
80825 2001-05-24  Jim Meyering  <meyering@lucent.com>
80826
80827         * lib/argmatch.c: Include "quote.h".
80828         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80829         quote function.  Reported by Göran Uddeborg.
80830
80831 2001-05-22  Jim Meyering  <meyering@lucent.com>
80832
80833         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80834         now that we use the package-supplied version unconditionally.
80835         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80836
80837 2001-05-21  Jim Meyering  <meyering@lucent.com>
80838
80839         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80840         shell syntax errors.
80841
80842 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80843
80844         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80845
80846 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80847
80848         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80849         Don't bother to check library strftime, since
80850         we'll be using our own my_strftime function anyway.
80851         Define my_strftime instead of strftime.
80852
80853 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80854
80855         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80856         which is not yet declared.
80857
80858 2001-05-15  Jim Meyering  <meyering@lucent.com>
80859
80860         * m4/regex.m4: Use proper quoting so brackets appear in the test
80861         program.
80862         Reported by, and with help from, Bruno Haible.
80863
80864 2001-05-13  Jim Meyering  <meyering@lucent.com>
80865
80866         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80867         undefined.
80868
80869 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80870
80871         dirname code cleanup.  base_name now behaves more compatibly
80872         with POSIX basename when given file names that have trailing
80873         slashes, and similarly for dir_name.  Add new primitives
80874         base_len and dir_len.  Put the directory-name-related decls
80875         into dirname.h.
80876
80877         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80878         * lib/backupfile.c (base_name): Likewise.
80879         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80881         * lib/makepath.c (strip_trailing_slashes): Likewise.
80882         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80883         ISSLASH): Likewise.
80884         * lib/rename.c (strip_trailing_slashes): Likewise.
80885         * lib/same.c (base_name): Likewise.
80886         * lib/stripslash.c (ISSLASH): Likewise.
80887
80888         * lib/addext.c: Include <dirname.h> after size_t is defined.
80889         * lib/backupfile.c: Likewise.
80890
80891         * lib/addext.c (addext): Use base_len to trim redundant
80892         trailing slashes instead of doing it ourselves.
80893         But do not trim the last slash if it is not redundant.
80894
80895         * lib/backupfile.c (find_backup_file_name,
80896         max_backup_version): Use base_len instead of rolling it ourselves.
80897         Handle the case of "" and (on DOS) "C:" correctly.
80898
80899         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80900         needed. Include <string.h>, <dirname.h>.
80901         (base_name): Allow file names ending in slashes, other than names
80902         that are all slashes.  In this case, return the basename followed
80903         by the slashes.  This is more general, and can be used in places
80904         where the original base_name purposely had an assertion failure.
80905         (base_len): New function.
80906
80907         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80908         Do not include <assert.h>; no longer needed.
80909         Include xalloc.h.
80910         (memrchr): Remove decl.
80911         (dir_name_r): Remove.
80912         (dir_len): Renamed from dirlen.  All callers changed.
80913         Rewrite in terms of base_name, for simplicity and consistency.
80914         (dir_name): Never return NULL.  All callers changed.
80915         Do not include <stdlib.h> in test program; no longer needed.
80916         return 0; is fine for test program.
80917
80918         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80919         New macros.
80920         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80921
80922         * lib/path-concat.c (path_concat): Use base_len to compute
80923         base length, not strlen; this means we cannot rely on memcpy
80924         to null-terminate.
80925
80926         * lib/same.c (STREQ): Remove.
80927         (same_name): Handle the case where the basename ends in trailing '/'.
80928
80929         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80930         a slash was stripped.  Do not strip the last slash after a
80931         file system prefix.
80932
80933 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80934
80935         * lib/Makefile.am (libfetish_a_SOURCES):
80936         Add strftime.c, since we now compile it on all hosts.
80937
80938         * lib/strftime.c (my_strftime):
80939         Define to nstrftime if emacs, but only if my_strftime is not defined.
80940         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80941         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80942         Add one more extra argument: a nanoseconds value.
80943         All uses changed.
80944         (ns): New macro.
80945         (my_strftime function): Add %N format.
80946         (emacs_strftimeu): Renamed from emacs_strftime,
80947         with extra ut argument.
80948
80949 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80950
80951         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80952
80953 2001-04-21  Jim Meyering  <meyering@lucent.com>
80954
80955         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80956         doesn't interfere.
80957
80958 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80959
80960         * m4/ftruncate.m4: Check for chsize.
80961         Link with ftruncate.o unconditionally if ftruncate is missing.
80962         This was required when cross-compiling to i586-mingw32msvc.
80963
80964 2001-04-08  Jim Meyering  <meyering@lucent.com>
80965
80966         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80967         recomputed; that's necessary when the offset spans a DST transition.
80968         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80969
80970 2001-04-02  Jim Meyering  <meyering@lucent.com>
80971
80972         * lib/regex.h, regex.c: Update from GNU libc.
80973
80974 2001-03-24  Jim Meyering  <meyering@lucent.com>
80975
80976         * m4/jm-macros.m4: Require autoconf-2.49d.
80977
80978 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80979
80980         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80981
80982 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80983
80984         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80985
80986 2001-03-17  Jim Meyering  <meyering@lucent.com>
80987
80988         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80989         now that the version in autoconf is equivalent.
80990         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80991
80992         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80993         Suggestion from Akim Demaille.
80994
80995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80996         (jm_PREREQ_TEMPNAME): New function.
80997
80998 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80999
81000         * lib/tempname.c (uint64_t): Define to uintmax_t if
81001         not defined, and if UINT64_MAX is not defined.
81002         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81003         Reported by John David Anglin.
81004
81005 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81006
81007         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81008         resolve alias if codeset is empty.
81009         * lib/config.charset (BeOS): Use wildcard syntax.
81010
81011 2001-03-13  Jim Meyering  <meyering@lucent.com>
81012
81013         * lib/path-concat.c (path_concat)
81014         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81015         concatenating e.g., `C:' and `foo'.
81016         From Bruno Haible.
81017
81018 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81019
81020         * lib/localcharset.c (locale_charset): Don't use
81021         setlocale(LC_CTYPE,NULL). Don't return NULL.
81022         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81023
81024 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81025
81026         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81027         support for DOS/DJGPP.
81028
81029 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81030
81031         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81032         lacks mkstemp.  Compile our own tempname.c if we compile our own
81033         mkstemp.c, as mkstemp relies on tempname.
81034
81035 2001-03-01  Jim Meyering  <meyering@lucent.com>
81036
81037         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81038         AH_VERBATIM really does output its argument verbatim.
81039
81040 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81041
81042         * lib/Makefile.am (libfetish_a_SOURCES):
81043         Add dup-safer.c, fopen-safer.c.
81044         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81045
81046         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81047         * lib/unistd-safer.h: New files.
81048
81049 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81050
81051         The mkstemp replacement is taken from glibc 2.2.2, with some
81052         portability fixes for use outside glibc, as follows:
81053
81054         * lib/tempname.c (struct_stat64): New macro.
81055         (direxists, __gen_tempname): Use it.
81056         This avoids a portability problem with Solaris 8.
81057
81058         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81059         (<stddef.h>, <stdint.h>, <string.h>):
81060         Include only if STDC_HEADERS || _LIBC.
81061         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81062         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81063         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81064         (__set_errno): Define this macro if <errno.h> doesn't.
81065         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81066         Define these macros if <stdio.h> doesn't.
81067         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81068         Define these macros if <sys/stat.h>
81069         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81070         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81071         __xstat64): Define if not _LIBC.
81072         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81073         (__gen_tempname): Invoke gettimeofday only if
81074         HAVE_GETTIMEOFDAY || _LIBC;
81075         otherwise, fall back on plain "time".
81076         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81077
81078         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81079
81080         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81081
81082 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81083
81084         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81085
81086 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81087
81088         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81090         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81091         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81092
81093 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81094
81095         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81096         Remove workaround macros for hosts that have mbrtowc but not
81097         mbstate_t, as we now insist on proper declarations for both
81098         before using mbrtowc.
81099
81100 2001-02-17  Jim Meyering  <meyering@lucent.com>
81101
81102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81103         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81104         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81105         UnixWare 7.1.1.
81106
81107         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81108         rather than AC_CACHE_VAL.
81109
81110 2001-02-17  Jim Meyering  <meyering@lucent.com>
81111
81112         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81113         around included file name.
81114
81115         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81116
81117         * lib/strftime.c: Update from GNU libc (the only changes were to
81118         comments).
81119
81120 2001-02-17  Jim Meyering  <meyering@lucent.com>
81121
81122         * lib/regex.c: Update from libc.
81123
81124 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81125
81126         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81127         clash.
81128
81129 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81130
81131         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81132         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81133         Reported by Mark Hounschell via Paul Eggert.
81134
81135 2001-02-07  Jim Meyering  <meyering@lucent.com>
81136
81137         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81138
81139 2001-02-05  Jim Meyering  <meyering@lucent.com>
81140
81141         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81142         it includes the patch required for `large file' support with at least
81143         HP-UX's 10.20 /bin/cc.
81144
81145 2001-02-03  Jim Meyering  <meyering@lucent.com>
81146
81147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81148         AS_IF, now that it works once again (mysteriously).
81149         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81150
81151 2001-01-30  Jim Meyering  <meyering@lucent.com>
81152
81153         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81154         * m4/chown.m4: Rename conftestchown to conftest.chown.
81155         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81156         s/conftestdir2/conftest.d2/.
81157         * m4/utimes.m4: s/conftestdata/conftest.data/
81158         Inspired by Pavel Roskin's change in autoconf.
81159
81160 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81161
81162         * lib/config.charset: Update for FreeBSD 4.2.
81163
81164 2001-01-27  Jim Meyering  <meyering@lucent.com>
81165
81166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81167         a use of AS_IF.
81168         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81169
81170 2001-01-26  Jim Meyering  <meyering@lucent.com>
81171
81172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81173         quotearg.c includes it.
81174
81175 2001-01-26  Jim Meyering  <meyering@lucent.com>
81176
81177         * lib/quotearg.c: Include stddef.h.
81178         * lib/quote.c: Include stddef.h.
81179         Reported by Axel Kittenberger.
81180
81181         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81182         line in double quotes so that it evokes a better diagnostic.
81183         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81184         Reported by Axel Kittenberger.
81185
81186 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81187
81188         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81189         as if it was a `charset'.
81190
81191 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81192
81193         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81194         has const.
81195
81196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81197
81198         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81199         to avoid a warning.  Add back 'const' to inptr.
81200
81201 2001-01-20  Jim Meyering  <meyering@lucent.com>
81202
81203         Be sure that headers are checked before used in code compiled
81204         for the type checks.
81205         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81206         In place of that, invoke jm_CHECK_ALL_TYPES.
81207         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81208         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81209         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81210         The check for ssize_t was mistakenly run before the test for unistd.h.
81211
81212         The configure-time check for stdbool.h was missing.
81213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81214         (jm_PREREQ_HASH): New function.
81215
81216 2001-01-17  Jim Meyering  <meyering@lucent.com>
81217
81218         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81219         for autoconf-2.49c.
81220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81221
81222 2001-01-16  Jim Meyering  <meyering@lucent.com>
81223
81224         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81225         From Bruno Haible.
81226
81227 2001-01-14  Jim Meyering  <meyering@lucent.com>
81228
81229         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81230         foo and bar.  Create conftestdir/ in the script, not in the C code.
81231         Remove directories in the script, not in the C code.
81232         Remove conftestdir{,2} before trying to create the directory.
81233         Make the entire configure script fail if the mkdir fails.
81234
81235 2001-01-14  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/rename.c: New file.  From Volker Borchert.
81238         Include stdlib.h, string.h or strings.h, and xalloc.h.
81239         Use strip_trailing_slashes rather than open-coding it.
81240
81241 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81242
81243         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81244
81245 2001-01-03  Jim Meyering  <meyering@lucent.com>
81246
81247         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81248         of local `inptr' to avoid warning with some system declarations of
81249         iconv.
81250
81251 2001-01-02  Volker Borchert  <bt@teknon.de>
81252
81253         * m4/rename.m4: New file.
81254         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81255
81256 2001-01-01  Jim Meyering  <meyering@lucent.com>
81257
81258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81259         even on systems with utmpx.h.  It's necessary for the declaration of
81260         utmp's ut_user member.  Reported by Andreas Jaeger.
81261
81262         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81263         available. They are required for the declarations of getgrgid and
81264         getpwuid resp.
81265         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81266         Reported by Andreas Jaeger.
81267
81268 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81269
81270         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81271         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81272         so `make install' also works in VPATH builds.
81273
81274 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81275
81276         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81277         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81278         can be used in subdirectories.
81279
81280 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81281
81282         * lib/modechange.c: Do not assume that mode_t uses the
81283         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81284         the other-execute bit of FOO even if S_IXOTH != 1.
81285
81286         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81287         WOTH, XOTH, ALLM): New macros.
81288         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81289          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81290         Use them.
81291         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81292         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81293         (mode_compile):
81294         No need to use uintmax_t; unsigned long is long enough.
81295         Don't bother to get suffix since we don't use it.
81296
81297 2000-12-26  Jim Meyering  <meyering@lucent.com>
81298
81299         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81300         better with autoheader.
81301
81302 2000-12-24  Jim Meyering  <meyering@lucent.com>
81303
81304         * lib/hash.c (is_prime): Return explicit boolean values.
81305         (hash_get_first): Return NULL to appease Irix5.6's 89.
81306         Reported by Nelson Beebe.
81307
81308 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81309
81310         * lib/localcharset.c (locale_charset): Add support for Win32.
81311
81312 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81313
81314         * lib/physmem.h, lib/physmem.c: New files.
81315
81316         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81317         (noinst_HEADERS): Add physmem.h.
81318
81319         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81320         't' for compatibility with Solaris 8 sort.
81321
81322 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81323
81324         * lib/config.charset: Add support for BeOS.
81325
81326 2000-12-17  Jim Meyering  <meyering@lucent.com>
81327
81328         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81329         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81330
81331 2000-12-16  Jim Meyering  <meyering@lucent.com>
81332
81333         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81334         N and M) would have treated it like `chown N:N FILE'.
81335
81336         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81337
81338 2000-12-16  Jim Meyering  <meyering@lucent.com>
81339
81340         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81341         SHELLS_FILE to a file name that's useful on djgpp systems.
81342         Include stdlib.h.
81343         (ADDITIONAL_DEFAULT_SHELLS): Define.
81344         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81345         Based mostly on a patch from Prashant TR.
81346
81347 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81348
81349         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81350         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81351         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81352
81353 2000-12-08  Andreas Schwab  <schwab@suse.de>
81354
81355         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81356         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81357
81358 2000-12-07  Jim Meyering  <meyering@lucent.com>
81359
81360         * lib/stripslash.c (ISSLASH): Define.
81361         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81362         `/'.
81363         From Prashant TR.
81364
81365         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81366         (dir_name_r): Declare this function as static.
81367         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81368         manifest itself on a name containing a mix of slashes and
81369         backslashes.
81370         Make this function work with names starting with a DOS-style
81371         drive letter and colon prefix.
81372         (dir_name): Append `.' if necessary.
81373         Based mostly on patches from Prashant TR and Eli Zaretskii.
81374
81375         * lib/dirname.h (dir_name_r): Remove prototype.
81376
81377 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81378
81379         * m4/off_t-format.m4: Remove this file.
81380         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81381
81382 2000-12-06  Jim Meyering  <meyering@lucent.com>
81383
81384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81385         replacement strtoull, we may well need the replacement strtoul, too.
81386         Check for declarations of strtoul and strtoull.
81387         Check for strtol.  Mainly as a cue to cause automake to include
81388         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81389         Check for limits.h -- strtol.c needs it.
81390
81391 2000-12-05  Jim Meyering  <meyering@lucent.com>
81392
81393         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81394
81395 2000-12-04  Jim Meyering  <meyering@lucent.com>
81396
81397         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81398         Also include memory.h, stdlib.h, unistd.h if appropriate.
81399         Reported by Andreas Jaeger (conflicting declaration of malloc).
81400
81401 2000-12-02  Jim Meyering  <meyering@lucent.com>
81402
81403         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81404         * m4/jm-macros.m4 (jm_MACROS): require it.
81405
81406 2000-12-02  Jim Meyering  <meyering@lucent.com>
81407
81408         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81409
81410 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81411
81412         * lib/memrchr.c: Include <config.h> before any system include file.
81413
81414 2000-11-30  Jim Meyering  <meyering@lucent.com>
81415
81416         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81417
81418 2000-11-30  Jim Meyering  <meyering@lucent.com>
81419
81420         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81421
81422 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81423
81424         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81425
81426 2000-11-26  Jim Meyering  <meyering@lucent.com>
81427
81428         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81429
81430 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81433         size of (size_t) -1; it's not portable.
81434
81435 2000-11-17  Jim Meyering  <meyering@lucent.com>
81436
81437         * lib/strstr.c: Update from GNU libc.
81438
81439 2000-11-17  Akim Demaille  <akim@epita.fr>
81440
81441         * lib/obstack.h: Formatting changes.
81442         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81443         prevent type checking.
81444         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81445         cast the value to (void *): assigning a `foo *' to a `void *'
81446         variable is valid.
81447         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81448
81449 2000-11-16  Jim Meyering  <meyering@lucent.com>
81450
81451         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81452
81453 2000-11-11  Jim Meyering  <meyering@lucent.com>
81454
81455         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81456
81457 2000-11-10  Jim Meyering  <meyering@lucent.com>
81458
81459         * lib/obstack.h: Update from GNU libc.
81460         * lib/obstack.c: Likewise.
81461
81462 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81463
81464         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81465
81466 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81467
81468         * lib/getusershell.c (setusershell): Use rewind rather than
81469         fseek/fseeko, to avoid configuration hassles with fseeko.
81470         Don't bother opening SHELLS_FILE if shellstream is NULL;
81471         it's not necessary.
81472
81473 2000-11-05  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/makepath.h (make_dir): Declare.
81476         * lib/makepath.c (make_dir): Remove `static' attribute.
81477         Tweak a comment.
81478
81479 2000-11-04  Jim Meyering  <meyering@lucent.com>
81480
81481         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81482
81483 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81484
81485         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81486         last one in a bucket, advance to the next bucket.
81487
81488 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81489
81490         * lib/fnmatch.c: Do not comment out all the code if we are using
81491         the GNU C library, because in some cases we are replacing buggy
81492         code in the GNU C library itself.
81493
81494 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81495
81496         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81497         (regex_compile): Catch bogus \(\1\).
81498
81499 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81500
81501         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81502         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81503         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81504
81505 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81506
81507         * lib/error.h, getline.h, modechange.h:
81508         Remove "2000" from Copyright line, as the file hasn't been
81509         changed this year other than in the copyright notice.
81510
81511         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81512         was changed this year.
81513
81514 2000-10-29  Jim Meyering  <meyering@lucent.com>
81515
81516         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81517         renaming.
81518         * m4/ls-mntd-fs.m4: Likewise
81519
81520 2000-10-29  Jim Meyering  <meyering@lucent.com>
81521
81522         * lib/xstat.in: Fix grammar in comment.
81523
81524 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81525
81526         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81527         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81528         doesn't define __restrict_arr.
81529
81530 2000-10-28  Jim Meyering  <meyering@lucent.com>
81531
81532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81533         (jm_PREREQ_MEMCHR): New function.
81534
81535 2000-10-28  Jim Meyering  <meyering@lucent.com>
81536
81537         * lib/memchr.c: Update from libc.
81538         Adjust for portability:
81539         [HAVE_STDLIB_H]: Include stdlib.h.
81540         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81541         Undef __memchr, too.
81542         [!weak_alias]: Define __memchr to memchr.
81543
81544         * lib/regex.c: Update from libc.
81545         * lib/regex.h: Likewise.
81546         * lib/getopt1.c: Likewise.
81547         * lib/memcmp.c: Likewise.
81548
81549         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81550         Avoid using fseek, when possible -- it's broken by design.
81551         Patch by Ulrich Drepper.
81552
81553 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81554
81555         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81556         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81557         Giving in to popular pressure to shut up the compiler with casts.
81558
81559 2000-10-26  Jim Meyering  <meyering@lucent.com>
81560
81561         * lib/strftime.c: Update from libc.
81562
81563 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81564
81565         * regex.c: More `unsigned char' -> `re_char' changes.
81566         Also change several `int' into `re_wchar_t'.
81567         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81568         (PUSH_FAILURE_POINTER): Don't cast any more.
81569         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81570         We want GCC to complain, since this piece of code makes
81571         re_match non-reentrant, which *should* be fixed.
81572         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81573         (EXTEND_BUFFER): Use RETALLOC.
81574         (SET_LIST_BIT): Don't cast.
81575         (re_wchar_t): New type.
81576         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81577         that those two functions will always properly return.
81578         (IMMEDIATE_QUIT_CHECK): Cast to void.
81579         (analyse_first): Use recursion rather than an explicit stack.
81580         (re_compile_fastmap): Can't fail anymore.
81581         (re_search_2): Don't check re_compile_fastmap for failure.
81582         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81583         Now also sets the new value (passed in a new argument).
81584         (re_match_2_internal): Use it.
81585         Also, use a new var `reg' of type size_t when looping through regs
81586         rather than reuse the inappropriate `mcnt'.
81587
81588 2000-10-25  Jim Meyering  <meyering@lucent.com>
81589
81590         * lib/obstack.c: Update from libc.
81591
81592 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81593
81594         * regex.c (regex_compile): Change the way of handling a range from
81595         a char less than 256 to a char not less than 256.
81596
81597 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81598
81599         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81600         NT-Emacs only.
81601         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81602         so that re_search functions only quit when callers expect them to.
81603
81604 2000-10-23  Jim Meyering  <meyering@lucent.com>
81605
81606         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81607         wrong.  That set_locale call must not have any side effects.
81608         From Paul Eggert.
81609
81610 2000-10-22  Jim Meyering  <meyering@lucent.com>
81611
81612         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81613         [CYCLIC]: Remove now-unused definition.
81614
81615         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81616         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81617         Suggestion from Ulrich Drepper.
81618
81619 2000-10-21  Jim Meyering  <meyering@lucent.com>
81620
81621         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81622         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81623         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81624
81625 2000-10-21  Jim Meyering  <meyering@lucent.com>
81626
81627         * lib/dirname.c (memrchr): Declare if necessary.
81628         (dir_name): Remove the restriction that there be no
81629         trailing slashes.  Now, this code skips past them, effectively
81630         ignoring them.
81631         [TEST_DIRNAME] (main): New unit tests.
81632
81633         * lib/memrchr.c: New file from GNU libc.
81634         Undef __memrchr, too.
81635         [!weak_alias]: Define __memrchr to memrchr.
81636         Guard weak_alias use with `#ifdef weak_alias'.
81637
81638 2000-10-21  Jim Meyering  <meyering@lucent.com>
81639
81640         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81641         (dir_name): Use dir_name_r.
81642         * lib/dirname.h (dir_name_r): Declare it.
81643
81644 2000-10-17  Jim Meyering  <meyering@lucent.com>
81645
81646         * lib/quote.h (PARAMS): Define and use.
81647         Reported by Akim Demaille.
81648
81649         * lib/getopt.c: Update from libc.
81650
81651 2000-10-16  Jim Meyering  <meyering@lucent.com>
81652
81653         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81654         setlocale.
81655         From Jan Fedak.
81656
81657 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81658
81659         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81660
81661 2000-09-25  Jim Meyering  <meyering@lucent.com>
81662
81663         * lib/md5.h (rol): Define (from GnuPG).
81664
81665         * lib/sha.c: Give credit (GnuPG) where due.
81666         (M): Use rol rather than open-coding it.
81667         Add a FIXME comment.
81668
81669 2000-09-21  Jim Meyering  <meyering@lucent.com>
81670
81671         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81672         Reported by Michael Stone.
81673
81674 2000-09-20  Jim Meyering  <meyering@lucent.com>
81675
81676         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81677         (noinst_HEADERS): Add sha.h.
81678         Based on code from Scott G. Miller and from GnuPG.
81679
81680 2000-09-18  Jim Meyering  <meyering@lucent.com>
81681
81682         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81683         LIBS. Otherwise, everyone ends up linking with -lelf for some
81684         configurations.
81685         Reported by Mike Stone.
81686
81687 2000-09-15  Jim Meyering  <meyering@lucent.com>
81688
81689         * lib/regex.c: Update from libc.
81690
81691 2000-09-10  Jim Meyering  <meyering@lucent.com>
81692
81693         * lib/getopt.c (_getopt_internal): Update from glibc.
81694
81695 2000-09-09  Jim Meyering  <meyering@lucent.com>
81696
81697         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81698         think it should be used as a general replacement for isascii.
81699         * lib/fnmatch.c: Likewise.
81700         * lib/mbswidth.c: Likewise
81701         * lib/regex.c: Likewise.
81702
81703         Don't use atoi.
81704         * lib/userspec.c: Include sys/param.h and limits.h.
81705         Include xstrtol.h.
81706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81707         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81708         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81709         UID, GID.  Check range.
81710
81711 2000-09-06  Jim Meyering  <meyering@lucent.com>
81712
81713         * lib/getopt.c (_getopt_internal): Update from glibc.
81714
81715 2000-08-30  Jim Meyering  <meyering@lucent.com>
81716
81717         * lib/strftime.c: Merge in changes from GNU libc.
81718
81719 2000-08-26  Jim Meyering  <meyering@lucent.com>
81720
81721         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81722         * m4/fpending.m4: New file.
81723
81724 2000-08-26  Jim Meyering  <meyering@lucent.com>
81725
81726         * lib/closeout.c: Include "__fpending.h".
81727         (close_stdout_status): Return right away if there's nothing to flush.
81728
81729         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81730         * lib/__fpending.c: New file.
81731         * lib/__fpending.h: New file.
81732
81733 2000-08-20  Jim Meyering  <meyering@lucent.com>
81734
81735         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81736         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81737         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81738
81739 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81740
81741         Improve fileutils installation on systems where running
81742         programs (like install) can't be unlinked.
81743         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81744         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81745
81746 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81747
81748         Standardize on "memory exhausted" instead of "Memory exhausted"
81749         or "virtual memory exhausted".
81750         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81751         "virtual memory exhausted".
81752         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81753         our own message.
81754         * lib/userspec.c (parse_user_spec): Likewise.
81755         * lib/bumpalloc.h: comment fix
81756         * lib/same.c, userspec.c: Include xalloc.h.
81757
81758         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81759         not char *const and pointing to a constant array.
81760         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81761         (xrealloc): Comment fix.
81762
81763         * lib/userspec.c (parse_user_spec):
81764         Don't translate a message until just before returning,
81765         to avoid unnecessary translation.
81766
81767 2000-08-07  Jim Meyering  <meyering@lucent.com>
81768
81769         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81770         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81771         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81772         getgroups.c, gethostname.c, getopt.h, group-member.c,
81773         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81774         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81775         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81776         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81777         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81778         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81779         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81780         yesno.c: Back out Copyright date changes for each file with no change
81781         this year.  This eases coordination with other programs using the same
81782         source code modules.  From Paul Eggert.
81783
81784 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81785
81786         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81787         not char, for compatibility with glibc 2.1.3 strftime.c.
81788
81789 2000-08-03  Greg McGary  <greg@mcgary.org>
81790
81791         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81792         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81793         (EXTEND_BUFFER): Use them.
81794
81795 2000-08-01  Jim Meyering  <meyering@lucent.com>
81796
81797         * lib/dirname.c (ISSLASH): Define.
81798         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81799         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81800         both `\' and `/' may be use as path separators.
81801         Based on a patch from Prashant TR.
81802
81803 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81804
81805         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81806         slot vector a constant, since it might get modified.
81807
81808 2000-07-31  Jim Meyering  <meyering@lucent.com>
81809
81810         * lib/xmalloc.c: Use `virtual memory exhausted', not
81811         `Memory exhausted'.
81812         * lib/obstack.c (print_and_abort): Likewise.
81813
81814 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81815
81816         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81817         buffer, so that the caller can always quote one small
81818         component of a "memory exhausted" message in slot 0.
81819         From a suggestion by Jim Meyering.
81820
81821 2000-07-30  Jim Meyering  <meyering@lucent.com>
81822
81823         * lib/makepath.c (make_path): Quote the other instance, too.
81824
81825         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81826         (STATIC_BUF_SIZE): Define.
81827         (quotearg_n_options): Use only statically allocated storage when
81828         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81829         than STATIC_BUF_SIZE.
81830
81831 2000-07-29  Jim Meyering  <meyering@lucent.com>
81832
81833         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81834         * lib/dirname.c (dir_name): Likewise.
81835
81836         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81837         `/'.
81838
81839         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81840         (dir_name): Assert that there are no trailing slashes.
81841
81842 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81843
81844         * lib/mbswidth.h (mbswidth): Add a flags argument.
81845         (mbswidth): New declaration.
81846         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81847         * lib/mbswidth.c (mbswidth): Add a flags argument.
81848         (mbsnwidth): New function.
81849
81850 2000-07-24  Jim Meyering  <meyering@lucent.com>
81851
81852         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81853
81854 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81855
81856         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81857
81858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81859
81860         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81861         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81862         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81863         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81864         invoke multibyte primitives.
81865
81866 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81867
81868         * lib/quotearg.c:
81869         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81870         so that mbstate_t is always defined.
81871
81872         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81873         be 1 in at least one GCC installation, and this configuration
81874         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81875         performance on hosts that have mbrtowc but have only unibyte
81876         locales, but I assume these hosts are rare.
81877
81878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81879
81880         * lib/mbswidth.c (_XOPEN_SOURCE):
81881         Don't define; this causes problems on Solaris 7.
81882         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81883
81884 2000-07-23  Jim Meyering  <meyering@lucent.com>
81885
81886         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81887         too: getgrgid, getpwuid, getuid.
81888
81889 2000-07-23  Jim Meyering  <meyering@lucent.com>
81890
81891         * lib/basename.c (base_name): Add an assertion.
81892
81893 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81894
81895         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81896         shadow its mbsinit function.
81897
81898 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81899
81900         * lib/mbswidth.h: New file.
81901         * lib/mbswidth.c: New file.
81902         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81903         (noinst_HEADERS): Add mbswidth.h.
81904
81905 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81906
81907         * lib/config.charset: Add support for FreeBSD. Improve support for
81908         HP-UX and IRIX 6.
81909
81910 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81911
81912         * m4/mbswidth.m4: New file.
81913         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81914
81915 2000-07-15  Jim Meyering  <meyering@lucent.com>
81916
81917         * lib/makepath.c: Include quote.h.
81918         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81919         corresponding argument in a `quote (...)' call.
81920         Give better diagnostics.
81921
81922         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81923         (noinst_HEADERS): Add quote.h.
81924
81925         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81926         from tar's src/misc.c.
81927         * lib/quote.h: New file.  Prototypes for same.
81928
81929 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81930
81931         From a suggestion by Bruno Haible.
81932         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81933         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81934         to decide whether to define the BeOS workaround macro;
81935         this adjusts to the change to AC_MBSTATE_T.
81936
81937 2000-07-14  Jim Meyering  <meyering@lucent.com>
81938
81939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81940         jm_AC_TYPE_UINTMAX_T.
81941
81942 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81943
81944         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81945
81946         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81947         quotearg_buffer_restyled): Add support for
81948         clocale_quoting_style.  Undo previous change to
81949         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81950         and "{RIGHT QUOTATION MARK}" msgids.
81951
81952 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81953
81954         From a suggestion by Bruno Haible.
81955         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81956         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81957         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81958         and mbstate_t, to a single-part test that simply defines mbstate_t.
81959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81960         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81961
81962 2000-07-10  Jim Meyering  <meyering@lucent.com>
81963
81964         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81965
81966         * m4/gnu-source.m4: Output to confdefs.h directly.
81967         Suggestion from Akim Demaille.
81968
81969 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81970
81971         The old behavior of quoting `like this' doesn't look good with
81972         newer, ISO-style fonts.  See:
81973         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81974
81975         Instead, quote "like this" by default.  Let the translator
81976         tailor the locale-specific quoting behavior by providing
81977         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81978
81979         * lib/quotearg.c (N_): New macro.
81980         (gettext_default): New function.
81981         (quotearg_buffer_restyled): Use
81982         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81983         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81984
81985 2000-07-09  Jim Meyering  <meyering@lucent.com>
81986
81987         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81988         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81989
81990         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81992
81993 2000-07-09  Jim Meyering  <meyering@lucent.com>
81994
81995         * lib/Most files: Update copyright dates to include 2000.
81996
81997 2000-07-08  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82000         if not defined.
82001         (xgethostname): Remove now-unnecessary #ifdef.
82002         Move declaration of `err' into loop where it's used.
82003
82004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82005         and Bruno Haible  <haible@clisp.cons.org>
82006
82007         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82008         only if the test for an object-type mbstate_t fails.  This
82009         prevents us from mistakenly reporting that mbstate_t is a
82010         system object type after we "#define mbstate_t int" to work
82011         around its lack.
82012
82013 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82014         and Bruno Haible  <haible@clisp.cons.org>
82015
82016         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82017
82018 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82019
82020         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82021         to strerror_r.
82022         Include <ctype.h> for use of isalpha.
82023
82024 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82025
82026         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82027         by allocating a larger buffer. Test the gethostname return value for
82028         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82029         returns an error and ENAMETOOLONG isn't defined.
82030
82031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82032
82033         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82034         dimension.
82035
82036 2000-07-04  Jim Meyering  <meyering@lucent.com>
82037
82038         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82039         of the deprecated AC_CHECKING.
82040
82041 2000-07-04  Jim Meyering  <meyering@lucent.com>
82042
82043         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82044         Reported by Bruno Haible.
82045
82046 2000-07-04  Jim Meyering  <meyering@lucent.com>
82047
82048         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82049         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82050         lacks mbrtowc.
82051
82052 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82053
82054         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82055         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82056
82057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82058         and Bruno Haible  <haible@clisp.cons.org>
82059
82060         * lib/quotearg.c (mbrtowc):
82061         Assign to *pwc, and return 1 only if result is nonzero.
82062         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82063
82064 2000-07-03  Jim Meyering  <meyering@lucent.com>
82065
82066         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82067
82068 2000-07-03  Jim Meyering  <meyering@lucent.com>
82069
82070         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82071         This is necessary to get a definition of e.g., UTMP_FILE on
82072         HP-UX 10.20.
82073         From Bob Proulx.
82074
82075 2000-07-02  Jim Meyering  <meyering@lucent.com>
82076
82077         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82078
82079         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82080         AC_LIBOBJ(function_name).
82081         * m4/chown.m4: Likewise.
82082         * m4/fnmatch.m4: Likewise.
82083         * m4/ftruncate.m4: Likewise.
82084         * m4/getgroups.m4: Likewise.
82085         * m4/getline.m4: Likewise.
82086         * m4/group-member.m4: Likewise.
82087         * m4/jm-macros.m4: Likewise.
82088         * m4/lstat.m4: Likewise.
82089         * m4/malloc.m4: Likewise.
82090         * m4/memcmp.m4: Likewise.
82091         * m4/nanosleep.m4: Likewise.
82092         * m4/putenv.m4: Likewise.
82093         * m4/realloc.m4: Likewise.
82094         * m4/regex.m4: Likewise.
82095         * m4/stat.m4: Likewise.
82096         * m4/strftime.m4: Likewise.
82097
82098 2000-07-02  Jim Meyering  <meyering@lucent.com>
82099
82100         * lib/quotearg.c (mbstate_t): Don't define here.
82101
82102 2000-07-02  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82105
82106 2000-07-01  Jim Meyering  <meyering@lucent.com>
82107
82108         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82109
82110 2000-07-01  Jim Meyering  <meyering@lucent.com>
82111
82112         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82113         problem.
82114
82115 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82116
82117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82118         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82119
82120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82121
82122         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82123         per change in ../m4/ls-mntd-fs.m4.
82124         (read_filesystem_list): Ignore symbolic links.
82125
82126 2000-06-29  Jim Meyering  <meyering@lucent.com>
82127
82128         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82129         for declaration of strcmp.
82130
82131         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82132
82133         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82134         Avoid warning by casting result to `char *' to remove `const'.
82135
82136 2000-06-28  Jim Meyering  <meyering@lucent.com>
82137
82138         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82139         included by quotearg.c, for which we perform this test.  From
82140         Bruno Haible.
82141
82142 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82143
82144         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82145         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82146         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82147
82148 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82149
82150         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82151
82152 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82153
82154         savedir now sets errno on failure and invokes xmalloc to get memory.
82155         Fix a couple of other minor bugs while we're at it.
82156
82157         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82158         (NAMLEN): Remove macro.
82159         (malloc, realloc): Remove decls.
82160         (stpcpy): Likewise.
82161         ("xalloc.h"): Include.
82162         (NAME_SIZE_DEFAULT): New macro.
82163         (savedir): Use xmalloc / xrealloc to allocate memory.
82164         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82165         Skip "" directory entries.
82166         Use strlen to calculate directory entry length, since the old method
82167         is rarely used these days and isn't worth supporting.
82168         Don't use a pointer after freeing it.
82169         Check for integer overflow when calculating allocation size.
82170         Use memcpy to copy entries, instead of stpcpy.
82171         Set errno properly when returning NULL.
82172         Check for readdir error.
82173
82174 2000-06-26  Jim Meyering  <meyering@lucent.com>
82175
82176         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82177
82178 2000-06-25  Jim Meyering  <meyering@lucent.com>
82179
82180         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82181         Linux header bug when _XOPEN_SOURCE is defined to 500.
82182
82183 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82184
82185         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82186         deficiency.
82187
82188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82189
82190         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82191         Include xalloc.h.
82192         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82193
82194 2000-06-24  Jim Meyering  <meyering@lucent.com>
82195
82196         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82197         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82198         for which strerror does return char*, but which lacks a conveniently
82199         accessible declaration of the function.  If the compile-test says
82200         strerror_r doesn't work, then resort to a `run'-test that works on
82201         BeOS and segfaults on DEC Unix.
82202
82203 2000-06-24  Jim Meyering  <meyering@lucent.com>
82204
82205         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82206
82207 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82208
82209         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82211
82212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82213
82214         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82215         (mbrtowc, mbstate_t): Define substitutes if
82216         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82217         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82218         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82219
82220 2000-06-23  Jim Meyering  <meyering@lucent.com>
82221
82222         * m4/afs.m4: Add missing AC_MSG_RESULT.
82223         Reported by Bruno Haible.
82224
82225         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82226         Suggestion from Bruno Haible.
82227
82228 2000-06-23  Jim Meyering  <meyering@lucent.com>
82229
82230         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82231
82232 2000-06-21  Jim Meyering  <meyering@lucent.com>
82233
82234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82235
82236 2000-06-21  Jim Meyering  <meyering@lucent.com>
82237
82238         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82239         (noinst_HEADERS): Add getstr.h.
82240
82241         * lib/getline.c (getstr): Move into a separate file.
82242         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82243         the following changes: new parameter, delim2; both delim[12]
82244         parameters have type `int', not `char'.  The latter would lose
82245         with 8-bit delimiters.
82246         * lib/getstr.h: New file.
82247
82248 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82249
82250         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82251         than 1024, return a memory chunk of least possible size, instead
82252         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82253         Use free/xmalloc instead of xrealloc to avoid copying for very long
82254         paths.
82255
82256 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82257
82258         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82259         the empty string.
82260
82261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82262
82263         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82264         address, not strdup.  Include <stdlib.h> and don't declare free().
82265
82266 2000-06-19  Jim Meyering  <meyering@lucent.com>
82267
82268         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82269
82270 2000-06-18  Jim Meyering  <meyering@lucent.com>
82271
82272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82273
82274         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82275         `checking whether...' message to be consistent with that of the
82276         lstat test.
82277
82278 2000-06-18  Jim Meyering  <meyering@lucent.com>
82279
82280         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82281         Besides, these days every porting target provides a mkdir function.
82282
82283         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82284         needed. (this snippet comes from src/system.h).
82285
82286 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82287
82288         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82289
82290 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82291
82292         * lib/human.c (adjust_value): New function.
82293         (human_readable_inexact): Apply rounding style even when
82294         printing approximate values.
82295
82296 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82297
82298         * lib/human.c (human_readable_inexact): Allow an input block
82299         size that is not a multiple of the output block size, and vice versa.
82300         Reported by Piergiorgio Sartor.
82301
82302 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82303
82304         * lib/getdate.y (get_date): Apply relative times after time
82305         zone indicator, not before.  Reported by Todd A. Jacobs.
82306
82307 2000-06-13  Jim Meyering  <meyering@lucent.com>
82308
82309         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82310
82311         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82312
82313 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82314
82315         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82316
82317 2000-06-12  Jim Meyering  <meyering@lucent.com>
82318
82319         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82320         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82321         optional argument.
82322         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82323         the optional argument, `lib'.
82324
82325 2000-06-08  Jim Meyering  <meyering@lucent.com>
82326
82327         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82328
82329 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82330
82331         Rewrite largefile configuration so that we don't need to run
82332         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82333         AC_CANONICAL_HOST in configure.in -- jmm]
82334
82335         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82336         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82337         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82338         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82339         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82340         All uses changed.
82341         Instead of inspecting the output of getconf, try to compile the
82342         test program without and with the macro definition.
82343         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82344         for getconf.  Instead, check for the needed flags by compiling
82345         test programs.
82346
82347 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82348
82349         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82350
82351 2000-06-04  Jim Meyering  <meyering@lucent.com>
82352
82353         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82354         SunOS 4.1.4 for which gid_t is an unsigned type.
82355
82356 2000-06-03  Jim Meyering  <meyering@lucent.com>
82357
82358         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82359         now that autoconf requires that.
82360
82361         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82362         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82363         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82364
82365 2000-06-03  Jim Meyering  <meyering@lucent.com>
82366
82367         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82368
82369 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82370
82371         * m4/glibc21.m4: New file.
82372         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82373
82374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82375
82376         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82377         newer, don't install charset.alias.
82378         * lib/config.charset: Change the Linux/glibc rules so they become empty
82379         on glibc-2.1 or newer.
82380
82381 2000-06-02  Jim Meyering  <meyering@lucent.com>
82382
82383         * lib/mountlist.c: Back out last change.  Instead, do this...
82384         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82385         me_dummy member using the same `ignore'-testing code.
82386         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82387         fs_type strings.
82388         From Mark D. Roth.
82389
82390 2000-05-29  Jim Meyering  <meyering@lucent.com>
82391
82392         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82393         mounts with the `ignore' attribute.  Based on a patch from
82394         Mark D. Roth.
82395
82396 2000-05-28  Jim Meyering  <meyering@lucent.com>
82397
82398         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82399         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82400         * m4/stat.m4: Likewise.
82401         * m4/lstat.m4: Likewise.
82402         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82403
82404         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82405         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82406
82407 2000-05-26  Jim Meyering  <meyering@lucent.com>
82408
82409         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82410
82411 2000-05-24  Jim Meyering  <meyering@lucent.com>
82412
82413         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82414         autoconf requires that.
82415         * m4/lib-check.m4: Likewise.
82416         * m4/jm-macros.m4: Likewise.
82417         * m4/strftime.m4: Likewise.
82418
82419         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82420         AC_CHECK_DECLS, now that autoconf requires that.
82421
82422 2000-05-22  Jim Meyering  <meyering@lucent.com>
82423
82424         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82425         * m4/lstat.m4: Likewise.
82426
82427 2000-05-22  Jim Meyering  <meyering@lucent.com>
82428
82429         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82430
82431 2000-05-20  Jim Meyering  <meyering@lucent.com>
82432
82433         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82434         (jm_PREREQ): Use it.
82435
82436 2000-05-18  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82439         back, too, since it may have been modified by allocate_entry.
82440         (hash_delete): Rewrite to use neither the assignment operator
82441         nor the comma operator in an if-expression.
82442
82443 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82444
82445         * lib/closeout.c:
82446         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82447         Remove; no longer needed.
82448         "quotearg.h": Add include.
82449         (file_name): Do not bother to explicitly initialize to NULL; it's less
82450         efficient on some hosts.
82451         (close_stdout_status): Remove test as to whether stdout was already
82452         closed; it breaks for the case "echo x | sort >&-".
82453         Quote file name colons.
82454         Do not assume that _("write error") lacks format strings.
82455
82456 2000-05-15  Jim Meyering  <meyering@lucent.com>
82457
82458         * lib/version-etc.c (version_etc_copyright): Update the copyright
82459         string used in all --version output.
82460
82461 2000-05-14  Jim Meyering  <meyering@lucent.com>
82462
82463         * lib/closeout.c (close_stdout_set_file_name): New function.
82464         (close_stdout_status): Use new file-scoped global.
82465         Return right away if fstat says the stdout file descriptor is invalid.
82466         * lib/closeout.h (close_stdout_set_file_name): Declare.
82467
82468 2000-05-10  Jim Meyering  <meyering@lucent.com>
82469
82470         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82471         (close_stdout_set_status): New function.
82472         * lib/closeout.h (close_stdout_set_status): Declare.
82473
82474 2000-05-09  Jim Meyering  <meyering@lucent.com>
82475
82476         * m4/gettext.m4: Rename this...
82477         * m4/libintl.m4: ...to this.
82478
82479 2000-05-08  Jim Meyering  <meyering@lucent.com>
82480
82481         * lib/long-options.c: Don't include closeout.h.
82482         (parse_long_options): Don't call close_stdout for --version.
82483
82484 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82485
82486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82487         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82488         2.1.3 bug.  This avoids a clash when files like regex.c define
82489         _GNU_SOURCE.
82490
82491 2000-05-06  Jim Meyering  <meyering@lucent.com>
82492
82493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82494         (AC_REPLACE_FUNCS): Add strnlen.
82495
82496         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82497         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82498
82499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82500         AC_SEARCH_LIBS call for nanosleep.
82501         (LIB_NANOSLEEP): Set and AC_SUBST.
82502
82503 2000-05-06  Jim Meyering  <meyering@lucent.com>
82504
82505         * lib/strnlen.c: Undefine __strnlen and strnlen.
82506         [!weak_alias]: Define __strnlen to strnlen.
82507
82508         * lib/atexit.c: New file, from libiberty.
82509
82510 2000-05-06  Jim Meyering  <meyering@lucent.com>
82511
82512         * lib/closeout.c (close_stdout_status): Also check for errors on the
82513         stderr stream.
82514
82515 2000-05-05  Jim Meyering  <meyering@lucent.com>
82516
82517         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82518         AC_SEARCH_LIBS call for clock_gettime.
82519         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82520
82521         * m4/search-libs.m4: Update from autoconf.
82522
82523         su doesn't work on Solaris 2.6.
82524         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82525         <shadow.h>.  Reported by Dragos Harabor.
82526
82527 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82528
82529         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82530         memcpy instead of xmalloc, xrealloc, path_concat.
82531         (locale_charset): Treat empty environment variables as absent.
82532         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82533
82534 2000-05-04  Jim Meyering  <meyering@lucent.com>
82535
82536         * lib/getopt.c: Update from glibc.
82537         * lib/obstack.c: Likewise.
82538         * lib/obstack.h: Likewise.
82539         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82540         file
82541
82542         * lib/regex.h: Likewise.
82543         * lib/strndup.c: Likewise.
82544         * lib/strnlen.c: New file, from glibc.
82545
82546 2000-05-03  Jim Meyering  <meyering@lucent.com>
82547
82548         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82549
82550 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82551
82552         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82553         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82554         compile-time test, rather than inspecting host and OS, to
82555         decide whether to define _LARGEFILE_SOURCE.
82556
82557 2000-05-01  Jim Meyering  <meyering@lucent.com>
82558
82559         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82560
82561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82562         Based on a patch from Bruno Haible.
82563
82564 2000-05-01  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82567
82568 2000-04-29  Jim Meyering  <meyering@lucent.com>
82569
82570         * lib/path-concat.c: Declare strdup only if it's not defined.
82571         * lib/canon-host.c: Likewise.
82572
82573 2000-04-28  Jim Meyering  <meyering@lucent.com>
82574
82575         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82576         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82577         is included first, then limits.h is included by locale.h by libintl.h.
82578         From John David Anglin.
82579
82580 2000-04-25  Jim Meyering  <meyering@lucent.com>
82581
82582         * lib/makepath.c (S_IRWXUGO): Define.
82583         (make_path): Always perform explicit chmod if MODE specifies any
82584         of the `special' permission bits.  Prompted by a bug report against
82585         install from Mate Wierdl and Joost van Baal.
82586
82587 2000-04-18  Jim Meyering  <meyering@lucent.com>
82588
82589         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82590         (jm_PREREQ): Use it.
82591
82592 2000-04-18  Jim Meyering  <meyering@lucent.com>
82593
82594         * lib/README: New file.
82595
82596         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82597         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82598
82599 2000-04-17  Jim Meyering  <meyering@lucent.com>
82600
82601         Get it right :-)
82602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82603         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82604         Suggestion from Akim Demaille.
82605
82606 2000-04-17  Jim Meyering  <meyering@lucent.com>
82607
82608         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82609         the definition of it to rpl_strftime also defined-away the system's
82610         declaration.
82611
82612 2000-04-15  Jim Meyering  <meyering@lucent.com>
82613
82614         Use `C' to denote so-called `contiguous' files, the same way
82615         that tar does.
82616         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82617         (ftypelet): Use S_ISCTG.
82618         From Michael Deutschmann.
82619
82620 2000-04-14  Jim Meyering  <meyering@lucent.com>
82621
82622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82623         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82624         clobbered.
82625
82626 2000-04-14  Jim Meyering  <meyering@lucent.com>
82627
82628         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82629
82630 2000-04-13  Jim Meyering  <meyering@lucent.com>
82631
82632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82633         AH_VERBATIM to insert required #ifndef into config.h.in.
82634         Suggestion from Akim Demaille.
82635
82636 2000-04-12  Jim Meyering  <meyering@lucent.com>
82637
82638         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82639         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82640         Christian Krackowizer.
82641
82642         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82643         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82644         (AC_SYS_LARGEFILE): Require.
82645         (AM_C_PROTOTYPES): Require.
82646
82647 2000-04-08  Jim Meyering  <meyering@lucent.com>
82648
82649         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82650         names don't conflict.  Reported by Eli Zaretskii.
82651
82652 2000-04-07  Jim Meyering  <meyering@lucent.com>
82653
82654         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82655         sys/types.h, to work around system header problems on AIX 3.2.5.
82656         From Bruno Haible.
82657
82658 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82659
82660         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82661         bug.  Deal with the different error behavior of Irix iconv.
82662
82663 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82664
82665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82666         IRIX if the installer said otherwise.
82667
82668 2000-04-05  Jim Meyering  <meyering@lucent.com>
82669
82670         Portability tweaks required for ultrix4.3.
82671         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82672         (jm_CHECK_DECLS): Add getutent to the list of functions.
82673         (_jm_DECL_HEADERS): Add utmpx.h.
82674         From John David Anglin.
82675
82676         * m4/strftime.m4: Back out the 2000-04-02 change.
82677         Instead of that change, simply undefine putenv in the test program.
82678
82679 2000-04-05  Jim Meyering  <meyering@lucent.com>
82680
82681         Portability tweaks required for ultrix4.3.
82682         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82683         getutent.
82684         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82685         * lib/canon-host.c: Declare strdup.
82686         * lib/path-concat.c: Likewise.
82687         From John David Anglin.
82688
82689 2000-04-04  Jim Meyering  <meyering@lucent.com>
82690
82691         Be more DOS 8.3-friendly.
82692         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82693         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82694         * lib/Makefile.am: Reflect renaming.
82695         Reported by Eli Zaretskii.
82696
82697         Use a temporary file name that won't clash with `charset.alias'
82698         in the DOS 8.3 name space.
82699         * lib/Makefile.am (charset_tmp): Define.
82700         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82701         (uninstall-local): Likewise.
82702         Reported by Eli Zaretskii.
82703
82704 2000-04-03  Jim Meyering  <meyering@lucent.com>
82705
82706         * m4/gettext.m4: Fix typo in comment.
82707
82708         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82709         textutils/configure.in).  Suggestion from Paul Eggert.
82710         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82711
82712 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82713
82714         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82715         variable in the shell rather than using putenv, which isn't
82716         portable.  This avoids the configure-time inter-test dependency
82717         on the potentially-renamed putenv function.
82718
82719 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82720
82721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82722         before checking struct stat.st_blksize, so that
82723         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82724
82725 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82726
82727         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82728         since strftime.c uses HAVE_STRFTIME to decide whether to use
82729         the underlying strftime.
82730
82731 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82732
82733         * lib/time/strftime.c (my_strftime): Make sure we call the system
82734         strftime, not ourselves, when invoking the underlying strftime.
82735
82736 2000-03-24  Jim Meyering  <meyering@lucent.com>
82737
82738         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82739         (charset_alias): Define.
82740         (install-exec-local): Factor out common code.
82741         (uninstall-local): Split lines longer than 80.
82742         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82743         (SUFFIXES): Define.
82744         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82745         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82746
82747 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82748
82749         * lib/config.charset: Output a line containing "Packages using this
82750         file".
82751         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82752         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82753         ref-del.sed): New rules.
82754
82755 2000-03-17  Jim Meyering  <meyering@lucent.com>
82756
82757         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82758         Otherwise, include <strings.h>
82759
82760 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82761
82762         * lib/unicodeio.c (utf8_wctomb): New function.
82763         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82764         format instead of in UCS-4 with platform dependent endianness.
82765
82766 2000-03-10  Jim Meyering  <meyering@lucent.com>
82767
82768         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82769         From Marco Franzen.
82770
82771 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82772
82773         * lib/savedir.c (savedir): Work even if directory size is
82774         negative; this can happen with some screwy NFS configurations.
82775
82776 2000-03-06  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82779         if it's NULL (because we ran out of memory).  From Bruno Haible.
82780
82781 2000-03-05  Jim Meyering  <meyering@lucent.com>
82782
82783         * lib/localcharset.c ("path-concat.h"): Include.
82784         (get_charset_aliases): Use path_concat instead of ANSI string
82785         concatenation.
82786
82787         * lib/unicodeio.h (PARAMS): Define.
82788         Use it to guard prototype.
82789
82790 2000-03-04  Jim Meyering  <meyering@lucent.com>
82791
82792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82793         for lib/localcharset.c.
82794
82795 2000-03-04  Jim Meyering  <meyering@lucent.com>
82796
82797         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82798         installing into it.
82799         (uninstall-local): Uncomment this rule so `make distcheck' works
82800         once again.
82801
82802         * lib/unicodeio.c (<errno.h>): Include it.
82803         (errno): Declare if not defined.
82804
82805         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82806
82807         * lib/config.charset: New version, incorporating remarks from a linux
82808         i18n mailing list.  From Bruno Haible.
82809
82810 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82811
82812         * m4/codeset.m4: New file.
82813         * m4/iconv.m4: New file.
82814         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82815
82816 2000-03-03  Jim Meyering  <meyering@lucent.com>
82817
82818         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82819
82820 2000-03-02  Jim Meyering  <meyering@lucent.com>
82821
82822         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82823         the messages come out on separate lines.
82824
82825         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82826         rather than jm_CHECK_DECLARATIONS.
82827         * m4/decl.m4: Remove now-unused file.
82828
82829         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82830         geteuid.
82831
82832 2000-03-02  Jim Meyering  <meyering@lucent.com>
82833
82834         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82835
82836 2000-03-01  Jim Meyering  <meyering@lucent.com>
82837
82838         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82839         * lib/unicodeio.c: Likewise.
82840
82841 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82842
82843         * lib/config.charset: New file.
82844         * lib/localcharset.c: New file.
82845         * lib/unicodeio.h, lib/unicodeio.c: New files.
82846         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82847         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82848         (noinst_HEADERS): Add unicodeio.h.
82849         (all-local, install-exec-local, charset.alias): New targets.
82850
82851 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82852
82853         * lib/quotearg.c (ALERT_CHAR): New macro.
82854         (quotearg_buffer_restyled): Use it.
82855
82856 2000-02-27  Jim Meyering  <meyering@lucent.com>
82857
82858         * m4/check-decl.m4: Add getenv to the list.
82859
82860 2000-02-27  Jim Meyering  <meyering@lucent.com>
82861
82862         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82863         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82864
82865         * lib/backupfile.c: Guard inclusion of stdlib.h with
82866         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82867         Declare malloc if needed.
82868
82869         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82870         `#ifndef HAVE_DECL..'
82871         now that autoconf always defines the HAVE_DECL_ symbols.
82872         * lib/human.c: Likewise.
82873         * lib/same.c: Likewise.
82874         * lib/strtoumax.c: Likewise.
82875
82876         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82877         declaration check was not run.
82878         * lib/hash.c: Likewise.
82879         * lib/human.c: Likewise.
82880         * lib/same.c: Likewise.
82881         * lib/strtoumax.c: Likewise.
82882
82883         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82884         `.', then first look up the entire `.'-containing string as a login
82885         name.
82886
82887 2000-02-23  Jim Meyering  <meyering@lucent.com>
82888
82889         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82890         in place of my hack.
82891
82892 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82893
82894         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82895         (textint): New typedef.
82896         (parser_control): Member year changed from int to textint.
82897         All uses changed.
82898         (YYSTYPE): Removed; replaced by %union with int and textint members.
82899         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82900         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82901         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82902         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82903         (date, number, to_year): Use width of number in digits, not its value,
82904         to determine whether it's a 2-digit year, or a 2-digit time.
82905         (yylex): Store number of digits of numeric tokens.
82906         Reported by John Kendall.
82907
82908         (parser_control): Changed from struct parser_control to typedef (for
82909         consistency).  All uses changed.
82910
82911         (tID): Removed; not used.
82912         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82913
82914 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82915
82916         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82917         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82918
82919 2000-02-12  Jim Meyering  <meyering@lucent.com>
82920
82921         * lib/userspec.c (ISDIGIT): Define it.
82922         (isdigit): Remove definition.
82923         (is_number): Use ISDIGIT, not isdigit.
82924         <libintl.h>: Include.
82925         (_ and N_): Define.
82926         (parse_user_spec): Mark translatable strings.
82927
82928 2000-02-10  Jim Meyering  <meyering@lucent.com>
82929
82930         With these changes, nanosleep.[ch] are finally enough like the other
82931         lib/* replacement files to compile on a few more losing systems.
82932
82933         * lib/nanosleep.h: Don't include config.h.
82934         Remove prototype from declaration of nanosleep.
82935         (PARAMS): Remove now-unneeded definition.
82936         * lib/nanosleep.c: #undef nanosleep.
82937         (rpl_nanosleep): Rename from nanosleep.
82938
82939 2000-02-10  Jim Meyering  <meyering@lucent.com>
82940
82941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82942         gnu_nanosleep to rpl_nanosleep.
82943
82944 2000-02-09  Jim Meyering  <meyering@lucent.com>
82945
82946         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82947         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82948
82949 2000-02-08  Akim Demaille  <akim@epita.fr>
82950
82951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82952         `[' and `]' and remove uses of `changequote'.
82953         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82954         (AC_SYS_LARGEFILE): Likewise.
82955         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82956         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82957         of changequote.
82958         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82959         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82960         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82961         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82962
82963 2000-02-05  Jim Meyering  <meyering@lucent.com>
82964
82965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82966         Remove explicit use of AC_HEADER_TIME.  It is required by
82967         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82968         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82969         in autoconf whereby the expansion of the latter ended up preceding
82970         the expansion of its prerequisite, AC_HEADER_TIME.
82971         Reported by Volker Borchert.
82972
82973 2000-02-03  Jim Meyering  <meyering@lucent.com>
82974
82975         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82976
82977 2000-02-03  Jim Meyering  <meyering@lucent.com>
82978
82979         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82980         rather than with `#if HAVE_UTMPNAME'.
82981
82982 2000-02-02  Jim Meyering  <meyering@lucent.com>
82983
82984         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82985         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82986         Reported by Eli Zaretskii.
82987
82988 2000-02-01  Jim Meyering  <meyering@lucent.com>
82989
82990         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82991
82992 2000-01-31  Jim Meyering  <meyering@lucent.com>
82993
82994         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82995         functions.  Add the time.h and sys/time.h headers along with the
82996         AC_REQUIRE'ment of AC_HEADER_TIME.
82997
82998 2000-01-31  Jim Meyering  <meyering@lucent.com>
82999
83000         * lib/nanosleep.h (nanosleep): Guard declaration with
83001         `#if ! HAVE_DECL_NANOSLEEP'.
83002         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83003         the declaration in that vendor's sys/timers.h.
83004         Reported by Christian Krackowizer.
83005
83006         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83007         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83008         (ISPRINT): Likewise.
83009         Reported by Tom Tromey.
83010
83011 2000-01-30  Jim Meyering  <meyering@lucent.com>
83012
83013         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83014
83015         * m4/prereq.m4 (utmp_includes): Define.
83016         Check for ut_user and ut_name members in both struct utmpx
83017         and struct utmp.
83018
83019 2000-01-30  Jim Meyering  <meyering@lucent.com>
83020
83021         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83022         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83023         header files where only utmpx.ut_user is declared.
83024
83025         * lib/readutmp.h (UT_USER): Define.
83026
83027 2000-01-29  Jim Meyering  <meyering@lucent.com>
83028
83029         * m4/lib-check.m4: New file containing library-related checks from
83030         fileutils and sh-utils (textutils had none).
83031
83032 2000-01-28  Jim Meyering  <meyering@lucent.com>
83033
83034         * m4/perl.m4: Change format of warning message to look more like that
83035         from the missing script.  Suggestion from François Pinard.
83036
83037 2000-01-25  Jim Meyering  <meyering@lucent.com>
83038
83039         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83040         well as time.h in the compile check.
83041         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83042         Fix typo in cross-compiling case: s/yes/no/.
83043
83044 2000-01-23  Jim Meyering  <meyering@lucent.com>
83045
83046         * m4/jm-macros.m4: Move df-related tests here from
83047         fileutils/configure.in
83048
83049         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83050         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83051
83052         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83053         s/space/ac_fsusage_space/.
83054         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83055
83056         * m4/ftruncate.m4: New file (derived from part of
83057         fileutils/configure.in).
83058         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83059         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83060
83061         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83062         AC_SUBST these here, rather than just in sh-util/configure.in, so
83063         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83064         all the same.
83065         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83066         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83067         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83068         (AC_SUBST(POW_LIBM)): Likewise.
83069         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83070
83071 2000-01-23  Jim Meyering  <meyering@lucent.com>
83072
83073         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83074         obstack.c.
83075
83076 2000-01-22  Jim Meyering  <meyering@lucent.com>
83077
83078         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83079
83080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83081
83082         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83083         configure.in
83084         (AC_CHECK_HEADERS): Likewise for sh-utils.
83085         (AC_CHECK_HEADERS): Likewise for textutils.
83086         Merge the three lists of headers.
83087
83088         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83089         from fileutils' configure.in.
83090
83091         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83092         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83093         check-decl.m4.
83094
83095         * m4/check-decl.m4: Use #if rather than #ifdef.
83096         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83097         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83098         (_jm_DECL_HEADERS): Define new function.
83099         (jm_CHECK_DECLARATIONS): Require it.
83100
83101 2000-01-22  Jim Meyering  <meyering@lucent.com>
83102
83103         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83104         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83105         Required for some AIX systems.  Reported by Christian Krackowizer.
83106         [TESTING] (main): New function.
83107
83108         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83109         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83110         letters.
83111
83112         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83113         iswprint.
83114
83115         * lib/strverscmp.c (ISDIGIT): Define.
83116         (strverscmp): Use ISDIGIT, not isdigit.
83117
83118 2000-01-19  Jim Meyering  <meyering@lucent.com>
83119
83120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83121         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83122         defines `struct timespec' in <sys/time.h>
83123
83124         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83125         Thanks to Akim for explaining.
83126
83127 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83128
83129         * lib/nanosleep.c (nanosleep):
83130         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83131         POSIX.1 doesn't require SA_INTERRUPT and some systems
83132         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83133         it's been part of POSIX.1 since day 1 (in 1988).
83134
83135 2000-01-17  Jim Meyering  <meyering@lucent.com>
83136
83137         * lib/interlock: Remove unused file.  Reported by François Pinard.
83138
83139 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83142         alert, backslash, formfeed, and vertical tab unnecessarily in
83143         shell quoting style.
83144
83145 2000-01-16  Jim Meyering  <meyering@lucent.com>
83146
83147         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83148         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83149         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83150         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83151
83152 2000-01-16  Jim Meyering  <meyering@lucent.com>
83153
83154         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83155         because the latter didn't work.
83156
83157 2000-01-15  Jim Meyering  <meyering@lucent.com>
83158
83159         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83160         (AC_REPLACE_FUNCS): Add memcpy and memset.
83161         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83162         Add strpbrk.
83163         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83164
83165 2000-01-12  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83168         (jm_PREREQ): Use it.
83169         (jm_PREREQ_READUTMP): New macro.
83170         (jm_PREREQ): Use it.
83171
83172 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83173
83174         Quote multibyte characters correctly.
83175         * m4/c-bs-a.m4: New file.
83176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83177         (jm_PREREQ): Use it.
83178
83179 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83180
83181         * m4/uintmax_t.m4: Port to autoconf 2.13.
83182
83183 2000-01-08  Jim Meyering  <meyering@ascend.com>
83184
83185         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83186         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83187
83188 2000-01-04  Jim Meyering  <meyering@ascend.com>
83189
83190         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83191         jm_STRUCT_DIRENT_D_TYPE.
83192         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83193         jm_STRUCT_DIRENT_D_INO.
83194         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83195         jm_STRUCT_UTIMBUF.
83196         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83197         renamings.
83198         * m4/utime.m4: Likewise.
83199
83200         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83201         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83202
83203 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83204
83205         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83206         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83207
83208 2000-01-02  Jim Meyering  <meyering@ascend.com>
83209
83210         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83211         remember if this is necessary.
83212
83213 1999-12-26  Jim Meyering  <meyering@ascend.com>
83214
83215         * m4/jm-macros.m4: Use it here.
83216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83217
83218 1999-12-23  Jim Meyering  <meyering@ascend.com>
83219
83220         * m4/jm-macros.m4: Check for clock_gettime (moved from
83221         fileutils/configure.in)
83222         Check for gettimeofday.
83223
83224 1999-12-20  Jim Meyering  <meyering@ascend.com>
83225
83226         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83227         autoconf-2.14a-1999-12-20.
83228
83229 1999-12-19  Jim Meyering  <meyering@ascend.com>
83230
83231         * m4/lstat-slash.m4: New file.
83232         * m4/jm-macros.m4: Use the new macro:
83233         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83234
83235 1999-12-07  Jim Meyering  <meyering@ascend.com>
83236
83237         * m4/perl.m4: Require that File::Compare be available, too.
83238         Too many systems seem to lack it.
83239
83240         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83241         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83242
83243 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83244
83245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83246         problem with the QNX 4.25 shell, which doesn't propagate exit
83247         status of failed commands inside shell assignments.
83248
83249 1999-11-17  Jim Meyering  <meyering@ascend.com>
83250
83251         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83252
83253 1999-11-07  Jim Meyering  <meyering@ascend.com>
83254
83255         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83256
83257 1999-11-06  Jim Meyering  <meyering@ascend.com>
83258
83259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83260         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83261
83262 1999-11-05  Jim Meyering  <meyering@ascend.com>
83263
83264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83265         configure.in of textutils, fileutils, and sh-utils into this one
83266         (shared between those packages) file.
83267         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83268         AC_STRUCT_ST_BLKSIZE.
83269
83270 1999-11-03  Jim Meyering  <meyering@ascend.com>
83271
83272         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83273         of AC_CHECK_TYPE checks includes unistd.h.
83274         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83275         Suggestion from Akim Demaille.
83276
83277 1999-10-30  Jim Meyering  <meyering@ascend.com>
83278
83279         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83280         m4-quoted string.
83281         * m4/ls-mntd-fs.m4: Likewise.
83282         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83283         * m4/jm-winsz1.m4: Likewise.
83284
83285         * m4/const.m4: Remove file, since the fix made it into the experimental
83286         version of autoconf.
83287         * m4/mktime.m4: Likewise.
83288
83289         * m4/check-type.m4: Remove file, now that the latest version of
83290         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83291
83292         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83293         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83294         AC_CHECK_TYPE.
83295
83296 1999-10-04  Jim Meyering  <meyering@ascend.com>
83297
83298         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83299
83300 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83301
83302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83303         2.95.1 bug with HP-UX 10.20.
83304
83305 1999-09-17  Jim Meyering  <meyering@ascend.com>
83306
83307         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83308         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83309         due to missing strdup (against sh-utils-2.0).
83310
83311 1999-08-29  Jim Meyering  <meyering@ascend.com>
83312
83313         * m4/jm-macros.m4: Require jm_BISON.
83314         * m4/bison.m4: New file.
83315
83316 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83317
83318         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83319         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83320
83321 1999-08-05  Jim Meyering  <meyering@ascend.com>
83322
83323         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83324         to avoid conflicts with `conftest' on 8+3 filesystems.
83325         Suggestion from Eli Zaretskii.
83326
83327 1999-08-04  Jim Meyering  <meyering@ascend.com>
83328
83329         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83330         fileutils and sh-utils (textutils's getline test was inadequate).
83331         (AM_FUNC_GETLINE): Run this test.
83332         (AC_CHECK_FUNCS): Check for getdelim.
83333         Reported by Bob Proulx.
83334
83335 1999-08-02  Jim Meyering  <meyering@ascend.com>
83336
83337         * m4/jm-macros.m4: Add a comment.
83338
83339 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83340
83341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83342         <inttypes.h> defines strtoumax as a macro (and not as a
83343         function).
83344
83345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83346
83347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83348         that we can shift, multiply and divide unsigned long long
83349         values; Ultrix cc can't do it.
83350
83351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83352
83353         * m4/mktime.m4: New file, which is a preview of what should appear
83354         in the next public autoconf release.
83355
83356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83357
83358         * m4/lfs.m4: Remove this file.
83359         * m4/largefile.m4: New file.  It contains the old contents of
83360         lfs.m4, except that all names with prefix AC_LFS have been
83361         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83362         compatible with future autoconf versions.  Also, some minor m4
83363         quoting problems have been fixed.
83364
83365 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83366
83367         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83368         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83369         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83370         and simplify the shell code.
83371
83372 1999-08-01  Jim Meyering  <meyering@ascend.com>
83373
83374         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83375         m4.
83376
83377 1999-07-20  Jim Meyering  <meyering@ascend.com>
83378
83379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83380
83381 1999-07-15  Jim Meyering  <meyering@ascend.com>
83382
83383         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83384
83385 1999-05-22  Jim Meyering  <meyering@ascend.com>
83386
83387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83388
83389 1999-05-20  Jim Meyering  <meyering@ascend.com>
83390
83391         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83392         Add a colon after each `then' in case $4 is empty.
83393
83394 1999-05-16  Jim Meyering  <meyering@ascend.com>
83395
83396         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83397
83398 1999-05-10  Jim Meyering  <meyering@ascend.com>
83399
83400         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83401
83402         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83403         AC_FUNC_MKTIME.
83404
83405 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83406
83407         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83408
83409 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83410
83411         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83412         not CPPFLAGS, so that linking works correctly in IRIX.
83413
83414 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83415
83416         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83417
83418 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83419
83420         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83421         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83423         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83425
83426         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83427
83428 1999-04-20  Jim Meyering  <meyering@ascend.com>
83429
83430         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83431         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83432         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83433
83434 1999-04-18  Jim Meyering  <meyering@ascend.com>
83435
83436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83437         * m4/jm-macros.m4: Use it.
83438
83439 1999-04-06  Jim Meyering  <meyering@ascend.com>
83440
83441         * m4/strftime.m4: Remove test for %f.
83442
83443 1999-03-29  Jim Meyering  <meyering@ascend.com>
83444
83445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83446         superset of the AC_TYPE_* checks in the textutils, fileutils,
83447         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83448         AC_TYPE_PID_T.
83449
83450 1999-03-28  Jim Meyering  <meyering@ascend.com>
83451
83452         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83453         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83454         replaced e.g., in the *.sh files of the sh-utils.
83455
83456 1999-03-20  Jim Meyering  <meyering@ascend.com>
83457
83458         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83459         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83460         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83461
83462 1999-03-19  Jim Meyering  <meyering@ascend.com>
83463
83464         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83465
83466 1999-03-12  Jim Meyering  <meyering@ascend.com>
83467
83468         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83469
83470 1999-03-07  Jim Meyering  <meyering@ascend.com>
83471
83472         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83473         declared.
83474
83475 1999-02-17  Jim Meyering  <meyering@ascend.com>
83476
83477         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83478         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83479
83480 1999-02-07  Jim Meyering  <meyering@ascend.com>
83481
83482         * m4/group-member.m4: New file -- extracted from sh-utils'
83483         configure.in.
83484
83485         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83486         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83487
83488 1999-02-06  Jim Meyering  <meyering@ascend.com>
83489
83490         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83491         * m4/fnmatch.m4: Likewise.
83492         * m4/getgroups.m4: Likewise.
83493         * m4/lstat.m4: Likewise.
83494         * m4/malloc.m4: Likewise.
83495         * m4/putenv.m4: Likewise.
83496         * m4/realloc.m4: Likewise.
83497         * m4/regex.m4: Likewise.
83498         * m4/stat.m4: Likewise.
83499         * m4/strftime.m4: Likewise.
83500         Suggestion from Alain Magloire.
83501
83502         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83503         * m4/fnmatch.m4: Likewise.
83504         * m4/getgroups.m4: Likewise.
83505         * m4/getline.m4: Likewise.
83506         * m4/lstat.m4: Likewise.
83507         * m4/malloc.m4: Likewise.
83508         * m4/memcmp.m4: Likewise.
83509         * m4/putenv.m4: Likewise.
83510         * m4/realloc.m4: Likewise.
83511         * m4/regex.m4: Likewise.
83512         * m4/stat.m4: Likewise.
83513         * m4/strftime.m4: Likewise.
83514         Suggestion from Alain Magloire.
83515
83516         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83517         an argument.
83518
83519         * m4/regex.m4: Add a run-time Test for proper operation of
83520         re_compile_pattern.
83521
83522 1999-01-31  Jim Meyering  <meyering@ascend.com>
83523
83524         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83525
83526 1999-01-30  Jim Meyering  <meyering@ascend.com>
83527
83528         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83529
83530         * m4/jm-mktime.m4: Make this a wrapper around the official
83531         AM_FUNC_MKTIME rather than my private copy, now that the official one
83532         is up to date.
83533         * m4/mktime.m4: Remove file.
83534
83535         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83536         * m4/uptime.m4: Likewise.
83537         * m4/uintmax_t.m4: Likewise.
83538
83539 1999-01-28  Jim Meyering  <meyering@ascend.com>
83540
83541         * m4/jm-macros.m4: Use jm_AFS.
83542         * m4/afs.m4: New file (from fileutils' configure.in).
83543
83544         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83545         * m4/chown.m4: Likewise.
83546         * m4/d-ino.m4: Likewise.
83547         * m4/d-type.m4: Likewise.
83548         * m4/fnmatch.m4: Likewise.
83549         * m4/getgroups.m4: Likewise.
83550         * m4/gettext.m4: Likewise.
83551         * m4/jm-mktime.m4: Likewise.
83552         * m4/jm-winsz2.m4: Likewise.
83553         * m4/lcmessage.m4: Likewise.
83554         * m4/ls-mntd-fs.m4: Likewise.
83555         * m4/malloc.m4: Likewise.
83556         * m4/memcmp.m4: Likewise.
83557         * m4/putenv.m4: Likewise.
83558         * m4/realloc.m4: Likewise.
83559         * m4/st_mtim.m4: Likewise.
83560         * m4/strftime.m4: Likewise.
83561
83562 1999-01-16  Jim Meyering  <meyering@ascend.com>
83563
83564         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83565         (ARGMATCH_DIE_DECL): Define.
83566
83567 1999-01-12  Jim Meyering  <meyering@ascend.com>
83568
83569         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83570         Reported by Lars Hecking.
83571
83572 1999-01-10  Jim Meyering  <meyering@ascend.com>
83573
83574         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83575         gross kludge.
83576         * m4/inttypes_h.m4: Likewise.
83577         * m4/lstat.m4: Likewise.
83578         * m4/malloc.m4: Likewise.
83579         * m4/readdir.m4: Likewise.
83580         * m4/realloc.m4: Likewise.
83581         * m4/st_dm_mode.m4: Likewise.
83582         * m4/stat.m4: Likewise.
83583         * m4/utimbuf.m4: Likewise.
83584         * m4/utimes.m4: Likewise.
83585
83586         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83587         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83588         comments in config.h.in are meaningful.
83589
83590         * m4/jm-macros.m4: Require autoconf-2.13 here.
83591
83592         * m4/regex.m4: By default, don't use the included regex.c on systems
83593         with glibc 2.  Suggestion from Uli Drepper.
83594
83595 1999-01-02  Jim Meyering  <meyering@ascend.com>
83596
83597         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83598
83599 1998-12-18  Jim Meyering  <meyering@ascend.com>
83600
83601         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83602         Based on a suggestion from Lars Hecking.
83603
83604 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83605
83606         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83607
83608 1998-11-16  Jim Meyering  <meyering@ascend.com>
83609
83610         * m4/lfs.m4: Double-quote the `uname...` expression.
83611
83612 1998-11-14  Jim Meyering  <meyering@ascend.com>
83613
83614         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83615         * m4/stat.m4: Likewise.
83616
83617 1998-11-03  Jim Meyering  <meyering@ascend.com>
83618
83619         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83620         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83621
83622 1998-10-18  Jim Meyering  <meyering@ascend.com>
83623
83624         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83625
83626 1998-10-17  Jim Meyering  <meyering@ascend.com>
83627
83628         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83629         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83630         calls for those previously hard-coded headers.  Instead, take a new
83631         parameter.
83632         (jm_CHECK_DECLARATIONS): Reflect interface change.
83633         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83634         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83635
83636         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83637
83638 1998-10-14  Jim Meyering  <meyering@ascend.com>
83639
83640         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83641         instead of "TZ=America/Vancouver".  From Paul Eggert.
83642
83643 1998-10-11  Jim Meyering  <meyering@ascend.com>
83644
83645         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83646         This adds a test for a recently added compatibility fix for mktime.c.
83647         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83648
83649 1998-09-27  Jim Meyering  <meyering@ascend.com>
83650
83651         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83652
83653         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83654         ../configure.in, including a change from Gordon Matzigkeit to allow
83655         cross-compiling for the Hurd.
83656
83657         * m4/glibc.m4: New file/macro to test for the GNU C Library
83658         versions 1 and 2.  From Gordon Matzigkeit.
83659         Indent.
83660
83661 1998-09-21  Jim Meyering  <meyering@ascend.com>
83662
83663         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83664
83665 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83666
83667         Port nanosecond-resolution times to UnixWare 2.1.2 and
83668         pedantic Solaris 2.6.
83669
83670         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83671         AC_STRUCT_ST_MTIM.
83672         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83673         Generate name of ns member, instead of just 1 or undef.
83674         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83675
83676 1998-08-15  Jim Meyering  <meyering@ascend.com>
83677
83678         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83679         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83680         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83681         instead of jm_TYPE_SSIZE_T.
83682
83683 1998-08-12  Jim Meyering  <meyering@ascend.com>
83684
83685         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83686
83687 1998-08-02  Jim Meyering  <meyering@ascend.com>
83688
83689         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83690         in acconfig.h manually.
83691
83692 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83693
83694         * m4/st_mtim.m4: New file.
83695
83696 1998-07-28  Jim Meyering  <meyering@ascend.com>
83697
83698         * m4/utimes.m4: Undef stat.
83699
83700 1998-07-25  Jim Meyering  <meyering@ascend.com>
83701
83702         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83703         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83704
83705 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83706
83707         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83708         uid and gid actually remain unchanged.
83709
83710 1998-07-07  Jim Meyering  <meyering@ascend.com>
83711
83712         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83713
83714 1998-07-04  Jim Meyering  <meyering@ascend.com>
83715
83716         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83717         to prove that this macro can be used in packages without regex.c.
83718
83719 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83720
83721         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83722         is to be used.
83723
83724 1998-07-03  Jim Meyering  <meyering@ascend.com>
83725
83726         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83727
83728         * m4/gettext.m4: New file -- from gettext-0.10.35.
83729         * m4/lcmessage.m4: Likewise.
83730         * m4/progtest.m4: Likewise.
83731
83732         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83733         * m4/jm-macros.m4: Require the new macro.
83734
83735 1998-06-29  Jim Meyering  <meyering@ascend.com>
83736
83737         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83738         for the definition of NGROUPS (used in a system header included
83739         by sys/mount.h).
83740
83741 1998-06-28  Jim Meyering  <meyering@ascend.com>
83742
83743         * m4/ls-mntd-fs.m4: New file.
83744         * m4/fstypename.m4: New file.
83745
83746         * m4/jm-macros.m4: Require the new macro.
83747         * m4/jm-glibc-io.m4: New file.
83748
83749 1998-05-19  Jim Meyering  <meyering@ascend.com>
83750
83751         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83752         * m4/lchown.m4: New file.
83753
83754         * m4/Makefile.am.in: New file.
83755         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83756
83757 1998-05-14  Jim Meyering  <meyering@ascend.com>
83758
83759         * m4/Makefile.am (EXTRA_DIST): Add them.
83760         * m4/jm-macros.m4: New file.
83761         * m4/utimbuf.m4: New file.
83762
83763 1998-05-12  Jim Meyering  <meyering@ascend.com>
83764
83765         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83766
83767 1998-05-11  Jim Meyering  <meyering@ascend.com>
83768
83769         * m4/isc-posix.m4: New file.
83770
83771 1998-05-10  Jim Meyering  <meyering@ascend.com>
83772
83773         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83774
83775 1998-05-09  Jim Meyering  <meyering@ascend.com>
83776
83777         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83778         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83779         with automake.
83780
83781         * m4/ssize_t.m4: New file.
83782         * m4/mktime.m4: Remove file -- the new automake has this now.
83783
83784 1998-04-26  Jim Meyering  <meyering@ascend.com>
83785
83786         * m4/assert.m4: New file.
83787         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83788
83789 1998-04-05  Jim Meyering  <meyering@ascend.com>
83790
83791         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83792         (jm_PREREQ): Use it here.
83793
83794 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83795
83796         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83797         in acconfig.h.
83798
83799 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83800
83801         * m4/prereq.m4: New file.
83802         * m4/error.m4: New file.
83803         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83804
83805 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83806
83807         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83808         cache-check for the same variable -- that defeated the purpose of
83809         the test; the test program was never run.  This was a problem only
83810         on systems with losing getline functions -- HP-UX 10.20 is one.
83811         Reported by Bjorn Helgaas.
83812
83813 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83814
83815         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83816
83817 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83818
83819         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83820
83821         * m4/const.m4: New file.  Use an initializer in this declaration
83822         typedef int charset[2]; const charset x;
83823         Reported by Bob Glickstein.
83824
83825 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83826
83827         * m4/chown.m4: Fix reversed types on -1 args to chown.
83828         From Kaveh Ghazi.
83829
83830 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83831
83832         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83833         Add lseek and memchr.
83834
83835         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83836         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83837         have a 20-character limit on names.
83838
83839 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83840
83841         * m4/inttypes_h.m4: New file.
83842         * m4/uintmax_t.m4: New file.
83843         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83844
83845
83846         -----
83847
83848         Local Variables:
83849         coding: utf-8
83850         End:
83851
83852         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83853
83854         Copying and distribution of this file, with or without
83855         modification, are permitted provided the copyright notice
83856         and this notice are preserved.